@moo.md/hum 0.2.0 → 0.4.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 (70) hide show
  1. package/defaults/hum.json +14 -2
  2. package/defaults/roles/build.md +1 -1
  3. package/defaults/roles/fix.md +1 -1
  4. package/npm-shrinkwrap.json +3297 -0
  5. package/package.json +6 -2
  6. package/release.json +3 -0
  7. package/schema/hum.schema.json +251 -10
  8. package/scripts/eval.ts +21 -5
  9. package/src/adapter-api.ts +3 -1
  10. package/src/adapters/claude-bg.ts +2 -2
  11. package/src/adapters/claude-p.ts +44 -18
  12. package/src/adapters/contract.ts +12 -0
  13. package/src/adapters/fake.ts +5 -0
  14. package/src/adapters/git.ts +61 -9
  15. package/src/adapters/github-client.ts +15 -0
  16. package/src/adapters/github-commits.ts +84 -0
  17. package/src/adapters/github.ts +36 -4
  18. package/src/adapters/guard.ts +1 -0
  19. package/src/adapters/item-file.ts +1 -1
  20. package/src/adapters/markdown.ts +10 -1
  21. package/src/adapters/pull-requests.ts +8 -8
  22. package/src/adapters/registry.ts +5 -7
  23. package/src/adapters/roundup.ts +3 -0
  24. package/src/bytes.ts +1 -0
  25. package/src/cli/service.ts +176 -29
  26. package/src/cli/setup.ts +16 -7
  27. package/src/config/checks.ts +27 -43
  28. package/src/config/load.ts +2 -3
  29. package/src/config/machine.ts +29 -0
  30. package/src/config/migrate.ts +5 -2
  31. package/src/config/refusal.ts +9 -4
  32. package/src/config/schema.ts +86 -8
  33. package/src/config/wake-job.ts +78 -0
  34. package/src/decide/risk.ts +2 -2
  35. package/src/exec.ts +10 -0
  36. package/src/index.ts +1 -1
  37. package/src/loop/records.ts +8 -1
  38. package/src/measure/rate.ts +14 -0
  39. package/src/publish/bundle.ts +128 -0
  40. package/src/publish/handoff.ts +107 -0
  41. package/src/publish/handover.ts +182 -0
  42. package/src/publish/intents.ts +61 -0
  43. package/src/publish/publisher.ts +259 -0
  44. package/src/publish/wake.ts +78 -0
  45. package/src/service/ci-state.ts +99 -0
  46. package/src/service/plugins.ts +137 -0
  47. package/src/service/wake.ts +3 -1
  48. package/src/service/workflows.ts +261 -50
  49. package/src/setup/propose.ts +87 -3
  50. package/src/setup/prove.ts +3 -3
  51. package/src/setup/scan.ts +61 -5
  52. package/src/setup/tables.ts +18 -0
  53. package/src/setup/write.ts +52 -19
  54. package/src/state/items.ts +17 -8
  55. package/src/state/open.ts +20 -6
  56. package/src/state/records.ts +7 -0
  57. package/src/state/runs.ts +5 -0
  58. package/src/state/saved.ts +17 -2
  59. package/src/worker/base-check.ts +41 -13
  60. package/src/worker/checks.ts +3 -2
  61. package/src/worker/evidence.ts +72 -0
  62. package/src/worker/kind.ts +4 -7
  63. package/src/worker/land.ts +173 -81
  64. package/src/worker/merged.ts +20 -8
  65. package/src/worker/open.ts +33 -17
  66. package/src/worker/questions.ts +16 -8
  67. package/src/worker/signed-push.ts +167 -0
  68. package/src/worker/thin-path.ts +245 -133
  69. package/src/worker/worker.ts +50 -9
  70. package/surface.json +610 -76
package/surface.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "properties": {
7
7
  "schemaVersion": {
8
8
  "type": "number",
9
- "const": 1
9
+ "const": 2
10
10
  },
11
11
  "levels": {
12
12
  "minItems": 1,
@@ -184,7 +184,12 @@
184
184
  "type": "object",
185
185
  "propertyNames": {
186
186
  "type": "string",
187
- "minLength": 1
187
+ "enum": [
188
+ "work-source",
189
+ "questions",
190
+ "answers",
191
+ "release"
192
+ ]
188
193
  },
189
194
  "additionalProperties": {
190
195
  "type": "string",
@@ -499,10 +504,54 @@
499
504
  "exclusiveMinimum": 0,
500
505
  "maximum": 9007199254740991
501
506
  },
502
- "pullRequestTokenSecret": {
503
- "default": "HUM_GITHUB_TOKEN",
504
- "type": "string",
505
- "minLength": 1
507
+ "pullRequestToken": {
508
+ "default": {
509
+ "from": "secret",
510
+ "secret": "HUM_GITHUB_TOKEN"
511
+ },
512
+ "oneOf": [
513
+ {
514
+ "type": "object",
515
+ "properties": {
516
+ "from": {
517
+ "type": "string",
518
+ "const": "secret"
519
+ },
520
+ "secret": {
521
+ "type": "string",
522
+ "pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
523
+ }
524
+ },
525
+ "required": [
526
+ "from",
527
+ "secret"
528
+ ],
529
+ "additionalProperties": false
530
+ },
531
+ {
532
+ "type": "object",
533
+ "properties": {
534
+ "from": {
535
+ "type": "string",
536
+ "const": "app"
537
+ },
538
+ "clientIdSecret": {
539
+ "type": "string",
540
+ "pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
541
+ },
542
+ "privateKeySecret": {
543
+ "type": "string",
544
+ "pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
545
+ }
546
+ },
547
+ "required": [
548
+ "from",
549
+ "clientIdSecret",
550
+ "privateKeySecret"
551
+ ],
552
+ "additionalProperties": false
553
+ }
554
+ ]
506
555
  },
507
556
  "ciWakeTimeoutMinutes": {
508
557
  "default": 60,
@@ -510,6 +559,189 @@
510
559
  "exclusiveMinimum": 0,
511
560
  "maximum": 9007199254740991
512
561
  },
562
+ "ciOutboxMaxMegabytes": {
563
+ "default": 200,
564
+ "type": "integer",
565
+ "exclusiveMinimum": 0,
566
+ "maximum": 9007199254740991
567
+ },
568
+ "ciUsageLimitMaxHours": {
569
+ "default": 168,
570
+ "type": "integer",
571
+ "exclusiveMinimum": 0,
572
+ "maximum": 9007199254740991
573
+ },
574
+ "followUpsPerPass": {
575
+ "default": 10,
576
+ "type": "integer",
577
+ "exclusiveMinimum": 0,
578
+ "maximum": 9007199254740991
579
+ },
580
+ "publishTreeMaxMegabytes": {
581
+ "default": 1024,
582
+ "type": "integer",
583
+ "exclusiveMinimum": 0,
584
+ "maximum": 9007199254740991
585
+ },
586
+ "ciMergeMarginMinutes": {
587
+ "default": 10,
588
+ "type": "integer",
589
+ "exclusiveMinimum": 0,
590
+ "maximum": 9007199254740991
591
+ },
592
+ "ciRunner": {
593
+ "default": "ubuntu-latest",
594
+ "anyOf": [
595
+ {
596
+ "anyOf": [
597
+ {
598
+ "type": "string",
599
+ "minLength": 1
600
+ },
601
+ {
602
+ "minItems": 1,
603
+ "type": "array",
604
+ "items": {
605
+ "type": "string",
606
+ "minLength": 1
607
+ }
608
+ }
609
+ ]
610
+ },
611
+ {
612
+ "type": "object",
613
+ "properties": {
614
+ "group": {
615
+ "type": "string",
616
+ "minLength": 1
617
+ },
618
+ "labels": {
619
+ "anyOf": [
620
+ {
621
+ "type": "string",
622
+ "minLength": 1
623
+ },
624
+ {
625
+ "minItems": 1,
626
+ "type": "array",
627
+ "items": {
628
+ "type": "string",
629
+ "minLength": 1
630
+ }
631
+ }
632
+ ]
633
+ }
634
+ },
635
+ "required": [
636
+ "group"
637
+ ],
638
+ "additionalProperties": false
639
+ }
640
+ ]
641
+ },
642
+ "ciContainer": {
643
+ "default": null,
644
+ "anyOf": [
645
+ {
646
+ "anyOf": [
647
+ {
648
+ "type": "string",
649
+ "minLength": 1
650
+ },
651
+ {
652
+ "type": "object",
653
+ "properties": {
654
+ "image": {
655
+ "type": "string",
656
+ "minLength": 1
657
+ },
658
+ "credentials": {
659
+ "type": "object",
660
+ "properties": {
661
+ "username": {
662
+ "type": "string",
663
+ "minLength": 1
664
+ },
665
+ "password": {
666
+ "type": "string",
667
+ "minLength": 1
668
+ }
669
+ },
670
+ "required": [
671
+ "username",
672
+ "password"
673
+ ],
674
+ "additionalProperties": false
675
+ },
676
+ "env": {
677
+ "type": "object",
678
+ "propertyNames": {
679
+ "type": "string",
680
+ "pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
681
+ },
682
+ "additionalProperties": {
683
+ "type": "string"
684
+ }
685
+ },
686
+ "ports": {
687
+ "type": "array",
688
+ "items": {
689
+ "anyOf": [
690
+ {
691
+ "type": "string",
692
+ "minLength": 1
693
+ },
694
+ {
695
+ "type": "integer",
696
+ "exclusiveMinimum": 0,
697
+ "maximum": 9007199254740991
698
+ }
699
+ ]
700
+ }
701
+ },
702
+ "volumes": {
703
+ "type": "array",
704
+ "items": {
705
+ "type": "string",
706
+ "minLength": 1
707
+ }
708
+ },
709
+ "options": {
710
+ "type": "string",
711
+ "minLength": 1
712
+ }
713
+ },
714
+ "required": [
715
+ "image"
716
+ ],
717
+ "additionalProperties": false
718
+ }
719
+ ]
720
+ },
721
+ {
722
+ "type": "null"
723
+ }
724
+ ]
725
+ },
726
+ "ciEnv": {
727
+ "default": {},
728
+ "type": "object",
729
+ "propertyNames": {
730
+ "type": "string",
731
+ "pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
732
+ },
733
+ "additionalProperties": {
734
+ "type": "string"
735
+ }
736
+ },
737
+ "ciClaudeAuth": {
738
+ "default": "oauth-token",
739
+ "type": "string",
740
+ "enum": [
741
+ "oauth-token",
742
+ "env"
743
+ ]
744
+ },
513
745
  "strictPaths": {
514
746
  "default": [],
515
747
  "type": "array",
@@ -1274,7 +1506,7 @@
1274
1506
  "additionalProperties": false
1275
1507
  },
1276
1508
  "defaults": {
1277
- "schemaVersion": 1,
1509
+ "schemaVersion": 2,
1278
1510
  "levels": [
1279
1511
  {
1280
1512
  "name": "low",
@@ -1414,7 +1646,19 @@
1414
1646
  },
1415
1647
  "restartDelaySeconds": 10,
1416
1648
  "ciWakeTimeoutMinutes": 60,
1417
- "pullRequestTokenSecret": "HUM_GITHUB_TOKEN",
1649
+ "ciOutboxMaxMegabytes": 200,
1650
+ "ciUsageLimitMaxHours": 168,
1651
+ "followUpsPerPass": 10,
1652
+ "publishTreeMaxMegabytes": 1024,
1653
+ "ciMergeMarginMinutes": 10,
1654
+ "pullRequestToken": {
1655
+ "from": "secret",
1656
+ "secret": "HUM_GITHUB_TOKEN"
1657
+ },
1658
+ "ciRunner": "ubuntu-latest",
1659
+ "ciContainer": null,
1660
+ "ciEnv": {},
1661
+ "ciClaudeAuth": "oauth-token",
1418
1662
  "strictPaths": [],
1419
1663
  "launches": [],
1420
1664
  "sizeRange": {
@@ -1601,8 +1845,8 @@
1601
1845
  "type": "export type Adapter = {\n readonly apiVersion: number;\n readonly workSource?: Fallible<WorkSource>;\n readonly questions?: Fallible<Questions>;\n readonly answers?: Fallible<Answers>;\n readonly release?: Fallible<Release>;\n};\n= { readonly apiVersion: number; readonly workSource?: Fallible<WorkSource> | undefined; readonly questions?: Fallible<Questions> | undefined; readonly answers?: Fallible<Answers> | undefined; readonly release?: Fallible<Release> | undefined; }"
1602
1846
  },
1603
1847
  "ADAPTER_API_VERSION": {
1604
- "type": "2",
1605
- "value": 2
1848
+ "type": "3",
1849
+ "value": 3
1606
1850
  },
1607
1851
  "AdapterContext": {
1608
1852
  "type": "export type AdapterContext = {\n readonly report: (fault: FaultInput) => void;\n readonly now: () => number;\n readonly env: Env;\n};\n= { readonly report: (fault: FaultInput) => void; readonly now: () => number; readonly env: Readonly<Record<string, string | undefined>>; }"
@@ -1944,7 +2188,7 @@
1944
2188
  }
1945
2189
  },
1946
2190
  "WorkSource": {
1947
- "type": "export interface WorkSource {\n listReady(): Promise<ItemRef[]>;\n read(id: ItemId): Promise<Item>;\n claim(id: ItemId, holder: Holder, ttlMs: number): Promise<ClaimResult>;\n renew(id: ItemId, holder: Holder, ttlMs: number): Promise<ClaimResult>;\n comment(id: ItemId, text: string): Promise<void>;\n fileFollowUp(from: ItemId, followUp: FollowUp): Promise<ItemRef>;\n}"
2191
+ "type": "export interface WorkSource {\n listReady(): Promise<ItemRef[]>;\n read(id: ItemId): Promise<Item>;\n claim(id: ItemId, holder: Holder, ttlMs: number): Promise<ClaimResult>;\n renew(id: ItemId, holder: Holder, ttlMs: number): Promise<ClaimResult>;\n comment(id: ItemId, text: string): Promise<void>;\n fileFollowUp(from: ItemId, followUp: FollowUp): Promise<ItemRef>;\n finish(id: ItemId): Promise<void>;\n}"
1948
2192
  }
1949
2193
  }
1950
2194
  },
@@ -1952,7 +2196,7 @@
1952
2196
  "src/state/format.ts": {
1953
2197
  "ENGINE_VERSION": {
1954
2198
  "type": "string",
1955
- "value": "0.2.0"
2199
+ "value": "0.4.0"
1956
2200
  },
1957
2201
  "Envelope": {
1958
2202
  "type": "export type Envelope = z.infer<typeof Envelope>;\n= { format: 1; engineVersion: string; itemId: string; kind: string; machineVersion: string; savedAt: number; snapshot: JSONType; }\nZodObject<{ format: ZodLiteral<1>; engineVersion: ZodString; itemId: ZodString; kind: ZodString; machineVersion: ZodString; savedAt: ZodInt; snapshot: ZodJSONSchema; }, $strip>",
@@ -2330,15 +2574,42 @@
2330
2574
  "options": [],
2331
2575
  "commands": {}
2332
2576
  },
2333
- "wake": {
2577
+ "plugins": {
2334
2578
  "arguments": [],
2335
- "options": [
2336
- "--holder <name>",
2337
- "--base <branch>",
2338
- "--event <name>"
2339
- ],
2579
+ "options": [],
2340
2580
  "commands": {}
2341
2581
  },
2582
+ "wake": {
2583
+ "arguments": [],
2584
+ "options": [],
2585
+ "commands": {
2586
+ "gather": {
2587
+ "arguments": [],
2588
+ "options": [
2589
+ "--holder <name>",
2590
+ "--base <branch>",
2591
+ "--inbox <folder>"
2592
+ ],
2593
+ "commands": {}
2594
+ },
2595
+ "work": {
2596
+ "arguments": [],
2597
+ "options": [
2598
+ "--inbox <folder>",
2599
+ "--outbox <folder>"
2600
+ ],
2601
+ "commands": {}
2602
+ },
2603
+ "publish": {
2604
+ "arguments": [],
2605
+ "options": [
2606
+ "--outbox <folder>",
2607
+ "--event <name>"
2608
+ ],
2609
+ "commands": {}
2610
+ }
2611
+ }
2612
+ },
2342
2613
  "setup": {
2343
2614
  "arguments": [],
2344
2615
  "options": [],
@@ -2392,8 +2663,8 @@
2392
2663
  "type": "export type Adapter = {\n readonly apiVersion: number;\n readonly workSource?: Fallible<WorkSource>;\n readonly questions?: Fallible<Questions>;\n readonly answers?: Fallible<Answers>;\n readonly release?: Fallible<Release>;\n};\n= { readonly apiVersion: number; readonly workSource?: Fallible<WorkSource> | undefined; readonly questions?: Fallible<Questions> | undefined; readonly answers?: Fallible<Answers> | undefined; readonly release?: Fallible<Release> | undefined; }"
2393
2664
  },
2394
2665
  "ADAPTER_API_VERSION": {
2395
- "type": "2",
2396
- "value": 2
2666
+ "type": "3",
2667
+ "value": 3
2397
2668
  },
2398
2669
  "AdapterContext": {
2399
2670
  "type": "export type AdapterContext = {\n readonly report: (fault: FaultInput) => void;\n readonly now: () => number;\n readonly env: Env;\n};\n= { readonly report: (fault: FaultInput) => void; readonly now: () => number; readonly env: Readonly<Record<string, string | undefined>>; }"
@@ -2411,7 +2682,7 @@
2411
2682
  "type": "export type AdmitInput = {\n readonly name: string;\n readonly adapter: Adapter;\n readonly files?: readonly string[];\n readonly root?: string;\n readonly faults: Faults;\n readonly guard: Omit<GuardOptions, \"provider\" | \"faults\">;\n};\n= { readonly name: string; readonly adapter: Adapter; readonly files?: readonly string[] | undefined; readonly root?: string | undefined; readonly faults: Faults; readonly guard: Omit<GuardOptions, \"faults\" | \"provider\">; }"
2412
2683
  },
2413
2684
  "alignedPlacement": {
2414
- "type": "(placement: Placement, answer: { alignment: \"concern\" | \"partial\" | \"sound\"; verification: \"concern\" | \"partial\" | \"sound\"; }, config: Pick<{ checks: string[]; kindLabels: Record<string, string>; runPlaces: (\"ci\" | \"mac\")[]; runBranchPrefix: string; claimPrefix: string; readyLabel: string; mergeMethod: \"merge\" | \"rebase\" | \"squash\"; models: Record<\"light\" | \"standard\" | \"top\", string>; runners: number; tickIntervalSeconds: number; drainTimeoutSeconds: number; claimExpirySeconds: number; latestVersionCacheSeconds: number; watchCacheSeconds: number; watchLockSeconds: number; maxFixRuns: number; serviceLabel: string; maxCrashes: number; crashWindowSeconds: number; workerDownTicks: number; tokenWarnDays: number; ciSchedule: string; ciTickCacheSeconds: number; itemsDir: string; providerTimeoutSeconds: number; providerBackoff: { firstSeconds: number; maxSeconds: number; }; mergedShown: number; choicesShown: number; statusReadTimeoutSeconds: number; commandTimeoutSeconds: number; mergeTries: number; writeRaceRetries: number; itemReadsAtOnce: number; restartBackoff: { firstSeconds: number; maxSeconds: number; }; restartDelaySeconds: number; pullRequestTokenSecret: string; ciWakeTimeoutMinutes: number; strictPaths: string[]; launches: ({ glob: string; level: string; base: string; } | { glob: string; level: string; from: string; until: string; })[]; sizeRange: { changes: number; fewest: number; middle: number; }; loosenedCheck: { added: string[]; removed: string[]; }; changeLabels: { fixWindow: number; fixSubject: string; revertSubject: string; revertTrailer: string; }; historyDepth: number; lockfiles: string[]; hookPaths: string[]; diffLimit: number; failureTail: number; kindMeanings: Record<string, string>; fallbackKind: string; docsOnly: { kind: string; paths: string[]; }; decisionModel: string; modelCallTimeoutSeconds: number; measuredModels: Record<\"alignment\" | \"kind\" | \"plan-outcome\" | \"repeat-pair\" | \"reply-option\" | \"review-verdict\" | \"taste\", Record<string, number>>; minJudgeRate: number; questionLimits: { cells: number; wordCells: number; }; questionTimeoutHours: number; priorityLabels: string[]; undoableLevels: string[]; ownerBranchPrefix: string; backgroundRuns: boolean; backgroundLaunchSeconds: number; backgroundPollSeconds: number; deniedRunCommands: string[]; runAutoMode: { environment: string[]; allow: string[]; hardDeny: string[]; }; runSlots: { enabled: boolean; pool: string; services: \"per-slot\" | \"shared\"; ports: { base: number; stride: number; }; projectPrefix: string; stepTimeoutSeconds: number; recipe: { prepare: string[]; refresh: { run: string; when: \"always\" | \"lockfile-changed\"; }[]; ready: string[]; }; }; ownerLogins: string[]; repeatAt: number; repeatPrecision: number; tasteRules: string[]; memoryMaxBytes: number; memoryUnusedRuns: number; measureWindow: number; loopIntervalSeconds: number; proofTimeoutSeconds: number; kindFloors: Record<string, string>; checkKind: string; breakCheck: boolean; mergeRisk: { weights: Record<\"alignment\" | \"errorDetection\" | \"impact\" | \"rollback\" | \"verification\", number>; cuts: [number, number]; }; schemaVersion: 1; levels: { name: string; review: \"agent\" | \"none\" | \"owner\"; release: \"after-proof\" | \"at-once\"; onBreak: \"block\" | \"follow-up\"; }[]; paths: { glob: string; level: string; proofs?: Record<string, string> | undefined; limit?: undefined | { fixes: number; of: number; }; }[]; roles: Record<string, { file: string; purpose: \"build\" | \"fix\" | \"plan\" | \"review\"; skills: string[]; }>; events: Record<string, { source: string; }>; kinds: string[]; commitIdentity: { name: string; email: string; }; safety?: Record<string, unknown> | undefined; dailyQuestionCap?: number | undefined; integrations?: Record<string, string> | undefined; ciToken?: undefined | { setUp: string; }; }, \"levels\" | \"mergeRisk\">) => Placement"
2685
+ "type": "(placement: Placement, answer: { alignment: \"concern\" | \"partial\" | \"sound\"; verification: \"concern\" | \"partial\" | \"sound\"; }, config: Pick<{ checks: string[]; kindLabels: Record<string, string>; runPlaces: (\"ci\" | \"mac\")[]; runBranchPrefix: string; claimPrefix: string; readyLabel: string; mergeMethod: \"merge\" | \"rebase\" | \"squash\"; models: Record<\"light\" | \"standard\" | \"top\", string>; runners: number; tickIntervalSeconds: number; drainTimeoutSeconds: number; claimExpirySeconds: number; latestVersionCacheSeconds: number; watchCacheSeconds: number; watchLockSeconds: number; maxFixRuns: number; serviceLabel: string; maxCrashes: number; crashWindowSeconds: number; workerDownTicks: number; tokenWarnDays: number; ciSchedule: string; ciTickCacheSeconds: number; itemsDir: string; providerTimeoutSeconds: number; providerBackoff: { firstSeconds: number; maxSeconds: number; }; mergedShown: number; choicesShown: number; statusReadTimeoutSeconds: number; commandTimeoutSeconds: number; mergeTries: number; writeRaceRetries: number; itemReadsAtOnce: number; restartBackoff: { firstSeconds: number; maxSeconds: number; }; restartDelaySeconds: number; pullRequestToken: { from: \"app\"; clientIdSecret: string; privateKeySecret: string; } | { from: \"secret\"; secret: string; }; ciWakeTimeoutMinutes: number; ciOutboxMaxMegabytes: number; ciUsageLimitMaxHours: number; followUpsPerPass: number; publishTreeMaxMegabytes: number; ciMergeMarginMinutes: number; ciRunner: string | string[] | { group: string; labels?: string | string[] | undefined; }; ciContainer: null | string | { image: string; credentials?: undefined | { username: string; password: string; }; env?: Record<string, string> | undefined; ports?: (number | string)[] | undefined; volumes?: string[] | undefined; options?: string | undefined; }; ciEnv: Record<string, string>; ciClaudeAuth: \"env\" | \"oauth-token\"; strictPaths: string[]; launches: ({ glob: string; level: string; base: string; } | { glob: string; level: string; from: string; until: string; })[]; sizeRange: { changes: number; fewest: number; middle: number; }; loosenedCheck: { added: string[]; removed: string[]; }; changeLabels: { fixWindow: number; fixSubject: string; revertSubject: string; revertTrailer: string; }; historyDepth: number; lockfiles: string[]; hookPaths: string[]; diffLimit: number; failureTail: number; kindMeanings: Record<string, string>; fallbackKind: string; docsOnly: { kind: string; paths: string[]; }; decisionModel: string; modelCallTimeoutSeconds: number; measuredModels: Record<\"alignment\" | \"kind\" | \"plan-outcome\" | \"repeat-pair\" | \"reply-option\" | \"review-verdict\" | \"taste\", Record<string, number>>; minJudgeRate: number; questionLimits: { cells: number; wordCells: number; }; questionTimeoutHours: number; priorityLabels: string[]; undoableLevels: string[]; ownerBranchPrefix: string; backgroundRuns: boolean; backgroundLaunchSeconds: number; backgroundPollSeconds: number; deniedRunCommands: string[]; runAutoMode: { environment: string[]; allow: string[]; hardDeny: string[]; }; runSlots: { enabled: boolean; pool: string; services: \"per-slot\" | \"shared\"; ports: { base: number; stride: number; }; projectPrefix: string; stepTimeoutSeconds: number; recipe: { prepare: string[]; refresh: { run: string; when: \"always\" | \"lockfile-changed\"; }[]; ready: string[]; }; }; ownerLogins: string[]; repeatAt: number; repeatPrecision: number; tasteRules: string[]; memoryMaxBytes: number; memoryUnusedRuns: number; measureWindow: number; loopIntervalSeconds: number; proofTimeoutSeconds: number; kindFloors: Record<string, string>; checkKind: string; breakCheck: boolean; mergeRisk: { weights: Record<\"alignment\" | \"errorDetection\" | \"impact\" | \"rollback\" | \"verification\", number>; cuts: [number, number]; }; schemaVersion: 2; levels: { name: string; review: \"agent\" | \"none\" | \"owner\"; release: \"after-proof\" | \"at-once\"; onBreak: \"block\" | \"follow-up\"; }[]; paths: { glob: string; level: string; proofs?: Record<string, string> | undefined; limit?: undefined | { fixes: number; of: number; }; }[]; roles: Record<string, { file: string; purpose: \"build\" | \"fix\" | \"plan\" | \"review\"; skills: string[]; }>; events: Record<string, { source: string; }>; kinds: string[]; commitIdentity: { name: string; email: string; }; safety?: Record<string, unknown> | undefined; dailyQuestionCap?: number | undefined; integrations?: Partial<Record<\"answers\" | \"questions\" | \"release\" | \"work-source\", string>> | undefined; ciToken?: undefined | { setUp: string; }; }, \"levels\" | \"mergeRisk\">) => Placement"
2415
2686
  },
2416
2687
  "AlignmentAnswer": {
2417
2688
  "type": "export type AlignmentAnswer = z.infer<typeof AlignmentAnswer>;\n= { alignment: \"concern\" | \"partial\" | \"sound\"; verification: \"concern\" | \"partial\" | \"sound\"; }\nZodObject<{ alignment: ZodEnum<{ sound: \"sound\"; partial: \"partial\"; concern: \"concern\"; }>; verification: ZodEnum<{ sound: \"sound\"; partial: \"partial\"; concern: \"concern\"; }>; }, $strict>",
@@ -2444,7 +2715,7 @@
2444
2715
  }
2445
2716
  },
2446
2717
  "alignmentQuestion": {
2447
- "type": "(item: Pick<{ id: string & $brand<\"ItemId\">; title: string; body: string; ready: boolean; thread: { kind: \"answer\" | \"comment\" | \"decision\" | \"question\"; text: string; at: number; option?: string | undefined; author?: \"hum\" | \"person\" | undefined; }[]; labels?: string[] | undefined; }, \"body\" | \"title\">, diff: string, config: Pick<{ checks: string[]; kindLabels: Record<string, string>; runPlaces: (\"ci\" | \"mac\")[]; runBranchPrefix: string; claimPrefix: string; readyLabel: string; mergeMethod: \"merge\" | \"rebase\" | \"squash\"; models: Record<\"light\" | \"standard\" | \"top\", string>; runners: number; tickIntervalSeconds: number; drainTimeoutSeconds: number; claimExpirySeconds: number; latestVersionCacheSeconds: number; watchCacheSeconds: number; watchLockSeconds: number; maxFixRuns: number; serviceLabel: string; maxCrashes: number; crashWindowSeconds: number; workerDownTicks: number; tokenWarnDays: number; ciSchedule: string; ciTickCacheSeconds: number; itemsDir: string; providerTimeoutSeconds: number; providerBackoff: { firstSeconds: number; maxSeconds: number; }; mergedShown: number; choicesShown: number; statusReadTimeoutSeconds: number; commandTimeoutSeconds: number; mergeTries: number; writeRaceRetries: number; itemReadsAtOnce: number; restartBackoff: { firstSeconds: number; maxSeconds: number; }; restartDelaySeconds: number; pullRequestTokenSecret: string; ciWakeTimeoutMinutes: number; strictPaths: string[]; launches: ({ glob: string; level: string; base: string; } | { glob: string; level: string; from: string; until: string; })[]; sizeRange: { changes: number; fewest: number; middle: number; }; loosenedCheck: { added: string[]; removed: string[]; }; changeLabels: { fixWindow: number; fixSubject: string; revertSubject: string; revertTrailer: string; }; historyDepth: number; lockfiles: string[]; hookPaths: string[]; diffLimit: number; failureTail: number; kindMeanings: Record<string, string>; fallbackKind: string; docsOnly: { kind: string; paths: string[]; }; decisionModel: string; modelCallTimeoutSeconds: number; measuredModels: Record<\"alignment\" | \"kind\" | \"plan-outcome\" | \"repeat-pair\" | \"reply-option\" | \"review-verdict\" | \"taste\", Record<string, number>>; minJudgeRate: number; questionLimits: { cells: number; wordCells: number; }; questionTimeoutHours: number; priorityLabels: string[]; undoableLevels: string[]; ownerBranchPrefix: string; backgroundRuns: boolean; backgroundLaunchSeconds: number; backgroundPollSeconds: number; deniedRunCommands: string[]; runAutoMode: { environment: string[]; allow: string[]; hardDeny: string[]; }; runSlots: { enabled: boolean; pool: string; services: \"per-slot\" | \"shared\"; ports: { base: number; stride: number; }; projectPrefix: string; stepTimeoutSeconds: number; recipe: { prepare: string[]; refresh: { run: string; when: \"always\" | \"lockfile-changed\"; }[]; ready: string[]; }; }; ownerLogins: string[]; repeatAt: number; repeatPrecision: number; tasteRules: string[]; memoryMaxBytes: number; memoryUnusedRuns: number; measureWindow: number; loopIntervalSeconds: number; proofTimeoutSeconds: number; kindFloors: Record<string, string>; checkKind: string; breakCheck: boolean; mergeRisk: { weights: Record<\"alignment\" | \"errorDetection\" | \"impact\" | \"rollback\" | \"verification\", number>; cuts: [number, number]; }; schemaVersion: 1; levels: { name: string; review: \"agent\" | \"none\" | \"owner\"; release: \"after-proof\" | \"at-once\"; onBreak: \"block\" | \"follow-up\"; }[]; paths: { glob: string; level: string; proofs?: Record<string, string> | undefined; limit?: undefined | { fixes: number; of: number; }; }[]; roles: Record<string, { file: string; purpose: \"build\" | \"fix\" | \"plan\" | \"review\"; skills: string[]; }>; events: Record<string, { source: string; }>; kinds: string[]; commitIdentity: { name: string; email: string; }; safety?: Record<string, unknown> | undefined; dailyQuestionCap?: number | undefined; integrations?: Record<string, string> | undefined; ciToken?: undefined | { setUp: string; }; }, \"decisionModel\" | \"diffLimit\" | \"measuredModels\" | \"minJudgeRate\">) => { boundary: \"alignment\"; reportOnly: true | undefined; prompt: string; answer: ZodObject<{ alignment: ZodEnum<{ sound: \"sound\"; partial: \"partial\"; concern: \"concern\"; }>; verification: ZodEnum<{ sound: \"sound\"; partial: \"partial\"; concern: \"concern\"; }>; }, $strict>; }"
2718
+ "type": "(item: Pick<{ id: string & $brand<\"ItemId\">; title: string; body: string; ready: boolean; thread: { kind: \"answer\" | \"comment\" | \"decision\" | \"question\"; text: string; at: number; option?: string | undefined; author?: \"hum\" | \"person\" | undefined; }[]; labels?: string[] | undefined; }, \"body\" | \"title\">, diff: string, config: Pick<{ checks: string[]; kindLabels: Record<string, string>; runPlaces: (\"ci\" | \"mac\")[]; runBranchPrefix: string; claimPrefix: string; readyLabel: string; mergeMethod: \"merge\" | \"rebase\" | \"squash\"; models: Record<\"light\" | \"standard\" | \"top\", string>; runners: number; tickIntervalSeconds: number; drainTimeoutSeconds: number; claimExpirySeconds: number; latestVersionCacheSeconds: number; watchCacheSeconds: number; watchLockSeconds: number; maxFixRuns: number; serviceLabel: string; maxCrashes: number; crashWindowSeconds: number; workerDownTicks: number; tokenWarnDays: number; ciSchedule: string; ciTickCacheSeconds: number; itemsDir: string; providerTimeoutSeconds: number; providerBackoff: { firstSeconds: number; maxSeconds: number; }; mergedShown: number; choicesShown: number; statusReadTimeoutSeconds: number; commandTimeoutSeconds: number; mergeTries: number; writeRaceRetries: number; itemReadsAtOnce: number; restartBackoff: { firstSeconds: number; maxSeconds: number; }; restartDelaySeconds: number; pullRequestToken: { from: \"app\"; clientIdSecret: string; privateKeySecret: string; } | { from: \"secret\"; secret: string; }; ciWakeTimeoutMinutes: number; ciOutboxMaxMegabytes: number; ciUsageLimitMaxHours: number; followUpsPerPass: number; publishTreeMaxMegabytes: number; ciMergeMarginMinutes: number; ciRunner: string | string[] | { group: string; labels?: string | string[] | undefined; }; ciContainer: null | string | { image: string; credentials?: undefined | { username: string; password: string; }; env?: Record<string, string> | undefined; ports?: (number | string)[] | undefined; volumes?: string[] | undefined; options?: string | undefined; }; ciEnv: Record<string, string>; ciClaudeAuth: \"env\" | \"oauth-token\"; strictPaths: string[]; launches: ({ glob: string; level: string; base: string; } | { glob: string; level: string; from: string; until: string; })[]; sizeRange: { changes: number; fewest: number; middle: number; }; loosenedCheck: { added: string[]; removed: string[]; }; changeLabels: { fixWindow: number; fixSubject: string; revertSubject: string; revertTrailer: string; }; historyDepth: number; lockfiles: string[]; hookPaths: string[]; diffLimit: number; failureTail: number; kindMeanings: Record<string, string>; fallbackKind: string; docsOnly: { kind: string; paths: string[]; }; decisionModel: string; modelCallTimeoutSeconds: number; measuredModels: Record<\"alignment\" | \"kind\" | \"plan-outcome\" | \"repeat-pair\" | \"reply-option\" | \"review-verdict\" | \"taste\", Record<string, number>>; minJudgeRate: number; questionLimits: { cells: number; wordCells: number; }; questionTimeoutHours: number; priorityLabels: string[]; undoableLevels: string[]; ownerBranchPrefix: string; backgroundRuns: boolean; backgroundLaunchSeconds: number; backgroundPollSeconds: number; deniedRunCommands: string[]; runAutoMode: { environment: string[]; allow: string[]; hardDeny: string[]; }; runSlots: { enabled: boolean; pool: string; services: \"per-slot\" | \"shared\"; ports: { base: number; stride: number; }; projectPrefix: string; stepTimeoutSeconds: number; recipe: { prepare: string[]; refresh: { run: string; when: \"always\" | \"lockfile-changed\"; }[]; ready: string[]; }; }; ownerLogins: string[]; repeatAt: number; repeatPrecision: number; tasteRules: string[]; memoryMaxBytes: number; memoryUnusedRuns: number; measureWindow: number; loopIntervalSeconds: number; proofTimeoutSeconds: number; kindFloors: Record<string, string>; checkKind: string; breakCheck: boolean; mergeRisk: { weights: Record<\"alignment\" | \"errorDetection\" | \"impact\" | \"rollback\" | \"verification\", number>; cuts: [number, number]; }; schemaVersion: 2; levels: { name: string; review: \"agent\" | \"none\" | \"owner\"; release: \"after-proof\" | \"at-once\"; onBreak: \"block\" | \"follow-up\"; }[]; paths: { glob: string; level: string; proofs?: Record<string, string> | undefined; limit?: undefined | { fixes: number; of: number; }; }[]; roles: Record<string, { file: string; purpose: \"build\" | \"fix\" | \"plan\" | \"review\"; skills: string[]; }>; events: Record<string, { source: string; }>; kinds: string[]; commitIdentity: { name: string; email: string; }; safety?: Record<string, unknown> | undefined; dailyQuestionCap?: number | undefined; integrations?: Partial<Record<\"answers\" | \"questions\" | \"release\" | \"work-source\", string>> | undefined; ciToken?: undefined | { setUp: string; }; }, \"decisionModel\" | \"diffLimit\" | \"measuredModels\" | \"minJudgeRate\">) => { boundary: \"alignment\"; reportOnly: true | undefined; prompt: string; answer: ZodObject<{ alignment: ZodEnum<{ sound: \"sound\"; partial: \"partial\"; concern: \"concern\"; }>; verification: ZodEnum<{ sound: \"sound\"; partial: \"partial\"; concern: \"concern\"; }>; }, $strict>; }"
2448
2719
  },
2449
2720
  "Answer": {
2450
2721
  "type": "export type Answer = {\n readonly text: string;\n readonly option?: string;\n};\n= { readonly text: string; readonly option?: string | undefined; }"
@@ -2463,22 +2734,22 @@
2463
2734
  "value": "background-start-check-failed"
2464
2735
  },
2465
2736
  "BackgroundOptions": {
2466
- "type": "export type BackgroundOptions = Pick<RunnerOptions, \"binary\" | \"env\" | \"now\"> & {\n readonly state: Pick<State, \"stops\" | \"faults\" | \"limit\">;\n readonly config: Pick<HumConfig, \"deniedRunCommands\" | \"runAutoMode\" | \"backgroundPollSeconds\" | \"backgroundLaunchSeconds\" | \"commandTimeoutSeconds\">;\n readonly fallback: Runner;\n};\n= Pick<RunnerOptions, \"binary\" | \"env\" | \"now\"> & { readonly state: Pick<{ dir: string; statusPath: string; heartbeatPath: string; inbox: string; stops: string; faults: Faults; items: Items; events: EventLog; ops: OpKeys; runs: RunRecords; parked: Records<ZodObject<{ item: ZodString; why: ZodEnum<{ review: \"review\"; stuck: \"stuck\"; }>; cause: ZodString; since: ZodInt; }, $strip>>; spent: Records<ZodObject<{ item: ZodString; total: ZodInt; base: ZodInt; }, $strip>>; kinds: Records<ZodObject<{ tiers: ZodArray<ZodObject<{ purpose: ZodEnum<{ fix: \"fix\"; review: \"review\"; plan: \"plan\"; build: \"build\"; }>; level: ZodOptional<ZodString>; size: ZodOptional<ZodEnum<{ small: \"small\"; medium: \"medium\"; large: \"large\"; }>>; tier: ZodEnum<{ light: \"light\"; standard: \"standard\"; top: \"top\"; }>; effort: ZodEnum<{ medium: \"medium\"; low: \"low\"; high: \"high\"; }>; }, $strict>>; tokenCap: ZodObject<{ tokens: ZodNumber; overCap: ZodString; }, $strict>; stateMap: ZodOptional<ZodRecord<ZodString, ZodRecord<ZodString, ZodString>>>; machine: ZodObject<{ id: ZodString; version: ZodString; initial: ZodString; states: ZodRecord<ZodString, ZodObject<{ type: ZodOptional<ZodEnum<{ atomic: \"atomic\"; final: \"final\"; }>>; description: ZodOptional<ZodString>; tags: ZodOptional<ZodArray<ZodString>>; invoke: ZodOptional<ZodObject<{ src: ZodString; onDone: ZodOptional<ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>; onError: ZodOptional<ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>; }, $strict>>; on: ZodOptional<ZodRecord<ZodString, ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>>; always: ZodOptional<ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>; after: ZodOptional<ZodRecord<ZodString, ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>>; timeout: ZodOptional<ZodNumber>; onTimeout: ZodOptional<ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>; entry: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; exit: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; }, $strict>>; }, $strict>; }, $strict>>; limit: Records<ZodObject<{ until: ZodInt; }, $strip>>; ready: Records<ZodObject<{ ids: ZodArray<ZodString>; }, $strip>>; slots: Records<ZodDiscriminatedUnion<[ZodObject<{ status: ZodEnum<{ out: \"out\"; new: \"new\"; free: \"free\"; stale: \"stale\"; }>; name: ZodString; index: ZodInt; folder: ZodString; lockfiles: ZodOptional<ZodString>; since: ZodInt; }, $strip>, ZodObject<{ status: ZodEnum<{ taken: \"taken\"; kept: \"kept\"; }>; item: ZodString; name: ZodString; index: ZodInt; folder: ZodString; lockfiles: ZodOptional<ZodString>; since: ZodInt; }, $strip>], \"status\">>; landings: Records<ZodObject<{ item: ZodString; branch: ZodString; since: ZodInt; change: ZodReadonly<ZodObject<{ paths: ZodReadonly<ZodArray<ZodString>>; size: ZodInt; loosened: ZodBoolean; pinChanged: ZodBoolean; }, $strip>>; head: ZodString; ownerApproved: ZodBoolean; alignment: ZodOptional<ZodUnion<readonly [ZodObject<{ graded: ZodObject<{ alignment: ZodEnum<{ sound: \"sound\"; partial: \"partial\"; concern: \"concern\"; }>; verification: ZodEnum<{ sound: \"sound\"; partial: \"partial\"; concern: \"concern\"; }>; }, $strict>; }, $strip>, ZodObject<{ abstained: ZodString; }, $strip>]>>; }, $strip>>; learned: Records<ZodObject<{ glob: ZodString; level: ZodString; item: ZodString; commit: ZodString; pull: ZodOptional<ZodString>; at: ZodInt; }, $strip>>; itemKinds: Records<ZodDiscriminatedUnion<[ZodObject<{ item: ZodString; kind: ZodString; from: ZodLiteral<\"source\">; }, $strip>, ZodObject<{ item: ZodString; kind: ZodString; from: ZodLiteral<\"model\">; }, $strip>, ZodObject<{ item: ZodString; kind: ZodString; from: ZodLiteral<\"fallback\">; why: ZodString; }, $strip>], \"from\">>; plans: Records<ZodObject<{ item: ZodString; plan: ZodObject<{ summary: ZodString; steps: ZodArray<ZodString>; paths: ZodArray<ZodString>; }, $strict>; hash: ZodString; models: ZodArray<ZodString>; }, $strip>>; verdicts: Records<ZodObject<{ item: ZodString; head: ZodString; event: ZodString; reason: ZodString; cites: ZodArray<ZodObject<{ file: ZodString; line: ZodInt; }, $strict>>; models: ZodArray<ZodString>; }, $strip>>; questions: Records<ZodObject<{ item: ZodString; text: ZodString; options: ZodOptional<ZodArray<ZodString>>; detail: ZodOptional<ZodString>; priority: ZodInt; footprint: ZodOptional<ZodArray<ZodString>>; queuedAt: ZodInt; askedAt: ZodOptional<ZodInt>; }, $strip>>; choices: Records<ZodMiniObject<{ item: ZodMiniString<string>; text: ZodMiniString<string>; at: ZodMiniInt; }, $strip>>; answers: Records<ZodDiscriminatedUnion<[ZodObject<{ source: ZodLiteral<\"marker\">; option: ZodOptional<ZodString>; item: ZodString; ordinal: ZodInt; text: ZodString; disposition: ZodEnum<{ applied: \"applied\"; held: \"held\"; dropped: \"dropped\"; }>; why: ZodString; at: ZodInt; }, $strip>, ZodObject<{ source: ZodEnum<{ model: \"model\"; \"first-word\": \"first-word\"; }>; option: ZodString; item: ZodString; ordinal: ZodInt; text: ZodString; disposition: ZodEnum<{ applied: \"applied\"; held: \"held\"; dropped: \"dropped\"; }>; why: ZodString; at: ZodInt; }, $strip>, ZodObject<{ source: ZodEnum<{ free: \"free\"; abstained: \"abstained\"; \"none-of-these\": \"none-of-these\"; }>; item: ZodString; ordinal: ZodInt; text: ZodString; disposition: ZodEnum<{ applied: \"applied\"; held: \"held\"; dropped: \"dropped\"; }>; why: ZodString; at: ZodInt; }, $strip>], \"source\">>; notes: Records<ZodObject<{ source: ZodEnum<{ fix: \"fix\"; \"review-comment\": \"review-comment\"; \"review-body\": \"review-body\"; \"plan-answer\": \"plan-answer\"; revert: \"revert\"; }>; sourceId: ZodString; change: ZodString; item: ZodOptional<ZodString>; file: ZodOptional<ZodString>; line: ZodOptional<ZodInt>; hunk: ZodString; text: ZodString; at: ZodInt; }, $strip>>; repeats: Records<ZodObject<{ key: ZodString; notes: ZodArray<ZodString>; item: ZodOptional<ZodString>; commented: ZodArray<ZodString>; checked: ZodOptional<ZodObject<{ at: ZodInt; check: ZodString; }, $strip>>; misses: ZodArray<ZodString>; }, $strip>>; possibleRepeats: Records<ZodObject<{ a: ZodString; b: ZodString; models: ZodArray<ZodString>; at: ZodInt; }, $strip>>; merges: Records<ZodObject<{ item: ZodString; sha: ZodString; at: ZodInt; paths: ZodArray<ZodString>; }, $strip>>; breaks: Records<ZodObject<{ item: ZodString; sha: ZodString; at: ZodInt; paths: ZodArray<ZodString>; level: ZodString; failure: ZodString; onBreak: ZodEnum<{ \"follow-up\": \"follow-up\"; block: \"block\"; }>; followUp: ZodString; }, $strip>>; proofs: Records<ZodDiscriminatedUnion<[ZodObject<{ passed: ZodLiteral<true>; item: ZodString; at: ZodInt; worktrees: ZodInt; ms: ZodInt; }, $strip>, ZodObject<{ passed: ZodLiteral<false>; reason: ZodString; item: ZodString; at: ZodInt; worktrees: ZodInt; ms: ZodInt; }, $strip>], \"passed\">>; }, \"faults\" | \"limit\" | \"stops\">; readonly config: Pick<{ checks: string[]; kindLabels: Record<string, string>; runPlaces: (\"ci\" | \"mac\")[]; runBranchPrefix: string; claimPrefix: string; readyLabel: string; mergeMethod: \"merge\" | \"rebase\" | \"squash\"; models: Record<\"light\" | \"standard\" | \"top\", string>; runners: number; tickIntervalSeconds: number; drainTimeoutSeconds: number; claimExpirySeconds: number; latestVersionCacheSeconds: number; watchCacheSeconds: number; watchLockSeconds: number; maxFixRuns: number; serviceLabel: string; maxCrashes: number; crashWindowSeconds: number; workerDownTicks: number; tokenWarnDays: number; ciSchedule: string; ciTickCacheSeconds: number; itemsDir: string; providerTimeoutSeconds: number; providerBackoff: { firstSeconds: number; maxSeconds: number; }; mergedShown: number; choicesShown: number; statusReadTimeoutSeconds: number; commandTimeoutSeconds: number; mergeTries: number; writeRaceRetries: number; itemReadsAtOnce: number; restartBackoff: { firstSeconds: number; maxSeconds: number; }; restartDelaySeconds: number; pullRequestTokenSecret: string; ciWakeTimeoutMinutes: number; strictPaths: string[]; launches: ({ glob: string; level: string; base: string; } | { glob: string; level: string; from: string; until: string; })[]; sizeRange: { changes: number; fewest: number; middle: number; }; loosenedCheck: { added: string[]; removed: string[]; }; changeLabels: { fixWindow: number; fixSubject: string; revertSubject: string; revertTrailer: string; }; historyDepth: number; lockfiles: string[]; hookPaths: string[]; diffLimit: number; failureTail: number; kindMeanings: Record<string, string>; fallbackKind: string; docsOnly: { kind: string; paths: string[]; }; decisionModel: string; modelCallTimeoutSeconds: number; measuredModels: Record<\"alignment\" | \"kind\" | \"plan-outcome\" | \"repeat-pair\" | \"reply-option\" | \"review-verdict\" | \"taste\", Record<string, number>>; minJudgeRate: number; questionLimits: { cells: number; wordCells: number; }; questionTimeoutHours: number; priorityLabels: string[]; undoableLevels: string[]; ownerBranchPrefix: string; backgroundRuns: boolean; backgroundLaunchSeconds: number; backgroundPollSeconds: number; deniedRunCommands: string[]; runAutoMode: { environment: string[]; allow: string[]; hardDeny: string[]; }; runSlots: { enabled: boolean; pool: string; services: \"per-slot\" | \"shared\"; ports: { base: number; stride: number; }; projectPrefix: string; stepTimeoutSeconds: number; recipe: { prepare: string[]; refresh: { run: string; when: \"always\" | \"lockfile-changed\"; }[]; ready: string[]; }; }; ownerLogins: string[]; repeatAt: number; repeatPrecision: number; tasteRules: string[]; memoryMaxBytes: number; memoryUnusedRuns: number; measureWindow: number; loopIntervalSeconds: number; proofTimeoutSeconds: number; kindFloors: Record<string, string>; checkKind: string; breakCheck: boolean; mergeRisk: { weights: Record<\"alignment\" | \"errorDetection\" | \"impact\" | \"rollback\" | \"verification\", number>; cuts: [number, number]; }; schemaVersion: 1; levels: { name: string; review: \"agent\" | \"none\" | \"owner\"; release: \"after-proof\" | \"at-once\"; onBreak: \"block\" | \"follow-up\"; }[]; paths: { glob: string; level: string; proofs?: Record<string, string> | undefined; limit?: undefined | { fixes: number; of: number; }; }[]; roles: Record<string, { file: string; purpose: \"build\" | \"fix\" | \"plan\" | \"review\"; skills: string[]; }>; events: Record<string, { source: string; }>; kinds: string[]; commitIdentity: { name: string; email: string; }; safety?: Record<string, unknown> | undefined; dailyQuestionCap?: number | undefined; integrations?: Record<string, string> | undefined; ciToken?: undefined | { setUp: string; }; }, \"backgroundLaunchSeconds\" | \"backgroundPollSeconds\" | \"commandTimeoutSeconds\" | \"deniedRunCommands\" | \"runAutoMode\">; readonly fallback: Runner; }"
2737
+ "type": "export type BackgroundOptions = Pick<RunnerOptions, \"binary\" | \"env\" | \"now\"> & {\n readonly state: Pick<State, \"stops\" | \"faults\" | \"limit\">;\n readonly config: Pick<HumConfig, \"deniedRunCommands\" | \"runAutoMode\" | \"backgroundPollSeconds\" | \"backgroundLaunchSeconds\" | \"commandTimeoutSeconds\">;\n readonly fallback: Runner;\n};\n= Pick<RunnerOptions, \"binary\" | \"env\" | \"now\"> & { readonly state: Pick<{ dir: string; statusPath: string; heartbeatPath: string; inbox: string; stops: string; faults: Faults; items: Items; events: EventLog; ops: OpKeys; runs: RunRecords; parked: Records<ZodObject<{ item: ZodString; why: ZodEnum<{ review: \"review\"; stuck: \"stuck\"; }>; cause: ZodString; since: ZodInt; }, $strip>>; spent: Records<ZodObject<{ item: ZodString; total: ZodInt; base: ZodInt; }, $strip>>; kinds: Records<ZodObject<{ tiers: ZodArray<ZodObject<{ purpose: ZodEnum<{ fix: \"fix\"; review: \"review\"; plan: \"plan\"; build: \"build\"; }>; level: ZodOptional<ZodString>; size: ZodOptional<ZodEnum<{ small: \"small\"; medium: \"medium\"; large: \"large\"; }>>; tier: ZodEnum<{ light: \"light\"; standard: \"standard\"; top: \"top\"; }>; effort: ZodEnum<{ medium: \"medium\"; low: \"low\"; high: \"high\"; }>; }, $strict>>; tokenCap: ZodObject<{ tokens: ZodNumber; overCap: ZodString; }, $strict>; stateMap: ZodOptional<ZodRecord<ZodString, ZodRecord<ZodString, ZodString>>>; machine: ZodObject<{ id: ZodString; version: ZodString; initial: ZodString; states: ZodRecord<ZodString, ZodObject<{ type: ZodOptional<ZodEnum<{ atomic: \"atomic\"; final: \"final\"; }>>; description: ZodOptional<ZodString>; tags: ZodOptional<ZodArray<ZodString>>; invoke: ZodOptional<ZodObject<{ src: ZodString; onDone: ZodOptional<ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>; onError: ZodOptional<ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>; }, $strict>>; on: ZodOptional<ZodRecord<ZodString, ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>>; always: ZodOptional<ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>; after: ZodOptional<ZodRecord<ZodString, ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>>; timeout: ZodOptional<ZodNumber>; onTimeout: ZodOptional<ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>; entry: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; exit: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; }, $strict>>; }, $strict>; }, $strict>>; limit: Records<ZodObject<{ until: ZodInt; }, $strip>>; ready: Records<ZodObject<{ ids: ZodArray<ZodString>; }, $strip>>; slots: Records<ZodDiscriminatedUnion<[ZodObject<{ status: ZodEnum<{ out: \"out\"; new: \"new\"; free: \"free\"; stale: \"stale\"; }>; name: ZodString; index: ZodInt; folder: ZodString; lockfiles: ZodOptional<ZodString>; since: ZodInt; }, $strip>, ZodObject<{ status: ZodEnum<{ taken: \"taken\"; kept: \"kept\"; }>; item: ZodString; name: ZodString; index: ZodInt; folder: ZodString; lockfiles: ZodOptional<ZodString>; since: ZodInt; }, $strip>], \"status\">>; landings: Records<ZodObject<{ item: ZodString; branch: ZodString; since: ZodInt; change: ZodReadonly<ZodObject<{ paths: ZodReadonly<ZodArray<ZodString>>; size: ZodInt; loosened: ZodBoolean; pinChanged: ZodBoolean; }, $strip>>; head: ZodString; lostRaces: ZodDefault<ZodInt>; patch: ZodOptional<ZodString>; alignment: ZodOptional<ZodUnion<readonly [ZodObject<{ graded: ZodObject<{ alignment: ZodEnum<{ sound: \"sound\"; partial: \"partial\"; concern: \"concern\"; }>; verification: ZodEnum<{ sound: \"sound\"; partial: \"partial\"; concern: \"concern\"; }>; }, $strict>; }, $strip>, ZodObject<{ abstained: ZodString; }, $strip>]>>; }, $strip>>; learned: Records<ZodObject<{ glob: ZodString; level: ZodString; item: ZodString; commit: ZodString; pull: ZodOptional<ZodString>; at: ZodInt; }, $strip>>; itemKinds: Records<ZodDiscriminatedUnion<[ZodObject<{ item: ZodString; kind: ZodString; from: ZodLiteral<\"source\">; }, $strip>, ZodObject<{ item: ZodString; kind: ZodString; from: ZodLiteral<\"model\">; }, $strip>, ZodObject<{ item: ZodString; kind: ZodString; from: ZodLiteral<\"fallback\">; why: ZodString; }, $strip>], \"from\">>; plans: Records<ZodObject<{ item: ZodString; plan: ZodObject<{ summary: ZodString; steps: ZodArray<ZodString>; paths: ZodArray<ZodString>; }, $strict>; hash: ZodString; models: ZodArray<ZodString>; }, $strip>>; verdicts: Records<ZodObject<{ item: ZodString; head: ZodString; event: ZodString; reason: ZodString; cites: ZodArray<ZodObject<{ file: ZodString; line: ZodInt; }, $strict>>; models: ZodArray<ZodString>; }, $strip>>; pullRequests: Records<ZodObject<{ item: ZodString; title: ZodString; body: ZodString; evidence: ZodOptional<ZodUnion<readonly [ZodObject<{ kind: ZodEnum<{ image: \"image\"; video: \"video\"; }>; url: ZodURL; }, $strip>, ZodObject<{ left: ZodString; }, $strip>]>>; }, $strip>>; questions: Records<ZodObject<{ item: ZodString; text: ZodString; options: ZodOptional<ZodArray<ZodString>>; detail: ZodOptional<ZodString>; priority: ZodInt; footprint: ZodOptional<ZodArray<ZodString>>; queuedAt: ZodInt; askedAt: ZodOptional<ZodInt>; }, $strip>>; followUps: Records<ZodObject<{ item: ZodString; from: ZodString; at: ZodInt; }, $strip>>; choices: Records<ZodMiniObject<{ item: ZodMiniString<string>; text: ZodMiniString<string>; at: ZodMiniInt; }, $strip>>; answers: Records<ZodDiscriminatedUnion<[ZodObject<{ source: ZodLiteral<\"marker\">; option: ZodOptional<ZodString>; item: ZodString; ordinal: ZodInt; text: ZodString; disposition: ZodEnum<{ applied: \"applied\"; held: \"held\"; dropped: \"dropped\"; }>; why: ZodString; at: ZodInt; }, $strip>, ZodObject<{ source: ZodEnum<{ model: \"model\"; \"first-word\": \"first-word\"; }>; option: ZodString; item: ZodString; ordinal: ZodInt; text: ZodString; disposition: ZodEnum<{ applied: \"applied\"; held: \"held\"; dropped: \"dropped\"; }>; why: ZodString; at: ZodInt; }, $strip>, ZodObject<{ source: ZodEnum<{ free: \"free\"; abstained: \"abstained\"; \"none-of-these\": \"none-of-these\"; }>; item: ZodString; ordinal: ZodInt; text: ZodString; disposition: ZodEnum<{ applied: \"applied\"; held: \"held\"; dropped: \"dropped\"; }>; why: ZodString; at: ZodInt; }, $strip>], \"source\">>; notes: Records<ZodObject<{ source: ZodEnum<{ fix: \"fix\"; \"review-comment\": \"review-comment\"; \"review-body\": \"review-body\"; \"plan-answer\": \"plan-answer\"; revert: \"revert\"; }>; sourceId: ZodString; change: ZodString; item: ZodOptional<ZodString>; file: ZodOptional<ZodString>; line: ZodOptional<ZodInt>; hunk: ZodString; text: ZodString; at: ZodInt; }, $strip>>; repeats: Records<ZodObject<{ key: ZodString; notes: ZodArray<ZodString>; item: ZodOptional<ZodString>; commented: ZodArray<ZodString>; checked: ZodOptional<ZodObject<{ at: ZodInt; check: ZodString; }, $strip>>; misses: ZodArray<ZodString>; }, $strip>>; possibleRepeats: Records<ZodObject<{ a: ZodString; b: ZodString; models: ZodArray<ZodString>; at: ZodInt; }, $strip>>; merges: Records<ZodObject<{ item: ZodString; sha: ZodString; at: ZodInt; paths: ZodArray<ZodString>; baseChecked: ZodDefault<ZodBoolean>; }, $strip>>; breaks: Records<ZodObject<{ item: ZodString; sha: ZodString; at: ZodInt; paths: ZodArray<ZodString>; level: ZodString; failure: ZodString; onBreak: ZodEnum<{ \"follow-up\": \"follow-up\"; block: \"block\"; }>; followUp: ZodString; }, $strip>>; proofs: Records<ZodDiscriminatedUnion<[ZodObject<{ passed: ZodLiteral<true>; item: ZodString; at: ZodInt; worktrees: ZodInt; ms: ZodInt; }, $strip>, ZodObject<{ passed: ZodLiteral<false>; reason: ZodString; item: ZodString; at: ZodInt; worktrees: ZodInt; ms: ZodInt; }, $strip>], \"passed\">>; }, \"faults\" | \"limit\" | \"stops\">; readonly config: Pick<{ checks: string[]; kindLabels: Record<string, string>; runPlaces: (\"ci\" | \"mac\")[]; runBranchPrefix: string; claimPrefix: string; readyLabel: string; mergeMethod: \"merge\" | \"rebase\" | \"squash\"; models: Record<\"light\" | \"standard\" | \"top\", string>; runners: number; tickIntervalSeconds: number; drainTimeoutSeconds: number; claimExpirySeconds: number; latestVersionCacheSeconds: number; watchCacheSeconds: number; watchLockSeconds: number; maxFixRuns: number; serviceLabel: string; maxCrashes: number; crashWindowSeconds: number; workerDownTicks: number; tokenWarnDays: number; ciSchedule: string; ciTickCacheSeconds: number; itemsDir: string; providerTimeoutSeconds: number; providerBackoff: { firstSeconds: number; maxSeconds: number; }; mergedShown: number; choicesShown: number; statusReadTimeoutSeconds: number; commandTimeoutSeconds: number; mergeTries: number; writeRaceRetries: number; itemReadsAtOnce: number; restartBackoff: { firstSeconds: number; maxSeconds: number; }; restartDelaySeconds: number; pullRequestToken: { from: \"app\"; clientIdSecret: string; privateKeySecret: string; } | { from: \"secret\"; secret: string; }; ciWakeTimeoutMinutes: number; ciOutboxMaxMegabytes: number; ciUsageLimitMaxHours: number; followUpsPerPass: number; publishTreeMaxMegabytes: number; ciMergeMarginMinutes: number; ciRunner: string | string[] | { group: string; labels?: string | string[] | undefined; }; ciContainer: null | string | { image: string; credentials?: undefined | { username: string; password: string; }; env?: Record<string, string> | undefined; ports?: (number | string)[] | undefined; volumes?: string[] | undefined; options?: string | undefined; }; ciEnv: Record<string, string>; ciClaudeAuth: \"env\" | \"oauth-token\"; strictPaths: string[]; launches: ({ glob: string; level: string; base: string; } | { glob: string; level: string; from: string; until: string; })[]; sizeRange: { changes: number; fewest: number; middle: number; }; loosenedCheck: { added: string[]; removed: string[]; }; changeLabels: { fixWindow: number; fixSubject: string; revertSubject: string; revertTrailer: string; }; historyDepth: number; lockfiles: string[]; hookPaths: string[]; diffLimit: number; failureTail: number; kindMeanings: Record<string, string>; fallbackKind: string; docsOnly: { kind: string; paths: string[]; }; decisionModel: string; modelCallTimeoutSeconds: number; measuredModels: Record<\"alignment\" | \"kind\" | \"plan-outcome\" | \"repeat-pair\" | \"reply-option\" | \"review-verdict\" | \"taste\", Record<string, number>>; minJudgeRate: number; questionLimits: { cells: number; wordCells: number; }; questionTimeoutHours: number; priorityLabels: string[]; undoableLevels: string[]; ownerBranchPrefix: string; backgroundRuns: boolean; backgroundLaunchSeconds: number; backgroundPollSeconds: number; deniedRunCommands: string[]; runAutoMode: { environment: string[]; allow: string[]; hardDeny: string[]; }; runSlots: { enabled: boolean; pool: string; services: \"per-slot\" | \"shared\"; ports: { base: number; stride: number; }; projectPrefix: string; stepTimeoutSeconds: number; recipe: { prepare: string[]; refresh: { run: string; when: \"always\" | \"lockfile-changed\"; }[]; ready: string[]; }; }; ownerLogins: string[]; repeatAt: number; repeatPrecision: number; tasteRules: string[]; memoryMaxBytes: number; memoryUnusedRuns: number; measureWindow: number; loopIntervalSeconds: number; proofTimeoutSeconds: number; kindFloors: Record<string, string>; checkKind: string; breakCheck: boolean; mergeRisk: { weights: Record<\"alignment\" | \"errorDetection\" | \"impact\" | \"rollback\" | \"verification\", number>; cuts: [number, number]; }; schemaVersion: 2; levels: { name: string; review: \"agent\" | \"none\" | \"owner\"; release: \"after-proof\" | \"at-once\"; onBreak: \"block\" | \"follow-up\"; }[]; paths: { glob: string; level: string; proofs?: Record<string, string> | undefined; limit?: undefined | { fixes: number; of: number; }; }[]; roles: Record<string, { file: string; purpose: \"build\" | \"fix\" | \"plan\" | \"review\"; skills: string[]; }>; events: Record<string, { source: string; }>; kinds: string[]; commitIdentity: { name: string; email: string; }; safety?: Record<string, unknown> | undefined; dailyQuestionCap?: number | undefined; integrations?: Partial<Record<\"answers\" | \"questions\" | \"release\" | \"work-source\", string>> | undefined; ciToken?: undefined | { setUp: string; }; }, \"backgroundLaunchSeconds\" | \"backgroundPollSeconds\" | \"commandTimeoutSeconds\" | \"deniedRunCommands\" | \"runAutoMode\">; readonly fallback: Runner; }"
2467
2738
  },
2468
2739
  "backgroundRunner": {
2469
2740
  "type": "({ binary, env, state, config, fallback, now }: BackgroundOptions) => Runner"
2470
2741
  },
2471
2742
  "backgroundSettings": {
2472
- "type": "({ deniedRunCommands, runAutoMode }: Pick<{ checks: string[]; kindLabels: Record<string, string>; runPlaces: (\"ci\" | \"mac\")[]; runBranchPrefix: string; claimPrefix: string; readyLabel: string; mergeMethod: \"merge\" | \"rebase\" | \"squash\"; models: Record<\"light\" | \"standard\" | \"top\", string>; runners: number; tickIntervalSeconds: number; drainTimeoutSeconds: number; claimExpirySeconds: number; latestVersionCacheSeconds: number; watchCacheSeconds: number; watchLockSeconds: number; maxFixRuns: number; serviceLabel: string; maxCrashes: number; crashWindowSeconds: number; workerDownTicks: number; tokenWarnDays: number; ciSchedule: string; ciTickCacheSeconds: number; itemsDir: string; providerTimeoutSeconds: number; providerBackoff: { firstSeconds: number; maxSeconds: number; }; mergedShown: number; choicesShown: number; statusReadTimeoutSeconds: number; commandTimeoutSeconds: number; mergeTries: number; writeRaceRetries: number; itemReadsAtOnce: number; restartBackoff: { firstSeconds: number; maxSeconds: number; }; restartDelaySeconds: number; pullRequestTokenSecret: string; ciWakeTimeoutMinutes: number; strictPaths: string[]; launches: ({ glob: string; level: string; base: string; } | { glob: string; level: string; from: string; until: string; })[]; sizeRange: { changes: number; fewest: number; middle: number; }; loosenedCheck: { added: string[]; removed: string[]; }; changeLabels: { fixWindow: number; fixSubject: string; revertSubject: string; revertTrailer: string; }; historyDepth: number; lockfiles: string[]; hookPaths: string[]; diffLimit: number; failureTail: number; kindMeanings: Record<string, string>; fallbackKind: string; docsOnly: { kind: string; paths: string[]; }; decisionModel: string; modelCallTimeoutSeconds: number; measuredModels: Record<\"alignment\" | \"kind\" | \"plan-outcome\" | \"repeat-pair\" | \"reply-option\" | \"review-verdict\" | \"taste\", Record<string, number>>; minJudgeRate: number; questionLimits: { cells: number; wordCells: number; }; questionTimeoutHours: number; priorityLabels: string[]; undoableLevels: string[]; ownerBranchPrefix: string; backgroundRuns: boolean; backgroundLaunchSeconds: number; backgroundPollSeconds: number; deniedRunCommands: string[]; runAutoMode: { environment: string[]; allow: string[]; hardDeny: string[]; }; runSlots: { enabled: boolean; pool: string; services: \"per-slot\" | \"shared\"; ports: { base: number; stride: number; }; projectPrefix: string; stepTimeoutSeconds: number; recipe: { prepare: string[]; refresh: { run: string; when: \"always\" | \"lockfile-changed\"; }[]; ready: string[]; }; }; ownerLogins: string[]; repeatAt: number; repeatPrecision: number; tasteRules: string[]; memoryMaxBytes: number; memoryUnusedRuns: number; measureWindow: number; loopIntervalSeconds: number; proofTimeoutSeconds: number; kindFloors: Record<string, string>; checkKind: string; breakCheck: boolean; mergeRisk: { weights: Record<\"alignment\" | \"errorDetection\" | \"impact\" | \"rollback\" | \"verification\", number>; cuts: [number, number]; }; schemaVersion: 1; levels: { name: string; review: \"agent\" | \"none\" | \"owner\"; release: \"after-proof\" | \"at-once\"; onBreak: \"block\" | \"follow-up\"; }[]; paths: { glob: string; level: string; proofs?: Record<string, string> | undefined; limit?: undefined | { fixes: number; of: number; }; }[]; roles: Record<string, { file: string; purpose: \"build\" | \"fix\" | \"plan\" | \"review\"; skills: string[]; }>; events: Record<string, { source: string; }>; kinds: string[]; commitIdentity: { name: string; email: string; }; safety?: Record<string, unknown> | undefined; dailyQuestionCap?: number | undefined; integrations?: Record<string, string> | undefined; ciToken?: undefined | { setUp: string; }; }, \"deniedRunCommands\" | \"runAutoMode\">, stopsFolder: string, env?: Readonly<Record<string, string>>) => { enabledPlugins: { \"hum@moo.md\": boolean; }; env: { GIT_EDITOR: string; }; permissions: { deny: string[]; }; autoMode: { classifyAllShell: boolean; environment: string[]; allow: string[]; hard_deny: string[]; }; hooks: { [k: string]: { hooks: { type: string; command: string; }[]; }[]; }; }"
2743
+ "type": "({ deniedRunCommands, runAutoMode }: Pick<{ checks: string[]; kindLabels: Record<string, string>; runPlaces: (\"ci\" | \"mac\")[]; runBranchPrefix: string; claimPrefix: string; readyLabel: string; mergeMethod: \"merge\" | \"rebase\" | \"squash\"; models: Record<\"light\" | \"standard\" | \"top\", string>; runners: number; tickIntervalSeconds: number; drainTimeoutSeconds: number; claimExpirySeconds: number; latestVersionCacheSeconds: number; watchCacheSeconds: number; watchLockSeconds: number; maxFixRuns: number; serviceLabel: string; maxCrashes: number; crashWindowSeconds: number; workerDownTicks: number; tokenWarnDays: number; ciSchedule: string; ciTickCacheSeconds: number; itemsDir: string; providerTimeoutSeconds: number; providerBackoff: { firstSeconds: number; maxSeconds: number; }; mergedShown: number; choicesShown: number; statusReadTimeoutSeconds: number; commandTimeoutSeconds: number; mergeTries: number; writeRaceRetries: number; itemReadsAtOnce: number; restartBackoff: { firstSeconds: number; maxSeconds: number; }; restartDelaySeconds: number; pullRequestToken: { from: \"app\"; clientIdSecret: string; privateKeySecret: string; } | { from: \"secret\"; secret: string; }; ciWakeTimeoutMinutes: number; ciOutboxMaxMegabytes: number; ciUsageLimitMaxHours: number; followUpsPerPass: number; publishTreeMaxMegabytes: number; ciMergeMarginMinutes: number; ciRunner: string | string[] | { group: string; labels?: string | string[] | undefined; }; ciContainer: null | string | { image: string; credentials?: undefined | { username: string; password: string; }; env?: Record<string, string> | undefined; ports?: (number | string)[] | undefined; volumes?: string[] | undefined; options?: string | undefined; }; ciEnv: Record<string, string>; ciClaudeAuth: \"env\" | \"oauth-token\"; strictPaths: string[]; launches: ({ glob: string; level: string; base: string; } | { glob: string; level: string; from: string; until: string; })[]; sizeRange: { changes: number; fewest: number; middle: number; }; loosenedCheck: { added: string[]; removed: string[]; }; changeLabels: { fixWindow: number; fixSubject: string; revertSubject: string; revertTrailer: string; }; historyDepth: number; lockfiles: string[]; hookPaths: string[]; diffLimit: number; failureTail: number; kindMeanings: Record<string, string>; fallbackKind: string; docsOnly: { kind: string; paths: string[]; }; decisionModel: string; modelCallTimeoutSeconds: number; measuredModels: Record<\"alignment\" | \"kind\" | \"plan-outcome\" | \"repeat-pair\" | \"reply-option\" | \"review-verdict\" | \"taste\", Record<string, number>>; minJudgeRate: number; questionLimits: { cells: number; wordCells: number; }; questionTimeoutHours: number; priorityLabels: string[]; undoableLevels: string[]; ownerBranchPrefix: string; backgroundRuns: boolean; backgroundLaunchSeconds: number; backgroundPollSeconds: number; deniedRunCommands: string[]; runAutoMode: { environment: string[]; allow: string[]; hardDeny: string[]; }; runSlots: { enabled: boolean; pool: string; services: \"per-slot\" | \"shared\"; ports: { base: number; stride: number; }; projectPrefix: string; stepTimeoutSeconds: number; recipe: { prepare: string[]; refresh: { run: string; when: \"always\" | \"lockfile-changed\"; }[]; ready: string[]; }; }; ownerLogins: string[]; repeatAt: number; repeatPrecision: number; tasteRules: string[]; memoryMaxBytes: number; memoryUnusedRuns: number; measureWindow: number; loopIntervalSeconds: number; proofTimeoutSeconds: number; kindFloors: Record<string, string>; checkKind: string; breakCheck: boolean; mergeRisk: { weights: Record<\"alignment\" | \"errorDetection\" | \"impact\" | \"rollback\" | \"verification\", number>; cuts: [number, number]; }; schemaVersion: 2; levels: { name: string; review: \"agent\" | \"none\" | \"owner\"; release: \"after-proof\" | \"at-once\"; onBreak: \"block\" | \"follow-up\"; }[]; paths: { glob: string; level: string; proofs?: Record<string, string> | undefined; limit?: undefined | { fixes: number; of: number; }; }[]; roles: Record<string, { file: string; purpose: \"build\" | \"fix\" | \"plan\" | \"review\"; skills: string[]; }>; events: Record<string, { source: string; }>; kinds: string[]; commitIdentity: { name: string; email: string; }; safety?: Record<string, unknown> | undefined; dailyQuestionCap?: number | undefined; integrations?: Partial<Record<\"answers\" | \"questions\" | \"release\" | \"work-source\", string>> | undefined; ciToken?: undefined | { setUp: string; }; }, \"deniedRunCommands\" | \"runAutoMode\">, stopsFolder: string, env?: Readonly<Record<string, string>>) => { enabledPlugins: { \"hum@moo.md\": boolean; }; env: { GIT_EDITOR: string; }; permissions: { deny: string[]; }; autoMode: { classifyAllShell: boolean; environment: string[]; allow: string[]; hard_deny: string[]; }; hooks: { [k: string]: { hooks: { type: string; command: string; }[]; }[]; }; }"
2473
2744
  },
2474
2745
  "BackgroundStartOptions": {
2475
- "type": "export type BackgroundStartOptions = Omit<RunnerOptions, \"state\"> & Pick<BackgroundOptions, \"config\" | \"state\"> & {\n readonly state: RunnerOptions[\"state\"];\n readonly repo: string;\n};\n= Omit<RunnerOptions, \"state\"> & Pick<BackgroundOptions, \"config\" | \"state\"> & { readonly state: Pick<{ dir: string; statusPath: string; heartbeatPath: string; inbox: string; stops: string; faults: Faults; items: Items; events: EventLog; ops: OpKeys; runs: RunRecords; parked: Records<ZodObject<{ item: ZodString; why: ZodEnum<{ review: \"review\"; stuck: \"stuck\"; }>; cause: ZodString; since: ZodInt; }, $strip>>; spent: Records<ZodObject<{ item: ZodString; total: ZodInt; base: ZodInt; }, $strip>>; kinds: Records<ZodObject<{ tiers: ZodArray<ZodObject<{ purpose: ZodEnum<{ fix: \"fix\"; review: \"review\"; plan: \"plan\"; build: \"build\"; }>; level: ZodOptional<ZodString>; size: ZodOptional<ZodEnum<{ small: \"small\"; medium: \"medium\"; large: \"large\"; }>>; tier: ZodEnum<{ light: \"light\"; standard: \"standard\"; top: \"top\"; }>; effort: ZodEnum<{ medium: \"medium\"; low: \"low\"; high: \"high\"; }>; }, $strict>>; tokenCap: ZodObject<{ tokens: ZodNumber; overCap: ZodString; }, $strict>; stateMap: ZodOptional<ZodRecord<ZodString, ZodRecord<ZodString, ZodString>>>; machine: ZodObject<{ id: ZodString; version: ZodString; initial: ZodString; states: ZodRecord<ZodString, ZodObject<{ type: ZodOptional<ZodEnum<{ atomic: \"atomic\"; final: \"final\"; }>>; description: ZodOptional<ZodString>; tags: ZodOptional<ZodArray<ZodString>>; invoke: ZodOptional<ZodObject<{ src: ZodString; onDone: ZodOptional<ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>; onError: ZodOptional<ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>; }, $strict>>; on: ZodOptional<ZodRecord<ZodString, ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>>; always: ZodOptional<ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>; after: ZodOptional<ZodRecord<ZodString, ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>>; timeout: ZodOptional<ZodNumber>; onTimeout: ZodOptional<ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>; entry: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; exit: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; }, $strict>>; }, $strict>; }, $strict>>; limit: Records<ZodObject<{ until: ZodInt; }, $strip>>; ready: Records<ZodObject<{ ids: ZodArray<ZodString>; }, $strip>>; slots: Records<ZodDiscriminatedUnion<[ZodObject<{ status: ZodEnum<{ out: \"out\"; new: \"new\"; free: \"free\"; stale: \"stale\"; }>; name: ZodString; index: ZodInt; folder: ZodString; lockfiles: ZodOptional<ZodString>; since: ZodInt; }, $strip>, ZodObject<{ status: ZodEnum<{ taken: \"taken\"; kept: \"kept\"; }>; item: ZodString; name: ZodString; index: ZodInt; folder: ZodString; lockfiles: ZodOptional<ZodString>; since: ZodInt; }, $strip>], \"status\">>; landings: Records<ZodObject<{ item: ZodString; branch: ZodString; since: ZodInt; change: ZodReadonly<ZodObject<{ paths: ZodReadonly<ZodArray<ZodString>>; size: ZodInt; loosened: ZodBoolean; pinChanged: ZodBoolean; }, $strip>>; head: ZodString; ownerApproved: ZodBoolean; alignment: ZodOptional<ZodUnion<readonly [ZodObject<{ graded: ZodObject<{ alignment: ZodEnum<{ sound: \"sound\"; partial: \"partial\"; concern: \"concern\"; }>; verification: ZodEnum<{ sound: \"sound\"; partial: \"partial\"; concern: \"concern\"; }>; }, $strict>; }, $strip>, ZodObject<{ abstained: ZodString; }, $strip>]>>; }, $strip>>; learned: Records<ZodObject<{ glob: ZodString; level: ZodString; item: ZodString; commit: ZodString; pull: ZodOptional<ZodString>; at: ZodInt; }, $strip>>; itemKinds: Records<ZodDiscriminatedUnion<[ZodObject<{ item: ZodString; kind: ZodString; from: ZodLiteral<\"source\">; }, $strip>, ZodObject<{ item: ZodString; kind: ZodString; from: ZodLiteral<\"model\">; }, $strip>, ZodObject<{ item: ZodString; kind: ZodString; from: ZodLiteral<\"fallback\">; why: ZodString; }, $strip>], \"from\">>; plans: Records<ZodObject<{ item: ZodString; plan: ZodObject<{ summary: ZodString; steps: ZodArray<ZodString>; paths: ZodArray<ZodString>; }, $strict>; hash: ZodString; models: ZodArray<ZodString>; }, $strip>>; verdicts: Records<ZodObject<{ item: ZodString; head: ZodString; event: ZodString; reason: ZodString; cites: ZodArray<ZodObject<{ file: ZodString; line: ZodInt; }, $strict>>; models: ZodArray<ZodString>; }, $strip>>; questions: Records<ZodObject<{ item: ZodString; text: ZodString; options: ZodOptional<ZodArray<ZodString>>; detail: ZodOptional<ZodString>; priority: ZodInt; footprint: ZodOptional<ZodArray<ZodString>>; queuedAt: ZodInt; askedAt: ZodOptional<ZodInt>; }, $strip>>; choices: Records<ZodMiniObject<{ item: ZodMiniString<string>; text: ZodMiniString<string>; at: ZodMiniInt; }, $strip>>; answers: Records<ZodDiscriminatedUnion<[ZodObject<{ source: ZodLiteral<\"marker\">; option: ZodOptional<ZodString>; item: ZodString; ordinal: ZodInt; text: ZodString; disposition: ZodEnum<{ applied: \"applied\"; held: \"held\"; dropped: \"dropped\"; }>; why: ZodString; at: ZodInt; }, $strip>, ZodObject<{ source: ZodEnum<{ model: \"model\"; \"first-word\": \"first-word\"; }>; option: ZodString; item: ZodString; ordinal: ZodInt; text: ZodString; disposition: ZodEnum<{ applied: \"applied\"; held: \"held\"; dropped: \"dropped\"; }>; why: ZodString; at: ZodInt; }, $strip>, ZodObject<{ source: ZodEnum<{ free: \"free\"; abstained: \"abstained\"; \"none-of-these\": \"none-of-these\"; }>; item: ZodString; ordinal: ZodInt; text: ZodString; disposition: ZodEnum<{ applied: \"applied\"; held: \"held\"; dropped: \"dropped\"; }>; why: ZodString; at: ZodInt; }, $strip>], \"source\">>; notes: Records<ZodObject<{ source: ZodEnum<{ fix: \"fix\"; \"review-comment\": \"review-comment\"; \"review-body\": \"review-body\"; \"plan-answer\": \"plan-answer\"; revert: \"revert\"; }>; sourceId: ZodString; change: ZodString; item: ZodOptional<ZodString>; file: ZodOptional<ZodString>; line: ZodOptional<ZodInt>; hunk: ZodString; text: ZodString; at: ZodInt; }, $strip>>; repeats: Records<ZodObject<{ key: ZodString; notes: ZodArray<ZodString>; item: ZodOptional<ZodString>; commented: ZodArray<ZodString>; checked: ZodOptional<ZodObject<{ at: ZodInt; check: ZodString; }, $strip>>; misses: ZodArray<ZodString>; }, $strip>>; possibleRepeats: Records<ZodObject<{ a: ZodString; b: ZodString; models: ZodArray<ZodString>; at: ZodInt; }, $strip>>; merges: Records<ZodObject<{ item: ZodString; sha: ZodString; at: ZodInt; paths: ZodArray<ZodString>; }, $strip>>; breaks: Records<ZodObject<{ item: ZodString; sha: ZodString; at: ZodInt; paths: ZodArray<ZodString>; level: ZodString; failure: ZodString; onBreak: ZodEnum<{ \"follow-up\": \"follow-up\"; block: \"block\"; }>; followUp: ZodString; }, $strip>>; proofs: Records<ZodDiscriminatedUnion<[ZodObject<{ passed: ZodLiteral<true>; item: ZodString; at: ZodInt; worktrees: ZodInt; ms: ZodInt; }, $strip>, ZodObject<{ passed: ZodLiteral<false>; reason: ZodString; item: ZodString; at: ZodInt; worktrees: ZodInt; ms: ZodInt; }, $strip>], \"passed\">>; }, \"dir\" | \"faults\" | \"limit\">; readonly repo: string; }"
2746
+ "type": "export type BackgroundStartOptions = Omit<RunnerOptions, \"state\"> & Pick<BackgroundOptions, \"config\" | \"state\"> & {\n readonly state: RunnerOptions[\"state\"];\n readonly repo: string;\n};\n= Omit<RunnerOptions, \"state\"> & Pick<BackgroundOptions, \"config\" | \"state\"> & { readonly state: Pick<{ dir: string; statusPath: string; heartbeatPath: string; inbox: string; stops: string; faults: Faults; items: Items; events: EventLog; ops: OpKeys; runs: RunRecords; parked: Records<ZodObject<{ item: ZodString; why: ZodEnum<{ review: \"review\"; stuck: \"stuck\"; }>; cause: ZodString; since: ZodInt; }, $strip>>; spent: Records<ZodObject<{ item: ZodString; total: ZodInt; base: ZodInt; }, $strip>>; kinds: Records<ZodObject<{ tiers: ZodArray<ZodObject<{ purpose: ZodEnum<{ fix: \"fix\"; review: \"review\"; plan: \"plan\"; build: \"build\"; }>; level: ZodOptional<ZodString>; size: ZodOptional<ZodEnum<{ small: \"small\"; medium: \"medium\"; large: \"large\"; }>>; tier: ZodEnum<{ light: \"light\"; standard: \"standard\"; top: \"top\"; }>; effort: ZodEnum<{ medium: \"medium\"; low: \"low\"; high: \"high\"; }>; }, $strict>>; tokenCap: ZodObject<{ tokens: ZodNumber; overCap: ZodString; }, $strict>; stateMap: ZodOptional<ZodRecord<ZodString, ZodRecord<ZodString, ZodString>>>; machine: ZodObject<{ id: ZodString; version: ZodString; initial: ZodString; states: ZodRecord<ZodString, ZodObject<{ type: ZodOptional<ZodEnum<{ atomic: \"atomic\"; final: \"final\"; }>>; description: ZodOptional<ZodString>; tags: ZodOptional<ZodArray<ZodString>>; invoke: ZodOptional<ZodObject<{ src: ZodString; onDone: ZodOptional<ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>; onError: ZodOptional<ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>; }, $strict>>; on: ZodOptional<ZodRecord<ZodString, ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>>; always: ZodOptional<ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>; after: ZodOptional<ZodRecord<ZodString, ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>>; timeout: ZodOptional<ZodNumber>; onTimeout: ZodOptional<ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>; entry: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; exit: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; }, $strict>>; }, $strict>; }, $strict>>; limit: Records<ZodObject<{ until: ZodInt; }, $strip>>; ready: Records<ZodObject<{ ids: ZodArray<ZodString>; }, $strip>>; slots: Records<ZodDiscriminatedUnion<[ZodObject<{ status: ZodEnum<{ out: \"out\"; new: \"new\"; free: \"free\"; stale: \"stale\"; }>; name: ZodString; index: ZodInt; folder: ZodString; lockfiles: ZodOptional<ZodString>; since: ZodInt; }, $strip>, ZodObject<{ status: ZodEnum<{ taken: \"taken\"; kept: \"kept\"; }>; item: ZodString; name: ZodString; index: ZodInt; folder: ZodString; lockfiles: ZodOptional<ZodString>; since: ZodInt; }, $strip>], \"status\">>; landings: Records<ZodObject<{ item: ZodString; branch: ZodString; since: ZodInt; change: ZodReadonly<ZodObject<{ paths: ZodReadonly<ZodArray<ZodString>>; size: ZodInt; loosened: ZodBoolean; pinChanged: ZodBoolean; }, $strip>>; head: ZodString; lostRaces: ZodDefault<ZodInt>; patch: ZodOptional<ZodString>; alignment: ZodOptional<ZodUnion<readonly [ZodObject<{ graded: ZodObject<{ alignment: ZodEnum<{ sound: \"sound\"; partial: \"partial\"; concern: \"concern\"; }>; verification: ZodEnum<{ sound: \"sound\"; partial: \"partial\"; concern: \"concern\"; }>; }, $strict>; }, $strip>, ZodObject<{ abstained: ZodString; }, $strip>]>>; }, $strip>>; learned: Records<ZodObject<{ glob: ZodString; level: ZodString; item: ZodString; commit: ZodString; pull: ZodOptional<ZodString>; at: ZodInt; }, $strip>>; itemKinds: Records<ZodDiscriminatedUnion<[ZodObject<{ item: ZodString; kind: ZodString; from: ZodLiteral<\"source\">; }, $strip>, ZodObject<{ item: ZodString; kind: ZodString; from: ZodLiteral<\"model\">; }, $strip>, ZodObject<{ item: ZodString; kind: ZodString; from: ZodLiteral<\"fallback\">; why: ZodString; }, $strip>], \"from\">>; plans: Records<ZodObject<{ item: ZodString; plan: ZodObject<{ summary: ZodString; steps: ZodArray<ZodString>; paths: ZodArray<ZodString>; }, $strict>; hash: ZodString; models: ZodArray<ZodString>; }, $strip>>; verdicts: Records<ZodObject<{ item: ZodString; head: ZodString; event: ZodString; reason: ZodString; cites: ZodArray<ZodObject<{ file: ZodString; line: ZodInt; }, $strict>>; models: ZodArray<ZodString>; }, $strip>>; pullRequests: Records<ZodObject<{ item: ZodString; title: ZodString; body: ZodString; evidence: ZodOptional<ZodUnion<readonly [ZodObject<{ kind: ZodEnum<{ image: \"image\"; video: \"video\"; }>; url: ZodURL; }, $strip>, ZodObject<{ left: ZodString; }, $strip>]>>; }, $strip>>; questions: Records<ZodObject<{ item: ZodString; text: ZodString; options: ZodOptional<ZodArray<ZodString>>; detail: ZodOptional<ZodString>; priority: ZodInt; footprint: ZodOptional<ZodArray<ZodString>>; queuedAt: ZodInt; askedAt: ZodOptional<ZodInt>; }, $strip>>; followUps: Records<ZodObject<{ item: ZodString; from: ZodString; at: ZodInt; }, $strip>>; choices: Records<ZodMiniObject<{ item: ZodMiniString<string>; text: ZodMiniString<string>; at: ZodMiniInt; }, $strip>>; answers: Records<ZodDiscriminatedUnion<[ZodObject<{ source: ZodLiteral<\"marker\">; option: ZodOptional<ZodString>; item: ZodString; ordinal: ZodInt; text: ZodString; disposition: ZodEnum<{ applied: \"applied\"; held: \"held\"; dropped: \"dropped\"; }>; why: ZodString; at: ZodInt; }, $strip>, ZodObject<{ source: ZodEnum<{ model: \"model\"; \"first-word\": \"first-word\"; }>; option: ZodString; item: ZodString; ordinal: ZodInt; text: ZodString; disposition: ZodEnum<{ applied: \"applied\"; held: \"held\"; dropped: \"dropped\"; }>; why: ZodString; at: ZodInt; }, $strip>, ZodObject<{ source: ZodEnum<{ free: \"free\"; abstained: \"abstained\"; \"none-of-these\": \"none-of-these\"; }>; item: ZodString; ordinal: ZodInt; text: ZodString; disposition: ZodEnum<{ applied: \"applied\"; held: \"held\"; dropped: \"dropped\"; }>; why: ZodString; at: ZodInt; }, $strip>], \"source\">>; notes: Records<ZodObject<{ source: ZodEnum<{ fix: \"fix\"; \"review-comment\": \"review-comment\"; \"review-body\": \"review-body\"; \"plan-answer\": \"plan-answer\"; revert: \"revert\"; }>; sourceId: ZodString; change: ZodString; item: ZodOptional<ZodString>; file: ZodOptional<ZodString>; line: ZodOptional<ZodInt>; hunk: ZodString; text: ZodString; at: ZodInt; }, $strip>>; repeats: Records<ZodObject<{ key: ZodString; notes: ZodArray<ZodString>; item: ZodOptional<ZodString>; commented: ZodArray<ZodString>; checked: ZodOptional<ZodObject<{ at: ZodInt; check: ZodString; }, $strip>>; misses: ZodArray<ZodString>; }, $strip>>; possibleRepeats: Records<ZodObject<{ a: ZodString; b: ZodString; models: ZodArray<ZodString>; at: ZodInt; }, $strip>>; merges: Records<ZodObject<{ item: ZodString; sha: ZodString; at: ZodInt; paths: ZodArray<ZodString>; baseChecked: ZodDefault<ZodBoolean>; }, $strip>>; breaks: Records<ZodObject<{ item: ZodString; sha: ZodString; at: ZodInt; paths: ZodArray<ZodString>; level: ZodString; failure: ZodString; onBreak: ZodEnum<{ \"follow-up\": \"follow-up\"; block: \"block\"; }>; followUp: ZodString; }, $strip>>; proofs: Records<ZodDiscriminatedUnion<[ZodObject<{ passed: ZodLiteral<true>; item: ZodString; at: ZodInt; worktrees: ZodInt; ms: ZodInt; }, $strip>, ZodObject<{ passed: ZodLiteral<false>; reason: ZodString; item: ZodString; at: ZodInt; worktrees: ZodInt; ms: ZodInt; }, $strip>], \"passed\">>; }, \"dir\" | \"faults\" | \"limit\">; readonly repo: string; }"
2476
2747
  },
2477
2748
  "BegunRun": {
2478
2749
  "type": "export type BegunRun = {\n readonly record: RunRecord;\n readonly adopted: boolean;\n readonly saveSession: (sessionId: string) => RunRecord;\n readonly end: (memoryUsed?: readonly string[]) => RunRecord;\n};\n= { readonly record: { itemId: string; run: string; attempt: number; name: string; savedAt: number; endedAt: number; sessionId?: string | undefined; memoryUsed?: string[] | undefined; } | { itemId: string; run: string; attempt: number; name: string; savedAt: number; sessionId?: string | undefined; endedAt?: undefined; }; readonly adopted: boolean; readonly saveSession: (sessionId: string) => { itemId: string; run: string; attempt: number; name: string; savedAt: number; endedAt: number; sessionId?: string | undefined; memoryUsed?: string[] | undefined; } | { itemId: string; run: string; attempt: number; name: string; savedAt: number; sessionId?: string | undefined; endedAt?: undefined; }; readonly end: (memoryUsed?: readonly string[] | undefined) => { itemId: string; run: string; attempt: number; name: string; savedAt: number; endedAt: number; sessionId?: string | undefined; memoryUsed?: string[] | undefined; } | { itemId: string; run: string; attempt: number; name: string; savedAt: number; sessionId?: string | undefined; endedAt?: undefined; }; }"
2479
2750
  },
2480
2751
  "BranchRules": {
2481
- "type": "export type BranchRules = {\n readonly requiresPullRequest: boolean;\n readonly mergeMethods: readonly MergeMethod[] | undefined;\n};\n= { readonly requiresPullRequest: boolean; readonly mergeMethods: readonly (\"merge\" | \"rebase\" | \"squash\")[] | undefined; }"
2752
+ "type": "export type BranchRules = {\n readonly requiresPullRequest: boolean;\n readonly requiresSignatures: boolean;\n readonly mergeMethods: readonly MergeMethod[] | undefined;\n};\n= { readonly requiresPullRequest: boolean; readonly requiresSignatures: boolean; readonly mergeMethods: readonly (\"merge\" | \"rebase\" | \"squash\")[] | undefined; }"
2482
2753
  },
2483
2754
  "CallScope": {
2484
2755
  "type": "export type CallScope = {\n readonly run: string;\n readonly attempt: number;\n};\n= { readonly run: string; readonly attempt: number; }"
@@ -2496,13 +2767,13 @@
2496
2767
  "type": "export type Change = z.infer<typeof Change>;\n= { readonly paths: readonly string[]; readonly size: number; readonly loosened: boolean; readonly pinChanged: boolean; }\nZodReadonly<ZodObject<{ paths: ZodReadonly<ZodArray<ZodString>>; size: ZodInt; loosened: ZodBoolean; pinChanged: ZodBoolean; }, $strip>>"
2497
2768
  },
2498
2769
  "changeOf": {
2499
- "type": "(diff: string, { loosenedCheck, lockfiles }: Pick<{ checks: string[]; kindLabels: Record<string, string>; runPlaces: (\"ci\" | \"mac\")[]; runBranchPrefix: string; claimPrefix: string; readyLabel: string; mergeMethod: \"merge\" | \"rebase\" | \"squash\"; models: Record<\"light\" | \"standard\" | \"top\", string>; runners: number; tickIntervalSeconds: number; drainTimeoutSeconds: number; claimExpirySeconds: number; latestVersionCacheSeconds: number; watchCacheSeconds: number; watchLockSeconds: number; maxFixRuns: number; serviceLabel: string; maxCrashes: number; crashWindowSeconds: number; workerDownTicks: number; tokenWarnDays: number; ciSchedule: string; ciTickCacheSeconds: number; itemsDir: string; providerTimeoutSeconds: number; providerBackoff: { firstSeconds: number; maxSeconds: number; }; mergedShown: number; choicesShown: number; statusReadTimeoutSeconds: number; commandTimeoutSeconds: number; mergeTries: number; writeRaceRetries: number; itemReadsAtOnce: number; restartBackoff: { firstSeconds: number; maxSeconds: number; }; restartDelaySeconds: number; pullRequestTokenSecret: string; ciWakeTimeoutMinutes: number; strictPaths: string[]; launches: ({ glob: string; level: string; base: string; } | { glob: string; level: string; from: string; until: string; })[]; sizeRange: { changes: number; fewest: number; middle: number; }; loosenedCheck: { added: string[]; removed: string[]; }; changeLabels: { fixWindow: number; fixSubject: string; revertSubject: string; revertTrailer: string; }; historyDepth: number; lockfiles: string[]; hookPaths: string[]; diffLimit: number; failureTail: number; kindMeanings: Record<string, string>; fallbackKind: string; docsOnly: { kind: string; paths: string[]; }; decisionModel: string; modelCallTimeoutSeconds: number; measuredModels: Record<\"alignment\" | \"kind\" | \"plan-outcome\" | \"repeat-pair\" | \"reply-option\" | \"review-verdict\" | \"taste\", Record<string, number>>; minJudgeRate: number; questionLimits: { cells: number; wordCells: number; }; questionTimeoutHours: number; priorityLabels: string[]; undoableLevels: string[]; ownerBranchPrefix: string; backgroundRuns: boolean; backgroundLaunchSeconds: number; backgroundPollSeconds: number; deniedRunCommands: string[]; runAutoMode: { environment: string[]; allow: string[]; hardDeny: string[]; }; runSlots: { enabled: boolean; pool: string; services: \"per-slot\" | \"shared\"; ports: { base: number; stride: number; }; projectPrefix: string; stepTimeoutSeconds: number; recipe: { prepare: string[]; refresh: { run: string; when: \"always\" | \"lockfile-changed\"; }[]; ready: string[]; }; }; ownerLogins: string[]; repeatAt: number; repeatPrecision: number; tasteRules: string[]; memoryMaxBytes: number; memoryUnusedRuns: number; measureWindow: number; loopIntervalSeconds: number; proofTimeoutSeconds: number; kindFloors: Record<string, string>; checkKind: string; breakCheck: boolean; mergeRisk: { weights: Record<\"alignment\" | \"errorDetection\" | \"impact\" | \"rollback\" | \"verification\", number>; cuts: [number, number]; }; schemaVersion: 1; levels: { name: string; review: \"agent\" | \"none\" | \"owner\"; release: \"after-proof\" | \"at-once\"; onBreak: \"block\" | \"follow-up\"; }[]; paths: { glob: string; level: string; proofs?: Record<string, string> | undefined; limit?: undefined | { fixes: number; of: number; }; }[]; roles: Record<string, { file: string; purpose: \"build\" | \"fix\" | \"plan\" | \"review\"; skills: string[]; }>; events: Record<string, { source: string; }>; kinds: string[]; commitIdentity: { name: string; email: string; }; safety?: Record<string, unknown> | undefined; dailyQuestionCap?: number | undefined; integrations?: Record<string, string> | undefined; ciToken?: undefined | { setUp: string; }; }, \"lockfiles\" | \"loosenedCheck\">) => Readonly<{ paths: readonly string[]; size: number; loosened: boolean; pinChanged: boolean; }>"
2770
+ "type": "(diff: string, { loosenedCheck, lockfiles }: Pick<{ checks: string[]; kindLabels: Record<string, string>; runPlaces: (\"ci\" | \"mac\")[]; runBranchPrefix: string; claimPrefix: string; readyLabel: string; mergeMethod: \"merge\" | \"rebase\" | \"squash\"; models: Record<\"light\" | \"standard\" | \"top\", string>; runners: number; tickIntervalSeconds: number; drainTimeoutSeconds: number; claimExpirySeconds: number; latestVersionCacheSeconds: number; watchCacheSeconds: number; watchLockSeconds: number; maxFixRuns: number; serviceLabel: string; maxCrashes: number; crashWindowSeconds: number; workerDownTicks: number; tokenWarnDays: number; ciSchedule: string; ciTickCacheSeconds: number; itemsDir: string; providerTimeoutSeconds: number; providerBackoff: { firstSeconds: number; maxSeconds: number; }; mergedShown: number; choicesShown: number; statusReadTimeoutSeconds: number; commandTimeoutSeconds: number; mergeTries: number; writeRaceRetries: number; itemReadsAtOnce: number; restartBackoff: { firstSeconds: number; maxSeconds: number; }; restartDelaySeconds: number; pullRequestToken: { from: \"app\"; clientIdSecret: string; privateKeySecret: string; } | { from: \"secret\"; secret: string; }; ciWakeTimeoutMinutes: number; ciOutboxMaxMegabytes: number; ciUsageLimitMaxHours: number; followUpsPerPass: number; publishTreeMaxMegabytes: number; ciMergeMarginMinutes: number; ciRunner: string | string[] | { group: string; labels?: string | string[] | undefined; }; ciContainer: null | string | { image: string; credentials?: undefined | { username: string; password: string; }; env?: Record<string, string> | undefined; ports?: (number | string)[] | undefined; volumes?: string[] | undefined; options?: string | undefined; }; ciEnv: Record<string, string>; ciClaudeAuth: \"env\" | \"oauth-token\"; strictPaths: string[]; launches: ({ glob: string; level: string; base: string; } | { glob: string; level: string; from: string; until: string; })[]; sizeRange: { changes: number; fewest: number; middle: number; }; loosenedCheck: { added: string[]; removed: string[]; }; changeLabels: { fixWindow: number; fixSubject: string; revertSubject: string; revertTrailer: string; }; historyDepth: number; lockfiles: string[]; hookPaths: string[]; diffLimit: number; failureTail: number; kindMeanings: Record<string, string>; fallbackKind: string; docsOnly: { kind: string; paths: string[]; }; decisionModel: string; modelCallTimeoutSeconds: number; measuredModels: Record<\"alignment\" | \"kind\" | \"plan-outcome\" | \"repeat-pair\" | \"reply-option\" | \"review-verdict\" | \"taste\", Record<string, number>>; minJudgeRate: number; questionLimits: { cells: number; wordCells: number; }; questionTimeoutHours: number; priorityLabels: string[]; undoableLevels: string[]; ownerBranchPrefix: string; backgroundRuns: boolean; backgroundLaunchSeconds: number; backgroundPollSeconds: number; deniedRunCommands: string[]; runAutoMode: { environment: string[]; allow: string[]; hardDeny: string[]; }; runSlots: { enabled: boolean; pool: string; services: \"per-slot\" | \"shared\"; ports: { base: number; stride: number; }; projectPrefix: string; stepTimeoutSeconds: number; recipe: { prepare: string[]; refresh: { run: string; when: \"always\" | \"lockfile-changed\"; }[]; ready: string[]; }; }; ownerLogins: string[]; repeatAt: number; repeatPrecision: number; tasteRules: string[]; memoryMaxBytes: number; memoryUnusedRuns: number; measureWindow: number; loopIntervalSeconds: number; proofTimeoutSeconds: number; kindFloors: Record<string, string>; checkKind: string; breakCheck: boolean; mergeRisk: { weights: Record<\"alignment\" | \"errorDetection\" | \"impact\" | \"rollback\" | \"verification\", number>; cuts: [number, number]; }; schemaVersion: 2; levels: { name: string; review: \"agent\" | \"none\" | \"owner\"; release: \"after-proof\" | \"at-once\"; onBreak: \"block\" | \"follow-up\"; }[]; paths: { glob: string; level: string; proofs?: Record<string, string> | undefined; limit?: undefined | { fixes: number; of: number; }; }[]; roles: Record<string, { file: string; purpose: \"build\" | \"fix\" | \"plan\" | \"review\"; skills: string[]; }>; events: Record<string, { source: string; }>; kinds: string[]; commitIdentity: { name: string; email: string; }; safety?: Record<string, unknown> | undefined; dailyQuestionCap?: number | undefined; integrations?: Partial<Record<\"answers\" | \"questions\" | \"release\" | \"work-source\", string>> | undefined; ciToken?: undefined | { setUp: string; }; }, \"lockfiles\" | \"loosenedCheck\">) => Readonly<{ paths: readonly string[]; size: number; loosened: boolean; pinChanged: boolean; }>"
2500
2771
  },
2501
2772
  "Check": {
2502
2773
  "type": "export type Check = {\n readonly name: string;\n readonly run: () => Promise<void>;\n};\n= { readonly name: string; readonly run: () => Promise<void>; }"
2503
2774
  },
2504
2775
  "CheckEnv": {
2505
- "type": "export type CheckEnv = {\n readonly hopeSkills: ReadonlySet<string>;\n};\n= { readonly hopeSkills: ReadonlySet<string>; }"
2776
+ "type": "export type CheckEnv = {\n readonly installedSkills?: ReadonlySet<string>;\n};\n= { readonly installedSkills?: ReadonlySet<string> | undefined; }"
2506
2777
  },
2507
2778
  "Checkout": {
2508
2779
  "type": "export type Checkout = (request: CheckoutRequest) => Promise<Checkedout>;\n= (request: CheckoutRequest) => Promise<Checkedout>"
@@ -2664,7 +2935,7 @@
2664
2935
  "type": "export type CommitLanded = {\n readonly via: \"push\";\n} | {\n readonly via: \"pull-request\";\n readonly pull: Pull;\n readonly merged: boolean;\n} | {\n readonly via: \"conflict\";\n} | {\n readonly via: \"refused\";\n readonly said: string;\n};\n= { readonly via: \"conflict\"; } | { readonly via: \"pull-request\"; readonly pull: Pull; readonly merged: boolean; } | { readonly via: \"push\"; } | { readonly via: \"refused\"; readonly said: string; }"
2665
2936
  },
2666
2937
  "Config": {
2667
- "type": "export type Config = {\n readonly hum: HumConfig;\n readonly kinds: Readonly<Record<string, Kind>>;\n readonly roles: Readonly<Record<string, string>>;\n readonly hash: string;\n};\n= { readonly hum: { checks: string[]; kindLabels: Record<string, string>; runPlaces: (\"ci\" | \"mac\")[]; runBranchPrefix: string; claimPrefix: string; readyLabel: string; mergeMethod: \"merge\" | \"rebase\" | \"squash\"; models: Record<\"light\" | \"standard\" | \"top\", string>; runners: number; tickIntervalSeconds: number; drainTimeoutSeconds: number; claimExpirySeconds: number; latestVersionCacheSeconds: number; watchCacheSeconds: number; watchLockSeconds: number; maxFixRuns: number; serviceLabel: string; maxCrashes: number; crashWindowSeconds: number; workerDownTicks: number; tokenWarnDays: number; ciSchedule: string; ciTickCacheSeconds: number; itemsDir: string; providerTimeoutSeconds: number; providerBackoff: { firstSeconds: number; maxSeconds: number; }; mergedShown: number; choicesShown: number; statusReadTimeoutSeconds: number; commandTimeoutSeconds: number; mergeTries: number; writeRaceRetries: number; itemReadsAtOnce: number; restartBackoff: { firstSeconds: number; maxSeconds: number; }; restartDelaySeconds: number; pullRequestTokenSecret: string; ciWakeTimeoutMinutes: number; strictPaths: string[]; launches: ({ glob: string; level: string; base: string; } | { glob: string; level: string; from: string; until: string; })[]; sizeRange: { changes: number; fewest: number; middle: number; }; loosenedCheck: { added: string[]; removed: string[]; }; changeLabels: { fixWindow: number; fixSubject: string; revertSubject: string; revertTrailer: string; }; historyDepth: number; lockfiles: string[]; hookPaths: string[]; diffLimit: number; failureTail: number; kindMeanings: Record<string, string>; fallbackKind: string; docsOnly: { kind: string; paths: string[]; }; decisionModel: string; modelCallTimeoutSeconds: number; measuredModels: Record<\"alignment\" | \"kind\" | \"plan-outcome\" | \"repeat-pair\" | \"reply-option\" | \"review-verdict\" | \"taste\", Record<string, number>>; minJudgeRate: number; questionLimits: { cells: number; wordCells: number; }; questionTimeoutHours: number; priorityLabels: string[]; undoableLevels: string[]; ownerBranchPrefix: string; backgroundRuns: boolean; backgroundLaunchSeconds: number; backgroundPollSeconds: number; deniedRunCommands: string[]; runAutoMode: { environment: string[]; allow: string[]; hardDeny: string[]; }; runSlots: { enabled: boolean; pool: string; services: \"per-slot\" | \"shared\"; ports: { base: number; stride: number; }; projectPrefix: string; stepTimeoutSeconds: number; recipe: { prepare: string[]; refresh: { run: string; when: \"always\" | \"lockfile-changed\"; }[]; ready: string[]; }; }; ownerLogins: string[]; repeatAt: number; repeatPrecision: number; tasteRules: string[]; memoryMaxBytes: number; memoryUnusedRuns: number; measureWindow: number; loopIntervalSeconds: number; proofTimeoutSeconds: number; kindFloors: Record<string, string>; checkKind: string; breakCheck: boolean; mergeRisk: { weights: Record<\"alignment\" | \"errorDetection\" | \"impact\" | \"rollback\" | \"verification\", number>; cuts: [number, number]; }; schemaVersion: 1; levels: { name: string; review: \"agent\" | \"none\" | \"owner\"; release: \"after-proof\" | \"at-once\"; onBreak: \"block\" | \"follow-up\"; }[]; paths: { glob: string; level: string; proofs?: Record<string, string> | undefined; limit?: undefined | { fixes: number; of: number; }; }[]; roles: Record<string, { file: string; purpose: \"build\" | \"fix\" | \"plan\" | \"review\"; skills: string[]; }>; events: Record<string, { source: string; }>; kinds: string[]; commitIdentity: { name: string; email: string; }; safety?: Record<string, unknown> | undefined; dailyQuestionCap?: number | undefined; integrations?: Record<string, string> | undefined; ciToken?: undefined | { setUp: string; }; }; readonly kinds: Readonly<Record<string, { tiers: { purpose: \"build\" | \"fix\" | \"plan\" | \"review\"; tier: \"light\" | \"standard\" | \"top\"; effort: \"high\" | \"low\" | \"medium\"; level?: string | undefined; size?: \"large\" | \"medium\" | \"small\" | undefined; }[]; tokenCap: { tokens: number; overCap: string; }; machine: { id: string; version: string; initial: string; states: Record<string, { type?: \"atomic\" | \"final\" | undefined; description?: string | undefined; tags?: string[] | undefined; invoke?: undefined | { src: string; onDone?: undefined | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]; onError?: undefined | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]; }; on?: Record<string, { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]> | undefined; always?: undefined | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]; after?: Record<string, { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]> | undefined; timeout?: number | undefined; onTimeout?: undefined | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]; entry?: undefined | { type: string; params?: unknown; }[]; exit?: undefined | { type: string; params?: unknown; }[]; }>; }; stateMap?: Record<string, Record<string, string>> | undefined; }>>; readonly roles: Readonly<Record<string, string>>; readonly hash: string; }"
2938
+ "type": "export type Config = {\n readonly hum: HumConfig;\n readonly kinds: Readonly<Record<string, Kind>>;\n readonly roles: Readonly<Record<string, string>>;\n readonly hash: string;\n};\n= { readonly hum: { checks: string[]; kindLabels: Record<string, string>; runPlaces: (\"ci\" | \"mac\")[]; runBranchPrefix: string; claimPrefix: string; readyLabel: string; mergeMethod: \"merge\" | \"rebase\" | \"squash\"; models: Record<\"light\" | \"standard\" | \"top\", string>; runners: number; tickIntervalSeconds: number; drainTimeoutSeconds: number; claimExpirySeconds: number; latestVersionCacheSeconds: number; watchCacheSeconds: number; watchLockSeconds: number; maxFixRuns: number; serviceLabel: string; maxCrashes: number; crashWindowSeconds: number; workerDownTicks: number; tokenWarnDays: number; ciSchedule: string; ciTickCacheSeconds: number; itemsDir: string; providerTimeoutSeconds: number; providerBackoff: { firstSeconds: number; maxSeconds: number; }; mergedShown: number; choicesShown: number; statusReadTimeoutSeconds: number; commandTimeoutSeconds: number; mergeTries: number; writeRaceRetries: number; itemReadsAtOnce: number; restartBackoff: { firstSeconds: number; maxSeconds: number; }; restartDelaySeconds: number; pullRequestToken: { from: \"app\"; clientIdSecret: string; privateKeySecret: string; } | { from: \"secret\"; secret: string; }; ciWakeTimeoutMinutes: number; ciOutboxMaxMegabytes: number; ciUsageLimitMaxHours: number; followUpsPerPass: number; publishTreeMaxMegabytes: number; ciMergeMarginMinutes: number; ciRunner: string | string[] | { group: string; labels?: string | string[] | undefined; }; ciContainer: null | string | { image: string; credentials?: undefined | { username: string; password: string; }; env?: Record<string, string> | undefined; ports?: (number | string)[] | undefined; volumes?: string[] | undefined; options?: string | undefined; }; ciEnv: Record<string, string>; ciClaudeAuth: \"env\" | \"oauth-token\"; strictPaths: string[]; launches: ({ glob: string; level: string; base: string; } | { glob: string; level: string; from: string; until: string; })[]; sizeRange: { changes: number; fewest: number; middle: number; }; loosenedCheck: { added: string[]; removed: string[]; }; changeLabels: { fixWindow: number; fixSubject: string; revertSubject: string; revertTrailer: string; }; historyDepth: number; lockfiles: string[]; hookPaths: string[]; diffLimit: number; failureTail: number; kindMeanings: Record<string, string>; fallbackKind: string; docsOnly: { kind: string; paths: string[]; }; decisionModel: string; modelCallTimeoutSeconds: number; measuredModels: Record<\"alignment\" | \"kind\" | \"plan-outcome\" | \"repeat-pair\" | \"reply-option\" | \"review-verdict\" | \"taste\", Record<string, number>>; minJudgeRate: number; questionLimits: { cells: number; wordCells: number; }; questionTimeoutHours: number; priorityLabels: string[]; undoableLevels: string[]; ownerBranchPrefix: string; backgroundRuns: boolean; backgroundLaunchSeconds: number; backgroundPollSeconds: number; deniedRunCommands: string[]; runAutoMode: { environment: string[]; allow: string[]; hardDeny: string[]; }; runSlots: { enabled: boolean; pool: string; services: \"per-slot\" | \"shared\"; ports: { base: number; stride: number; }; projectPrefix: string; stepTimeoutSeconds: number; recipe: { prepare: string[]; refresh: { run: string; when: \"always\" | \"lockfile-changed\"; }[]; ready: string[]; }; }; ownerLogins: string[]; repeatAt: number; repeatPrecision: number; tasteRules: string[]; memoryMaxBytes: number; memoryUnusedRuns: number; measureWindow: number; loopIntervalSeconds: number; proofTimeoutSeconds: number; kindFloors: Record<string, string>; checkKind: string; breakCheck: boolean; mergeRisk: { weights: Record<\"alignment\" | \"errorDetection\" | \"impact\" | \"rollback\" | \"verification\", number>; cuts: [number, number]; }; schemaVersion: 2; levels: { name: string; review: \"agent\" | \"none\" | \"owner\"; release: \"after-proof\" | \"at-once\"; onBreak: \"block\" | \"follow-up\"; }[]; paths: { glob: string; level: string; proofs?: Record<string, string> | undefined; limit?: undefined | { fixes: number; of: number; }; }[]; roles: Record<string, { file: string; purpose: \"build\" | \"fix\" | \"plan\" | \"review\"; skills: string[]; }>; events: Record<string, { source: string; }>; kinds: string[]; commitIdentity: { name: string; email: string; }; safety?: Record<string, unknown> | undefined; dailyQuestionCap?: number | undefined; integrations?: Partial<Record<\"answers\" | \"questions\" | \"release\" | \"work-source\", string>> | undefined; ciToken?: undefined | { setUp: string; }; }; readonly kinds: Readonly<Record<string, { tiers: { purpose: \"build\" | \"fix\" | \"plan\" | \"review\"; tier: \"light\" | \"standard\" | \"top\"; effort: \"high\" | \"low\" | \"medium\"; level?: string | undefined; size?: \"large\" | \"medium\" | \"small\" | undefined; }[]; tokenCap: { tokens: number; overCap: string; }; machine: { id: string; version: string; initial: string; states: Record<string, { type?: \"atomic\" | \"final\" | undefined; description?: string | undefined; tags?: string[] | undefined; invoke?: undefined | { src: string; onDone?: undefined | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]; onError?: undefined | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]; }; on?: Record<string, { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]> | undefined; always?: undefined | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]; after?: Record<string, { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]> | undefined; timeout?: number | undefined; onTimeout?: undefined | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]; entry?: undefined | { type: string; params?: unknown; }[]; exit?: undefined | { type: string; params?: unknown; }[]; }>; }; stateMap?: Record<string, Record<string, string>> | undefined; }>>; readonly roles: Readonly<Record<string, string>>; readonly hash: string; }"
2668
2939
  },
2669
2940
  "ConfigChange": {
2670
2941
  "type": "export type ConfigChange = {\n readonly candidate: RawConfig;\n readonly branch: string;\n readonly saved?: readonly SavedItem[];\n};\n= { readonly candidate: RawConfig; readonly branch: string; readonly saved?: readonly SavedItem[] | undefined; }"
@@ -2673,7 +2944,7 @@
2673
2944
  "type": "export type ConfigResult = {\n readonly accepted: true;\n readonly config: Config;\n} | {\n readonly accepted: false;\n readonly config: Config | undefined;\n readonly refusals: readonly Refusal[];\n};\n= { readonly accepted: false; readonly config: Config | undefined; readonly refusals: readonly Refusal[]; } | { readonly accepted: true; readonly config: Config; }"
2674
2945
  },
2675
2946
  "configuredModelCall": {
2676
- "type": "(runner: Runner, config: Pick<{ checks: string[]; kindLabels: Record<string, string>; runPlaces: (\"ci\" | \"mac\")[]; runBranchPrefix: string; claimPrefix: string; readyLabel: string; mergeMethod: \"merge\" | \"rebase\" | \"squash\"; models: Record<\"light\" | \"standard\" | \"top\", string>; runners: number; tickIntervalSeconds: number; drainTimeoutSeconds: number; claimExpirySeconds: number; latestVersionCacheSeconds: number; watchCacheSeconds: number; watchLockSeconds: number; maxFixRuns: number; serviceLabel: string; maxCrashes: number; crashWindowSeconds: number; workerDownTicks: number; tokenWarnDays: number; ciSchedule: string; ciTickCacheSeconds: number; itemsDir: string; providerTimeoutSeconds: number; providerBackoff: { firstSeconds: number; maxSeconds: number; }; mergedShown: number; choicesShown: number; statusReadTimeoutSeconds: number; commandTimeoutSeconds: number; mergeTries: number; writeRaceRetries: number; itemReadsAtOnce: number; restartBackoff: { firstSeconds: number; maxSeconds: number; }; restartDelaySeconds: number; pullRequestTokenSecret: string; ciWakeTimeoutMinutes: number; strictPaths: string[]; launches: ({ glob: string; level: string; base: string; } | { glob: string; level: string; from: string; until: string; })[]; sizeRange: { changes: number; fewest: number; middle: number; }; loosenedCheck: { added: string[]; removed: string[]; }; changeLabels: { fixWindow: number; fixSubject: string; revertSubject: string; revertTrailer: string; }; historyDepth: number; lockfiles: string[]; hookPaths: string[]; diffLimit: number; failureTail: number; kindMeanings: Record<string, string>; fallbackKind: string; docsOnly: { kind: string; paths: string[]; }; decisionModel: string; modelCallTimeoutSeconds: number; measuredModels: Record<\"alignment\" | \"kind\" | \"plan-outcome\" | \"repeat-pair\" | \"reply-option\" | \"review-verdict\" | \"taste\", Record<string, number>>; minJudgeRate: number; questionLimits: { cells: number; wordCells: number; }; questionTimeoutHours: number; priorityLabels: string[]; undoableLevels: string[]; ownerBranchPrefix: string; backgroundRuns: boolean; backgroundLaunchSeconds: number; backgroundPollSeconds: number; deniedRunCommands: string[]; runAutoMode: { environment: string[]; allow: string[]; hardDeny: string[]; }; runSlots: { enabled: boolean; pool: string; services: \"per-slot\" | \"shared\"; ports: { base: number; stride: number; }; projectPrefix: string; stepTimeoutSeconds: number; recipe: { prepare: string[]; refresh: { run: string; when: \"always\" | \"lockfile-changed\"; }[]; ready: string[]; }; }; ownerLogins: string[]; repeatAt: number; repeatPrecision: number; tasteRules: string[]; memoryMaxBytes: number; memoryUnusedRuns: number; measureWindow: number; loopIntervalSeconds: number; proofTimeoutSeconds: number; kindFloors: Record<string, string>; checkKind: string; breakCheck: boolean; mergeRisk: { weights: Record<\"alignment\" | \"errorDetection\" | \"impact\" | \"rollback\" | \"verification\", number>; cuts: [number, number]; }; schemaVersion: 1; levels: { name: string; review: \"agent\" | \"none\" | \"owner\"; release: \"after-proof\" | \"at-once\"; onBreak: \"block\" | \"follow-up\"; }[]; paths: { glob: string; level: string; proofs?: Record<string, string> | undefined; limit?: undefined | { fixes: number; of: number; }; }[]; roles: Record<string, { file: string; purpose: \"build\" | \"fix\" | \"plan\" | \"review\"; skills: string[]; }>; events: Record<string, { source: string; }>; kinds: string[]; commitIdentity: { name: string; email: string; }; safety?: Record<string, unknown> | undefined; dailyQuestionCap?: number | undefined; integrations?: Record<string, string> | undefined; ciToken?: undefined | { setUp: string; }; }, \"decisionModel\" | \"measuredModels\" | \"minJudgeRate\" | \"modelCallTimeoutSeconds\">, onSpent?: ((item: string, tokens: number) => void) | undefined) => ModelCall"
2947
+ "type": "(runner: Runner, config: Pick<{ checks: string[]; kindLabels: Record<string, string>; runPlaces: (\"ci\" | \"mac\")[]; runBranchPrefix: string; claimPrefix: string; readyLabel: string; mergeMethod: \"merge\" | \"rebase\" | \"squash\"; models: Record<\"light\" | \"standard\" | \"top\", string>; runners: number; tickIntervalSeconds: number; drainTimeoutSeconds: number; claimExpirySeconds: number; latestVersionCacheSeconds: number; watchCacheSeconds: number; watchLockSeconds: number; maxFixRuns: number; serviceLabel: string; maxCrashes: number; crashWindowSeconds: number; workerDownTicks: number; tokenWarnDays: number; ciSchedule: string; ciTickCacheSeconds: number; itemsDir: string; providerTimeoutSeconds: number; providerBackoff: { firstSeconds: number; maxSeconds: number; }; mergedShown: number; choicesShown: number; statusReadTimeoutSeconds: number; commandTimeoutSeconds: number; mergeTries: number; writeRaceRetries: number; itemReadsAtOnce: number; restartBackoff: { firstSeconds: number; maxSeconds: number; }; restartDelaySeconds: number; pullRequestToken: { from: \"app\"; clientIdSecret: string; privateKeySecret: string; } | { from: \"secret\"; secret: string; }; ciWakeTimeoutMinutes: number; ciOutboxMaxMegabytes: number; ciUsageLimitMaxHours: number; followUpsPerPass: number; publishTreeMaxMegabytes: number; ciMergeMarginMinutes: number; ciRunner: string | string[] | { group: string; labels?: string | string[] | undefined; }; ciContainer: null | string | { image: string; credentials?: undefined | { username: string; password: string; }; env?: Record<string, string> | undefined; ports?: (number | string)[] | undefined; volumes?: string[] | undefined; options?: string | undefined; }; ciEnv: Record<string, string>; ciClaudeAuth: \"env\" | \"oauth-token\"; strictPaths: string[]; launches: ({ glob: string; level: string; base: string; } | { glob: string; level: string; from: string; until: string; })[]; sizeRange: { changes: number; fewest: number; middle: number; }; loosenedCheck: { added: string[]; removed: string[]; }; changeLabels: { fixWindow: number; fixSubject: string; revertSubject: string; revertTrailer: string; }; historyDepth: number; lockfiles: string[]; hookPaths: string[]; diffLimit: number; failureTail: number; kindMeanings: Record<string, string>; fallbackKind: string; docsOnly: { kind: string; paths: string[]; }; decisionModel: string; modelCallTimeoutSeconds: number; measuredModels: Record<\"alignment\" | \"kind\" | \"plan-outcome\" | \"repeat-pair\" | \"reply-option\" | \"review-verdict\" | \"taste\", Record<string, number>>; minJudgeRate: number; questionLimits: { cells: number; wordCells: number; }; questionTimeoutHours: number; priorityLabels: string[]; undoableLevels: string[]; ownerBranchPrefix: string; backgroundRuns: boolean; backgroundLaunchSeconds: number; backgroundPollSeconds: number; deniedRunCommands: string[]; runAutoMode: { environment: string[]; allow: string[]; hardDeny: string[]; }; runSlots: { enabled: boolean; pool: string; services: \"per-slot\" | \"shared\"; ports: { base: number; stride: number; }; projectPrefix: string; stepTimeoutSeconds: number; recipe: { prepare: string[]; refresh: { run: string; when: \"always\" | \"lockfile-changed\"; }[]; ready: string[]; }; }; ownerLogins: string[]; repeatAt: number; repeatPrecision: number; tasteRules: string[]; memoryMaxBytes: number; memoryUnusedRuns: number; measureWindow: number; loopIntervalSeconds: number; proofTimeoutSeconds: number; kindFloors: Record<string, string>; checkKind: string; breakCheck: boolean; mergeRisk: { weights: Record<\"alignment\" | \"errorDetection\" | \"impact\" | \"rollback\" | \"verification\", number>; cuts: [number, number]; }; schemaVersion: 2; levels: { name: string; review: \"agent\" | \"none\" | \"owner\"; release: \"after-proof\" | \"at-once\"; onBreak: \"block\" | \"follow-up\"; }[]; paths: { glob: string; level: string; proofs?: Record<string, string> | undefined; limit?: undefined | { fixes: number; of: number; }; }[]; roles: Record<string, { file: string; purpose: \"build\" | \"fix\" | \"plan\" | \"review\"; skills: string[]; }>; events: Record<string, { source: string; }>; kinds: string[]; commitIdentity: { name: string; email: string; }; safety?: Record<string, unknown> | undefined; dailyQuestionCap?: number | undefined; integrations?: Partial<Record<\"answers\" | \"questions\" | \"release\" | \"work-source\", string>> | undefined; ciToken?: undefined | { setUp: string; }; }, \"decisionModel\" | \"measuredModels\" | \"minJudgeRate\" | \"modelCallTimeoutSeconds\">, onSpent?: ((item: string, tokens: number) => void) | undefined) => ModelCall"
2677
2948
  },
2678
2949
  "contractChecks": {
2679
2950
  "type": "(target: ContractTarget) => Check[]"
@@ -2704,13 +2975,13 @@
2704
2975
  "type": "(cites: readonly { file: string; line: number; }[], diff: string) => boolean"
2705
2976
  },
2706
2977
  "doesLeaveDocs": {
2707
- "type": "(paths: readonly string[], { docsOnly }: Pick<{ checks: string[]; kindLabels: Record<string, string>; runPlaces: (\"ci\" | \"mac\")[]; runBranchPrefix: string; claimPrefix: string; readyLabel: string; mergeMethod: \"merge\" | \"rebase\" | \"squash\"; models: Record<\"light\" | \"standard\" | \"top\", string>; runners: number; tickIntervalSeconds: number; drainTimeoutSeconds: number; claimExpirySeconds: number; latestVersionCacheSeconds: number; watchCacheSeconds: number; watchLockSeconds: number; maxFixRuns: number; serviceLabel: string; maxCrashes: number; crashWindowSeconds: number; workerDownTicks: number; tokenWarnDays: number; ciSchedule: string; ciTickCacheSeconds: number; itemsDir: string; providerTimeoutSeconds: number; providerBackoff: { firstSeconds: number; maxSeconds: number; }; mergedShown: number; choicesShown: number; statusReadTimeoutSeconds: number; commandTimeoutSeconds: number; mergeTries: number; writeRaceRetries: number; itemReadsAtOnce: number; restartBackoff: { firstSeconds: number; maxSeconds: number; }; restartDelaySeconds: number; pullRequestTokenSecret: string; ciWakeTimeoutMinutes: number; strictPaths: string[]; launches: ({ glob: string; level: string; base: string; } | { glob: string; level: string; from: string; until: string; })[]; sizeRange: { changes: number; fewest: number; middle: number; }; loosenedCheck: { added: string[]; removed: string[]; }; changeLabels: { fixWindow: number; fixSubject: string; revertSubject: string; revertTrailer: string; }; historyDepth: number; lockfiles: string[]; hookPaths: string[]; diffLimit: number; failureTail: number; kindMeanings: Record<string, string>; fallbackKind: string; docsOnly: { kind: string; paths: string[]; }; decisionModel: string; modelCallTimeoutSeconds: number; measuredModels: Record<\"alignment\" | \"kind\" | \"plan-outcome\" | \"repeat-pair\" | \"reply-option\" | \"review-verdict\" | \"taste\", Record<string, number>>; minJudgeRate: number; questionLimits: { cells: number; wordCells: number; }; questionTimeoutHours: number; priorityLabels: string[]; undoableLevels: string[]; ownerBranchPrefix: string; backgroundRuns: boolean; backgroundLaunchSeconds: number; backgroundPollSeconds: number; deniedRunCommands: string[]; runAutoMode: { environment: string[]; allow: string[]; hardDeny: string[]; }; runSlots: { enabled: boolean; pool: string; services: \"per-slot\" | \"shared\"; ports: { base: number; stride: number; }; projectPrefix: string; stepTimeoutSeconds: number; recipe: { prepare: string[]; refresh: { run: string; when: \"always\" | \"lockfile-changed\"; }[]; ready: string[]; }; }; ownerLogins: string[]; repeatAt: number; repeatPrecision: number; tasteRules: string[]; memoryMaxBytes: number; memoryUnusedRuns: number; measureWindow: number; loopIntervalSeconds: number; proofTimeoutSeconds: number; kindFloors: Record<string, string>; checkKind: string; breakCheck: boolean; mergeRisk: { weights: Record<\"alignment\" | \"errorDetection\" | \"impact\" | \"rollback\" | \"verification\", number>; cuts: [number, number]; }; schemaVersion: 1; levels: { name: string; review: \"agent\" | \"none\" | \"owner\"; release: \"after-proof\" | \"at-once\"; onBreak: \"block\" | \"follow-up\"; }[]; paths: { glob: string; level: string; proofs?: Record<string, string> | undefined; limit?: undefined | { fixes: number; of: number; }; }[]; roles: Record<string, { file: string; purpose: \"build\" | \"fix\" | \"plan\" | \"review\"; skills: string[]; }>; events: Record<string, { source: string; }>; kinds: string[]; commitIdentity: { name: string; email: string; }; safety?: Record<string, unknown> | undefined; dailyQuestionCap?: number | undefined; integrations?: Record<string, string> | undefined; ciToken?: undefined | { setUp: string; }; }, \"docsOnly\">) => boolean"
2978
+ "type": "(paths: readonly string[], { docsOnly }: Pick<{ checks: string[]; kindLabels: Record<string, string>; runPlaces: (\"ci\" | \"mac\")[]; runBranchPrefix: string; claimPrefix: string; readyLabel: string; mergeMethod: \"merge\" | \"rebase\" | \"squash\"; models: Record<\"light\" | \"standard\" | \"top\", string>; runners: number; tickIntervalSeconds: number; drainTimeoutSeconds: number; claimExpirySeconds: number; latestVersionCacheSeconds: number; watchCacheSeconds: number; watchLockSeconds: number; maxFixRuns: number; serviceLabel: string; maxCrashes: number; crashWindowSeconds: number; workerDownTicks: number; tokenWarnDays: number; ciSchedule: string; ciTickCacheSeconds: number; itemsDir: string; providerTimeoutSeconds: number; providerBackoff: { firstSeconds: number; maxSeconds: number; }; mergedShown: number; choicesShown: number; statusReadTimeoutSeconds: number; commandTimeoutSeconds: number; mergeTries: number; writeRaceRetries: number; itemReadsAtOnce: number; restartBackoff: { firstSeconds: number; maxSeconds: number; }; restartDelaySeconds: number; pullRequestToken: { from: \"app\"; clientIdSecret: string; privateKeySecret: string; } | { from: \"secret\"; secret: string; }; ciWakeTimeoutMinutes: number; ciOutboxMaxMegabytes: number; ciUsageLimitMaxHours: number; followUpsPerPass: number; publishTreeMaxMegabytes: number; ciMergeMarginMinutes: number; ciRunner: string | string[] | { group: string; labels?: string | string[] | undefined; }; ciContainer: null | string | { image: string; credentials?: undefined | { username: string; password: string; }; env?: Record<string, string> | undefined; ports?: (number | string)[] | undefined; volumes?: string[] | undefined; options?: string | undefined; }; ciEnv: Record<string, string>; ciClaudeAuth: \"env\" | \"oauth-token\"; strictPaths: string[]; launches: ({ glob: string; level: string; base: string; } | { glob: string; level: string; from: string; until: string; })[]; sizeRange: { changes: number; fewest: number; middle: number; }; loosenedCheck: { added: string[]; removed: string[]; }; changeLabels: { fixWindow: number; fixSubject: string; revertSubject: string; revertTrailer: string; }; historyDepth: number; lockfiles: string[]; hookPaths: string[]; diffLimit: number; failureTail: number; kindMeanings: Record<string, string>; fallbackKind: string; docsOnly: { kind: string; paths: string[]; }; decisionModel: string; modelCallTimeoutSeconds: number; measuredModels: Record<\"alignment\" | \"kind\" | \"plan-outcome\" | \"repeat-pair\" | \"reply-option\" | \"review-verdict\" | \"taste\", Record<string, number>>; minJudgeRate: number; questionLimits: { cells: number; wordCells: number; }; questionTimeoutHours: number; priorityLabels: string[]; undoableLevels: string[]; ownerBranchPrefix: string; backgroundRuns: boolean; backgroundLaunchSeconds: number; backgroundPollSeconds: number; deniedRunCommands: string[]; runAutoMode: { environment: string[]; allow: string[]; hardDeny: string[]; }; runSlots: { enabled: boolean; pool: string; services: \"per-slot\" | \"shared\"; ports: { base: number; stride: number; }; projectPrefix: string; stepTimeoutSeconds: number; recipe: { prepare: string[]; refresh: { run: string; when: \"always\" | \"lockfile-changed\"; }[]; ready: string[]; }; }; ownerLogins: string[]; repeatAt: number; repeatPrecision: number; tasteRules: string[]; memoryMaxBytes: number; memoryUnusedRuns: number; measureWindow: number; loopIntervalSeconds: number; proofTimeoutSeconds: number; kindFloors: Record<string, string>; checkKind: string; breakCheck: boolean; mergeRisk: { weights: Record<\"alignment\" | \"errorDetection\" | \"impact\" | \"rollback\" | \"verification\", number>; cuts: [number, number]; }; schemaVersion: 2; levels: { name: string; review: \"agent\" | \"none\" | \"owner\"; release: \"after-proof\" | \"at-once\"; onBreak: \"block\" | \"follow-up\"; }[]; paths: { glob: string; level: string; proofs?: Record<string, string> | undefined; limit?: undefined | { fixes: number; of: number; }; }[]; roles: Record<string, { file: string; purpose: \"build\" | \"fix\" | \"plan\" | \"review\"; skills: string[]; }>; events: Record<string, { source: string; }>; kinds: string[]; commitIdentity: { name: string; email: string; }; safety?: Record<string, unknown> | undefined; dailyQuestionCap?: number | undefined; integrations?: Partial<Record<\"answers\" | \"questions\" | \"release\" | \"work-source\", string>> | undefined; ciToken?: undefined | { setUp: string; }; }, \"docsOnly\">) => boolean"
2708
2979
  },
2709
2980
  "doesNeedReviewRun": {
2710
2981
  "type": "(route: Route) => boolean"
2711
2982
  },
2712
2983
  "doesRaiseLevel": {
2713
- "type": "({ rank, levels, answer, config: { mergeRisk } }: { readonly rank: number; readonly levels: number; readonly answer: { alignment: \"concern\" | \"partial\" | \"sound\"; verification: \"concern\" | \"partial\" | \"sound\"; }; readonly config: Pick<{ checks: string[]; kindLabels: Record<string, string>; runPlaces: (\"ci\" | \"mac\")[]; runBranchPrefix: string; claimPrefix: string; readyLabel: string; mergeMethod: \"merge\" | \"rebase\" | \"squash\"; models: Record<\"light\" | \"standard\" | \"top\", string>; runners: number; tickIntervalSeconds: number; drainTimeoutSeconds: number; claimExpirySeconds: number; latestVersionCacheSeconds: number; watchCacheSeconds: number; watchLockSeconds: number; maxFixRuns: number; serviceLabel: string; maxCrashes: number; crashWindowSeconds: number; workerDownTicks: number; tokenWarnDays: number; ciSchedule: string; ciTickCacheSeconds: number; itemsDir: string; providerTimeoutSeconds: number; providerBackoff: { firstSeconds: number; maxSeconds: number; }; mergedShown: number; choicesShown: number; statusReadTimeoutSeconds: number; commandTimeoutSeconds: number; mergeTries: number; writeRaceRetries: number; itemReadsAtOnce: number; restartBackoff: { firstSeconds: number; maxSeconds: number; }; restartDelaySeconds: number; pullRequestTokenSecret: string; ciWakeTimeoutMinutes: number; strictPaths: string[]; launches: ({ glob: string; level: string; base: string; } | { glob: string; level: string; from: string; until: string; })[]; sizeRange: { changes: number; fewest: number; middle: number; }; loosenedCheck: { added: string[]; removed: string[]; }; changeLabels: { fixWindow: number; fixSubject: string; revertSubject: string; revertTrailer: string; }; historyDepth: number; lockfiles: string[]; hookPaths: string[]; diffLimit: number; failureTail: number; kindMeanings: Record<string, string>; fallbackKind: string; docsOnly: { kind: string; paths: string[]; }; decisionModel: string; modelCallTimeoutSeconds: number; measuredModels: Record<\"alignment\" | \"kind\" | \"plan-outcome\" | \"repeat-pair\" | \"reply-option\" | \"review-verdict\" | \"taste\", Record<string, number>>; minJudgeRate: number; questionLimits: { cells: number; wordCells: number; }; questionTimeoutHours: number; priorityLabels: string[]; undoableLevels: string[]; ownerBranchPrefix: string; backgroundRuns: boolean; backgroundLaunchSeconds: number; backgroundPollSeconds: number; deniedRunCommands: string[]; runAutoMode: { environment: string[]; allow: string[]; hardDeny: string[]; }; runSlots: { enabled: boolean; pool: string; services: \"per-slot\" | \"shared\"; ports: { base: number; stride: number; }; projectPrefix: string; stepTimeoutSeconds: number; recipe: { prepare: string[]; refresh: { run: string; when: \"always\" | \"lockfile-changed\"; }[]; ready: string[]; }; }; ownerLogins: string[]; repeatAt: number; repeatPrecision: number; tasteRules: string[]; memoryMaxBytes: number; memoryUnusedRuns: number; measureWindow: number; loopIntervalSeconds: number; proofTimeoutSeconds: number; kindFloors: Record<string, string>; checkKind: string; breakCheck: boolean; mergeRisk: { weights: Record<\"alignment\" | \"errorDetection\" | \"impact\" | \"rollback\" | \"verification\", number>; cuts: [number, number]; }; schemaVersion: 1; levels: { name: string; review: \"agent\" | \"none\" | \"owner\"; release: \"after-proof\" | \"at-once\"; onBreak: \"block\" | \"follow-up\"; }[]; paths: { glob: string; level: string; proofs?: Record<string, string> | undefined; limit?: undefined | { fixes: number; of: number; }; }[]; roles: Record<string, { file: string; purpose: \"build\" | \"fix\" | \"plan\" | \"review\"; skills: string[]; }>; events: Record<string, { source: string; }>; kinds: string[]; commitIdentity: { name: string; email: string; }; safety?: Record<string, unknown> | undefined; dailyQuestionCap?: number | undefined; integrations?: Record<string, string> | undefined; ciToken?: undefined | { setUp: string; }; }, \"mergeRisk\">; }) => boolean"
2984
+ "type": "({ rank, levels, answer, config: { mergeRisk } }: { readonly rank: number; readonly levels: number; readonly answer: { alignment: \"concern\" | \"partial\" | \"sound\"; verification: \"concern\" | \"partial\" | \"sound\"; }; readonly config: Pick<{ checks: string[]; kindLabels: Record<string, string>; runPlaces: (\"ci\" | \"mac\")[]; runBranchPrefix: string; claimPrefix: string; readyLabel: string; mergeMethod: \"merge\" | \"rebase\" | \"squash\"; models: Record<\"light\" | \"standard\" | \"top\", string>; runners: number; tickIntervalSeconds: number; drainTimeoutSeconds: number; claimExpirySeconds: number; latestVersionCacheSeconds: number; watchCacheSeconds: number; watchLockSeconds: number; maxFixRuns: number; serviceLabel: string; maxCrashes: number; crashWindowSeconds: number; workerDownTicks: number; tokenWarnDays: number; ciSchedule: string; ciTickCacheSeconds: number; itemsDir: string; providerTimeoutSeconds: number; providerBackoff: { firstSeconds: number; maxSeconds: number; }; mergedShown: number; choicesShown: number; statusReadTimeoutSeconds: number; commandTimeoutSeconds: number; mergeTries: number; writeRaceRetries: number; itemReadsAtOnce: number; restartBackoff: { firstSeconds: number; maxSeconds: number; }; restartDelaySeconds: number; pullRequestToken: { from: \"app\"; clientIdSecret: string; privateKeySecret: string; } | { from: \"secret\"; secret: string; }; ciWakeTimeoutMinutes: number; ciOutboxMaxMegabytes: number; ciUsageLimitMaxHours: number; followUpsPerPass: number; publishTreeMaxMegabytes: number; ciMergeMarginMinutes: number; ciRunner: string | string[] | { group: string; labels?: string | string[] | undefined; }; ciContainer: null | string | { image: string; credentials?: undefined | { username: string; password: string; }; env?: Record<string, string> | undefined; ports?: (number | string)[] | undefined; volumes?: string[] | undefined; options?: string | undefined; }; ciEnv: Record<string, string>; ciClaudeAuth: \"env\" | \"oauth-token\"; strictPaths: string[]; launches: ({ glob: string; level: string; base: string; } | { glob: string; level: string; from: string; until: string; })[]; sizeRange: { changes: number; fewest: number; middle: number; }; loosenedCheck: { added: string[]; removed: string[]; }; changeLabels: { fixWindow: number; fixSubject: string; revertSubject: string; revertTrailer: string; }; historyDepth: number; lockfiles: string[]; hookPaths: string[]; diffLimit: number; failureTail: number; kindMeanings: Record<string, string>; fallbackKind: string; docsOnly: { kind: string; paths: string[]; }; decisionModel: string; modelCallTimeoutSeconds: number; measuredModels: Record<\"alignment\" | \"kind\" | \"plan-outcome\" | \"repeat-pair\" | \"reply-option\" | \"review-verdict\" | \"taste\", Record<string, number>>; minJudgeRate: number; questionLimits: { cells: number; wordCells: number; }; questionTimeoutHours: number; priorityLabels: string[]; undoableLevels: string[]; ownerBranchPrefix: string; backgroundRuns: boolean; backgroundLaunchSeconds: number; backgroundPollSeconds: number; deniedRunCommands: string[]; runAutoMode: { environment: string[]; allow: string[]; hardDeny: string[]; }; runSlots: { enabled: boolean; pool: string; services: \"per-slot\" | \"shared\"; ports: { base: number; stride: number; }; projectPrefix: string; stepTimeoutSeconds: number; recipe: { prepare: string[]; refresh: { run: string; when: \"always\" | \"lockfile-changed\"; }[]; ready: string[]; }; }; ownerLogins: string[]; repeatAt: number; repeatPrecision: number; tasteRules: string[]; memoryMaxBytes: number; memoryUnusedRuns: number; measureWindow: number; loopIntervalSeconds: number; proofTimeoutSeconds: number; kindFloors: Record<string, string>; checkKind: string; breakCheck: boolean; mergeRisk: { weights: Record<\"alignment\" | \"errorDetection\" | \"impact\" | \"rollback\" | \"verification\", number>; cuts: [number, number]; }; schemaVersion: 2; levels: { name: string; review: \"agent\" | \"none\" | \"owner\"; release: \"after-proof\" | \"at-once\"; onBreak: \"block\" | \"follow-up\"; }[]; paths: { glob: string; level: string; proofs?: Record<string, string> | undefined; limit?: undefined | { fixes: number; of: number; }; }[]; roles: Record<string, { file: string; purpose: \"build\" | \"fix\" | \"plan\" | \"review\"; skills: string[]; }>; events: Record<string, { source: string; }>; kinds: string[]; commitIdentity: { name: string; email: string; }; safety?: Record<string, unknown> | undefined; dailyQuestionCap?: number | undefined; integrations?: Partial<Record<\"answers\" | \"questions\" | \"release\" | \"work-source\", string>> | undefined; ciToken?: undefined | { setUp: string; }; }, \"mergeRisk\">; }) => boolean"
2714
2985
  },
2715
2986
  "doOverlap": {
2716
2987
  "type": "(a: Footprint, b: Footprint) => boolean"
@@ -2723,7 +2994,7 @@
2723
2994
  },
2724
2995
  "ENGINE_VERSION": {
2725
2996
  "type": "string",
2726
- "value": "0.2.0"
2997
+ "value": "0.4.0"
2727
2998
  },
2728
2999
  "engineImporters": {
2729
3000
  "type": "(files: readonly string[]) => { file: string; module: string; }[]"
@@ -2995,10 +3266,10 @@
2995
3266
  "type": "export type GitHubClient = InstanceType<typeof HumOctokit>;\n= Octokit & paginateGraphQLInterface"
2996
3267
  },
2997
3268
  "GitHubOptions": {
2998
- "type": "export type GitHubOptions = {\n readonly repo: string;\n readonly base: string;\n readonly claimPrefix: string;\n readonly readyLabel: string;\n readonly mergeMethod: (typeof MERGE_METHODS)[number];\n readonly client?: GitHubClient;\n readonly timeoutMs: number;\n};\n= { readonly repo: string; readonly base: string; readonly claimPrefix: string; readonly readyLabel: string; readonly mergeMethod: \"merge\" | \"rebase\" | \"squash\"; readonly client?: (Octokit & paginateGraphQLInterface) | undefined; readonly timeoutMs: number; }"
3269
+ "type": "export type GitHubOptions = {\n readonly repo: string;\n readonly base: string;\n readonly claimPrefix: string;\n readonly readyLabel: string;\n readonly mergeMethod: (typeof MERGE_METHODS)[number];\n readonly ownerLogins: readonly string[];\n readonly client?: GitHubClient;\n readonly timeoutMs: number;\n};\n= { readonly repo: string; readonly base: string; readonly claimPrefix: string; readonly readyLabel: string; readonly mergeMethod: \"merge\" | \"rebase\" | \"squash\"; readonly ownerLogins: readonly string[]; readonly client?: (Octokit & paginateGraphQLInterface) | undefined; readonly timeoutMs: number; }"
2999
3270
  },
3000
3271
  "gitHubPullRequests": {
3001
- "type": "(repo: string, options: { readonly timeoutMs: number; } & ({ readonly client: () => Promise<Octokit & paginateGraphQLInterface>; } | { readonly env: Readonly<Record<string, string | undefined>>; })) => PullRequests"
3272
+ "type": "(repo: string, options: RepoClientOptions) => PullRequests"
3002
3273
  },
3003
3274
  "GRADES": {
3004
3275
  "type": "{ readonly sound: 1; readonly partial: 2; readonly concern: 3; }",
@@ -3027,7 +3298,7 @@
3027
3298
  "type": "export type Histories = ReadonlyMap<string, PathHistory>;\n= ReadonlyMap<string, PathHistory>"
3028
3299
  },
3029
3300
  "historiesOf": {
3030
- "type": "(changes: readonly PastChange[], { paths, changeLabels }: Pick<{ checks: string[]; kindLabels: Record<string, string>; runPlaces: (\"ci\" | \"mac\")[]; runBranchPrefix: string; claimPrefix: string; readyLabel: string; mergeMethod: \"merge\" | \"rebase\" | \"squash\"; models: Record<\"light\" | \"standard\" | \"top\", string>; runners: number; tickIntervalSeconds: number; drainTimeoutSeconds: number; claimExpirySeconds: number; latestVersionCacheSeconds: number; watchCacheSeconds: number; watchLockSeconds: number; maxFixRuns: number; serviceLabel: string; maxCrashes: number; crashWindowSeconds: number; workerDownTicks: number; tokenWarnDays: number; ciSchedule: string; ciTickCacheSeconds: number; itemsDir: string; providerTimeoutSeconds: number; providerBackoff: { firstSeconds: number; maxSeconds: number; }; mergedShown: number; choicesShown: number; statusReadTimeoutSeconds: number; commandTimeoutSeconds: number; mergeTries: number; writeRaceRetries: number; itemReadsAtOnce: number; restartBackoff: { firstSeconds: number; maxSeconds: number; }; restartDelaySeconds: number; pullRequestTokenSecret: string; ciWakeTimeoutMinutes: number; strictPaths: string[]; launches: ({ glob: string; level: string; base: string; } | { glob: string; level: string; from: string; until: string; })[]; sizeRange: { changes: number; fewest: number; middle: number; }; loosenedCheck: { added: string[]; removed: string[]; }; changeLabels: { fixWindow: number; fixSubject: string; revertSubject: string; revertTrailer: string; }; historyDepth: number; lockfiles: string[]; hookPaths: string[]; diffLimit: number; failureTail: number; kindMeanings: Record<string, string>; fallbackKind: string; docsOnly: { kind: string; paths: string[]; }; decisionModel: string; modelCallTimeoutSeconds: number; measuredModels: Record<\"alignment\" | \"kind\" | \"plan-outcome\" | \"repeat-pair\" | \"reply-option\" | \"review-verdict\" | \"taste\", Record<string, number>>; minJudgeRate: number; questionLimits: { cells: number; wordCells: number; }; questionTimeoutHours: number; priorityLabels: string[]; undoableLevels: string[]; ownerBranchPrefix: string; backgroundRuns: boolean; backgroundLaunchSeconds: number; backgroundPollSeconds: number; deniedRunCommands: string[]; runAutoMode: { environment: string[]; allow: string[]; hardDeny: string[]; }; runSlots: { enabled: boolean; pool: string; services: \"per-slot\" | \"shared\"; ports: { base: number; stride: number; }; projectPrefix: string; stepTimeoutSeconds: number; recipe: { prepare: string[]; refresh: { run: string; when: \"always\" | \"lockfile-changed\"; }[]; ready: string[]; }; }; ownerLogins: string[]; repeatAt: number; repeatPrecision: number; tasteRules: string[]; memoryMaxBytes: number; memoryUnusedRuns: number; measureWindow: number; loopIntervalSeconds: number; proofTimeoutSeconds: number; kindFloors: Record<string, string>; checkKind: string; breakCheck: boolean; mergeRisk: { weights: Record<\"alignment\" | \"errorDetection\" | \"impact\" | \"rollback\" | \"verification\", number>; cuts: [number, number]; }; schemaVersion: 1; levels: { name: string; review: \"agent\" | \"none\" | \"owner\"; release: \"after-proof\" | \"at-once\"; onBreak: \"block\" | \"follow-up\"; }[]; paths: { glob: string; level: string; proofs?: Record<string, string> | undefined; limit?: undefined | { fixes: number; of: number; }; }[]; roles: Record<string, { file: string; purpose: \"build\" | \"fix\" | \"plan\" | \"review\"; skills: string[]; }>; events: Record<string, { source: string; }>; kinds: string[]; commitIdentity: { name: string; email: string; }; safety?: Record<string, unknown> | undefined; dailyQuestionCap?: number | undefined; integrations?: Record<string, string> | undefined; ciToken?: undefined | { setUp: string; }; }, \"changeLabels\" | \"paths\">, broken?: ReadonlySet<string>) => Histories"
3301
+ "type": "(changes: readonly PastChange[], { paths, changeLabels }: Pick<{ checks: string[]; kindLabels: Record<string, string>; runPlaces: (\"ci\" | \"mac\")[]; runBranchPrefix: string; claimPrefix: string; readyLabel: string; mergeMethod: \"merge\" | \"rebase\" | \"squash\"; models: Record<\"light\" | \"standard\" | \"top\", string>; runners: number; tickIntervalSeconds: number; drainTimeoutSeconds: number; claimExpirySeconds: number; latestVersionCacheSeconds: number; watchCacheSeconds: number; watchLockSeconds: number; maxFixRuns: number; serviceLabel: string; maxCrashes: number; crashWindowSeconds: number; workerDownTicks: number; tokenWarnDays: number; ciSchedule: string; ciTickCacheSeconds: number; itemsDir: string; providerTimeoutSeconds: number; providerBackoff: { firstSeconds: number; maxSeconds: number; }; mergedShown: number; choicesShown: number; statusReadTimeoutSeconds: number; commandTimeoutSeconds: number; mergeTries: number; writeRaceRetries: number; itemReadsAtOnce: number; restartBackoff: { firstSeconds: number; maxSeconds: number; }; restartDelaySeconds: number; pullRequestToken: { from: \"app\"; clientIdSecret: string; privateKeySecret: string; } | { from: \"secret\"; secret: string; }; ciWakeTimeoutMinutes: number; ciOutboxMaxMegabytes: number; ciUsageLimitMaxHours: number; followUpsPerPass: number; publishTreeMaxMegabytes: number; ciMergeMarginMinutes: number; ciRunner: string | string[] | { group: string; labels?: string | string[] | undefined; }; ciContainer: null | string | { image: string; credentials?: undefined | { username: string; password: string; }; env?: Record<string, string> | undefined; ports?: (number | string)[] | undefined; volumes?: string[] | undefined; options?: string | undefined; }; ciEnv: Record<string, string>; ciClaudeAuth: \"env\" | \"oauth-token\"; strictPaths: string[]; launches: ({ glob: string; level: string; base: string; } | { glob: string; level: string; from: string; until: string; })[]; sizeRange: { changes: number; fewest: number; middle: number; }; loosenedCheck: { added: string[]; removed: string[]; }; changeLabels: { fixWindow: number; fixSubject: string; revertSubject: string; revertTrailer: string; }; historyDepth: number; lockfiles: string[]; hookPaths: string[]; diffLimit: number; failureTail: number; kindMeanings: Record<string, string>; fallbackKind: string; docsOnly: { kind: string; paths: string[]; }; decisionModel: string; modelCallTimeoutSeconds: number; measuredModels: Record<\"alignment\" | \"kind\" | \"plan-outcome\" | \"repeat-pair\" | \"reply-option\" | \"review-verdict\" | \"taste\", Record<string, number>>; minJudgeRate: number; questionLimits: { cells: number; wordCells: number; }; questionTimeoutHours: number; priorityLabels: string[]; undoableLevels: string[]; ownerBranchPrefix: string; backgroundRuns: boolean; backgroundLaunchSeconds: number; backgroundPollSeconds: number; deniedRunCommands: string[]; runAutoMode: { environment: string[]; allow: string[]; hardDeny: string[]; }; runSlots: { enabled: boolean; pool: string; services: \"per-slot\" | \"shared\"; ports: { base: number; stride: number; }; projectPrefix: string; stepTimeoutSeconds: number; recipe: { prepare: string[]; refresh: { run: string; when: \"always\" | \"lockfile-changed\"; }[]; ready: string[]; }; }; ownerLogins: string[]; repeatAt: number; repeatPrecision: number; tasteRules: string[]; memoryMaxBytes: number; memoryUnusedRuns: number; measureWindow: number; loopIntervalSeconds: number; proofTimeoutSeconds: number; kindFloors: Record<string, string>; checkKind: string; breakCheck: boolean; mergeRisk: { weights: Record<\"alignment\" | \"errorDetection\" | \"impact\" | \"rollback\" | \"verification\", number>; cuts: [number, number]; }; schemaVersion: 2; levels: { name: string; review: \"agent\" | \"none\" | \"owner\"; release: \"after-proof\" | \"at-once\"; onBreak: \"block\" | \"follow-up\"; }[]; paths: { glob: string; level: string; proofs?: Record<string, string> | undefined; limit?: undefined | { fixes: number; of: number; }; }[]; roles: Record<string, { file: string; purpose: \"build\" | \"fix\" | \"plan\" | \"review\"; skills: string[]; }>; events: Record<string, { source: string; }>; kinds: string[]; commitIdentity: { name: string; email: string; }; safety?: Record<string, unknown> | undefined; dailyQuestionCap?: number | undefined; integrations?: Partial<Record<\"answers\" | \"questions\" | \"release\" | \"work-source\", string>> | undefined; ciToken?: undefined | { setUp: string; }; }, \"changeLabels\" | \"paths\">, broken?: ReadonlySet<string>) => Histories"
3031
3302
  },
3032
3303
  "Holder": {
3033
3304
  "type": "export type Holder = z.infer<typeof Holder>;\n= string & $brand<\"Holder\">\n$ZodBranded<ZodString, \"Holder\", \"out\">",
@@ -3038,14 +3309,14 @@
3038
3309
  }
3039
3310
  },
3040
3311
  "HumConfig": {
3041
- "type": "export type HumConfig = z.infer<typeof HumConfig>;\n= { checks: string[]; kindLabels: Record<string, string>; runPlaces: (\"ci\" | \"mac\")[]; runBranchPrefix: string; claimPrefix: string; readyLabel: string; mergeMethod: \"merge\" | \"rebase\" | \"squash\"; models: Record<\"light\" | \"standard\" | \"top\", string>; runners: number; tickIntervalSeconds: number; drainTimeoutSeconds: number; claimExpirySeconds: number; latestVersionCacheSeconds: number; watchCacheSeconds: number; watchLockSeconds: number; maxFixRuns: number; serviceLabel: string; maxCrashes: number; crashWindowSeconds: number; workerDownTicks: number; tokenWarnDays: number; ciSchedule: string; ciTickCacheSeconds: number; itemsDir: string; providerTimeoutSeconds: number; providerBackoff: { firstSeconds: number; maxSeconds: number; }; mergedShown: number; choicesShown: number; statusReadTimeoutSeconds: number; commandTimeoutSeconds: number; mergeTries: number; writeRaceRetries: number; itemReadsAtOnce: number; restartBackoff: { firstSeconds: number; maxSeconds: number; }; restartDelaySeconds: number; pullRequestTokenSecret: string; ciWakeTimeoutMinutes: number; strictPaths: string[]; launches: ({ glob: string; level: string; base: string; } | { glob: string; level: string; from: string; until: string; })[]; sizeRange: { changes: number; fewest: number; middle: number; }; loosenedCheck: { added: string[]; removed: string[]; }; changeLabels: { fixWindow: number; fixSubject: string; revertSubject: string; revertTrailer: string; }; historyDepth: number; lockfiles: string[]; hookPaths: string[]; diffLimit: number; failureTail: number; kindMeanings: Record<string, string>; fallbackKind: string; docsOnly: { kind: string; paths: string[]; }; decisionModel: string; modelCallTimeoutSeconds: number; measuredModels: Record<\"alignment\" | \"kind\" | \"plan-outcome\" | \"repeat-pair\" | \"reply-option\" | \"review-verdict\" | \"taste\", Record<string, number>>; minJudgeRate: number; questionLimits: { cells: number; wordCells: number; }; questionTimeoutHours: number; priorityLabels: string[]; undoableLevels: string[]; ownerBranchPrefix: string; backgroundRuns: boolean; backgroundLaunchSeconds: number; backgroundPollSeconds: number; deniedRunCommands: string[]; runAutoMode: { environment: string[]; allow: string[]; hardDeny: string[]; }; runSlots: { enabled: boolean; pool: string; services: \"per-slot\" | \"shared\"; ports: { base: number; stride: number; }; projectPrefix: string; stepTimeoutSeconds: number; recipe: { prepare: string[]; refresh: { run: string; when: \"always\" | \"lockfile-changed\"; }[]; ready: string[]; }; }; ownerLogins: string[]; repeatAt: number; repeatPrecision: number; tasteRules: string[]; memoryMaxBytes: number; memoryUnusedRuns: number; measureWindow: number; loopIntervalSeconds: number; proofTimeoutSeconds: number; kindFloors: Record<string, string>; checkKind: string; breakCheck: boolean; mergeRisk: { weights: Record<\"alignment\" | \"errorDetection\" | \"impact\" | \"rollback\" | \"verification\", number>; cuts: [number, number]; }; schemaVersion: 1; levels: { name: string; review: \"agent\" | \"none\" | \"owner\"; release: \"after-proof\" | \"at-once\"; onBreak: \"block\" | \"follow-up\"; }[]; paths: { glob: string; level: string; proofs?: Record<string, string> | undefined; limit?: undefined | { fixes: number; of: number; }; }[]; roles: Record<string, { file: string; purpose: \"build\" | \"fix\" | \"plan\" | \"review\"; skills: string[]; }>; events: Record<string, { source: string; }>; kinds: string[]; commitIdentity: { name: string; email: string; }; safety?: Record<string, unknown> | undefined; dailyQuestionCap?: number | undefined; integrations?: Record<string, string> | undefined; ciToken?: undefined | { setUp: string; }; }\nZodObject<{ checks: ZodDefault<ZodArray<ZodString>>; kindLabels: ZodDefault<ZodRecord<ZodString, ZodString>>; runPlaces: ZodDefault<ZodArray<ZodEnum<{ mac: \"mac\"; ci: \"ci\"; }>>>; runBranchPrefix: ZodDefault<ZodString>; claimPrefix: ZodDefault<ZodString>; readyLabel: ZodDefault<ZodString>; mergeMethod: ZodDefault<ZodEnum<{ merge: \"merge\"; squash: \"squash\"; rebase: \"rebase\"; }>>; models: ZodDefault<ZodRecord<ZodEnum<{ light: \"light\"; standard: \"standard\"; top: \"top\"; }>, ZodString>>; runners: ZodDefault<ZodInt>; tickIntervalSeconds: ZodDefault<ZodInt>; drainTimeoutSeconds: ZodDefault<ZodInt>; claimExpirySeconds: ZodDefault<ZodInt>; latestVersionCacheSeconds: ZodDefault<ZodInt>; watchCacheSeconds: ZodDefault<ZodInt>; watchLockSeconds: ZodDefault<ZodInt>; maxFixRuns: ZodDefault<ZodInt>; serviceLabel: ZodDefault<ZodString>; maxCrashes: ZodDefault<ZodInt>; crashWindowSeconds: ZodDefault<ZodInt>; workerDownTicks: ZodDefault<ZodInt>; tokenWarnDays: ZodDefault<ZodInt>; ciSchedule: ZodDefault<ZodString>; ciTickCacheSeconds: ZodDefault<ZodInt>; itemsDir: ZodDefault<ZodString>; providerTimeoutSeconds: ZodDefault<ZodInt>; providerBackoff: ZodDefault<ZodObject<{ firstSeconds: ZodNumber; maxSeconds: ZodNumber; }, $strict>>; mergedShown: ZodDefault<ZodInt>; choicesShown: ZodDefault<ZodInt>; statusReadTimeoutSeconds: ZodDefault<ZodInt>; commandTimeoutSeconds: ZodDefault<ZodInt>; mergeTries: ZodDefault<ZodInt>; writeRaceRetries: ZodDefault<ZodInt>; itemReadsAtOnce: ZodDefault<ZodInt>; restartBackoff: ZodDefault<ZodObject<{ firstSeconds: ZodNumber; maxSeconds: ZodNumber; }, $strict>>; restartDelaySeconds: ZodDefault<ZodInt>; pullRequestTokenSecret: ZodDefault<ZodString>; ciWakeTimeoutMinutes: ZodDefault<ZodInt>; strictPaths: ZodDefault<ZodArray<ZodString>>; launches: ZodDefault<ZodArray<ZodUnion<readonly [ZodObject<{ glob: ZodString; level: ZodString; from: ZodISODate; until: ZodISODate; }, $strict>, ZodObject<{ glob: ZodString; level: ZodString; base: ZodString; }, $strict>]>>>; sizeRange: ZodDefault<ZodObject<{ changes: ZodInt; fewest: ZodInt; middle: ZodNumber; }, $strict>>; loosenedCheck: ZodDefault<ZodObject<{ added: ZodArray<ZodString>; removed: ZodArray<ZodString>; }, $strict>>; changeLabels: ZodDefault<ZodObject<{ fixWindow: ZodInt; fixSubject: ZodString; revertSubject: ZodString; revertTrailer: ZodString; }, $strict>>; historyDepth: ZodDefault<ZodInt>; lockfiles: ZodDefault<ZodArray<ZodString>>; hookPaths: ZodDefault<ZodArray<ZodString>>; diffLimit: ZodDefault<ZodInt>; failureTail: ZodDefault<ZodInt>; kindMeanings: ZodDefault<ZodRecord<ZodString, ZodString>>; fallbackKind: ZodDefault<ZodString>; docsOnly: ZodDefault<ZodObject<{ kind: ZodString; paths: ZodArray<ZodString>; }, $strict>>; decisionModel: ZodDefault<ZodString>; modelCallTimeoutSeconds: ZodDefault<ZodInt>; measuredModels: ZodDefault<ZodRecord<ZodEnum<{ kind: \"kind\"; alignment: \"alignment\"; \"plan-outcome\": \"plan-outcome\"; \"review-verdict\": \"review-verdict\"; \"reply-option\": \"reply-option\"; \"repeat-pair\": \"repeat-pair\"; taste: \"taste\"; }>, ZodRecord<ZodString, ZodNumber>>>; minJudgeRate: ZodDefault<ZodNumber>; questionLimits: ZodDefault<ZodObject<{ cells: ZodInt; wordCells: ZodInt; }, $strict>>; questionTimeoutHours: ZodDefault<ZodInt>; priorityLabels: ZodDefault<ZodArray<ZodString>>; undoableLevels: ZodDefault<ZodArray<ZodString>>; ownerBranchPrefix: ZodDefault<ZodString>; backgroundRuns: ZodDefault<ZodBoolean>; backgroundLaunchSeconds: ZodDefault<ZodNumber>; backgroundPollSeconds: ZodDefault<ZodNumber>; deniedRunCommands: ZodDefault<ZodArray<ZodString>>; runAutoMode: ZodDefault<ZodObject<{ environment: ZodArray<ZodString>; allow: ZodArray<ZodString>; hardDeny: ZodArray<ZodString>; }, $strict>>; runSlots: ZodDefault<ZodObject<{ enabled: ZodBoolean; pool: ZodString; services: ZodEnum<{ \"per-slot\": \"per-slot\"; shared: \"shared\"; }>; ports: ZodObject<{ base: ZodInt; stride: ZodInt; }, $strict>; projectPrefix: ZodString; stepTimeoutSeconds: ZodInt; recipe: ZodObject<{ prepare: ZodArray<ZodString>; refresh: ZodArray<ZodObject<{ run: ZodString; when: ZodEnum<{ always: \"always\"; \"lockfile-changed\": \"lockfile-changed\"; }>; }, $strict>>; ready: ZodArray<ZodString>; }, $strict>; }, $strict>>; ownerLogins: ZodDefault<ZodArray<ZodString>>; repeatAt: ZodDefault<ZodInt>; repeatPrecision: ZodDefault<ZodNumber>; tasteRules: ZodDefault<ZodArray<ZodString>>; memoryMaxBytes: ZodDefault<ZodInt>; memoryUnusedRuns: ZodDefault<ZodInt>; measureWindow: ZodDefault<ZodInt>; loopIntervalSeconds: ZodDefault<ZodInt>; proofTimeoutSeconds: ZodDefault<ZodInt>; kindFloors: ZodDefault<ZodRecord<ZodString, ZodString>>; checkKind: ZodDefault<ZodString>; breakCheck: ZodDefault<ZodBoolean>; mergeRisk: ZodDefault<ZodObject<{ weights: ZodRecord<ZodEnum<{ alignment: \"alignment\"; verification: \"verification\"; impact: \"impact\"; rollback: \"rollback\"; errorDetection: \"errorDetection\"; }>, ZodNumber>; cuts: ZodTuple<[ZodNumber, ZodNumber], null>; }, $strict>>; schemaVersion: ZodLiteral<1>; levels: ZodArray<ZodObject<{ name: ZodString; review: ZodEnum<{ none: \"none\"; agent: \"agent\"; owner: \"owner\"; }>; release: ZodEnum<{ \"at-once\": \"at-once\"; \"after-proof\": \"after-proof\"; }>; onBreak: ZodEnum<{ \"follow-up\": \"follow-up\"; block: \"block\"; }>; }, $strict>>; paths: ZodArray<ZodObject<{ glob: ZodString; level: ZodString; proofs: ZodOptional<ZodRecord<ZodString, ZodString>>; limit: ZodOptional<ZodObject<{ fixes: ZodInt; of: ZodInt; }, $strict>>; }, $strict>>; roles: ZodRecord<ZodString, ZodObject<{ file: ZodString; purpose: ZodEnum<{ fix: \"fix\"; review: \"review\"; plan: \"plan\"; build: \"build\"; }>; skills: ZodArray<ZodString>; }, $strict>>; events: ZodRecord<ZodString, ZodObject<{ source: ZodString; }, $strict>>; kinds: ZodArray<ZodString>; safety: ZodOptional<ZodRecord<ZodString, ZodUnknown>>; dailyQuestionCap: ZodOptional<ZodNumber>; integrations: ZodOptional<ZodRecord<ZodString, ZodString>>; ciToken: ZodOptional<ZodObject<{ setUp: ZodISODate; }, $strict>>; commitIdentity: ZodObject<{ name: ZodString; email: ZodString; }, $strict>; }, $strict>",
3312
+ "type": "export type HumConfig = z.infer<typeof HumConfig>;\n= { checks: string[]; kindLabels: Record<string, string>; runPlaces: (\"ci\" | \"mac\")[]; runBranchPrefix: string; claimPrefix: string; readyLabel: string; mergeMethod: \"merge\" | \"rebase\" | \"squash\"; models: Record<\"light\" | \"standard\" | \"top\", string>; runners: number; tickIntervalSeconds: number; drainTimeoutSeconds: number; claimExpirySeconds: number; latestVersionCacheSeconds: number; watchCacheSeconds: number; watchLockSeconds: number; maxFixRuns: number; serviceLabel: string; maxCrashes: number; crashWindowSeconds: number; workerDownTicks: number; tokenWarnDays: number; ciSchedule: string; ciTickCacheSeconds: number; itemsDir: string; providerTimeoutSeconds: number; providerBackoff: { firstSeconds: number; maxSeconds: number; }; mergedShown: number; choicesShown: number; statusReadTimeoutSeconds: number; commandTimeoutSeconds: number; mergeTries: number; writeRaceRetries: number; itemReadsAtOnce: number; restartBackoff: { firstSeconds: number; maxSeconds: number; }; restartDelaySeconds: number; pullRequestToken: { from: \"app\"; clientIdSecret: string; privateKeySecret: string; } | { from: \"secret\"; secret: string; }; ciWakeTimeoutMinutes: number; ciOutboxMaxMegabytes: number; ciUsageLimitMaxHours: number; followUpsPerPass: number; publishTreeMaxMegabytes: number; ciMergeMarginMinutes: number; ciRunner: string | string[] | { group: string; labels?: string | string[] | undefined; }; ciContainer: null | string | { image: string; credentials?: undefined | { username: string; password: string; }; env?: Record<string, string> | undefined; ports?: (number | string)[] | undefined; volumes?: string[] | undefined; options?: string | undefined; }; ciEnv: Record<string, string>; ciClaudeAuth: \"env\" | \"oauth-token\"; strictPaths: string[]; launches: ({ glob: string; level: string; base: string; } | { glob: string; level: string; from: string; until: string; })[]; sizeRange: { changes: number; fewest: number; middle: number; }; loosenedCheck: { added: string[]; removed: string[]; }; changeLabels: { fixWindow: number; fixSubject: string; revertSubject: string; revertTrailer: string; }; historyDepth: number; lockfiles: string[]; hookPaths: string[]; diffLimit: number; failureTail: number; kindMeanings: Record<string, string>; fallbackKind: string; docsOnly: { kind: string; paths: string[]; }; decisionModel: string; modelCallTimeoutSeconds: number; measuredModels: Record<\"alignment\" | \"kind\" | \"plan-outcome\" | \"repeat-pair\" | \"reply-option\" | \"review-verdict\" | \"taste\", Record<string, number>>; minJudgeRate: number; questionLimits: { cells: number; wordCells: number; }; questionTimeoutHours: number; priorityLabels: string[]; undoableLevels: string[]; ownerBranchPrefix: string; backgroundRuns: boolean; backgroundLaunchSeconds: number; backgroundPollSeconds: number; deniedRunCommands: string[]; runAutoMode: { environment: string[]; allow: string[]; hardDeny: string[]; }; runSlots: { enabled: boolean; pool: string; services: \"per-slot\" | \"shared\"; ports: { base: number; stride: number; }; projectPrefix: string; stepTimeoutSeconds: number; recipe: { prepare: string[]; refresh: { run: string; when: \"always\" | \"lockfile-changed\"; }[]; ready: string[]; }; }; ownerLogins: string[]; repeatAt: number; repeatPrecision: number; tasteRules: string[]; memoryMaxBytes: number; memoryUnusedRuns: number; measureWindow: number; loopIntervalSeconds: number; proofTimeoutSeconds: number; kindFloors: Record<string, string>; checkKind: string; breakCheck: boolean; mergeRisk: { weights: Record<\"alignment\" | \"errorDetection\" | \"impact\" | \"rollback\" | \"verification\", number>; cuts: [number, number]; }; schemaVersion: 2; levels: { name: string; review: \"agent\" | \"none\" | \"owner\"; release: \"after-proof\" | \"at-once\"; onBreak: \"block\" | \"follow-up\"; }[]; paths: { glob: string; level: string; proofs?: Record<string, string> | undefined; limit?: undefined | { fixes: number; of: number; }; }[]; roles: Record<string, { file: string; purpose: \"build\" | \"fix\" | \"plan\" | \"review\"; skills: string[]; }>; events: Record<string, { source: string; }>; kinds: string[]; commitIdentity: { name: string; email: string; }; safety?: Record<string, unknown> | undefined; dailyQuestionCap?: number | undefined; integrations?: Partial<Record<\"answers\" | \"questions\" | \"release\" | \"work-source\", string>> | undefined; ciToken?: undefined | { setUp: string; }; }\nZodObject<{ checks: ZodDefault<ZodArray<ZodString>>; kindLabels: ZodDefault<ZodRecord<ZodString, ZodString>>; runPlaces: ZodDefault<ZodArray<ZodEnum<{ mac: \"mac\"; ci: \"ci\"; }>>>; runBranchPrefix: ZodDefault<ZodString>; claimPrefix: ZodDefault<ZodString>; readyLabel: ZodDefault<ZodString>; mergeMethod: ZodDefault<ZodEnum<{ merge: \"merge\"; squash: \"squash\"; rebase: \"rebase\"; }>>; models: ZodDefault<ZodRecord<ZodEnum<{ light: \"light\"; standard: \"standard\"; top: \"top\"; }>, ZodString>>; runners: ZodDefault<ZodInt>; tickIntervalSeconds: ZodDefault<ZodInt>; drainTimeoutSeconds: ZodDefault<ZodInt>; claimExpirySeconds: ZodDefault<ZodInt>; latestVersionCacheSeconds: ZodDefault<ZodInt>; watchCacheSeconds: ZodDefault<ZodInt>; watchLockSeconds: ZodDefault<ZodInt>; maxFixRuns: ZodDefault<ZodInt>; serviceLabel: ZodDefault<ZodString>; maxCrashes: ZodDefault<ZodInt>; crashWindowSeconds: ZodDefault<ZodInt>; workerDownTicks: ZodDefault<ZodInt>; tokenWarnDays: ZodDefault<ZodInt>; ciSchedule: ZodDefault<ZodString>; ciTickCacheSeconds: ZodDefault<ZodInt>; itemsDir: ZodDefault<ZodString>; providerTimeoutSeconds: ZodDefault<ZodInt>; providerBackoff: ZodDefault<ZodObject<{ firstSeconds: ZodNumber; maxSeconds: ZodNumber; }, $strict>>; mergedShown: ZodDefault<ZodInt>; choicesShown: ZodDefault<ZodInt>; statusReadTimeoutSeconds: ZodDefault<ZodInt>; commandTimeoutSeconds: ZodDefault<ZodInt>; mergeTries: ZodDefault<ZodInt>; writeRaceRetries: ZodDefault<ZodInt>; itemReadsAtOnce: ZodDefault<ZodInt>; restartBackoff: ZodDefault<ZodObject<{ firstSeconds: ZodNumber; maxSeconds: ZodNumber; }, $strict>>; restartDelaySeconds: ZodDefault<ZodInt>; pullRequestToken: ZodDefault<ZodDiscriminatedUnion<[ZodObject<{ from: ZodLiteral<\"secret\">; secret: ZodString; }, $strict>, ZodObject<{ from: ZodLiteral<\"app\">; clientIdSecret: ZodString; privateKeySecret: ZodString; }, $strict>], \"from\">>; ciWakeTimeoutMinutes: ZodDefault<ZodInt>; ciOutboxMaxMegabytes: ZodDefault<ZodInt>; ciUsageLimitMaxHours: ZodDefault<ZodInt>; followUpsPerPass: ZodDefault<ZodInt>; publishTreeMaxMegabytes: ZodDefault<ZodInt>; ciMergeMarginMinutes: ZodDefault<ZodInt>; ciRunner: ZodDefault<ZodUnion<readonly [ZodUnion<readonly [ZodString, ZodArray<ZodString>]>, ZodObject<{ group: ZodString; labels: ZodOptional<ZodUnion<readonly [ZodString, ZodArray<ZodString>]>>; }, $strict>]>>; ciContainer: ZodDefault<ZodNullable<ZodUnion<readonly [ZodString, ZodObject<{ image: ZodString; credentials: ZodOptional<ZodObject<{ username: ZodString; password: ZodString; }, $strict>>; env: ZodOptional<ZodRecord<ZodString, ZodString>>; ports: ZodOptional<ZodArray<ZodUnion<readonly [ZodString, ZodInt]>>>; volumes: ZodOptional<ZodArray<ZodString>>; options: ZodOptional<ZodString>; }, $strict>]>>>; ciEnv: ZodDefault<ZodRecord<ZodString, ZodString>>; ciClaudeAuth: ZodDefault<ZodEnum<{ env: \"env\"; \"oauth-token\": \"oauth-token\"; }>>; strictPaths: ZodDefault<ZodArray<ZodString>>; launches: ZodDefault<ZodArray<ZodUnion<readonly [ZodObject<{ glob: ZodString; level: ZodString; from: ZodISODate; until: ZodISODate; }, $strict>, ZodObject<{ glob: ZodString; level: ZodString; base: ZodString; }, $strict>]>>>; sizeRange: ZodDefault<ZodObject<{ changes: ZodInt; fewest: ZodInt; middle: ZodNumber; }, $strict>>; loosenedCheck: ZodDefault<ZodObject<{ added: ZodArray<ZodString>; removed: ZodArray<ZodString>; }, $strict>>; changeLabels: ZodDefault<ZodObject<{ fixWindow: ZodInt; fixSubject: ZodString; revertSubject: ZodString; revertTrailer: ZodString; }, $strict>>; historyDepth: ZodDefault<ZodInt>; lockfiles: ZodDefault<ZodArray<ZodString>>; hookPaths: ZodDefault<ZodArray<ZodString>>; diffLimit: ZodDefault<ZodInt>; failureTail: ZodDefault<ZodInt>; kindMeanings: ZodDefault<ZodRecord<ZodString, ZodString>>; fallbackKind: ZodDefault<ZodString>; docsOnly: ZodDefault<ZodObject<{ kind: ZodString; paths: ZodArray<ZodString>; }, $strict>>; decisionModel: ZodDefault<ZodString>; modelCallTimeoutSeconds: ZodDefault<ZodInt>; measuredModels: ZodDefault<ZodRecord<ZodEnum<{ kind: \"kind\"; alignment: \"alignment\"; \"plan-outcome\": \"plan-outcome\"; \"review-verdict\": \"review-verdict\"; \"reply-option\": \"reply-option\"; \"repeat-pair\": \"repeat-pair\"; taste: \"taste\"; }>, ZodRecord<ZodString, ZodNumber>>>; minJudgeRate: ZodDefault<ZodNumber>; questionLimits: ZodDefault<ZodObject<{ cells: ZodInt; wordCells: ZodInt; }, $strict>>; questionTimeoutHours: ZodDefault<ZodInt>; priorityLabels: ZodDefault<ZodArray<ZodString>>; undoableLevels: ZodDefault<ZodArray<ZodString>>; ownerBranchPrefix: ZodDefault<ZodString>; backgroundRuns: ZodDefault<ZodBoolean>; backgroundLaunchSeconds: ZodDefault<ZodNumber>; backgroundPollSeconds: ZodDefault<ZodNumber>; deniedRunCommands: ZodDefault<ZodArray<ZodString>>; runAutoMode: ZodDefault<ZodObject<{ environment: ZodArray<ZodString>; allow: ZodArray<ZodString>; hardDeny: ZodArray<ZodString>; }, $strict>>; runSlots: ZodDefault<ZodObject<{ enabled: ZodBoolean; pool: ZodString; services: ZodEnum<{ \"per-slot\": \"per-slot\"; shared: \"shared\"; }>; ports: ZodObject<{ base: ZodInt; stride: ZodInt; }, $strict>; projectPrefix: ZodString; stepTimeoutSeconds: ZodInt; recipe: ZodObject<{ prepare: ZodArray<ZodString>; refresh: ZodArray<ZodObject<{ run: ZodString; when: ZodEnum<{ always: \"always\"; \"lockfile-changed\": \"lockfile-changed\"; }>; }, $strict>>; ready: ZodArray<ZodString>; }, $strict>; }, $strict>>; ownerLogins: ZodDefault<ZodArray<ZodString>>; repeatAt: ZodDefault<ZodInt>; repeatPrecision: ZodDefault<ZodNumber>; tasteRules: ZodDefault<ZodArray<ZodString>>; memoryMaxBytes: ZodDefault<ZodInt>; memoryUnusedRuns: ZodDefault<ZodInt>; measureWindow: ZodDefault<ZodInt>; loopIntervalSeconds: ZodDefault<ZodInt>; proofTimeoutSeconds: ZodDefault<ZodInt>; kindFloors: ZodDefault<ZodRecord<ZodString, ZodString>>; checkKind: ZodDefault<ZodString>; breakCheck: ZodDefault<ZodBoolean>; mergeRisk: ZodDefault<ZodObject<{ weights: ZodRecord<ZodEnum<{ alignment: \"alignment\"; verification: \"verification\"; impact: \"impact\"; rollback: \"rollback\"; errorDetection: \"errorDetection\"; }>, ZodNumber>; cuts: ZodTuple<[ZodNumber, ZodNumber], null>; }, $strict>>; schemaVersion: ZodLiteral<2>; levels: ZodArray<ZodObject<{ name: ZodString; review: ZodEnum<{ none: \"none\"; agent: \"agent\"; owner: \"owner\"; }>; release: ZodEnum<{ \"at-once\": \"at-once\"; \"after-proof\": \"after-proof\"; }>; onBreak: ZodEnum<{ \"follow-up\": \"follow-up\"; block: \"block\"; }>; }, $strict>>; paths: ZodArray<ZodObject<{ glob: ZodString; level: ZodString; proofs: ZodOptional<ZodRecord<ZodString, ZodString>>; limit: ZodOptional<ZodObject<{ fixes: ZodInt; of: ZodInt; }, $strict>>; }, $strict>>; roles: ZodRecord<ZodString, ZodObject<{ file: ZodString; purpose: ZodEnum<{ fix: \"fix\"; review: \"review\"; plan: \"plan\"; build: \"build\"; }>; skills: ZodArray<ZodString>; }, $strict>>; events: ZodRecord<ZodString, ZodObject<{ source: ZodString; }, $strict>>; kinds: ZodArray<ZodString>; safety: ZodOptional<ZodRecord<ZodString, ZodUnknown>>; dailyQuestionCap: ZodOptional<ZodNumber>; integrations: ZodOptional<ZodRecord<ZodEnum<{ questions: \"questions\"; release: \"release\"; \"work-source\": \"work-source\"; answers: \"answers\"; }> & $partial, ZodString>>; ciToken: ZodOptional<ZodObject<{ setUp: ZodISODate; }, $strict>>; commitIdentity: ZodObject<{ name: ZodString; email: ZodString; }, $strict>; }, $strict>",
3042
3313
  "schema": {
3043
3314
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3044
3315
  "type": "object",
3045
3316
  "properties": {
3046
3317
  "schemaVersion": {
3047
3318
  "type": "number",
3048
- "const": 1
3319
+ "const": 2
3049
3320
  },
3050
3321
  "levels": {
3051
3322
  "minItems": 1,
@@ -3223,7 +3494,12 @@
3223
3494
  "type": "object",
3224
3495
  "propertyNames": {
3225
3496
  "type": "string",
3226
- "minLength": 1
3497
+ "enum": [
3498
+ "work-source",
3499
+ "questions",
3500
+ "answers",
3501
+ "release"
3502
+ ]
3227
3503
  },
3228
3504
  "additionalProperties": {
3229
3505
  "type": "string",
@@ -3538,10 +3814,54 @@
3538
3814
  "exclusiveMinimum": 0,
3539
3815
  "maximum": 9007199254740991
3540
3816
  },
3541
- "pullRequestTokenSecret": {
3542
- "default": "HUM_GITHUB_TOKEN",
3543
- "type": "string",
3544
- "minLength": 1
3817
+ "pullRequestToken": {
3818
+ "default": {
3819
+ "from": "secret",
3820
+ "secret": "HUM_GITHUB_TOKEN"
3821
+ },
3822
+ "oneOf": [
3823
+ {
3824
+ "type": "object",
3825
+ "properties": {
3826
+ "from": {
3827
+ "type": "string",
3828
+ "const": "secret"
3829
+ },
3830
+ "secret": {
3831
+ "type": "string",
3832
+ "pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
3833
+ }
3834
+ },
3835
+ "required": [
3836
+ "from",
3837
+ "secret"
3838
+ ],
3839
+ "additionalProperties": false
3840
+ },
3841
+ {
3842
+ "type": "object",
3843
+ "properties": {
3844
+ "from": {
3845
+ "type": "string",
3846
+ "const": "app"
3847
+ },
3848
+ "clientIdSecret": {
3849
+ "type": "string",
3850
+ "pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
3851
+ },
3852
+ "privateKeySecret": {
3853
+ "type": "string",
3854
+ "pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
3855
+ }
3856
+ },
3857
+ "required": [
3858
+ "from",
3859
+ "clientIdSecret",
3860
+ "privateKeySecret"
3861
+ ],
3862
+ "additionalProperties": false
3863
+ }
3864
+ ]
3545
3865
  },
3546
3866
  "ciWakeTimeoutMinutes": {
3547
3867
  "default": 60,
@@ -3549,6 +3869,189 @@
3549
3869
  "exclusiveMinimum": 0,
3550
3870
  "maximum": 9007199254740991
3551
3871
  },
3872
+ "ciOutboxMaxMegabytes": {
3873
+ "default": 200,
3874
+ "type": "integer",
3875
+ "exclusiveMinimum": 0,
3876
+ "maximum": 9007199254740991
3877
+ },
3878
+ "ciUsageLimitMaxHours": {
3879
+ "default": 168,
3880
+ "type": "integer",
3881
+ "exclusiveMinimum": 0,
3882
+ "maximum": 9007199254740991
3883
+ },
3884
+ "followUpsPerPass": {
3885
+ "default": 10,
3886
+ "type": "integer",
3887
+ "exclusiveMinimum": 0,
3888
+ "maximum": 9007199254740991
3889
+ },
3890
+ "publishTreeMaxMegabytes": {
3891
+ "default": 1024,
3892
+ "type": "integer",
3893
+ "exclusiveMinimum": 0,
3894
+ "maximum": 9007199254740991
3895
+ },
3896
+ "ciMergeMarginMinutes": {
3897
+ "default": 10,
3898
+ "type": "integer",
3899
+ "exclusiveMinimum": 0,
3900
+ "maximum": 9007199254740991
3901
+ },
3902
+ "ciRunner": {
3903
+ "default": "ubuntu-latest",
3904
+ "anyOf": [
3905
+ {
3906
+ "anyOf": [
3907
+ {
3908
+ "type": "string",
3909
+ "minLength": 1
3910
+ },
3911
+ {
3912
+ "minItems": 1,
3913
+ "type": "array",
3914
+ "items": {
3915
+ "type": "string",
3916
+ "minLength": 1
3917
+ }
3918
+ }
3919
+ ]
3920
+ },
3921
+ {
3922
+ "type": "object",
3923
+ "properties": {
3924
+ "group": {
3925
+ "type": "string",
3926
+ "minLength": 1
3927
+ },
3928
+ "labels": {
3929
+ "anyOf": [
3930
+ {
3931
+ "type": "string",
3932
+ "minLength": 1
3933
+ },
3934
+ {
3935
+ "minItems": 1,
3936
+ "type": "array",
3937
+ "items": {
3938
+ "type": "string",
3939
+ "minLength": 1
3940
+ }
3941
+ }
3942
+ ]
3943
+ }
3944
+ },
3945
+ "required": [
3946
+ "group"
3947
+ ],
3948
+ "additionalProperties": false
3949
+ }
3950
+ ]
3951
+ },
3952
+ "ciContainer": {
3953
+ "default": null,
3954
+ "anyOf": [
3955
+ {
3956
+ "anyOf": [
3957
+ {
3958
+ "type": "string",
3959
+ "minLength": 1
3960
+ },
3961
+ {
3962
+ "type": "object",
3963
+ "properties": {
3964
+ "image": {
3965
+ "type": "string",
3966
+ "minLength": 1
3967
+ },
3968
+ "credentials": {
3969
+ "type": "object",
3970
+ "properties": {
3971
+ "username": {
3972
+ "type": "string",
3973
+ "minLength": 1
3974
+ },
3975
+ "password": {
3976
+ "type": "string",
3977
+ "minLength": 1
3978
+ }
3979
+ },
3980
+ "required": [
3981
+ "username",
3982
+ "password"
3983
+ ],
3984
+ "additionalProperties": false
3985
+ },
3986
+ "env": {
3987
+ "type": "object",
3988
+ "propertyNames": {
3989
+ "type": "string",
3990
+ "pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
3991
+ },
3992
+ "additionalProperties": {
3993
+ "type": "string"
3994
+ }
3995
+ },
3996
+ "ports": {
3997
+ "type": "array",
3998
+ "items": {
3999
+ "anyOf": [
4000
+ {
4001
+ "type": "string",
4002
+ "minLength": 1
4003
+ },
4004
+ {
4005
+ "type": "integer",
4006
+ "exclusiveMinimum": 0,
4007
+ "maximum": 9007199254740991
4008
+ }
4009
+ ]
4010
+ }
4011
+ },
4012
+ "volumes": {
4013
+ "type": "array",
4014
+ "items": {
4015
+ "type": "string",
4016
+ "minLength": 1
4017
+ }
4018
+ },
4019
+ "options": {
4020
+ "type": "string",
4021
+ "minLength": 1
4022
+ }
4023
+ },
4024
+ "required": [
4025
+ "image"
4026
+ ],
4027
+ "additionalProperties": false
4028
+ }
4029
+ ]
4030
+ },
4031
+ {
4032
+ "type": "null"
4033
+ }
4034
+ ]
4035
+ },
4036
+ "ciEnv": {
4037
+ "default": {},
4038
+ "type": "object",
4039
+ "propertyNames": {
4040
+ "type": "string",
4041
+ "pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
4042
+ },
4043
+ "additionalProperties": {
4044
+ "type": "string"
4045
+ }
4046
+ },
4047
+ "ciClaudeAuth": {
4048
+ "default": "oauth-token",
4049
+ "type": "string",
4050
+ "enum": [
4051
+ "oauth-token",
4052
+ "env"
4053
+ ]
4054
+ },
3552
4055
  "strictPaths": {
3553
4056
  "default": [],
3554
4057
  "type": "array",
@@ -4332,7 +4835,7 @@
4332
4835
  "type": "(branch: string, { runBranchPrefix, claimPrefix }: Naming) => boolean"
4333
4836
  },
4334
4837
  "isTrusted": {
4335
- "type": "(models: readonly string[], boundary: \"alignment\" | \"kind\" | \"plan-outcome\" | \"repeat-pair\" | \"reply-option\" | \"review-verdict\" | \"taste\", { measuredModels, minJudgeRate }: Pick<{ checks: string[]; kindLabels: Record<string, string>; runPlaces: (\"ci\" | \"mac\")[]; runBranchPrefix: string; claimPrefix: string; readyLabel: string; mergeMethod: \"merge\" | \"rebase\" | \"squash\"; models: Record<\"light\" | \"standard\" | \"top\", string>; runners: number; tickIntervalSeconds: number; drainTimeoutSeconds: number; claimExpirySeconds: number; latestVersionCacheSeconds: number; watchCacheSeconds: number; watchLockSeconds: number; maxFixRuns: number; serviceLabel: string; maxCrashes: number; crashWindowSeconds: number; workerDownTicks: number; tokenWarnDays: number; ciSchedule: string; ciTickCacheSeconds: number; itemsDir: string; providerTimeoutSeconds: number; providerBackoff: { firstSeconds: number; maxSeconds: number; }; mergedShown: number; choicesShown: number; statusReadTimeoutSeconds: number; commandTimeoutSeconds: number; mergeTries: number; writeRaceRetries: number; itemReadsAtOnce: number; restartBackoff: { firstSeconds: number; maxSeconds: number; }; restartDelaySeconds: number; pullRequestTokenSecret: string; ciWakeTimeoutMinutes: number; strictPaths: string[]; launches: ({ glob: string; level: string; base: string; } | { glob: string; level: string; from: string; until: string; })[]; sizeRange: { changes: number; fewest: number; middle: number; }; loosenedCheck: { added: string[]; removed: string[]; }; changeLabels: { fixWindow: number; fixSubject: string; revertSubject: string; revertTrailer: string; }; historyDepth: number; lockfiles: string[]; hookPaths: string[]; diffLimit: number; failureTail: number; kindMeanings: Record<string, string>; fallbackKind: string; docsOnly: { kind: string; paths: string[]; }; decisionModel: string; modelCallTimeoutSeconds: number; measuredModels: Record<\"alignment\" | \"kind\" | \"plan-outcome\" | \"repeat-pair\" | \"reply-option\" | \"review-verdict\" | \"taste\", Record<string, number>>; minJudgeRate: number; questionLimits: { cells: number; wordCells: number; }; questionTimeoutHours: number; priorityLabels: string[]; undoableLevels: string[]; ownerBranchPrefix: string; backgroundRuns: boolean; backgroundLaunchSeconds: number; backgroundPollSeconds: number; deniedRunCommands: string[]; runAutoMode: { environment: string[]; allow: string[]; hardDeny: string[]; }; runSlots: { enabled: boolean; pool: string; services: \"per-slot\" | \"shared\"; ports: { base: number; stride: number; }; projectPrefix: string; stepTimeoutSeconds: number; recipe: { prepare: string[]; refresh: { run: string; when: \"always\" | \"lockfile-changed\"; }[]; ready: string[]; }; }; ownerLogins: string[]; repeatAt: number; repeatPrecision: number; tasteRules: string[]; memoryMaxBytes: number; memoryUnusedRuns: number; measureWindow: number; loopIntervalSeconds: number; proofTimeoutSeconds: number; kindFloors: Record<string, string>; checkKind: string; breakCheck: boolean; mergeRisk: { weights: Record<\"alignment\" | \"errorDetection\" | \"impact\" | \"rollback\" | \"verification\", number>; cuts: [number, number]; }; schemaVersion: 1; levels: { name: string; review: \"agent\" | \"none\" | \"owner\"; release: \"after-proof\" | \"at-once\"; onBreak: \"block\" | \"follow-up\"; }[]; paths: { glob: string; level: string; proofs?: Record<string, string> | undefined; limit?: undefined | { fixes: number; of: number; }; }[]; roles: Record<string, { file: string; purpose: \"build\" | \"fix\" | \"plan\" | \"review\"; skills: string[]; }>; events: Record<string, { source: string; }>; kinds: string[]; commitIdentity: { name: string; email: string; }; safety?: Record<string, unknown> | undefined; dailyQuestionCap?: number | undefined; integrations?: Record<string, string> | undefined; ciToken?: undefined | { setUp: string; }; }, \"measuredModels\" | \"minJudgeRate\">) => boolean"
4838
+ "type": "(models: readonly string[], boundary: \"alignment\" | \"kind\" | \"plan-outcome\" | \"repeat-pair\" | \"reply-option\" | \"review-verdict\" | \"taste\", { measuredModels, minJudgeRate }: Pick<{ checks: string[]; kindLabels: Record<string, string>; runPlaces: (\"ci\" | \"mac\")[]; runBranchPrefix: string; claimPrefix: string; readyLabel: string; mergeMethod: \"merge\" | \"rebase\" | \"squash\"; models: Record<\"light\" | \"standard\" | \"top\", string>; runners: number; tickIntervalSeconds: number; drainTimeoutSeconds: number; claimExpirySeconds: number; latestVersionCacheSeconds: number; watchCacheSeconds: number; watchLockSeconds: number; maxFixRuns: number; serviceLabel: string; maxCrashes: number; crashWindowSeconds: number; workerDownTicks: number; tokenWarnDays: number; ciSchedule: string; ciTickCacheSeconds: number; itemsDir: string; providerTimeoutSeconds: number; providerBackoff: { firstSeconds: number; maxSeconds: number; }; mergedShown: number; choicesShown: number; statusReadTimeoutSeconds: number; commandTimeoutSeconds: number; mergeTries: number; writeRaceRetries: number; itemReadsAtOnce: number; restartBackoff: { firstSeconds: number; maxSeconds: number; }; restartDelaySeconds: number; pullRequestToken: { from: \"app\"; clientIdSecret: string; privateKeySecret: string; } | { from: \"secret\"; secret: string; }; ciWakeTimeoutMinutes: number; ciOutboxMaxMegabytes: number; ciUsageLimitMaxHours: number; followUpsPerPass: number; publishTreeMaxMegabytes: number; ciMergeMarginMinutes: number; ciRunner: string | string[] | { group: string; labels?: string | string[] | undefined; }; ciContainer: null | string | { image: string; credentials?: undefined | { username: string; password: string; }; env?: Record<string, string> | undefined; ports?: (number | string)[] | undefined; volumes?: string[] | undefined; options?: string | undefined; }; ciEnv: Record<string, string>; ciClaudeAuth: \"env\" | \"oauth-token\"; strictPaths: string[]; launches: ({ glob: string; level: string; base: string; } | { glob: string; level: string; from: string; until: string; })[]; sizeRange: { changes: number; fewest: number; middle: number; }; loosenedCheck: { added: string[]; removed: string[]; }; changeLabels: { fixWindow: number; fixSubject: string; revertSubject: string; revertTrailer: string; }; historyDepth: number; lockfiles: string[]; hookPaths: string[]; diffLimit: number; failureTail: number; kindMeanings: Record<string, string>; fallbackKind: string; docsOnly: { kind: string; paths: string[]; }; decisionModel: string; modelCallTimeoutSeconds: number; measuredModels: Record<\"alignment\" | \"kind\" | \"plan-outcome\" | \"repeat-pair\" | \"reply-option\" | \"review-verdict\" | \"taste\", Record<string, number>>; minJudgeRate: number; questionLimits: { cells: number; wordCells: number; }; questionTimeoutHours: number; priorityLabels: string[]; undoableLevels: string[]; ownerBranchPrefix: string; backgroundRuns: boolean; backgroundLaunchSeconds: number; backgroundPollSeconds: number; deniedRunCommands: string[]; runAutoMode: { environment: string[]; allow: string[]; hardDeny: string[]; }; runSlots: { enabled: boolean; pool: string; services: \"per-slot\" | \"shared\"; ports: { base: number; stride: number; }; projectPrefix: string; stepTimeoutSeconds: number; recipe: { prepare: string[]; refresh: { run: string; when: \"always\" | \"lockfile-changed\"; }[]; ready: string[]; }; }; ownerLogins: string[]; repeatAt: number; repeatPrecision: number; tasteRules: string[]; memoryMaxBytes: number; memoryUnusedRuns: number; measureWindow: number; loopIntervalSeconds: number; proofTimeoutSeconds: number; kindFloors: Record<string, string>; checkKind: string; breakCheck: boolean; mergeRisk: { weights: Record<\"alignment\" | \"errorDetection\" | \"impact\" | \"rollback\" | \"verification\", number>; cuts: [number, number]; }; schemaVersion: 2; levels: { name: string; review: \"agent\" | \"none\" | \"owner\"; release: \"after-proof\" | \"at-once\"; onBreak: \"block\" | \"follow-up\"; }[]; paths: { glob: string; level: string; proofs?: Record<string, string> | undefined; limit?: undefined | { fixes: number; of: number; }; }[]; roles: Record<string, { file: string; purpose: \"build\" | \"fix\" | \"plan\" | \"review\"; skills: string[]; }>; events: Record<string, { source: string; }>; kinds: string[]; commitIdentity: { name: string; email: string; }; safety?: Record<string, unknown> | undefined; dailyQuestionCap?: number | undefined; integrations?: Partial<Record<\"answers\" | \"questions\" | \"release\" | \"work-source\", string>> | undefined; ciToken?: undefined | { setUp: string; }; }, \"measuredModels\" | \"minJudgeRate\">) => boolean"
4336
4839
  },
4337
4840
  "Item": {
4338
4841
  "type": "export type Item = z.infer<typeof Item>;\n= { id: string & $brand<\"ItemId\">; title: string; body: string; ready: boolean; thread: { kind: \"answer\" | \"comment\" | \"decision\" | \"question\"; text: string; at: number; option?: string | undefined; author?: \"hum\" | \"person\" | undefined; }[]; labels?: string[] | undefined; }\nZodObject<{ id: $ZodBranded<ZodString, \"ItemId\", \"out\">; title: ZodString; body: ZodString; ready: ZodBoolean; thread: ZodArray<ZodObject<{ kind: ZodEnum<{ answer: \"answer\"; comment: \"comment\"; question: \"question\"; decision: \"decision\"; }>; text: ZodString; at: ZodInt; option: ZodOptional<ZodString>; author: ZodOptional<ZodEnum<{ hum: \"hum\"; person: \"person\"; }>>; }, $strict>>; labels: ZodOptional<ZodArray<ZodString>>; }, $strict>",
@@ -4494,7 +4997,7 @@
4494
4997
  "type": "export type Judgment<T> = {\n readonly kind: \"picked\";\n readonly value: T;\n readonly models: readonly string[];\n} | {\n readonly kind: \"abstained\";\n readonly why: string;\n};\n= { readonly kind: \"abstained\"; readonly why: string; } | { readonly kind: \"picked\"; readonly value: T; readonly models: readonly string[]; }"
4495
4998
  },
4496
4999
  "keepKind": {
4497
- "type": "(o: KindContext, item: { id: string & $brand<\"ItemId\">; title: string; body: string; ready: boolean; thread: { kind: \"answer\" | \"comment\" | \"decision\" | \"question\"; text: string; at: number; option?: string | undefined; author?: \"hum\" | \"person\" | undefined; }[]; labels?: string[] | undefined; }, kind: { item: string; kind: string; from: \"fallback\"; why: string; } | { item: string; kind: string; from: \"model\"; } | { item: string; kind: string; from: \"source\"; }, except?: string | undefined) => Promise<string>"
5000
+ "type": "(o: Pick<KindContext, \"config\" | \"now\" | \"state\">, item: { id: string & $brand<\"ItemId\">; title: string; body: string; ready: boolean; thread: { kind: \"answer\" | \"comment\" | \"decision\" | \"question\"; text: string; at: number; option?: string | undefined; author?: \"hum\" | \"person\" | undefined; }[]; labels?: string[] | undefined; }, kind: { item: string; kind: string; from: \"fallback\"; why: string; } | { item: string; kind: string; from: \"model\"; } | { item: string; kind: string; from: \"source\"; }, except?: string | undefined) => string"
4498
5001
  },
4499
5002
  "Kind": {
4500
5003
  "type": "export type Kind = z.infer<typeof Kind>;\n= { tiers: { purpose: \"build\" | \"fix\" | \"plan\" | \"review\"; tier: \"light\" | \"standard\" | \"top\"; effort: \"high\" | \"low\" | \"medium\"; level?: string | undefined; size?: \"large\" | \"medium\" | \"small\" | undefined; }[]; tokenCap: { tokens: number; overCap: string; }; machine: { id: string; version: string; initial: string; states: Record<string, { type?: \"atomic\" | \"final\" | undefined; description?: string | undefined; tags?: string[] | undefined; invoke?: undefined | { src: string; onDone?: undefined | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]; onError?: undefined | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]; }; on?: Record<string, { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]> | undefined; always?: undefined | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]; after?: Record<string, { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]> | undefined; timeout?: number | undefined; onTimeout?: undefined | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]; entry?: undefined | { type: string; params?: unknown; }[]; exit?: undefined | { type: string; params?: unknown; }[]; }>; }; stateMap?: Record<string, Record<string, string>> | undefined; }\nZodObject<{ tiers: ZodArray<ZodObject<{ purpose: ZodEnum<{ fix: \"fix\"; review: \"review\"; plan: \"plan\"; build: \"build\"; }>; level: ZodOptional<ZodString>; size: ZodOptional<ZodEnum<{ small: \"small\"; medium: \"medium\"; large: \"large\"; }>>; tier: ZodEnum<{ light: \"light\"; standard: \"standard\"; top: \"top\"; }>; effort: ZodEnum<{ medium: \"medium\"; low: \"low\"; high: \"high\"; }>; }, $strict>>; tokenCap: ZodObject<{ tokens: ZodNumber; overCap: ZodString; }, $strict>; stateMap: ZodOptional<ZodRecord<ZodString, ZodRecord<ZodString, ZodString>>>; machine: ZodObject<{ id: ZodString; version: ZodString; initial: ZodString; states: ZodRecord<ZodString, ZodObject<{ type: ZodOptional<ZodEnum<{ atomic: \"atomic\"; final: \"final\"; }>>; description: ZodOptional<ZodString>; tags: ZodOptional<ZodArray<ZodString>>; invoke: ZodOptional<ZodObject<{ src: ZodString; onDone: ZodOptional<ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>; onError: ZodOptional<ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>; }, $strict>>; on: ZodOptional<ZodRecord<ZodString, ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>>; always: ZodOptional<ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>; after: ZodOptional<ZodRecord<ZodString, ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>>; timeout: ZodOptional<ZodNumber>; onTimeout: ZodOptional<ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>; entry: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; exit: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; }, $strict>>; }, $strict>; }, $strict>",
@@ -5316,7 +5819,7 @@
5316
5819
  "type": "(ctx: LandContext) => Promise<ThinResult>"
5317
5820
  },
5318
5821
  "LandContext": {
5319
- "type": "export type LandContext = {\n readonly state: State;\n readonly config: Config;\n readonly kind: string;\n readonly id: string;\n readonly item: Item;\n readonly branch: string;\n readonly base: string;\n readonly remote: string;\n readonly clone: string;\n readonly env: Readonly<Record<string, string>>;\n readonly dir: string;\n readonly git: Git;\n readonly checks: readonly string[];\n readonly workSource: WorkSource;\n readonly questions: Questions;\n readonly pulls: PullRequests | undefined;\n readonly now: () => number;\n readonly judge: ModelCall;\n readonly reviewRun: (change: {\n readonly head: string;\n readonly diff: string;\n readonly level: string;\n }) => Promise<ReviewOutcome>;\n};\n= { readonly state: { dir: string; statusPath: string; heartbeatPath: string; inbox: string; stops: string; faults: Faults; items: Items; events: EventLog; ops: OpKeys; runs: RunRecords; parked: Records<ZodObject<{ item: ZodString; why: ZodEnum<{ review: \"review\"; stuck: \"stuck\"; }>; cause: ZodString; since: ZodInt; }, $strip>>; spent: Records<ZodObject<{ item: ZodString; total: ZodInt; base: ZodInt; }, $strip>>; kinds: Records<ZodObject<{ tiers: ZodArray<ZodObject<{ purpose: ZodEnum<{ fix: \"fix\"; review: \"review\"; plan: \"plan\"; build: \"build\"; }>; level: ZodOptional<ZodString>; size: ZodOptional<ZodEnum<{ small: \"small\"; medium: \"medium\"; large: \"large\"; }>>; tier: ZodEnum<{ light: \"light\"; standard: \"standard\"; top: \"top\"; }>; effort: ZodEnum<{ medium: \"medium\"; low: \"low\"; high: \"high\"; }>; }, $strict>>; tokenCap: ZodObject<{ tokens: ZodNumber; overCap: ZodString; }, $strict>; stateMap: ZodOptional<ZodRecord<ZodString, ZodRecord<ZodString, ZodString>>>; machine: ZodObject<{ id: ZodString; version: ZodString; initial: ZodString; states: ZodRecord<ZodString, ZodObject<{ type: ZodOptional<ZodEnum<{ atomic: \"atomic\"; final: \"final\"; }>>; description: ZodOptional<ZodString>; tags: ZodOptional<ZodArray<ZodString>>; invoke: ZodOptional<ZodObject<{ src: ZodString; onDone: ZodOptional<ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>; onError: ZodOptional<ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>; }, $strict>>; on: ZodOptional<ZodRecord<ZodString, ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>>; always: ZodOptional<ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>; after: ZodOptional<ZodRecord<ZodString, ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>>; timeout: ZodOptional<ZodNumber>; onTimeout: ZodOptional<ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>; entry: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; exit: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; }, $strict>>; }, $strict>; }, $strict>>; limit: Records<ZodObject<{ until: ZodInt; }, $strip>>; ready: Records<ZodObject<{ ids: ZodArray<ZodString>; }, $strip>>; slots: Records<ZodDiscriminatedUnion<[ZodObject<{ status: ZodEnum<{ out: \"out\"; new: \"new\"; free: \"free\"; stale: \"stale\"; }>; name: ZodString; index: ZodInt; folder: ZodString; lockfiles: ZodOptional<ZodString>; since: ZodInt; }, $strip>, ZodObject<{ status: ZodEnum<{ taken: \"taken\"; kept: \"kept\"; }>; item: ZodString; name: ZodString; index: ZodInt; folder: ZodString; lockfiles: ZodOptional<ZodString>; since: ZodInt; }, $strip>], \"status\">>; landings: Records<ZodObject<{ item: ZodString; branch: ZodString; since: ZodInt; change: ZodReadonly<ZodObject<{ paths: ZodReadonly<ZodArray<ZodString>>; size: ZodInt; loosened: ZodBoolean; pinChanged: ZodBoolean; }, $strip>>; head: ZodString; ownerApproved: ZodBoolean; alignment: ZodOptional<ZodUnion<readonly [ZodObject<{ graded: ZodObject<{ alignment: ZodEnum<{ sound: \"sound\"; partial: \"partial\"; concern: \"concern\"; }>; verification: ZodEnum<{ sound: \"sound\"; partial: \"partial\"; concern: \"concern\"; }>; }, $strict>; }, $strip>, ZodObject<{ abstained: ZodString; }, $strip>]>>; }, $strip>>; learned: Records<ZodObject<{ glob: ZodString; level: ZodString; item: ZodString; commit: ZodString; pull: ZodOptional<ZodString>; at: ZodInt; }, $strip>>; itemKinds: Records<ZodDiscriminatedUnion<[ZodObject<{ item: ZodString; kind: ZodString; from: ZodLiteral<\"source\">; }, $strip>, ZodObject<{ item: ZodString; kind: ZodString; from: ZodLiteral<\"model\">; }, $strip>, ZodObject<{ item: ZodString; kind: ZodString; from: ZodLiteral<\"fallback\">; why: ZodString; }, $strip>], \"from\">>; plans: Records<ZodObject<{ item: ZodString; plan: ZodObject<{ summary: ZodString; steps: ZodArray<ZodString>; paths: ZodArray<ZodString>; }, $strict>; hash: ZodString; models: ZodArray<ZodString>; }, $strip>>; verdicts: Records<ZodObject<{ item: ZodString; head: ZodString; event: ZodString; reason: ZodString; cites: ZodArray<ZodObject<{ file: ZodString; line: ZodInt; }, $strict>>; models: ZodArray<ZodString>; }, $strip>>; questions: Records<ZodObject<{ item: ZodString; text: ZodString; options: ZodOptional<ZodArray<ZodString>>; detail: ZodOptional<ZodString>; priority: ZodInt; footprint: ZodOptional<ZodArray<ZodString>>; queuedAt: ZodInt; askedAt: ZodOptional<ZodInt>; }, $strip>>; choices: Records<ZodMiniObject<{ item: ZodMiniString<string>; text: ZodMiniString<string>; at: ZodMiniInt; }, $strip>>; answers: Records<ZodDiscriminatedUnion<[ZodObject<{ source: ZodLiteral<\"marker\">; option: ZodOptional<ZodString>; item: ZodString; ordinal: ZodInt; text: ZodString; disposition: ZodEnum<{ applied: \"applied\"; held: \"held\"; dropped: \"dropped\"; }>; why: ZodString; at: ZodInt; }, $strip>, ZodObject<{ source: ZodEnum<{ model: \"model\"; \"first-word\": \"first-word\"; }>; option: ZodString; item: ZodString; ordinal: ZodInt; text: ZodString; disposition: ZodEnum<{ applied: \"applied\"; held: \"held\"; dropped: \"dropped\"; }>; why: ZodString; at: ZodInt; }, $strip>, ZodObject<{ source: ZodEnum<{ free: \"free\"; abstained: \"abstained\"; \"none-of-these\": \"none-of-these\"; }>; item: ZodString; ordinal: ZodInt; text: ZodString; disposition: ZodEnum<{ applied: \"applied\"; held: \"held\"; dropped: \"dropped\"; }>; why: ZodString; at: ZodInt; }, $strip>], \"source\">>; notes: Records<ZodObject<{ source: ZodEnum<{ fix: \"fix\"; \"review-comment\": \"review-comment\"; \"review-body\": \"review-body\"; \"plan-answer\": \"plan-answer\"; revert: \"revert\"; }>; sourceId: ZodString; change: ZodString; item: ZodOptional<ZodString>; file: ZodOptional<ZodString>; line: ZodOptional<ZodInt>; hunk: ZodString; text: ZodString; at: ZodInt; }, $strip>>; repeats: Records<ZodObject<{ key: ZodString; notes: ZodArray<ZodString>; item: ZodOptional<ZodString>; commented: ZodArray<ZodString>; checked: ZodOptional<ZodObject<{ at: ZodInt; check: ZodString; }, $strip>>; misses: ZodArray<ZodString>; }, $strip>>; possibleRepeats: Records<ZodObject<{ a: ZodString; b: ZodString; models: ZodArray<ZodString>; at: ZodInt; }, $strip>>; merges: Records<ZodObject<{ item: ZodString; sha: ZodString; at: ZodInt; paths: ZodArray<ZodString>; }, $strip>>; breaks: Records<ZodObject<{ item: ZodString; sha: ZodString; at: ZodInt; paths: ZodArray<ZodString>; level: ZodString; failure: ZodString; onBreak: ZodEnum<{ \"follow-up\": \"follow-up\"; block: \"block\"; }>; followUp: ZodString; }, $strip>>; proofs: Records<ZodDiscriminatedUnion<[ZodObject<{ passed: ZodLiteral<true>; item: ZodString; at: ZodInt; worktrees: ZodInt; ms: ZodInt; }, $strip>, ZodObject<{ passed: ZodLiteral<false>; reason: ZodString; item: ZodString; at: ZodInt; worktrees: ZodInt; ms: ZodInt; }, $strip>], \"passed\">>; }; readonly config: Config; readonly kind: string; readonly id: string; readonly item: { id: string & $brand<\"ItemId\">; title: string; body: string; ready: boolean; thread: { kind: \"answer\" | \"comment\" | \"decision\" | \"question\"; text: string; at: number; option?: string | undefined; author?: \"hum\" | \"person\" | undefined; }[]; labels?: string[] | undefined; }; readonly branch: string; readonly base: string; readonly remote: string; readonly clone: string; readonly env: Readonly<Record<string, string>>; readonly dir: string; readonly git: Git; readonly checks: readonly string[]; readonly workSource: WorkSource; readonly questions: Questions; readonly pulls: PullRequests | undefined; readonly now: () => number; readonly judge: ModelCall; readonly reviewRun: (change: { readonly head: string; readonly diff: string; readonly level: string; }) => Promise<ReviewOutcome>; }"
5822
+ "type": "export type LandContext = {\n readonly state: State;\n readonly config: Config;\n readonly kind: string;\n readonly id: string;\n readonly item: Item;\n readonly branch: string;\n readonly base: string;\n readonly remote: string;\n readonly clone: string;\n readonly dir: string;\n readonly git: Git;\n readonly workSource: WorkSource;\n readonly questions: Questions;\n readonly pulls: PullRequests | undefined;\n readonly commits: GitHubCommits | undefined;\n readonly now: () => number;\n readonly judge: ModelCall;\n readonly reviewRun: (change: {\n readonly head: string;\n readonly diff: string;\n readonly level: string;\n }) => Promise<ReviewOutcome>;\n readonly mergesBefore?: number;\n};\n= { readonly state: { dir: string; statusPath: string; heartbeatPath: string; inbox: string; stops: string; faults: Faults; items: Items; events: EventLog; ops: OpKeys; runs: RunRecords; parked: Records<ZodObject<{ item: ZodString; why: ZodEnum<{ review: \"review\"; stuck: \"stuck\"; }>; cause: ZodString; since: ZodInt; }, $strip>>; spent: Records<ZodObject<{ item: ZodString; total: ZodInt; base: ZodInt; }, $strip>>; kinds: Records<ZodObject<{ tiers: ZodArray<ZodObject<{ purpose: ZodEnum<{ fix: \"fix\"; review: \"review\"; plan: \"plan\"; build: \"build\"; }>; level: ZodOptional<ZodString>; size: ZodOptional<ZodEnum<{ small: \"small\"; medium: \"medium\"; large: \"large\"; }>>; tier: ZodEnum<{ light: \"light\"; standard: \"standard\"; top: \"top\"; }>; effort: ZodEnum<{ medium: \"medium\"; low: \"low\"; high: \"high\"; }>; }, $strict>>; tokenCap: ZodObject<{ tokens: ZodNumber; overCap: ZodString; }, $strict>; stateMap: ZodOptional<ZodRecord<ZodString, ZodRecord<ZodString, ZodString>>>; machine: ZodObject<{ id: ZodString; version: ZodString; initial: ZodString; states: ZodRecord<ZodString, ZodObject<{ type: ZodOptional<ZodEnum<{ atomic: \"atomic\"; final: \"final\"; }>>; description: ZodOptional<ZodString>; tags: ZodOptional<ZodArray<ZodString>>; invoke: ZodOptional<ZodObject<{ src: ZodString; onDone: ZodOptional<ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>; onError: ZodOptional<ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>; }, $strict>>; on: ZodOptional<ZodRecord<ZodString, ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>>; always: ZodOptional<ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>; after: ZodOptional<ZodRecord<ZodString, ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>>; timeout: ZodOptional<ZodNumber>; onTimeout: ZodOptional<ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>; entry: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; exit: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; }, $strict>>; }, $strict>; }, $strict>>; limit: Records<ZodObject<{ until: ZodInt; }, $strip>>; ready: Records<ZodObject<{ ids: ZodArray<ZodString>; }, $strip>>; slots: Records<ZodDiscriminatedUnion<[ZodObject<{ status: ZodEnum<{ out: \"out\"; new: \"new\"; free: \"free\"; stale: \"stale\"; }>; name: ZodString; index: ZodInt; folder: ZodString; lockfiles: ZodOptional<ZodString>; since: ZodInt; }, $strip>, ZodObject<{ status: ZodEnum<{ taken: \"taken\"; kept: \"kept\"; }>; item: ZodString; name: ZodString; index: ZodInt; folder: ZodString; lockfiles: ZodOptional<ZodString>; since: ZodInt; }, $strip>], \"status\">>; landings: Records<ZodObject<{ item: ZodString; branch: ZodString; since: ZodInt; change: ZodReadonly<ZodObject<{ paths: ZodReadonly<ZodArray<ZodString>>; size: ZodInt; loosened: ZodBoolean; pinChanged: ZodBoolean; }, $strip>>; head: ZodString; lostRaces: ZodDefault<ZodInt>; patch: ZodOptional<ZodString>; alignment: ZodOptional<ZodUnion<readonly [ZodObject<{ graded: ZodObject<{ alignment: ZodEnum<{ sound: \"sound\"; partial: \"partial\"; concern: \"concern\"; }>; verification: ZodEnum<{ sound: \"sound\"; partial: \"partial\"; concern: \"concern\"; }>; }, $strict>; }, $strip>, ZodObject<{ abstained: ZodString; }, $strip>]>>; }, $strip>>; learned: Records<ZodObject<{ glob: ZodString; level: ZodString; item: ZodString; commit: ZodString; pull: ZodOptional<ZodString>; at: ZodInt; }, $strip>>; itemKinds: Records<ZodDiscriminatedUnion<[ZodObject<{ item: ZodString; kind: ZodString; from: ZodLiteral<\"source\">; }, $strip>, ZodObject<{ item: ZodString; kind: ZodString; from: ZodLiteral<\"model\">; }, $strip>, ZodObject<{ item: ZodString; kind: ZodString; from: ZodLiteral<\"fallback\">; why: ZodString; }, $strip>], \"from\">>; plans: Records<ZodObject<{ item: ZodString; plan: ZodObject<{ summary: ZodString; steps: ZodArray<ZodString>; paths: ZodArray<ZodString>; }, $strict>; hash: ZodString; models: ZodArray<ZodString>; }, $strip>>; verdicts: Records<ZodObject<{ item: ZodString; head: ZodString; event: ZodString; reason: ZodString; cites: ZodArray<ZodObject<{ file: ZodString; line: ZodInt; }, $strict>>; models: ZodArray<ZodString>; }, $strip>>; pullRequests: Records<ZodObject<{ item: ZodString; title: ZodString; body: ZodString; evidence: ZodOptional<ZodUnion<readonly [ZodObject<{ kind: ZodEnum<{ image: \"image\"; video: \"video\"; }>; url: ZodURL; }, $strip>, ZodObject<{ left: ZodString; }, $strip>]>>; }, $strip>>; questions: Records<ZodObject<{ item: ZodString; text: ZodString; options: ZodOptional<ZodArray<ZodString>>; detail: ZodOptional<ZodString>; priority: ZodInt; footprint: ZodOptional<ZodArray<ZodString>>; queuedAt: ZodInt; askedAt: ZodOptional<ZodInt>; }, $strip>>; followUps: Records<ZodObject<{ item: ZodString; from: ZodString; at: ZodInt; }, $strip>>; choices: Records<ZodMiniObject<{ item: ZodMiniString<string>; text: ZodMiniString<string>; at: ZodMiniInt; }, $strip>>; answers: Records<ZodDiscriminatedUnion<[ZodObject<{ source: ZodLiteral<\"marker\">; option: ZodOptional<ZodString>; item: ZodString; ordinal: ZodInt; text: ZodString; disposition: ZodEnum<{ applied: \"applied\"; held: \"held\"; dropped: \"dropped\"; }>; why: ZodString; at: ZodInt; }, $strip>, ZodObject<{ source: ZodEnum<{ model: \"model\"; \"first-word\": \"first-word\"; }>; option: ZodString; item: ZodString; ordinal: ZodInt; text: ZodString; disposition: ZodEnum<{ applied: \"applied\"; held: \"held\"; dropped: \"dropped\"; }>; why: ZodString; at: ZodInt; }, $strip>, ZodObject<{ source: ZodEnum<{ free: \"free\"; abstained: \"abstained\"; \"none-of-these\": \"none-of-these\"; }>; item: ZodString; ordinal: ZodInt; text: ZodString; disposition: ZodEnum<{ applied: \"applied\"; held: \"held\"; dropped: \"dropped\"; }>; why: ZodString; at: ZodInt; }, $strip>], \"source\">>; notes: Records<ZodObject<{ source: ZodEnum<{ fix: \"fix\"; \"review-comment\": \"review-comment\"; \"review-body\": \"review-body\"; \"plan-answer\": \"plan-answer\"; revert: \"revert\"; }>; sourceId: ZodString; change: ZodString; item: ZodOptional<ZodString>; file: ZodOptional<ZodString>; line: ZodOptional<ZodInt>; hunk: ZodString; text: ZodString; at: ZodInt; }, $strip>>; repeats: Records<ZodObject<{ key: ZodString; notes: ZodArray<ZodString>; item: ZodOptional<ZodString>; commented: ZodArray<ZodString>; checked: ZodOptional<ZodObject<{ at: ZodInt; check: ZodString; }, $strip>>; misses: ZodArray<ZodString>; }, $strip>>; possibleRepeats: Records<ZodObject<{ a: ZodString; b: ZodString; models: ZodArray<ZodString>; at: ZodInt; }, $strip>>; merges: Records<ZodObject<{ item: ZodString; sha: ZodString; at: ZodInt; paths: ZodArray<ZodString>; baseChecked: ZodDefault<ZodBoolean>; }, $strip>>; breaks: Records<ZodObject<{ item: ZodString; sha: ZodString; at: ZodInt; paths: ZodArray<ZodString>; level: ZodString; failure: ZodString; onBreak: ZodEnum<{ \"follow-up\": \"follow-up\"; block: \"block\"; }>; followUp: ZodString; }, $strip>>; proofs: Records<ZodDiscriminatedUnion<[ZodObject<{ passed: ZodLiteral<true>; item: ZodString; at: ZodInt; worktrees: ZodInt; ms: ZodInt; }, $strip>, ZodObject<{ passed: ZodLiteral<false>; reason: ZodString; item: ZodString; at: ZodInt; worktrees: ZodInt; ms: ZodInt; }, $strip>], \"passed\">>; }; readonly config: Config; readonly kind: string; readonly id: string; readonly item: { id: string & $brand<\"ItemId\">; title: string; body: string; ready: boolean; thread: { kind: \"answer\" | \"comment\" | \"decision\" | \"question\"; text: string; at: number; option?: string | undefined; author?: \"hum\" | \"person\" | undefined; }[]; labels?: string[] | undefined; }; readonly branch: string; readonly base: string; readonly remote: string; readonly clone: string; readonly dir: string; readonly git: Git; readonly workSource: WorkSource; readonly questions: Questions; readonly pulls: PullRequests | undefined; readonly commits: GitHubCommits | undefined; readonly now: () => number; readonly judge: ModelCall; readonly reviewRun: (change: { readonly head: string; readonly diff: string; readonly level: string; }) => Promise<ReviewOutcome>; readonly mergesBefore?: number | undefined; }"
5320
5823
  },
5321
5824
  "Landing": {
5322
5825
  "type": "export type Landing = {\n readonly via: \"push\";\n} | {\n readonly via: \"pull-request\";\n readonly autoMerge: boolean;\n} | {\n readonly via: \"wait\";\n};\n= { readonly via: \"pull-request\"; readonly autoMerge: boolean; } | { readonly via: \"push\"; } | { readonly via: \"wait\"; }"
@@ -5350,8 +5853,8 @@
5350
5853
  "limitOf": {
5351
5854
  "type": "(text: string, resetsAt: number | undefined) => LimitEnded"
5352
5855
  },
5353
- "listHopeSkills": {
5354
- "type": "(hopeRoot: string) => ReadonlySet<string>"
5856
+ "listPluginSkills": {
5857
+ "type": "(plugin: string, root: string) => string[]"
5355
5858
  },
5356
5859
  "loadConfig": {
5357
5860
  "type": "(raw: RawConfig, { env, ...migration }: LoadOptions) => Result<Config>"
@@ -6057,7 +6560,7 @@
6057
6560
  "type": "(source: string) => string"
6058
6561
  },
6059
6562
  "markdownAdapter": {
6060
- "type": "({ repo, claimPrefix, itemsDir, identity, writeRaceRetries, itemReadsAtOnce, pulls, mergeMethod, ownerBranchPrefix, timeoutMs, base }: MarkdownOptions, { report, now }: AdapterContext) => { apiVersion: number; spent: () => number; workSource: { listReady: () => Promise<{ id: string & $brand<\"ItemId\">; title: string; }[]>; read: (id: string) => Promise<{ id: string & $brand<\"ItemId\">; title: string; body: string; ready: boolean; thread: { kind: \"answer\" | \"comment\" | \"decision\" | \"question\"; text: string; at: number; option?: string | undefined; author?: \"hum\" | \"person\" | undefined; }[]; labels?: string[] | undefined; }>; claim: (id: string & $brand<\"ItemId\">, holder: string & $brand<\"Holder\">, ttlMs: number) => Promise<{ failed: \"now\" | \"retry\"; why: string; } | { won: boolean; claim: { item: string & $brand<\"ItemId\">; holder: string & $brand<\"Holder\">; expiresAt: number; }; }>; renew: (id: string & $brand<\"ItemId\">, holder: string & $brand<\"Holder\">, ttlMs: number) => Promise<{ failed: \"now\" | \"retry\"; why: string; } | { won: boolean; claim: { item: string & $brand<\"ItemId\">; holder: string & $brand<\"Holder\">; expiresAt: number; }; }>; comment: (id: string & $brand<\"ItemId\">, text: string) => Promise<undefined | { failed: \"now\" | \"retry\"; why: string; }>; fileFollowUp: (from: string & $brand<\"ItemId\">, { title, body }: FollowUp) => Promise<{ failed: \"now\" | \"retry\"; why: string; } | { id: string & $brand<\"ItemId\">; title: string; }>; }; questions: { ask: (id: string & $brand<\"ItemId\">, question: Question) => Promise<undefined | { failed: \"now\" | \"retry\"; why: string; }>; decide: (id: string & $brand<\"ItemId\">, text: string) => Promise<undefined | { failed: \"now\" | \"retry\"; why: string; }>; }; answers: { answer: (id: string & $brand<\"ItemId\">, { text, option }: Answer) => Promise<undefined | { failed: \"now\" | \"retry\"; why: string; }>; watch: (since?: string | undefined) => Promise<{ token: string; changed: boolean; }>; }; }"
6563
+ "type": "({ repo, claimPrefix, itemsDir, identity, writeRaceRetries, itemReadsAtOnce, pulls, mergeMethod, ownerBranchPrefix, timeoutMs, base }: MarkdownOptions, { report, now }: AdapterContext) => { apiVersion: number; spent: () => number; workSource: { listReady: () => Promise<{ id: string & $brand<\"ItemId\">; title: string; }[]>; read: (id: string) => Promise<{ id: string & $brand<\"ItemId\">; title: string; body: string; ready: boolean; thread: { kind: \"answer\" | \"comment\" | \"decision\" | \"question\"; text: string; at: number; option?: string | undefined; author?: \"hum\" | \"person\" | undefined; }[]; labels?: string[] | undefined; }>; claim: (id: string & $brand<\"ItemId\">, holder: string & $brand<\"Holder\">, ttlMs: number) => Promise<{ failed: \"now\" | \"retry\"; why: string; } | { won: boolean; claim: { item: string & $brand<\"ItemId\">; holder: string & $brand<\"Holder\">; expiresAt: number; }; }>; renew: (id: string & $brand<\"ItemId\">, holder: string & $brand<\"Holder\">, ttlMs: number) => Promise<{ failed: \"now\" | \"retry\"; why: string; } | { won: boolean; claim: { item: string & $brand<\"ItemId\">; holder: string & $brand<\"Holder\">; expiresAt: number; }; }>; comment: (id: string & $brand<\"ItemId\">, text: string) => Promise<undefined | { failed: \"now\" | \"retry\"; why: string; }>; fileFollowUp: (from: string & $brand<\"ItemId\">, { title, body }: FollowUp) => Promise<{ failed: \"now\" | \"retry\"; why: string; } | { id: string & $brand<\"ItemId\">; title: string; }>; finish: (id: string & $brand<\"ItemId\">) => Promise<undefined | { failed: \"now\" | \"retry\"; why: string; }>; }; questions: { ask: (id: string & $brand<\"ItemId\">, question: Question) => Promise<undefined | { failed: \"now\" | \"retry\"; why: string; }>; decide: (id: string & $brand<\"ItemId\">, text: string) => Promise<undefined | { failed: \"now\" | \"retry\"; why: string; }>; }; answers: { answer: (id: string & $brand<\"ItemId\">, { text, option }: Answer) => Promise<undefined | { failed: \"now\" | \"retry\"; why: string; }>; watch: (since?: string | undefined) => Promise<{ token: string; changed: boolean; }>; }; }"
6061
6564
  },
6062
6565
  "MarkdownOptions": {
6063
6566
  "type": "export type MarkdownOptions = {\n readonly repo: string;\n readonly claimPrefix: string;\n readonly itemsDir: string;\n readonly identity: GitIdentity;\n readonly writeRaceRetries: number;\n readonly itemReadsAtOnce: number;\n readonly base?: string;\n readonly pulls?: PullRequests;\n readonly mergeMethod: MergeMethod;\n readonly ownerBranchPrefix: string;\n readonly timeoutMs: number;\n};\n= { readonly repo: string; readonly claimPrefix: string; readonly itemsDir: string; readonly identity: GitIdentity; readonly writeRaceRetries: number; readonly itemReadsAtOnce: number; readonly base?: string | undefined; readonly pulls?: PullRequests | undefined; readonly mergeMethod: \"merge\" | \"rebase\" | \"squash\"; readonly ownerBranchPrefix: string; readonly timeoutMs: number; }"
@@ -6138,8 +6641,7 @@
6138
6641
  "type": "export type Migrations = Steps<ConfigJson>;\n= { readonly [x: number]: (value: Readonly<Record<string, JSONType>>) => Readonly<Record<string, JSONType>>; }"
6139
6642
  },
6140
6643
  "MIGRATIONS": {
6141
- "type": "Readonly<Record<number, (value: Readonly<Record<string, JSONType>>) => Readonly<Record<string, JSONType>>>>",
6142
- "value": {}
6644
+ "type": "{ 1: ({ pullRequestTokenSecret, ...config }: Readonly<Record<string, JSONType>>) => { pullRequestToken: { from: string; secret: JSONType; }; } | { readonly [x: string]: JSONType; }; }"
6143
6645
  },
6144
6646
  "ModelCall": {
6145
6647
  "type": "export type ModelCall = <T>(question: Question<T>) => Promise<Judgment<T>>;\n= <T>(question: Question<T>) => Promise<Judgment<T>>"
@@ -6163,13 +6665,13 @@
6163
6665
  "type": "(adapter: Integrations, ops: OpKeys, scope: CallScope) => Integrations"
6164
6666
  },
6165
6667
  "openState": {
6166
- "type": "(dir: string, { now, ...codec }: StateOptions) => { dir: string; statusPath: string; heartbeatPath: string; inbox: string; stops: string; faults: Faults; items: Items; events: EventLog; ops: OpKeys; runs: RunRecords; parked: Records<ZodObject<{ item: ZodString; why: ZodEnum<{ review: \"review\"; stuck: \"stuck\"; }>; cause: ZodString; since: ZodInt; }, $strip>>; spent: Records<ZodObject<{ item: ZodString; total: ZodInt; base: ZodInt; }, $strip>>; kinds: Records<ZodObject<{ tiers: ZodArray<ZodObject<{ purpose: ZodEnum<{ fix: \"fix\"; review: \"review\"; plan: \"plan\"; build: \"build\"; }>; level: ZodOptional<ZodString>; size: ZodOptional<ZodEnum<{ small: \"small\"; medium: \"medium\"; large: \"large\"; }>>; tier: ZodEnum<{ light: \"light\"; standard: \"standard\"; top: \"top\"; }>; effort: ZodEnum<{ medium: \"medium\"; low: \"low\"; high: \"high\"; }>; }, $strict>>; tokenCap: ZodObject<{ tokens: ZodNumber; overCap: ZodString; }, $strict>; stateMap: ZodOptional<ZodRecord<ZodString, ZodRecord<ZodString, ZodString>>>; machine: ZodObject<{ id: ZodString; version: ZodString; initial: ZodString; states: ZodRecord<ZodString, ZodObject<{ type: ZodOptional<ZodEnum<{ atomic: \"atomic\"; final: \"final\"; }>>; description: ZodOptional<ZodString>; tags: ZodOptional<ZodArray<ZodString>>; invoke: ZodOptional<ZodObject<{ src: ZodString; onDone: ZodOptional<ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>; onError: ZodOptional<ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>; }, $strict>>; on: ZodOptional<ZodRecord<ZodString, ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>>; always: ZodOptional<ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>; after: ZodOptional<ZodRecord<ZodString, ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>>; timeout: ZodOptional<ZodNumber>; onTimeout: ZodOptional<ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>; entry: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; exit: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; }, $strict>>; }, $strict>; }, $strict>>; limit: Records<ZodObject<{ until: ZodInt; }, $strip>>; ready: Records<ZodObject<{ ids: ZodArray<ZodString>; }, $strip>>; slots: Records<ZodDiscriminatedUnion<[ZodObject<{ status: ZodEnum<{ out: \"out\"; new: \"new\"; free: \"free\"; stale: \"stale\"; }>; name: ZodString; index: ZodInt; folder: ZodString; lockfiles: ZodOptional<ZodString>; since: ZodInt; }, $strip>, ZodObject<{ status: ZodEnum<{ taken: \"taken\"; kept: \"kept\"; }>; item: ZodString; name: ZodString; index: ZodInt; folder: ZodString; lockfiles: ZodOptional<ZodString>; since: ZodInt; }, $strip>], \"status\">>; landings: Records<ZodObject<{ item: ZodString; branch: ZodString; since: ZodInt; change: ZodReadonly<ZodObject<{ paths: ZodReadonly<ZodArray<ZodString>>; size: ZodInt; loosened: ZodBoolean; pinChanged: ZodBoolean; }, $strip>>; head: ZodString; ownerApproved: ZodBoolean; alignment: ZodOptional<ZodUnion<readonly [ZodObject<{ graded: ZodObject<{ alignment: ZodEnum<{ sound: \"sound\"; partial: \"partial\"; concern: \"concern\"; }>; verification: ZodEnum<{ sound: \"sound\"; partial: \"partial\"; concern: \"concern\"; }>; }, $strict>; }, $strip>, ZodObject<{ abstained: ZodString; }, $strip>]>>; }, $strip>>; learned: Records<ZodObject<{ glob: ZodString; level: ZodString; item: ZodString; commit: ZodString; pull: ZodOptional<ZodString>; at: ZodInt; }, $strip>>; itemKinds: Records<ZodDiscriminatedUnion<[ZodObject<{ item: ZodString; kind: ZodString; from: ZodLiteral<\"source\">; }, $strip>, ZodObject<{ item: ZodString; kind: ZodString; from: ZodLiteral<\"model\">; }, $strip>, ZodObject<{ item: ZodString; kind: ZodString; from: ZodLiteral<\"fallback\">; why: ZodString; }, $strip>], \"from\">>; plans: Records<ZodObject<{ item: ZodString; plan: ZodObject<{ summary: ZodString; steps: ZodArray<ZodString>; paths: ZodArray<ZodString>; }, $strict>; hash: ZodString; models: ZodArray<ZodString>; }, $strip>>; verdicts: Records<ZodObject<{ item: ZodString; head: ZodString; event: ZodString; reason: ZodString; cites: ZodArray<ZodObject<{ file: ZodString; line: ZodInt; }, $strict>>; models: ZodArray<ZodString>; }, $strip>>; questions: Records<ZodObject<{ item: ZodString; text: ZodString; options: ZodOptional<ZodArray<ZodString>>; detail: ZodOptional<ZodString>; priority: ZodInt; footprint: ZodOptional<ZodArray<ZodString>>; queuedAt: ZodInt; askedAt: ZodOptional<ZodInt>; }, $strip>>; choices: Records<ZodMiniObject<{ item: ZodMiniString<string>; text: ZodMiniString<string>; at: ZodMiniInt; }, $strip>>; answers: Records<ZodDiscriminatedUnion<[ZodObject<{ source: ZodLiteral<\"marker\">; option: ZodOptional<ZodString>; item: ZodString; ordinal: ZodInt; text: ZodString; disposition: ZodEnum<{ applied: \"applied\"; held: \"held\"; dropped: \"dropped\"; }>; why: ZodString; at: ZodInt; }, $strip>, ZodObject<{ source: ZodEnum<{ model: \"model\"; \"first-word\": \"first-word\"; }>; option: ZodString; item: ZodString; ordinal: ZodInt; text: ZodString; disposition: ZodEnum<{ applied: \"applied\"; held: \"held\"; dropped: \"dropped\"; }>; why: ZodString; at: ZodInt; }, $strip>, ZodObject<{ source: ZodEnum<{ free: \"free\"; abstained: \"abstained\"; \"none-of-these\": \"none-of-these\"; }>; item: ZodString; ordinal: ZodInt; text: ZodString; disposition: ZodEnum<{ applied: \"applied\"; held: \"held\"; dropped: \"dropped\"; }>; why: ZodString; at: ZodInt; }, $strip>], \"source\">>; notes: Records<ZodObject<{ source: ZodEnum<{ fix: \"fix\"; \"review-comment\": \"review-comment\"; \"review-body\": \"review-body\"; \"plan-answer\": \"plan-answer\"; revert: \"revert\"; }>; sourceId: ZodString; change: ZodString; item: ZodOptional<ZodString>; file: ZodOptional<ZodString>; line: ZodOptional<ZodInt>; hunk: ZodString; text: ZodString; at: ZodInt; }, $strip>>; repeats: Records<ZodObject<{ key: ZodString; notes: ZodArray<ZodString>; item: ZodOptional<ZodString>; commented: ZodArray<ZodString>; checked: ZodOptional<ZodObject<{ at: ZodInt; check: ZodString; }, $strip>>; misses: ZodArray<ZodString>; }, $strip>>; possibleRepeats: Records<ZodObject<{ a: ZodString; b: ZodString; models: ZodArray<ZodString>; at: ZodInt; }, $strip>>; merges: Records<ZodObject<{ item: ZodString; sha: ZodString; at: ZodInt; paths: ZodArray<ZodString>; }, $strip>>; breaks: Records<ZodObject<{ item: ZodString; sha: ZodString; at: ZodInt; paths: ZodArray<ZodString>; level: ZodString; failure: ZodString; onBreak: ZodEnum<{ \"follow-up\": \"follow-up\"; block: \"block\"; }>; followUp: ZodString; }, $strip>>; proofs: Records<ZodDiscriminatedUnion<[ZodObject<{ passed: ZodLiteral<true>; item: ZodString; at: ZodInt; worktrees: ZodInt; ms: ZodInt; }, $strip>, ZodObject<{ passed: ZodLiteral<false>; reason: ZodString; item: ZodString; at: ZodInt; worktrees: ZodInt; ms: ZodInt; }, $strip>], \"passed\">>; }"
6668
+ "type": "(dir: string, { now, ...codec }: StateOptions) => { dir: string; statusPath: string; heartbeatPath: string; inbox: string; stops: string; faults: Faults; items: Items; events: EventLog; ops: OpKeys; runs: RunRecords; parked: Records<ZodObject<{ item: ZodString; why: ZodEnum<{ review: \"review\"; stuck: \"stuck\"; }>; cause: ZodString; since: ZodInt; }, $strip>>; spent: Records<ZodObject<{ item: ZodString; total: ZodInt; base: ZodInt; }, $strip>>; kinds: Records<ZodObject<{ tiers: ZodArray<ZodObject<{ purpose: ZodEnum<{ fix: \"fix\"; review: \"review\"; plan: \"plan\"; build: \"build\"; }>; level: ZodOptional<ZodString>; size: ZodOptional<ZodEnum<{ small: \"small\"; medium: \"medium\"; large: \"large\"; }>>; tier: ZodEnum<{ light: \"light\"; standard: \"standard\"; top: \"top\"; }>; effort: ZodEnum<{ medium: \"medium\"; low: \"low\"; high: \"high\"; }>; }, $strict>>; tokenCap: ZodObject<{ tokens: ZodNumber; overCap: ZodString; }, $strict>; stateMap: ZodOptional<ZodRecord<ZodString, ZodRecord<ZodString, ZodString>>>; machine: ZodObject<{ id: ZodString; version: ZodString; initial: ZodString; states: ZodRecord<ZodString, ZodObject<{ type: ZodOptional<ZodEnum<{ atomic: \"atomic\"; final: \"final\"; }>>; description: ZodOptional<ZodString>; tags: ZodOptional<ZodArray<ZodString>>; invoke: ZodOptional<ZodObject<{ src: ZodString; onDone: ZodOptional<ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>; onError: ZodOptional<ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>; }, $strict>>; on: ZodOptional<ZodRecord<ZodString, ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>>; always: ZodOptional<ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>; after: ZodOptional<ZodRecord<ZodString, ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>>; timeout: ZodOptional<ZodNumber>; onTimeout: ZodOptional<ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>; entry: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; exit: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; }, $strict>>; }, $strict>; }, $strict>>; limit: Records<ZodObject<{ until: ZodInt; }, $strip>>; ready: Records<ZodObject<{ ids: ZodArray<ZodString>; }, $strip>>; slots: Records<ZodDiscriminatedUnion<[ZodObject<{ status: ZodEnum<{ out: \"out\"; new: \"new\"; free: \"free\"; stale: \"stale\"; }>; name: ZodString; index: ZodInt; folder: ZodString; lockfiles: ZodOptional<ZodString>; since: ZodInt; }, $strip>, ZodObject<{ status: ZodEnum<{ taken: \"taken\"; kept: \"kept\"; }>; item: ZodString; name: ZodString; index: ZodInt; folder: ZodString; lockfiles: ZodOptional<ZodString>; since: ZodInt; }, $strip>], \"status\">>; landings: Records<ZodObject<{ item: ZodString; branch: ZodString; since: ZodInt; change: ZodReadonly<ZodObject<{ paths: ZodReadonly<ZodArray<ZodString>>; size: ZodInt; loosened: ZodBoolean; pinChanged: ZodBoolean; }, $strip>>; head: ZodString; lostRaces: ZodDefault<ZodInt>; patch: ZodOptional<ZodString>; alignment: ZodOptional<ZodUnion<readonly [ZodObject<{ graded: ZodObject<{ alignment: ZodEnum<{ sound: \"sound\"; partial: \"partial\"; concern: \"concern\"; }>; verification: ZodEnum<{ sound: \"sound\"; partial: \"partial\"; concern: \"concern\"; }>; }, $strict>; }, $strip>, ZodObject<{ abstained: ZodString; }, $strip>]>>; }, $strip>>; learned: Records<ZodObject<{ glob: ZodString; level: ZodString; item: ZodString; commit: ZodString; pull: ZodOptional<ZodString>; at: ZodInt; }, $strip>>; itemKinds: Records<ZodDiscriminatedUnion<[ZodObject<{ item: ZodString; kind: ZodString; from: ZodLiteral<\"source\">; }, $strip>, ZodObject<{ item: ZodString; kind: ZodString; from: ZodLiteral<\"model\">; }, $strip>, ZodObject<{ item: ZodString; kind: ZodString; from: ZodLiteral<\"fallback\">; why: ZodString; }, $strip>], \"from\">>; plans: Records<ZodObject<{ item: ZodString; plan: ZodObject<{ summary: ZodString; steps: ZodArray<ZodString>; paths: ZodArray<ZodString>; }, $strict>; hash: ZodString; models: ZodArray<ZodString>; }, $strip>>; verdicts: Records<ZodObject<{ item: ZodString; head: ZodString; event: ZodString; reason: ZodString; cites: ZodArray<ZodObject<{ file: ZodString; line: ZodInt; }, $strict>>; models: ZodArray<ZodString>; }, $strip>>; pullRequests: Records<ZodObject<{ item: ZodString; title: ZodString; body: ZodString; evidence: ZodOptional<ZodUnion<readonly [ZodObject<{ kind: ZodEnum<{ image: \"image\"; video: \"video\"; }>; url: ZodURL; }, $strip>, ZodObject<{ left: ZodString; }, $strip>]>>; }, $strip>>; questions: Records<ZodObject<{ item: ZodString; text: ZodString; options: ZodOptional<ZodArray<ZodString>>; detail: ZodOptional<ZodString>; priority: ZodInt; footprint: ZodOptional<ZodArray<ZodString>>; queuedAt: ZodInt; askedAt: ZodOptional<ZodInt>; }, $strip>>; followUps: Records<ZodObject<{ item: ZodString; from: ZodString; at: ZodInt; }, $strip>>; choices: Records<ZodMiniObject<{ item: ZodMiniString<string>; text: ZodMiniString<string>; at: ZodMiniInt; }, $strip>>; answers: Records<ZodDiscriminatedUnion<[ZodObject<{ source: ZodLiteral<\"marker\">; option: ZodOptional<ZodString>; item: ZodString; ordinal: ZodInt; text: ZodString; disposition: ZodEnum<{ applied: \"applied\"; held: \"held\"; dropped: \"dropped\"; }>; why: ZodString; at: ZodInt; }, $strip>, ZodObject<{ source: ZodEnum<{ model: \"model\"; \"first-word\": \"first-word\"; }>; option: ZodString; item: ZodString; ordinal: ZodInt; text: ZodString; disposition: ZodEnum<{ applied: \"applied\"; held: \"held\"; dropped: \"dropped\"; }>; why: ZodString; at: ZodInt; }, $strip>, ZodObject<{ source: ZodEnum<{ free: \"free\"; abstained: \"abstained\"; \"none-of-these\": \"none-of-these\"; }>; item: ZodString; ordinal: ZodInt; text: ZodString; disposition: ZodEnum<{ applied: \"applied\"; held: \"held\"; dropped: \"dropped\"; }>; why: ZodString; at: ZodInt; }, $strip>], \"source\">>; notes: Records<ZodObject<{ source: ZodEnum<{ fix: \"fix\"; \"review-comment\": \"review-comment\"; \"review-body\": \"review-body\"; \"plan-answer\": \"plan-answer\"; revert: \"revert\"; }>; sourceId: ZodString; change: ZodString; item: ZodOptional<ZodString>; file: ZodOptional<ZodString>; line: ZodOptional<ZodInt>; hunk: ZodString; text: ZodString; at: ZodInt; }, $strip>>; repeats: Records<ZodObject<{ key: ZodString; notes: ZodArray<ZodString>; item: ZodOptional<ZodString>; commented: ZodArray<ZodString>; checked: ZodOptional<ZodObject<{ at: ZodInt; check: ZodString; }, $strip>>; misses: ZodArray<ZodString>; }, $strip>>; possibleRepeats: Records<ZodObject<{ a: ZodString; b: ZodString; models: ZodArray<ZodString>; at: ZodInt; }, $strip>>; merges: Records<ZodObject<{ item: ZodString; sha: ZodString; at: ZodInt; paths: ZodArray<ZodString>; baseChecked: ZodDefault<ZodBoolean>; }, $strip>>; breaks: Records<ZodObject<{ item: ZodString; sha: ZodString; at: ZodInt; paths: ZodArray<ZodString>; level: ZodString; failure: ZodString; onBreak: ZodEnum<{ \"follow-up\": \"follow-up\"; block: \"block\"; }>; followUp: ZodString; }, $strip>>; proofs: Records<ZodDiscriminatedUnion<[ZodObject<{ passed: ZodLiteral<true>; item: ZodString; at: ZodInt; worktrees: ZodInt; ms: ZodInt; }, $strip>, ZodObject<{ passed: ZodLiteral<false>; reason: ZodString; item: ZodString; at: ZodInt; worktrees: ZodInt; ms: ZodInt; }, $strip>], \"passed\">>; }"
6167
6669
  },
6168
6670
  "openWorker": {
6169
6671
  "type": "(repo: string, options: OpenWorkerOptions) => Promise<Worker>"
6170
6672
  },
6171
6673
  "OpenWorkerOptions": {
6172
- "type": "export type OpenWorkerOptions = Omit<WorkerOptions, \"repo\" | \"state\" | \"config\" | \"adapters\" | \"runner\" | \"remote\" | \"pulls\" | \"loop\" | \"checks\" | \"runnerVariables\"> & {\n readonly stateDir?: string;\n readonly hopeSkills: ReadonlySet<string>;\n readonly remote?: string;\n readonly binary?: string;\n readonly env: Env;\n};\n= Omit<WorkerOptions, \"adapters\" | \"checks\" | \"config\" | \"loop\" | \"pulls\" | \"remote\" | \"repo\" | \"runner\" | \"runnerVariables\" | \"state\"> & { readonly stateDir?: string | undefined; readonly hopeSkills: ReadonlySet<string>; readonly remote?: string | undefined; readonly binary?: string | undefined; readonly env: Readonly<Record<string, string | undefined>>; }"
6674
+ "type": "export type OpenWorkerOptions = Omit<WorkerOptions, \"repo\" | \"state\" | \"config\" | \"adapters\" | \"runner\" | \"remote\" | \"pulls\" | \"commits\" | \"loop\" | \"checks\" | \"runnerVariables\"> & {\n readonly stateDir?: string;\n readonly installedSkills?: ReadonlySet<string>;\n readonly judgmentsOnly?: boolean;\n readonly remote?: string;\n readonly binary?: string;\n readonly env: Env;\n readonly integrations?: WorkIntegrations;\n};\n= Omit<WorkerOptions, \"adapters\" | \"checks\" | \"commits\" | \"config\" | \"loop\" | \"pulls\" | \"remote\" | \"repo\" | \"runner\" | \"runnerVariables\" | \"state\"> & { readonly stateDir?: string | undefined; readonly installedSkills?: ReadonlySet<string> | undefined; readonly judgmentsOnly?: boolean | undefined; readonly remote?: string | undefined; readonly binary?: string | undefined; readonly env: Readonly<Record<string, string | undefined>>; readonly integrations?: WorkIntegrations | undefined; }"
6173
6675
  },
6174
6676
  "OpKey": {
6175
6677
  "type": "export type OpKey = z.infer<typeof OpKey>;\n= { itemId: string; run: string; attempt: number; op: string; }\nZodObject<{ itemId: ZodString; run: ZodString; attempt: ZodInt; op: ZodString; }, $strip>",
@@ -6223,7 +6725,7 @@
6223
6725
  "value": "approve"
6224
6726
  },
6225
6727
  "OWNER_CHANGEABLE": {
6226
- "type": "{ readonly machines: \"kinds\"; readonly roles: \"roles\"; readonly integrations: \"integrations\"; readonly \"risk levels\": \"levels\"; readonly \"safety rule\": \"safety\"; readonly \"cheap model call\": \"decisionModel\"; readonly \"daily question cap\": \"dailyQuestionCap\"; readonly \"kinds' tables\": \"kinds\"; readonly \"run branch prefix\": \"runBranchPrefix\"; readonly \"claim prefix\": \"claimPrefix\"; readonly \"ready label\": \"readyLabel\"; readonly \"merge method\": \"mergeMethod\"; readonly \"model per tier\": \"models\"; readonly \"runner count\": \"runners\"; readonly \"tick interval\": \"tickIntervalSeconds\"; readonly \"drain timeout\": \"drainTimeoutSeconds\"; readonly \"claim expiry\": \"claimExpirySeconds\"; readonly \"latest-version cache\": \"latestVersionCacheSeconds\"; readonly \"watch cache\": \"watchCacheSeconds\"; readonly \"watch lock\": \"watchLockSeconds\"; readonly \"fix runs\": \"maxFixRuns\"; readonly \"service label\": \"serviceLabel\"; readonly \"crash limit\": \"maxCrashes\"; readonly \"crash window\": \"crashWindowSeconds\"; readonly \"worker-down age\": \"workerDownTicks\"; readonly \"token warning lead\": \"tokenWarnDays\"; readonly \"CI schedule\": \"ciSchedule\"; readonly \"CI tick cache\": \"ciTickCacheSeconds\"; readonly \"commit identity\": \"commitIdentity\"; readonly \"items folder\": \"itemsDir\"; readonly \"provider timeout\": \"providerTimeoutSeconds\"; readonly \"provider backoff\": \"providerBackoff\"; readonly \"merged changes shown\": \"mergedShown\"; readonly \"choices shown\": \"choicesShown\"; readonly \"status read timeout\": \"statusReadTimeoutSeconds\"; readonly \"command timeout\": \"commandTimeoutSeconds\"; readonly \"merge tries\": \"mergeTries\"; readonly \"write race retries\": \"writeRaceRetries\"; readonly \"item reads at once\": \"itemReadsAtOnce\"; readonly \"restart backoff\": \"restartBackoff\"; readonly \"restart delay\": \"restartDelaySeconds\"; readonly \"CI wake timeout\": \"ciWakeTimeoutMinutes\"; readonly \"pull request token secret\": \"pullRequestTokenSecret\"; readonly \"data and secrets paths\": \"strictPaths\"; readonly \"path rules\": \"paths\"; readonly launches: \"launches\"; readonly \"size range\": \"sizeRange\"; readonly \"loosened-check rule\": \"loosenedCheck\"; readonly \"change labels\": \"changeLabels\"; readonly \"history depth\": \"historyDepth\"; readonly lockfiles: \"lockfiles\"; readonly \"hook paths\": \"hookPaths\"; readonly \"diff limit\": \"diffLimit\"; readonly \"failure tail\": \"failureTail\"; readonly \"kind meanings\": \"kindMeanings\"; readonly \"fallback kind\": \"fallbackKind\"; readonly \"docs-only kind\": \"docsOnly\"; readonly \"model call timeout\": \"modelCallTimeoutSeconds\"; readonly \"measured models\": \"measuredModels\"; readonly \"judge rate bar\": \"minJudgeRate\"; readonly \"merge-risk weights\": \"mergeRisk\"; readonly \"question limits\": \"questionLimits\"; readonly \"question timeout\": \"questionTimeoutHours\"; readonly \"priority labels\": \"priorityLabels\"; readonly \"undoable levels\": \"undoableLevels\"; readonly \"owner branch prefix\": \"ownerBranchPrefix\"; readonly \"background runs\": \"backgroundRuns\"; readonly \"background poll\": \"backgroundPollSeconds\"; readonly \"background launch wait\": \"backgroundLaunchSeconds\"; readonly \"denied run commands\": \"deniedRunCommands\"; readonly \"run auto mode\": \"runAutoMode\"; readonly \"run slots\": \"runSlots\"; readonly \"owner logins\": \"ownerLogins\"; readonly \"repeat threshold\": \"repeatAt\"; readonly \"repeat precision bar\": \"repeatPrecision\"; readonly \"taste rules\": \"tasteRules\"; readonly \"memory size cap\": \"memoryMaxBytes\"; readonly \"memory unused runs\": \"memoryUnusedRuns\"; readonly \"measure window\": \"measureWindow\"; readonly \"loop interval\": \"loopIntervalSeconds\"; readonly \"proof timeout\": \"proofTimeoutSeconds\"; readonly \"kind floors\": \"kindFloors\"; readonly \"check kind\": \"checkKind\"; readonly \"break check\": \"breakCheck\"; readonly checks: \"checks\"; readonly \"kind labels\": \"kindLabels\"; readonly \"run places\": \"runPlaces\"; }",
6728
+ "type": "{ readonly machines: \"kinds\"; readonly roles: \"roles\"; readonly integrations: \"integrations\"; readonly \"risk levels\": \"levels\"; readonly \"safety rule\": \"safety\"; readonly \"cheap model call\": \"decisionModel\"; readonly \"daily question cap\": \"dailyQuestionCap\"; readonly \"kinds' tables\": \"kinds\"; readonly \"run branch prefix\": \"runBranchPrefix\"; readonly \"claim prefix\": \"claimPrefix\"; readonly \"ready label\": \"readyLabel\"; readonly \"merge method\": \"mergeMethod\"; readonly \"model per tier\": \"models\"; readonly \"runner count\": \"runners\"; readonly \"tick interval\": \"tickIntervalSeconds\"; readonly \"drain timeout\": \"drainTimeoutSeconds\"; readonly \"claim expiry\": \"claimExpirySeconds\"; readonly \"latest-version cache\": \"latestVersionCacheSeconds\"; readonly \"watch cache\": \"watchCacheSeconds\"; readonly \"watch lock\": \"watchLockSeconds\"; readonly \"fix runs\": \"maxFixRuns\"; readonly \"service label\": \"serviceLabel\"; readonly \"crash limit\": \"maxCrashes\"; readonly \"crash window\": \"crashWindowSeconds\"; readonly \"worker-down age\": \"workerDownTicks\"; readonly \"token warning lead\": \"tokenWarnDays\"; readonly \"CI schedule\": \"ciSchedule\"; readonly \"CI tick cache\": \"ciTickCacheSeconds\"; readonly \"commit identity\": \"commitIdentity\"; readonly \"items folder\": \"itemsDir\"; readonly \"provider timeout\": \"providerTimeoutSeconds\"; readonly \"provider backoff\": \"providerBackoff\"; readonly \"merged changes shown\": \"mergedShown\"; readonly \"choices shown\": \"choicesShown\"; readonly \"status read timeout\": \"statusReadTimeoutSeconds\"; readonly \"command timeout\": \"commandTimeoutSeconds\"; readonly \"merge tries\": \"mergeTries\"; readonly \"write race retries\": \"writeRaceRetries\"; readonly \"item reads at once\": \"itemReadsAtOnce\"; readonly \"restart backoff\": \"restartBackoff\"; readonly \"restart delay\": \"restartDelaySeconds\"; readonly \"CI wake timeout\": \"ciWakeTimeoutMinutes\"; readonly \"CI outbox cap\": \"ciOutboxMaxMegabytes\"; readonly \"CI usage limit cap\": \"ciUsageLimitMaxHours\"; readonly \"follow-ups per pass\": \"followUpsPerPass\"; readonly \"publish tree cap\": \"publishTreeMaxMegabytes\"; readonly \"CI merge margin\": \"ciMergeMarginMinutes\"; readonly \"pull request token\": \"pullRequestToken\"; readonly \"CI runner\": \"ciRunner\"; readonly \"CI container\": \"ciContainer\"; readonly \"CI env\": \"ciEnv\"; readonly \"CI Claude auth\": \"ciClaudeAuth\"; readonly \"data and secrets paths\": \"strictPaths\"; readonly \"path rules\": \"paths\"; readonly launches: \"launches\"; readonly \"size range\": \"sizeRange\"; readonly \"loosened-check rule\": \"loosenedCheck\"; readonly \"change labels\": \"changeLabels\"; readonly \"history depth\": \"historyDepth\"; readonly lockfiles: \"lockfiles\"; readonly \"hook paths\": \"hookPaths\"; readonly \"diff limit\": \"diffLimit\"; readonly \"failure tail\": \"failureTail\"; readonly \"kind meanings\": \"kindMeanings\"; readonly \"fallback kind\": \"fallbackKind\"; readonly \"docs-only kind\": \"docsOnly\"; readonly \"model call timeout\": \"modelCallTimeoutSeconds\"; readonly \"measured models\": \"measuredModels\"; readonly \"judge rate bar\": \"minJudgeRate\"; readonly \"merge-risk weights\": \"mergeRisk\"; readonly \"question limits\": \"questionLimits\"; readonly \"question timeout\": \"questionTimeoutHours\"; readonly \"priority labels\": \"priorityLabels\"; readonly \"undoable levels\": \"undoableLevels\"; readonly \"owner branch prefix\": \"ownerBranchPrefix\"; readonly \"background runs\": \"backgroundRuns\"; readonly \"background poll\": \"backgroundPollSeconds\"; readonly \"background launch wait\": \"backgroundLaunchSeconds\"; readonly \"denied run commands\": \"deniedRunCommands\"; readonly \"run auto mode\": \"runAutoMode\"; readonly \"run slots\": \"runSlots\"; readonly \"owner logins\": \"ownerLogins\"; readonly \"repeat threshold\": \"repeatAt\"; readonly \"repeat precision bar\": \"repeatPrecision\"; readonly \"taste rules\": \"tasteRules\"; readonly \"memory size cap\": \"memoryMaxBytes\"; readonly \"memory unused runs\": \"memoryUnusedRuns\"; readonly \"measure window\": \"measureWindow\"; readonly \"loop interval\": \"loopIntervalSeconds\"; readonly \"proof timeout\": \"proofTimeoutSeconds\"; readonly \"kind floors\": \"kindFloors\"; readonly \"check kind\": \"checkKind\"; readonly \"break check\": \"breakCheck\"; readonly checks: \"checks\"; readonly \"kind labels\": \"kindLabels\"; readonly \"run places\": \"runPlaces\"; }",
6227
6729
  "value": {
6228
6730
  "machines": "kinds",
6229
6731
  "roles": "roles",
@@ -6267,7 +6769,16 @@
6267
6769
  "restart backoff": "restartBackoff",
6268
6770
  "restart delay": "restartDelaySeconds",
6269
6771
  "CI wake timeout": "ciWakeTimeoutMinutes",
6270
- "pull request token secret": "pullRequestTokenSecret",
6772
+ "CI outbox cap": "ciOutboxMaxMegabytes",
6773
+ "CI usage limit cap": "ciUsageLimitMaxHours",
6774
+ "follow-ups per pass": "followUpsPerPass",
6775
+ "publish tree cap": "publishTreeMaxMegabytes",
6776
+ "CI merge margin": "ciMergeMarginMinutes",
6777
+ "pull request token": "pullRequestToken",
6778
+ "CI runner": "ciRunner",
6779
+ "CI container": "ciContainer",
6780
+ "CI env": "ciEnv",
6781
+ "CI Claude auth": "ciClaudeAuth",
6271
6782
  "data and secrets paths": "strictPaths",
6272
6783
  "path rules": "paths",
6273
6784
  "launches": "launches",
@@ -6443,16 +6954,16 @@
6443
6954
  "type": "export type Policy = Pick<HumConfig, \"levels\" | \"paths\" | \"strictPaths\" | \"launches\" | \"sizeRange\" | \"hookPaths\">;\n= { levels: { name: string; review: \"agent\" | \"none\" | \"owner\"; release: \"after-proof\" | \"at-once\"; onBreak: \"block\" | \"follow-up\"; }[]; paths: { glob: string; level: string; proofs?: Record<string, string> | undefined; limit?: undefined | { fixes: number; of: number; }; }[]; strictPaths: string[]; launches: ({ glob: string; level: string; base: string; } | { glob: string; level: string; from: string; until: string; })[]; sizeRange: { changes: number; fewest: number; middle: number; }; hookPaths: string[]; }"
6444
6955
  },
6445
6956
  "PoolOptions": {
6446
- "type": "export type PoolOptions = {\n readonly repo: string;\n readonly state: Pick<State, \"slots\" | \"faults\" | \"runs\">;\n readonly config: Pick<HumConfig, \"runners\" | \"runSlots\" | \"lockfiles\" | \"commandTimeoutSeconds\">;\n readonly base: string;\n readonly liveRuns?: () => Promise<ReadonlySet<string>>;\n readonly now: () => number;\n};\n= { readonly repo: string; readonly state: Pick<{ dir: string; statusPath: string; heartbeatPath: string; inbox: string; stops: string; faults: Faults; items: Items; events: EventLog; ops: OpKeys; runs: RunRecords; parked: Records<ZodObject<{ item: ZodString; why: ZodEnum<{ review: \"review\"; stuck: \"stuck\"; }>; cause: ZodString; since: ZodInt; }, $strip>>; spent: Records<ZodObject<{ item: ZodString; total: ZodInt; base: ZodInt; }, $strip>>; kinds: Records<ZodObject<{ tiers: ZodArray<ZodObject<{ purpose: ZodEnum<{ fix: \"fix\"; review: \"review\"; plan: \"plan\"; build: \"build\"; }>; level: ZodOptional<ZodString>; size: ZodOptional<ZodEnum<{ small: \"small\"; medium: \"medium\"; large: \"large\"; }>>; tier: ZodEnum<{ light: \"light\"; standard: \"standard\"; top: \"top\"; }>; effort: ZodEnum<{ medium: \"medium\"; low: \"low\"; high: \"high\"; }>; }, $strict>>; tokenCap: ZodObject<{ tokens: ZodNumber; overCap: ZodString; }, $strict>; stateMap: ZodOptional<ZodRecord<ZodString, ZodRecord<ZodString, ZodString>>>; machine: ZodObject<{ id: ZodString; version: ZodString; initial: ZodString; states: ZodRecord<ZodString, ZodObject<{ type: ZodOptional<ZodEnum<{ atomic: \"atomic\"; final: \"final\"; }>>; description: ZodOptional<ZodString>; tags: ZodOptional<ZodArray<ZodString>>; invoke: ZodOptional<ZodObject<{ src: ZodString; onDone: ZodOptional<ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>; onError: ZodOptional<ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>; }, $strict>>; on: ZodOptional<ZodRecord<ZodString, ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>>; always: ZodOptional<ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>; after: ZodOptional<ZodRecord<ZodString, ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>>; timeout: ZodOptional<ZodNumber>; onTimeout: ZodOptional<ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>; entry: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; exit: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; }, $strict>>; }, $strict>; }, $strict>>; limit: Records<ZodObject<{ until: ZodInt; }, $strip>>; ready: Records<ZodObject<{ ids: ZodArray<ZodString>; }, $strip>>; slots: Records<ZodDiscriminatedUnion<[ZodObject<{ status: ZodEnum<{ out: \"out\"; new: \"new\"; free: \"free\"; stale: \"stale\"; }>; name: ZodString; index: ZodInt; folder: ZodString; lockfiles: ZodOptional<ZodString>; since: ZodInt; }, $strip>, ZodObject<{ status: ZodEnum<{ taken: \"taken\"; kept: \"kept\"; }>; item: ZodString; name: ZodString; index: ZodInt; folder: ZodString; lockfiles: ZodOptional<ZodString>; since: ZodInt; }, $strip>], \"status\">>; landings: Records<ZodObject<{ item: ZodString; branch: ZodString; since: ZodInt; change: ZodReadonly<ZodObject<{ paths: ZodReadonly<ZodArray<ZodString>>; size: ZodInt; loosened: ZodBoolean; pinChanged: ZodBoolean; }, $strip>>; head: ZodString; ownerApproved: ZodBoolean; alignment: ZodOptional<ZodUnion<readonly [ZodObject<{ graded: ZodObject<{ alignment: ZodEnum<{ sound: \"sound\"; partial: \"partial\"; concern: \"concern\"; }>; verification: ZodEnum<{ sound: \"sound\"; partial: \"partial\"; concern: \"concern\"; }>; }, $strict>; }, $strip>, ZodObject<{ abstained: ZodString; }, $strip>]>>; }, $strip>>; learned: Records<ZodObject<{ glob: ZodString; level: ZodString; item: ZodString; commit: ZodString; pull: ZodOptional<ZodString>; at: ZodInt; }, $strip>>; itemKinds: Records<ZodDiscriminatedUnion<[ZodObject<{ item: ZodString; kind: ZodString; from: ZodLiteral<\"source\">; }, $strip>, ZodObject<{ item: ZodString; kind: ZodString; from: ZodLiteral<\"model\">; }, $strip>, ZodObject<{ item: ZodString; kind: ZodString; from: ZodLiteral<\"fallback\">; why: ZodString; }, $strip>], \"from\">>; plans: Records<ZodObject<{ item: ZodString; plan: ZodObject<{ summary: ZodString; steps: ZodArray<ZodString>; paths: ZodArray<ZodString>; }, $strict>; hash: ZodString; models: ZodArray<ZodString>; }, $strip>>; verdicts: Records<ZodObject<{ item: ZodString; head: ZodString; event: ZodString; reason: ZodString; cites: ZodArray<ZodObject<{ file: ZodString; line: ZodInt; }, $strict>>; models: ZodArray<ZodString>; }, $strip>>; questions: Records<ZodObject<{ item: ZodString; text: ZodString; options: ZodOptional<ZodArray<ZodString>>; detail: ZodOptional<ZodString>; priority: ZodInt; footprint: ZodOptional<ZodArray<ZodString>>; queuedAt: ZodInt; askedAt: ZodOptional<ZodInt>; }, $strip>>; choices: Records<ZodMiniObject<{ item: ZodMiniString<string>; text: ZodMiniString<string>; at: ZodMiniInt; }, $strip>>; answers: Records<ZodDiscriminatedUnion<[ZodObject<{ source: ZodLiteral<\"marker\">; option: ZodOptional<ZodString>; item: ZodString; ordinal: ZodInt; text: ZodString; disposition: ZodEnum<{ applied: \"applied\"; held: \"held\"; dropped: \"dropped\"; }>; why: ZodString; at: ZodInt; }, $strip>, ZodObject<{ source: ZodEnum<{ model: \"model\"; \"first-word\": \"first-word\"; }>; option: ZodString; item: ZodString; ordinal: ZodInt; text: ZodString; disposition: ZodEnum<{ applied: \"applied\"; held: \"held\"; dropped: \"dropped\"; }>; why: ZodString; at: ZodInt; }, $strip>, ZodObject<{ source: ZodEnum<{ free: \"free\"; abstained: \"abstained\"; \"none-of-these\": \"none-of-these\"; }>; item: ZodString; ordinal: ZodInt; text: ZodString; disposition: ZodEnum<{ applied: \"applied\"; held: \"held\"; dropped: \"dropped\"; }>; why: ZodString; at: ZodInt; }, $strip>], \"source\">>; notes: Records<ZodObject<{ source: ZodEnum<{ fix: \"fix\"; \"review-comment\": \"review-comment\"; \"review-body\": \"review-body\"; \"plan-answer\": \"plan-answer\"; revert: \"revert\"; }>; sourceId: ZodString; change: ZodString; item: ZodOptional<ZodString>; file: ZodOptional<ZodString>; line: ZodOptional<ZodInt>; hunk: ZodString; text: ZodString; at: ZodInt; }, $strip>>; repeats: Records<ZodObject<{ key: ZodString; notes: ZodArray<ZodString>; item: ZodOptional<ZodString>; commented: ZodArray<ZodString>; checked: ZodOptional<ZodObject<{ at: ZodInt; check: ZodString; }, $strip>>; misses: ZodArray<ZodString>; }, $strip>>; possibleRepeats: Records<ZodObject<{ a: ZodString; b: ZodString; models: ZodArray<ZodString>; at: ZodInt; }, $strip>>; merges: Records<ZodObject<{ item: ZodString; sha: ZodString; at: ZodInt; paths: ZodArray<ZodString>; }, $strip>>; breaks: Records<ZodObject<{ item: ZodString; sha: ZodString; at: ZodInt; paths: ZodArray<ZodString>; level: ZodString; failure: ZodString; onBreak: ZodEnum<{ \"follow-up\": \"follow-up\"; block: \"block\"; }>; followUp: ZodString; }, $strip>>; proofs: Records<ZodDiscriminatedUnion<[ZodObject<{ passed: ZodLiteral<true>; item: ZodString; at: ZodInt; worktrees: ZodInt; ms: ZodInt; }, $strip>, ZodObject<{ passed: ZodLiteral<false>; reason: ZodString; item: ZodString; at: ZodInt; worktrees: ZodInt; ms: ZodInt; }, $strip>], \"passed\">>; }, \"faults\" | \"runs\" | \"slots\">; readonly config: Pick<{ checks: string[]; kindLabels: Record<string, string>; runPlaces: (\"ci\" | \"mac\")[]; runBranchPrefix: string; claimPrefix: string; readyLabel: string; mergeMethod: \"merge\" | \"rebase\" | \"squash\"; models: Record<\"light\" | \"standard\" | \"top\", string>; runners: number; tickIntervalSeconds: number; drainTimeoutSeconds: number; claimExpirySeconds: number; latestVersionCacheSeconds: number; watchCacheSeconds: number; watchLockSeconds: number; maxFixRuns: number; serviceLabel: string; maxCrashes: number; crashWindowSeconds: number; workerDownTicks: number; tokenWarnDays: number; ciSchedule: string; ciTickCacheSeconds: number; itemsDir: string; providerTimeoutSeconds: number; providerBackoff: { firstSeconds: number; maxSeconds: number; }; mergedShown: number; choicesShown: number; statusReadTimeoutSeconds: number; commandTimeoutSeconds: number; mergeTries: number; writeRaceRetries: number; itemReadsAtOnce: number; restartBackoff: { firstSeconds: number; maxSeconds: number; }; restartDelaySeconds: number; pullRequestTokenSecret: string; ciWakeTimeoutMinutes: number; strictPaths: string[]; launches: ({ glob: string; level: string; base: string; } | { glob: string; level: string; from: string; until: string; })[]; sizeRange: { changes: number; fewest: number; middle: number; }; loosenedCheck: { added: string[]; removed: string[]; }; changeLabels: { fixWindow: number; fixSubject: string; revertSubject: string; revertTrailer: string; }; historyDepth: number; lockfiles: string[]; hookPaths: string[]; diffLimit: number; failureTail: number; kindMeanings: Record<string, string>; fallbackKind: string; docsOnly: { kind: string; paths: string[]; }; decisionModel: string; modelCallTimeoutSeconds: number; measuredModels: Record<\"alignment\" | \"kind\" | \"plan-outcome\" | \"repeat-pair\" | \"reply-option\" | \"review-verdict\" | \"taste\", Record<string, number>>; minJudgeRate: number; questionLimits: { cells: number; wordCells: number; }; questionTimeoutHours: number; priorityLabels: string[]; undoableLevels: string[]; ownerBranchPrefix: string; backgroundRuns: boolean; backgroundLaunchSeconds: number; backgroundPollSeconds: number; deniedRunCommands: string[]; runAutoMode: { environment: string[]; allow: string[]; hardDeny: string[]; }; runSlots: { enabled: boolean; pool: string; services: \"per-slot\" | \"shared\"; ports: { base: number; stride: number; }; projectPrefix: string; stepTimeoutSeconds: number; recipe: { prepare: string[]; refresh: { run: string; when: \"always\" | \"lockfile-changed\"; }[]; ready: string[]; }; }; ownerLogins: string[]; repeatAt: number; repeatPrecision: number; tasteRules: string[]; memoryMaxBytes: number; memoryUnusedRuns: number; measureWindow: number; loopIntervalSeconds: number; proofTimeoutSeconds: number; kindFloors: Record<string, string>; checkKind: string; breakCheck: boolean; mergeRisk: { weights: Record<\"alignment\" | \"errorDetection\" | \"impact\" | \"rollback\" | \"verification\", number>; cuts: [number, number]; }; schemaVersion: 1; levels: { name: string; review: \"agent\" | \"none\" | \"owner\"; release: \"after-proof\" | \"at-once\"; onBreak: \"block\" | \"follow-up\"; }[]; paths: { glob: string; level: string; proofs?: Record<string, string> | undefined; limit?: undefined | { fixes: number; of: number; }; }[]; roles: Record<string, { file: string; purpose: \"build\" | \"fix\" | \"plan\" | \"review\"; skills: string[]; }>; events: Record<string, { source: string; }>; kinds: string[]; commitIdentity: { name: string; email: string; }; safety?: Record<string, unknown> | undefined; dailyQuestionCap?: number | undefined; integrations?: Record<string, string> | undefined; ciToken?: undefined | { setUp: string; }; }, \"commandTimeoutSeconds\" | \"lockfiles\" | \"runSlots\" | \"runners\">; readonly base: string; readonly liveRuns?: (() => Promise<ReadonlySet<string>>) | undefined; readonly now: () => number; }"
6957
+ "type": "export type PoolOptions = {\n readonly repo: string;\n readonly state: Pick<State, \"slots\" | \"faults\" | \"runs\">;\n readonly config: Pick<HumConfig, \"runners\" | \"runSlots\" | \"lockfiles\" | \"commandTimeoutSeconds\">;\n readonly base: string;\n readonly liveRuns?: () => Promise<ReadonlySet<string>>;\n readonly now: () => number;\n};\n= { readonly repo: string; readonly state: Pick<{ dir: string; statusPath: string; heartbeatPath: string; inbox: string; stops: string; faults: Faults; items: Items; events: EventLog; ops: OpKeys; runs: RunRecords; parked: Records<ZodObject<{ item: ZodString; why: ZodEnum<{ review: \"review\"; stuck: \"stuck\"; }>; cause: ZodString; since: ZodInt; }, $strip>>; spent: Records<ZodObject<{ item: ZodString; total: ZodInt; base: ZodInt; }, $strip>>; kinds: Records<ZodObject<{ tiers: ZodArray<ZodObject<{ purpose: ZodEnum<{ fix: \"fix\"; review: \"review\"; plan: \"plan\"; build: \"build\"; }>; level: ZodOptional<ZodString>; size: ZodOptional<ZodEnum<{ small: \"small\"; medium: \"medium\"; large: \"large\"; }>>; tier: ZodEnum<{ light: \"light\"; standard: \"standard\"; top: \"top\"; }>; effort: ZodEnum<{ medium: \"medium\"; low: \"low\"; high: \"high\"; }>; }, $strict>>; tokenCap: ZodObject<{ tokens: ZodNumber; overCap: ZodString; }, $strict>; stateMap: ZodOptional<ZodRecord<ZodString, ZodRecord<ZodString, ZodString>>>; machine: ZodObject<{ id: ZodString; version: ZodString; initial: ZodString; states: ZodRecord<ZodString, ZodObject<{ type: ZodOptional<ZodEnum<{ atomic: \"atomic\"; final: \"final\"; }>>; description: ZodOptional<ZodString>; tags: ZodOptional<ZodArray<ZodString>>; invoke: ZodOptional<ZodObject<{ src: ZodString; onDone: ZodOptional<ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>; onError: ZodOptional<ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>; }, $strict>>; on: ZodOptional<ZodRecord<ZodString, ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>>; always: ZodOptional<ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>; after: ZodOptional<ZodRecord<ZodString, ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>>; timeout: ZodOptional<ZodNumber>; onTimeout: ZodOptional<ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>; entry: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; exit: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; }, $strict>>; }, $strict>; }, $strict>>; limit: Records<ZodObject<{ until: ZodInt; }, $strip>>; ready: Records<ZodObject<{ ids: ZodArray<ZodString>; }, $strip>>; slots: Records<ZodDiscriminatedUnion<[ZodObject<{ status: ZodEnum<{ out: \"out\"; new: \"new\"; free: \"free\"; stale: \"stale\"; }>; name: ZodString; index: ZodInt; folder: ZodString; lockfiles: ZodOptional<ZodString>; since: ZodInt; }, $strip>, ZodObject<{ status: ZodEnum<{ taken: \"taken\"; kept: \"kept\"; }>; item: ZodString; name: ZodString; index: ZodInt; folder: ZodString; lockfiles: ZodOptional<ZodString>; since: ZodInt; }, $strip>], \"status\">>; landings: Records<ZodObject<{ item: ZodString; branch: ZodString; since: ZodInt; change: ZodReadonly<ZodObject<{ paths: ZodReadonly<ZodArray<ZodString>>; size: ZodInt; loosened: ZodBoolean; pinChanged: ZodBoolean; }, $strip>>; head: ZodString; lostRaces: ZodDefault<ZodInt>; patch: ZodOptional<ZodString>; alignment: ZodOptional<ZodUnion<readonly [ZodObject<{ graded: ZodObject<{ alignment: ZodEnum<{ sound: \"sound\"; partial: \"partial\"; concern: \"concern\"; }>; verification: ZodEnum<{ sound: \"sound\"; partial: \"partial\"; concern: \"concern\"; }>; }, $strict>; }, $strip>, ZodObject<{ abstained: ZodString; }, $strip>]>>; }, $strip>>; learned: Records<ZodObject<{ glob: ZodString; level: ZodString; item: ZodString; commit: ZodString; pull: ZodOptional<ZodString>; at: ZodInt; }, $strip>>; itemKinds: Records<ZodDiscriminatedUnion<[ZodObject<{ item: ZodString; kind: ZodString; from: ZodLiteral<\"source\">; }, $strip>, ZodObject<{ item: ZodString; kind: ZodString; from: ZodLiteral<\"model\">; }, $strip>, ZodObject<{ item: ZodString; kind: ZodString; from: ZodLiteral<\"fallback\">; why: ZodString; }, $strip>], \"from\">>; plans: Records<ZodObject<{ item: ZodString; plan: ZodObject<{ summary: ZodString; steps: ZodArray<ZodString>; paths: ZodArray<ZodString>; }, $strict>; hash: ZodString; models: ZodArray<ZodString>; }, $strip>>; verdicts: Records<ZodObject<{ item: ZodString; head: ZodString; event: ZodString; reason: ZodString; cites: ZodArray<ZodObject<{ file: ZodString; line: ZodInt; }, $strict>>; models: ZodArray<ZodString>; }, $strip>>; pullRequests: Records<ZodObject<{ item: ZodString; title: ZodString; body: ZodString; evidence: ZodOptional<ZodUnion<readonly [ZodObject<{ kind: ZodEnum<{ image: \"image\"; video: \"video\"; }>; url: ZodURL; }, $strip>, ZodObject<{ left: ZodString; }, $strip>]>>; }, $strip>>; questions: Records<ZodObject<{ item: ZodString; text: ZodString; options: ZodOptional<ZodArray<ZodString>>; detail: ZodOptional<ZodString>; priority: ZodInt; footprint: ZodOptional<ZodArray<ZodString>>; queuedAt: ZodInt; askedAt: ZodOptional<ZodInt>; }, $strip>>; followUps: Records<ZodObject<{ item: ZodString; from: ZodString; at: ZodInt; }, $strip>>; choices: Records<ZodMiniObject<{ item: ZodMiniString<string>; text: ZodMiniString<string>; at: ZodMiniInt; }, $strip>>; answers: Records<ZodDiscriminatedUnion<[ZodObject<{ source: ZodLiteral<\"marker\">; option: ZodOptional<ZodString>; item: ZodString; ordinal: ZodInt; text: ZodString; disposition: ZodEnum<{ applied: \"applied\"; held: \"held\"; dropped: \"dropped\"; }>; why: ZodString; at: ZodInt; }, $strip>, ZodObject<{ source: ZodEnum<{ model: \"model\"; \"first-word\": \"first-word\"; }>; option: ZodString; item: ZodString; ordinal: ZodInt; text: ZodString; disposition: ZodEnum<{ applied: \"applied\"; held: \"held\"; dropped: \"dropped\"; }>; why: ZodString; at: ZodInt; }, $strip>, ZodObject<{ source: ZodEnum<{ free: \"free\"; abstained: \"abstained\"; \"none-of-these\": \"none-of-these\"; }>; item: ZodString; ordinal: ZodInt; text: ZodString; disposition: ZodEnum<{ applied: \"applied\"; held: \"held\"; dropped: \"dropped\"; }>; why: ZodString; at: ZodInt; }, $strip>], \"source\">>; notes: Records<ZodObject<{ source: ZodEnum<{ fix: \"fix\"; \"review-comment\": \"review-comment\"; \"review-body\": \"review-body\"; \"plan-answer\": \"plan-answer\"; revert: \"revert\"; }>; sourceId: ZodString; change: ZodString; item: ZodOptional<ZodString>; file: ZodOptional<ZodString>; line: ZodOptional<ZodInt>; hunk: ZodString; text: ZodString; at: ZodInt; }, $strip>>; repeats: Records<ZodObject<{ key: ZodString; notes: ZodArray<ZodString>; item: ZodOptional<ZodString>; commented: ZodArray<ZodString>; checked: ZodOptional<ZodObject<{ at: ZodInt; check: ZodString; }, $strip>>; misses: ZodArray<ZodString>; }, $strip>>; possibleRepeats: Records<ZodObject<{ a: ZodString; b: ZodString; models: ZodArray<ZodString>; at: ZodInt; }, $strip>>; merges: Records<ZodObject<{ item: ZodString; sha: ZodString; at: ZodInt; paths: ZodArray<ZodString>; baseChecked: ZodDefault<ZodBoolean>; }, $strip>>; breaks: Records<ZodObject<{ item: ZodString; sha: ZodString; at: ZodInt; paths: ZodArray<ZodString>; level: ZodString; failure: ZodString; onBreak: ZodEnum<{ \"follow-up\": \"follow-up\"; block: \"block\"; }>; followUp: ZodString; }, $strip>>; proofs: Records<ZodDiscriminatedUnion<[ZodObject<{ passed: ZodLiteral<true>; item: ZodString; at: ZodInt; worktrees: ZodInt; ms: ZodInt; }, $strip>, ZodObject<{ passed: ZodLiteral<false>; reason: ZodString; item: ZodString; at: ZodInt; worktrees: ZodInt; ms: ZodInt; }, $strip>], \"passed\">>; }, \"faults\" | \"runs\" | \"slots\">; readonly config: Pick<{ checks: string[]; kindLabels: Record<string, string>; runPlaces: (\"ci\" | \"mac\")[]; runBranchPrefix: string; claimPrefix: string; readyLabel: string; mergeMethod: \"merge\" | \"rebase\" | \"squash\"; models: Record<\"light\" | \"standard\" | \"top\", string>; runners: number; tickIntervalSeconds: number; drainTimeoutSeconds: number; claimExpirySeconds: number; latestVersionCacheSeconds: number; watchCacheSeconds: number; watchLockSeconds: number; maxFixRuns: number; serviceLabel: string; maxCrashes: number; crashWindowSeconds: number; workerDownTicks: number; tokenWarnDays: number; ciSchedule: string; ciTickCacheSeconds: number; itemsDir: string; providerTimeoutSeconds: number; providerBackoff: { firstSeconds: number; maxSeconds: number; }; mergedShown: number; choicesShown: number; statusReadTimeoutSeconds: number; commandTimeoutSeconds: number; mergeTries: number; writeRaceRetries: number; itemReadsAtOnce: number; restartBackoff: { firstSeconds: number; maxSeconds: number; }; restartDelaySeconds: number; pullRequestToken: { from: \"app\"; clientIdSecret: string; privateKeySecret: string; } | { from: \"secret\"; secret: string; }; ciWakeTimeoutMinutes: number; ciOutboxMaxMegabytes: number; ciUsageLimitMaxHours: number; followUpsPerPass: number; publishTreeMaxMegabytes: number; ciMergeMarginMinutes: number; ciRunner: string | string[] | { group: string; labels?: string | string[] | undefined; }; ciContainer: null | string | { image: string; credentials?: undefined | { username: string; password: string; }; env?: Record<string, string> | undefined; ports?: (number | string)[] | undefined; volumes?: string[] | undefined; options?: string | undefined; }; ciEnv: Record<string, string>; ciClaudeAuth: \"env\" | \"oauth-token\"; strictPaths: string[]; launches: ({ glob: string; level: string; base: string; } | { glob: string; level: string; from: string; until: string; })[]; sizeRange: { changes: number; fewest: number; middle: number; }; loosenedCheck: { added: string[]; removed: string[]; }; changeLabels: { fixWindow: number; fixSubject: string; revertSubject: string; revertTrailer: string; }; historyDepth: number; lockfiles: string[]; hookPaths: string[]; diffLimit: number; failureTail: number; kindMeanings: Record<string, string>; fallbackKind: string; docsOnly: { kind: string; paths: string[]; }; decisionModel: string; modelCallTimeoutSeconds: number; measuredModels: Record<\"alignment\" | \"kind\" | \"plan-outcome\" | \"repeat-pair\" | \"reply-option\" | \"review-verdict\" | \"taste\", Record<string, number>>; minJudgeRate: number; questionLimits: { cells: number; wordCells: number; }; questionTimeoutHours: number; priorityLabels: string[]; undoableLevels: string[]; ownerBranchPrefix: string; backgroundRuns: boolean; backgroundLaunchSeconds: number; backgroundPollSeconds: number; deniedRunCommands: string[]; runAutoMode: { environment: string[]; allow: string[]; hardDeny: string[]; }; runSlots: { enabled: boolean; pool: string; services: \"per-slot\" | \"shared\"; ports: { base: number; stride: number; }; projectPrefix: string; stepTimeoutSeconds: number; recipe: { prepare: string[]; refresh: { run: string; when: \"always\" | \"lockfile-changed\"; }[]; ready: string[]; }; }; ownerLogins: string[]; repeatAt: number; repeatPrecision: number; tasteRules: string[]; memoryMaxBytes: number; memoryUnusedRuns: number; measureWindow: number; loopIntervalSeconds: number; proofTimeoutSeconds: number; kindFloors: Record<string, string>; checkKind: string; breakCheck: boolean; mergeRisk: { weights: Record<\"alignment\" | \"errorDetection\" | \"impact\" | \"rollback\" | \"verification\", number>; cuts: [number, number]; }; schemaVersion: 2; levels: { name: string; review: \"agent\" | \"none\" | \"owner\"; release: \"after-proof\" | \"at-once\"; onBreak: \"block\" | \"follow-up\"; }[]; paths: { glob: string; level: string; proofs?: Record<string, string> | undefined; limit?: undefined | { fixes: number; of: number; }; }[]; roles: Record<string, { file: string; purpose: \"build\" | \"fix\" | \"plan\" | \"review\"; skills: string[]; }>; events: Record<string, { source: string; }>; kinds: string[]; commitIdentity: { name: string; email: string; }; safety?: Record<string, unknown> | undefined; dailyQuestionCap?: number | undefined; integrations?: Partial<Record<\"answers\" | \"questions\" | \"release\" | \"work-source\", string>> | undefined; ciToken?: undefined | { setUp: string; }; }, \"commandTimeoutSeconds\" | \"lockfiles\" | \"runSlots\" | \"runners\">; readonly base: string; readonly liveRuns?: (() => Promise<ReadonlySet<string>>) | undefined; readonly now: () => number; }"
6447
6958
  },
6448
6959
  "PrefixGate": {
6449
6960
  "type": "typeof PrefixGate; new ({ now, ttlMs }: { now: () => number; ttlMs?: number | undefined; }) => PrefixGate\nenter: (prefix: string, abort?: AbortSignal | undefined) => Promise<Lease>"
6450
6961
  },
6451
6962
  "prepareLanding": {
6452
- "type": "(ctx: LandContext, { ownerApproved }?: { readonly ownerApproved?: boolean | undefined; }) => Promise<PushOutcome>"
6963
+ "type": "(ctx: LandContext) => Promise<PushOutcome>"
6453
6964
  },
6454
6965
  "Problem": {
6455
- "type": "export type Problem = {\n readonly problem: \"unreachable-state\";\n readonly kind: string;\n readonly state: string;\n} | {\n readonly problem: \"dead-end-state\";\n readonly kind: string;\n readonly state: string;\n} | {\n readonly problem: \"wait-without-timeout\";\n readonly kind: string;\n readonly state: string;\n} | {\n readonly problem: \"event-without-source\";\n readonly event: string;\n readonly source: string | undefined;\n} | {\n readonly problem: \"event-without-handler\";\n readonly event: string;\n} | {\n readonly problem: \"run-and-owner-wait\";\n readonly kind: string;\n readonly state: string;\n} | {\n readonly problem: \"missing-hope-skill\";\n readonly skill: string;\n readonly role: string;\n} | {\n readonly problem: \"unknown-state\";\n readonly kind: string;\n readonly state: string;\n readonly why: string;\n} | {\n readonly problem: \"unknown-run-source\";\n readonly kind: string;\n readonly state: string;\n readonly src: string;\n} | {\n readonly problem: \"tier-table-gap\";\n readonly kind: string;\n readonly purpose: string;\n readonly level: string;\n readonly size: string;\n} | {\n readonly problem: \"machine-rejected\";\n readonly kind: string;\n readonly why: string;\n} | {\n readonly problem: \"missing-file\";\n readonly file: string;\n} | {\n readonly problem: \"unknown-level\";\n readonly level: string;\n} | {\n readonly problem: \"path-without-proof\";\n readonly glob: string;\n readonly level: string;\n} | {\n readonly problem: \"overlapping-prefixes\";\n readonly run: string;\n readonly claim: string;\n};\n= { readonly problem: \"dead-end-state\"; readonly kind: string; readonly state: string; } | { readonly problem: \"event-without-handler\"; readonly event: string; } | { readonly problem: \"event-without-source\"; readonly event: string; readonly source: string | undefined; } | { readonly problem: \"machine-rejected\"; readonly kind: string; readonly why: string; } | { readonly problem: \"missing-file\"; readonly file: string; } | { readonly problem: \"missing-hope-skill\"; readonly skill: string; readonly role: string; } | { readonly problem: \"overlapping-prefixes\"; readonly run: string; readonly claim: string; } | { readonly problem: \"path-without-proof\"; readonly glob: string; readonly level: string; } | { readonly problem: \"run-and-owner-wait\"; readonly kind: string; readonly state: string; } | { readonly problem: \"tier-table-gap\"; readonly kind: string; readonly purpose: string; readonly level: string; readonly size: string; } | { readonly problem: \"unknown-level\"; readonly level: string; } | { readonly problem: \"unknown-run-source\"; readonly kind: string; readonly state: string; readonly src: string; } | { readonly problem: \"unknown-state\"; readonly kind: string; readonly state: string; readonly why: string; } | { readonly problem: \"unreachable-state\"; readonly kind: string; readonly state: string; } | { readonly problem: \"wait-without-timeout\"; readonly kind: string; readonly state: string; }"
6966
+ "type": "export type Problem = {\n readonly problem: \"unreachable-state\";\n readonly kind: string;\n readonly state: string;\n} | {\n readonly problem: \"dead-end-state\";\n readonly kind: string;\n readonly state: string;\n} | {\n readonly problem: \"wait-without-timeout\";\n readonly kind: string;\n readonly state: string;\n} | {\n readonly problem: \"event-without-source\";\n readonly event: string;\n readonly source: string | undefined;\n} | {\n readonly problem: \"event-without-handler\";\n readonly event: string;\n} | {\n readonly problem: \"run-and-owner-wait\";\n readonly kind: string;\n readonly state: string;\n} | {\n readonly problem: \"missing-skill\";\n readonly skill: string;\n readonly role: string;\n} | {\n readonly problem: \"unknown-state\";\n readonly kind: string;\n readonly state: string;\n readonly why: string;\n} | {\n readonly problem: \"unknown-run-source\";\n readonly kind: string;\n readonly state: string;\n readonly src: string;\n} | {\n readonly problem: \"tier-table-gap\";\n readonly kind: string;\n readonly purpose: string;\n readonly level: string;\n readonly size: string;\n} | {\n readonly problem: \"machine-rejected\";\n readonly kind: string;\n readonly why: string;\n} | {\n readonly problem: \"missing-file\";\n readonly file: string;\n} | {\n readonly problem: \"unknown-level\";\n readonly level: string;\n} | {\n readonly problem: \"path-without-proof\";\n readonly glob: string;\n readonly level: string;\n} | {\n readonly problem: \"overlapping-prefixes\";\n readonly run: string;\n readonly claim: string;\n} | {\n readonly problem: \"wake-env-taken\";\n readonly name: string;\n} | {\n readonly problem: \"merge-margin-fills-token-hour\";\n readonly minutes: number;\n readonly tokenMinutes: number;\n};\n= { readonly problem: \"dead-end-state\"; readonly kind: string; readonly state: string; } | { readonly problem: \"event-without-handler\"; readonly event: string; } | { readonly problem: \"event-without-source\"; readonly event: string; readonly source: string | undefined; } | { readonly problem: \"machine-rejected\"; readonly kind: string; readonly why: string; } | { readonly problem: \"merge-margin-fills-token-hour\"; readonly minutes: number; readonly tokenMinutes: number; } | { readonly problem: \"missing-file\"; readonly file: string; } | { readonly problem: \"missing-skill\"; readonly skill: string; readonly role: string; } | { readonly problem: \"overlapping-prefixes\"; readonly run: string; readonly claim: string; } | { readonly problem: \"path-without-proof\"; readonly glob: string; readonly level: string; } | { readonly problem: \"run-and-owner-wait\"; readonly kind: string; readonly state: string; } | { readonly problem: \"tier-table-gap\"; readonly kind: string; readonly purpose: string; readonly level: string; readonly size: string; } | { readonly problem: \"unknown-level\"; readonly level: string; } | { readonly problem: \"unknown-run-source\"; readonly kind: string; readonly state: string; readonly src: string; } | { readonly problem: \"unknown-state\"; readonly kind: string; readonly state: string; readonly why: string; } | { readonly problem: \"unreachable-state\"; readonly kind: string; readonly state: string; } | { readonly problem: \"wait-without-timeout\"; readonly kind: string; readonly state: string; } | { readonly problem: \"wake-env-taken\"; readonly name: string; }"
6456
6967
  },
6457
6968
  "PROSE_STATES": {
6458
6969
  "type": "{ readonly plan: { readonly boundary: \"plan-outcome\"; readonly events: readonly [\"plan-ready\", \"needs-split\", \"plan-blocked\"]; readonly unsure: \"plan-blocked\"; }; readonly review: { readonly boundary: \"review-verdict\"; readonly events: readonly [\"approve\", \"request-changes\", \"needs-owner\"]; readonly unsure: \"request-changes\"; }; }",
@@ -6507,7 +7018,8 @@
6507
7018
  "READABLE_SCHEMA_VERSIONS": {
6508
7019
  "type": "readonly number[]",
6509
7020
  "value": [
6510
- 1
7021
+ 1,
7022
+ 2
6511
7023
  ]
6512
7024
  },
6513
7025
  "readCiTick": {
@@ -6520,7 +7032,7 @@
6520
7032
  "type": "(path: string) => undefined | { time: number; engineVersion: string; configHash: string; inFlight: string[]; intervalMs: number; restarting?: string | undefined; }"
6521
7033
  },
6522
7034
  "readHistory": {
6523
- "type": "(git: Git, base: string, { historyDepth, changeLabels, }: Pick<{ checks: string[]; kindLabels: Record<string, string>; runPlaces: (\"ci\" | \"mac\")[]; runBranchPrefix: string; claimPrefix: string; readyLabel: string; mergeMethod: \"merge\" | \"rebase\" | \"squash\"; models: Record<\"light\" | \"standard\" | \"top\", string>; runners: number; tickIntervalSeconds: number; drainTimeoutSeconds: number; claimExpirySeconds: number; latestVersionCacheSeconds: number; watchCacheSeconds: number; watchLockSeconds: number; maxFixRuns: number; serviceLabel: string; maxCrashes: number; crashWindowSeconds: number; workerDownTicks: number; tokenWarnDays: number; ciSchedule: string; ciTickCacheSeconds: number; itemsDir: string; providerTimeoutSeconds: number; providerBackoff: { firstSeconds: number; maxSeconds: number; }; mergedShown: number; choicesShown: number; statusReadTimeoutSeconds: number; commandTimeoutSeconds: number; mergeTries: number; writeRaceRetries: number; itemReadsAtOnce: number; restartBackoff: { firstSeconds: number; maxSeconds: number; }; restartDelaySeconds: number; pullRequestTokenSecret: string; ciWakeTimeoutMinutes: number; strictPaths: string[]; launches: ({ glob: string; level: string; base: string; } | { glob: string; level: string; from: string; until: string; })[]; sizeRange: { changes: number; fewest: number; middle: number; }; loosenedCheck: { added: string[]; removed: string[]; }; changeLabels: { fixWindow: number; fixSubject: string; revertSubject: string; revertTrailer: string; }; historyDepth: number; lockfiles: string[]; hookPaths: string[]; diffLimit: number; failureTail: number; kindMeanings: Record<string, string>; fallbackKind: string; docsOnly: { kind: string; paths: string[]; }; decisionModel: string; modelCallTimeoutSeconds: number; measuredModels: Record<\"alignment\" | \"kind\" | \"plan-outcome\" | \"repeat-pair\" | \"reply-option\" | \"review-verdict\" | \"taste\", Record<string, number>>; minJudgeRate: number; questionLimits: { cells: number; wordCells: number; }; questionTimeoutHours: number; priorityLabels: string[]; undoableLevels: string[]; ownerBranchPrefix: string; backgroundRuns: boolean; backgroundLaunchSeconds: number; backgroundPollSeconds: number; deniedRunCommands: string[]; runAutoMode: { environment: string[]; allow: string[]; hardDeny: string[]; }; runSlots: { enabled: boolean; pool: string; services: \"per-slot\" | \"shared\"; ports: { base: number; stride: number; }; projectPrefix: string; stepTimeoutSeconds: number; recipe: { prepare: string[]; refresh: { run: string; when: \"always\" | \"lockfile-changed\"; }[]; ready: string[]; }; }; ownerLogins: string[]; repeatAt: number; repeatPrecision: number; tasteRules: string[]; memoryMaxBytes: number; memoryUnusedRuns: number; measureWindow: number; loopIntervalSeconds: number; proofTimeoutSeconds: number; kindFloors: Record<string, string>; checkKind: string; breakCheck: boolean; mergeRisk: { weights: Record<\"alignment\" | \"errorDetection\" | \"impact\" | \"rollback\" | \"verification\", number>; cuts: [number, number]; }; schemaVersion: 1; levels: { name: string; review: \"agent\" | \"none\" | \"owner\"; release: \"after-proof\" | \"at-once\"; onBreak: \"block\" | \"follow-up\"; }[]; paths: { glob: string; level: string; proofs?: Record<string, string> | undefined; limit?: undefined | { fixes: number; of: number; }; }[]; roles: Record<string, { file: string; purpose: \"build\" | \"fix\" | \"plan\" | \"review\"; skills: string[]; }>; events: Record<string, { source: string; }>; kinds: string[]; commitIdentity: { name: string; email: string; }; safety?: Record<string, unknown> | undefined; dailyQuestionCap?: number | undefined; integrations?: Record<string, string> | undefined; ciToken?: undefined | { setUp: string; }; }, \"changeLabels\" | \"historyDepth\">) => Promise<PastChange[]>"
7035
+ "type": "(git: Git, base: string, { historyDepth, changeLabels, }: Pick<{ checks: string[]; kindLabels: Record<string, string>; runPlaces: (\"ci\" | \"mac\")[]; runBranchPrefix: string; claimPrefix: string; readyLabel: string; mergeMethod: \"merge\" | \"rebase\" | \"squash\"; models: Record<\"light\" | \"standard\" | \"top\", string>; runners: number; tickIntervalSeconds: number; drainTimeoutSeconds: number; claimExpirySeconds: number; latestVersionCacheSeconds: number; watchCacheSeconds: number; watchLockSeconds: number; maxFixRuns: number; serviceLabel: string; maxCrashes: number; crashWindowSeconds: number; workerDownTicks: number; tokenWarnDays: number; ciSchedule: string; ciTickCacheSeconds: number; itemsDir: string; providerTimeoutSeconds: number; providerBackoff: { firstSeconds: number; maxSeconds: number; }; mergedShown: number; choicesShown: number; statusReadTimeoutSeconds: number; commandTimeoutSeconds: number; mergeTries: number; writeRaceRetries: number; itemReadsAtOnce: number; restartBackoff: { firstSeconds: number; maxSeconds: number; }; restartDelaySeconds: number; pullRequestToken: { from: \"app\"; clientIdSecret: string; privateKeySecret: string; } | { from: \"secret\"; secret: string; }; ciWakeTimeoutMinutes: number; ciOutboxMaxMegabytes: number; ciUsageLimitMaxHours: number; followUpsPerPass: number; publishTreeMaxMegabytes: number; ciMergeMarginMinutes: number; ciRunner: string | string[] | { group: string; labels?: string | string[] | undefined; }; ciContainer: null | string | { image: string; credentials?: undefined | { username: string; password: string; }; env?: Record<string, string> | undefined; ports?: (number | string)[] | undefined; volumes?: string[] | undefined; options?: string | undefined; }; ciEnv: Record<string, string>; ciClaudeAuth: \"env\" | \"oauth-token\"; strictPaths: string[]; launches: ({ glob: string; level: string; base: string; } | { glob: string; level: string; from: string; until: string; })[]; sizeRange: { changes: number; fewest: number; middle: number; }; loosenedCheck: { added: string[]; removed: string[]; }; changeLabels: { fixWindow: number; fixSubject: string; revertSubject: string; revertTrailer: string; }; historyDepth: number; lockfiles: string[]; hookPaths: string[]; diffLimit: number; failureTail: number; kindMeanings: Record<string, string>; fallbackKind: string; docsOnly: { kind: string; paths: string[]; }; decisionModel: string; modelCallTimeoutSeconds: number; measuredModels: Record<\"alignment\" | \"kind\" | \"plan-outcome\" | \"repeat-pair\" | \"reply-option\" | \"review-verdict\" | \"taste\", Record<string, number>>; minJudgeRate: number; questionLimits: { cells: number; wordCells: number; }; questionTimeoutHours: number; priorityLabels: string[]; undoableLevels: string[]; ownerBranchPrefix: string; backgroundRuns: boolean; backgroundLaunchSeconds: number; backgroundPollSeconds: number; deniedRunCommands: string[]; runAutoMode: { environment: string[]; allow: string[]; hardDeny: string[]; }; runSlots: { enabled: boolean; pool: string; services: \"per-slot\" | \"shared\"; ports: { base: number; stride: number; }; projectPrefix: string; stepTimeoutSeconds: number; recipe: { prepare: string[]; refresh: { run: string; when: \"always\" | \"lockfile-changed\"; }[]; ready: string[]; }; }; ownerLogins: string[]; repeatAt: number; repeatPrecision: number; tasteRules: string[]; memoryMaxBytes: number; memoryUnusedRuns: number; measureWindow: number; loopIntervalSeconds: number; proofTimeoutSeconds: number; kindFloors: Record<string, string>; checkKind: string; breakCheck: boolean; mergeRisk: { weights: Record<\"alignment\" | \"errorDetection\" | \"impact\" | \"rollback\" | \"verification\", number>; cuts: [number, number]; }; schemaVersion: 2; levels: { name: string; review: \"agent\" | \"none\" | \"owner\"; release: \"after-proof\" | \"at-once\"; onBreak: \"block\" | \"follow-up\"; }[]; paths: { glob: string; level: string; proofs?: Record<string, string> | undefined; limit?: undefined | { fixes: number; of: number; }; }[]; roles: Record<string, { file: string; purpose: \"build\" | \"fix\" | \"plan\" | \"review\"; skills: string[]; }>; events: Record<string, { source: string; }>; kinds: string[]; commitIdentity: { name: string; email: string; }; safety?: Record<string, unknown> | undefined; dailyQuestionCap?: number | undefined; integrations?: Partial<Record<\"answers\" | \"questions\" | \"release\" | \"work-source\", string>> | undefined; ciToken?: undefined | { setUp: string; }; }, \"changeLabels\" | \"historyDepth\">) => Promise<PastChange[]>"
6524
7036
  },
6525
7037
  "readPick": {
6526
7038
  "type": "(purpose: \"plan\" | \"review\", { structured }: Pick<Finished, \"structured\">, diff: string) => Read"
@@ -6551,10 +7063,10 @@
6551
7063
  "type": "({ repo, remote, at, identity, timeoutMs }: { readonly repo: string; readonly remote: string; readonly at: number; readonly identity: GitIdentity; readonly timeoutMs: number; }) => Promise<void>"
6552
7064
  },
6553
7065
  "Records": {
6554
- "type": "typeof Records; new <S extends z.core.$ZodType>(folder: string, schema: S) => Records<S>\nget: (key: string) => output<S> | undefined; put: (key: string, value: input<S>) => void; remove: (key: string) => void; list: () => output<S>[]"
7066
+ "type": "typeof Records; new <S extends z.core.$ZodType>(folder: string, schema: S) => Records<S>\nget: (key: string) => output<S> | undefined; put: (key: string, value: input<S>) => void; copyTo: (into: Records<S>, key: string) => void; remove: (key: string) => void; list: () => output<S>[]"
6555
7067
  },
6556
7068
  "Refusal": {
6557
- "type": "export type Refusal = {\n readonly code: \"malformed-config\";\n readonly where: string;\n readonly message: string;\n} | {\n readonly code: \"unknown-schema-version\";\n readonly found: number | undefined;\n readonly readable: readonly number[];\n readonly message: string;\n} | {\n readonly code: \"invalid-config\";\n readonly problems: readonly Problem[];\n readonly message: string;\n} | {\n readonly code: \"unmapped-state\";\n readonly items: readonly {\n readonly kind: string;\n readonly state: string;\n }[];\n readonly message: string;\n} | {\n readonly code: \"change-from-run\";\n readonly branch: string;\n readonly message: string;\n} | {\n readonly code: \"no-git-identity\";\n readonly missing: readonly string[];\n readonly message: string;\n};\n= { readonly code: \"change-from-run\"; readonly branch: string; readonly message: string; } | { readonly code: \"invalid-config\"; readonly problems: readonly Problem[]; readonly message: string; } | { readonly code: \"malformed-config\"; readonly where: string; readonly message: string; } | { readonly code: \"no-git-identity\"; readonly missing: readonly string[]; readonly message: string; } | { readonly code: \"unknown-schema-version\"; readonly found: number | undefined; readonly readable: readonly number[]; readonly message: string; } | { readonly code: \"unmapped-state\"; readonly items: readonly { readonly kind: string; readonly state: string; }[]; readonly message: string; }"
7069
+ "type": "export type Refusal = {\n readonly code: \"malformed-config\";\n readonly where: string;\n readonly message: string;\n} | {\n readonly code: \"unknown-schema-version\";\n readonly found: number | undefined;\n readonly readable: readonly number[];\n readonly message: string;\n} | {\n readonly code: \"invalid-config\";\n readonly problems: readonly Problem[];\n readonly message: string;\n} | {\n readonly code: \"unmapped-state\";\n readonly items: readonly {\n readonly kind: string;\n readonly state: string;\n }[];\n readonly message: string;\n} | {\n readonly code: \"change-from-run\";\n readonly branch: string;\n readonly message: string;\n} | {\n readonly code: \"no-git-identity\";\n readonly missing: readonly string[];\n readonly message: string;\n} | {\n readonly code: \"own-runner-on-public-repo\";\n readonly message: string;\n};\n= { readonly code: \"change-from-run\"; readonly branch: string; readonly message: string; } | { readonly code: \"invalid-config\"; readonly problems: readonly Problem[]; readonly message: string; } | { readonly code: \"malformed-config\"; readonly where: string; readonly message: string; } | { readonly code: \"no-git-identity\"; readonly missing: readonly string[]; readonly message: string; } | { readonly code: \"own-runner-on-public-repo\"; readonly message: string; } | { readonly code: \"unknown-schema-version\"; readonly found: number | undefined; readonly readable: readonly number[]; readonly message: string; } | { readonly code: \"unmapped-state\"; readonly items: readonly { readonly kind: string; readonly state: string; }[]; readonly message: string; }"
6558
7070
  },
6559
7071
  "refuseOtherVersion": {
6560
7072
  "type": "(name: string, adapter: Adapter, faults: Faults) => undefined | { kind: \"fault\" | \"limited\" | \"waiting\"; key: string; code: string; cause: string; fix: string; since: number; item?: string | undefined; action?: undefined | { label: string; answer: string; }; }"
@@ -6563,7 +7075,7 @@
6563
7075
  "type": "export interface Release {\n publish(id: ItemId, ref: string): Promise<void>;\n release(id: ItemId, ref: string): Promise<void>;\n}"
6564
7076
  },
6565
7077
  "rememberKinds": {
6566
- "type": "(state: { dir: string; statusPath: string; heartbeatPath: string; inbox: string; stops: string; faults: Faults; items: Items; events: EventLog; ops: OpKeys; runs: RunRecords; parked: Records<ZodObject<{ item: ZodString; why: ZodEnum<{ review: \"review\"; stuck: \"stuck\"; }>; cause: ZodString; since: ZodInt; }, $strip>>; spent: Records<ZodObject<{ item: ZodString; total: ZodInt; base: ZodInt; }, $strip>>; kinds: Records<ZodObject<{ tiers: ZodArray<ZodObject<{ purpose: ZodEnum<{ fix: \"fix\"; review: \"review\"; plan: \"plan\"; build: \"build\"; }>; level: ZodOptional<ZodString>; size: ZodOptional<ZodEnum<{ small: \"small\"; medium: \"medium\"; large: \"large\"; }>>; tier: ZodEnum<{ light: \"light\"; standard: \"standard\"; top: \"top\"; }>; effort: ZodEnum<{ medium: \"medium\"; low: \"low\"; high: \"high\"; }>; }, $strict>>; tokenCap: ZodObject<{ tokens: ZodNumber; overCap: ZodString; }, $strict>; stateMap: ZodOptional<ZodRecord<ZodString, ZodRecord<ZodString, ZodString>>>; machine: ZodObject<{ id: ZodString; version: ZodString; initial: ZodString; states: ZodRecord<ZodString, ZodObject<{ type: ZodOptional<ZodEnum<{ atomic: \"atomic\"; final: \"final\"; }>>; description: ZodOptional<ZodString>; tags: ZodOptional<ZodArray<ZodString>>; invoke: ZodOptional<ZodObject<{ src: ZodString; onDone: ZodOptional<ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>; onError: ZodOptional<ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>; }, $strict>>; on: ZodOptional<ZodRecord<ZodString, ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>>; always: ZodOptional<ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>; after: ZodOptional<ZodRecord<ZodString, ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>>; timeout: ZodOptional<ZodNumber>; onTimeout: ZodOptional<ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>; entry: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; exit: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; }, $strict>>; }, $strict>; }, $strict>>; limit: Records<ZodObject<{ until: ZodInt; }, $strip>>; ready: Records<ZodObject<{ ids: ZodArray<ZodString>; }, $strip>>; slots: Records<ZodDiscriminatedUnion<[ZodObject<{ status: ZodEnum<{ out: \"out\"; new: \"new\"; free: \"free\"; stale: \"stale\"; }>; name: ZodString; index: ZodInt; folder: ZodString; lockfiles: ZodOptional<ZodString>; since: ZodInt; }, $strip>, ZodObject<{ status: ZodEnum<{ taken: \"taken\"; kept: \"kept\"; }>; item: ZodString; name: ZodString; index: ZodInt; folder: ZodString; lockfiles: ZodOptional<ZodString>; since: ZodInt; }, $strip>], \"status\">>; landings: Records<ZodObject<{ item: ZodString; branch: ZodString; since: ZodInt; change: ZodReadonly<ZodObject<{ paths: ZodReadonly<ZodArray<ZodString>>; size: ZodInt; loosened: ZodBoolean; pinChanged: ZodBoolean; }, $strip>>; head: ZodString; ownerApproved: ZodBoolean; alignment: ZodOptional<ZodUnion<readonly [ZodObject<{ graded: ZodObject<{ alignment: ZodEnum<{ sound: \"sound\"; partial: \"partial\"; concern: \"concern\"; }>; verification: ZodEnum<{ sound: \"sound\"; partial: \"partial\"; concern: \"concern\"; }>; }, $strict>; }, $strip>, ZodObject<{ abstained: ZodString; }, $strip>]>>; }, $strip>>; learned: Records<ZodObject<{ glob: ZodString; level: ZodString; item: ZodString; commit: ZodString; pull: ZodOptional<ZodString>; at: ZodInt; }, $strip>>; itemKinds: Records<ZodDiscriminatedUnion<[ZodObject<{ item: ZodString; kind: ZodString; from: ZodLiteral<\"source\">; }, $strip>, ZodObject<{ item: ZodString; kind: ZodString; from: ZodLiteral<\"model\">; }, $strip>, ZodObject<{ item: ZodString; kind: ZodString; from: ZodLiteral<\"fallback\">; why: ZodString; }, $strip>], \"from\">>; plans: Records<ZodObject<{ item: ZodString; plan: ZodObject<{ summary: ZodString; steps: ZodArray<ZodString>; paths: ZodArray<ZodString>; }, $strict>; hash: ZodString; models: ZodArray<ZodString>; }, $strip>>; verdicts: Records<ZodObject<{ item: ZodString; head: ZodString; event: ZodString; reason: ZodString; cites: ZodArray<ZodObject<{ file: ZodString; line: ZodInt; }, $strict>>; models: ZodArray<ZodString>; }, $strip>>; questions: Records<ZodObject<{ item: ZodString; text: ZodString; options: ZodOptional<ZodArray<ZodString>>; detail: ZodOptional<ZodString>; priority: ZodInt; footprint: ZodOptional<ZodArray<ZodString>>; queuedAt: ZodInt; askedAt: ZodOptional<ZodInt>; }, $strip>>; choices: Records<ZodMiniObject<{ item: ZodMiniString<string>; text: ZodMiniString<string>; at: ZodMiniInt; }, $strip>>; answers: Records<ZodDiscriminatedUnion<[ZodObject<{ source: ZodLiteral<\"marker\">; option: ZodOptional<ZodString>; item: ZodString; ordinal: ZodInt; text: ZodString; disposition: ZodEnum<{ applied: \"applied\"; held: \"held\"; dropped: \"dropped\"; }>; why: ZodString; at: ZodInt; }, $strip>, ZodObject<{ source: ZodEnum<{ model: \"model\"; \"first-word\": \"first-word\"; }>; option: ZodString; item: ZodString; ordinal: ZodInt; text: ZodString; disposition: ZodEnum<{ applied: \"applied\"; held: \"held\"; dropped: \"dropped\"; }>; why: ZodString; at: ZodInt; }, $strip>, ZodObject<{ source: ZodEnum<{ free: \"free\"; abstained: \"abstained\"; \"none-of-these\": \"none-of-these\"; }>; item: ZodString; ordinal: ZodInt; text: ZodString; disposition: ZodEnum<{ applied: \"applied\"; held: \"held\"; dropped: \"dropped\"; }>; why: ZodString; at: ZodInt; }, $strip>], \"source\">>; notes: Records<ZodObject<{ source: ZodEnum<{ fix: \"fix\"; \"review-comment\": \"review-comment\"; \"review-body\": \"review-body\"; \"plan-answer\": \"plan-answer\"; revert: \"revert\"; }>; sourceId: ZodString; change: ZodString; item: ZodOptional<ZodString>; file: ZodOptional<ZodString>; line: ZodOptional<ZodInt>; hunk: ZodString; text: ZodString; at: ZodInt; }, $strip>>; repeats: Records<ZodObject<{ key: ZodString; notes: ZodArray<ZodString>; item: ZodOptional<ZodString>; commented: ZodArray<ZodString>; checked: ZodOptional<ZodObject<{ at: ZodInt; check: ZodString; }, $strip>>; misses: ZodArray<ZodString>; }, $strip>>; possibleRepeats: Records<ZodObject<{ a: ZodString; b: ZodString; models: ZodArray<ZodString>; at: ZodInt; }, $strip>>; merges: Records<ZodObject<{ item: ZodString; sha: ZodString; at: ZodInt; paths: ZodArray<ZodString>; }, $strip>>; breaks: Records<ZodObject<{ item: ZodString; sha: ZodString; at: ZodInt; paths: ZodArray<ZodString>; level: ZodString; failure: ZodString; onBreak: ZodEnum<{ \"follow-up\": \"follow-up\"; block: \"block\"; }>; followUp: ZodString; }, $strip>>; proofs: Records<ZodDiscriminatedUnion<[ZodObject<{ passed: ZodLiteral<true>; item: ZodString; at: ZodInt; worktrees: ZodInt; ms: ZodInt; }, $strip>, ZodObject<{ passed: ZodLiteral<false>; reason: ZodString; item: ZodString; at: ZodInt; worktrees: ZodInt; ms: ZodInt; }, $strip>], \"passed\">>; }, config: Config) => void"
7078
+ "type": "(state: { dir: string; statusPath: string; heartbeatPath: string; inbox: string; stops: string; faults: Faults; items: Items; events: EventLog; ops: OpKeys; runs: RunRecords; parked: Records<ZodObject<{ item: ZodString; why: ZodEnum<{ review: \"review\"; stuck: \"stuck\"; }>; cause: ZodString; since: ZodInt; }, $strip>>; spent: Records<ZodObject<{ item: ZodString; total: ZodInt; base: ZodInt; }, $strip>>; kinds: Records<ZodObject<{ tiers: ZodArray<ZodObject<{ purpose: ZodEnum<{ fix: \"fix\"; review: \"review\"; plan: \"plan\"; build: \"build\"; }>; level: ZodOptional<ZodString>; size: ZodOptional<ZodEnum<{ small: \"small\"; medium: \"medium\"; large: \"large\"; }>>; tier: ZodEnum<{ light: \"light\"; standard: \"standard\"; top: \"top\"; }>; effort: ZodEnum<{ medium: \"medium\"; low: \"low\"; high: \"high\"; }>; }, $strict>>; tokenCap: ZodObject<{ tokens: ZodNumber; overCap: ZodString; }, $strict>; stateMap: ZodOptional<ZodRecord<ZodString, ZodRecord<ZodString, ZodString>>>; machine: ZodObject<{ id: ZodString; version: ZodString; initial: ZodString; states: ZodRecord<ZodString, ZodObject<{ type: ZodOptional<ZodEnum<{ atomic: \"atomic\"; final: \"final\"; }>>; description: ZodOptional<ZodString>; tags: ZodOptional<ZodArray<ZodString>>; invoke: ZodOptional<ZodObject<{ src: ZodString; onDone: ZodOptional<ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>; onError: ZodOptional<ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>; }, $strict>>; on: ZodOptional<ZodRecord<ZodString, ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>>; always: ZodOptional<ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>; after: ZodOptional<ZodRecord<ZodString, ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>>; timeout: ZodOptional<ZodNumber>; onTimeout: ZodOptional<ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>; entry: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; exit: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; }, $strict>>; }, $strict>; }, $strict>>; limit: Records<ZodObject<{ until: ZodInt; }, $strip>>; ready: Records<ZodObject<{ ids: ZodArray<ZodString>; }, $strip>>; slots: Records<ZodDiscriminatedUnion<[ZodObject<{ status: ZodEnum<{ out: \"out\"; new: \"new\"; free: \"free\"; stale: \"stale\"; }>; name: ZodString; index: ZodInt; folder: ZodString; lockfiles: ZodOptional<ZodString>; since: ZodInt; }, $strip>, ZodObject<{ status: ZodEnum<{ taken: \"taken\"; kept: \"kept\"; }>; item: ZodString; name: ZodString; index: ZodInt; folder: ZodString; lockfiles: ZodOptional<ZodString>; since: ZodInt; }, $strip>], \"status\">>; landings: Records<ZodObject<{ item: ZodString; branch: ZodString; since: ZodInt; change: ZodReadonly<ZodObject<{ paths: ZodReadonly<ZodArray<ZodString>>; size: ZodInt; loosened: ZodBoolean; pinChanged: ZodBoolean; }, $strip>>; head: ZodString; lostRaces: ZodDefault<ZodInt>; patch: ZodOptional<ZodString>; alignment: ZodOptional<ZodUnion<readonly [ZodObject<{ graded: ZodObject<{ alignment: ZodEnum<{ sound: \"sound\"; partial: \"partial\"; concern: \"concern\"; }>; verification: ZodEnum<{ sound: \"sound\"; partial: \"partial\"; concern: \"concern\"; }>; }, $strict>; }, $strip>, ZodObject<{ abstained: ZodString; }, $strip>]>>; }, $strip>>; learned: Records<ZodObject<{ glob: ZodString; level: ZodString; item: ZodString; commit: ZodString; pull: ZodOptional<ZodString>; at: ZodInt; }, $strip>>; itemKinds: Records<ZodDiscriminatedUnion<[ZodObject<{ item: ZodString; kind: ZodString; from: ZodLiteral<\"source\">; }, $strip>, ZodObject<{ item: ZodString; kind: ZodString; from: ZodLiteral<\"model\">; }, $strip>, ZodObject<{ item: ZodString; kind: ZodString; from: ZodLiteral<\"fallback\">; why: ZodString; }, $strip>], \"from\">>; plans: Records<ZodObject<{ item: ZodString; plan: ZodObject<{ summary: ZodString; steps: ZodArray<ZodString>; paths: ZodArray<ZodString>; }, $strict>; hash: ZodString; models: ZodArray<ZodString>; }, $strip>>; verdicts: Records<ZodObject<{ item: ZodString; head: ZodString; event: ZodString; reason: ZodString; cites: ZodArray<ZodObject<{ file: ZodString; line: ZodInt; }, $strict>>; models: ZodArray<ZodString>; }, $strip>>; pullRequests: Records<ZodObject<{ item: ZodString; title: ZodString; body: ZodString; evidence: ZodOptional<ZodUnion<readonly [ZodObject<{ kind: ZodEnum<{ image: \"image\"; video: \"video\"; }>; url: ZodURL; }, $strip>, ZodObject<{ left: ZodString; }, $strip>]>>; }, $strip>>; questions: Records<ZodObject<{ item: ZodString; text: ZodString; options: ZodOptional<ZodArray<ZodString>>; detail: ZodOptional<ZodString>; priority: ZodInt; footprint: ZodOptional<ZodArray<ZodString>>; queuedAt: ZodInt; askedAt: ZodOptional<ZodInt>; }, $strip>>; followUps: Records<ZodObject<{ item: ZodString; from: ZodString; at: ZodInt; }, $strip>>; choices: Records<ZodMiniObject<{ item: ZodMiniString<string>; text: ZodMiniString<string>; at: ZodMiniInt; }, $strip>>; answers: Records<ZodDiscriminatedUnion<[ZodObject<{ source: ZodLiteral<\"marker\">; option: ZodOptional<ZodString>; item: ZodString; ordinal: ZodInt; text: ZodString; disposition: ZodEnum<{ applied: \"applied\"; held: \"held\"; dropped: \"dropped\"; }>; why: ZodString; at: ZodInt; }, $strip>, ZodObject<{ source: ZodEnum<{ model: \"model\"; \"first-word\": \"first-word\"; }>; option: ZodString; item: ZodString; ordinal: ZodInt; text: ZodString; disposition: ZodEnum<{ applied: \"applied\"; held: \"held\"; dropped: \"dropped\"; }>; why: ZodString; at: ZodInt; }, $strip>, ZodObject<{ source: ZodEnum<{ free: \"free\"; abstained: \"abstained\"; \"none-of-these\": \"none-of-these\"; }>; item: ZodString; ordinal: ZodInt; text: ZodString; disposition: ZodEnum<{ applied: \"applied\"; held: \"held\"; dropped: \"dropped\"; }>; why: ZodString; at: ZodInt; }, $strip>], \"source\">>; notes: Records<ZodObject<{ source: ZodEnum<{ fix: \"fix\"; \"review-comment\": \"review-comment\"; \"review-body\": \"review-body\"; \"plan-answer\": \"plan-answer\"; revert: \"revert\"; }>; sourceId: ZodString; change: ZodString; item: ZodOptional<ZodString>; file: ZodOptional<ZodString>; line: ZodOptional<ZodInt>; hunk: ZodString; text: ZodString; at: ZodInt; }, $strip>>; repeats: Records<ZodObject<{ key: ZodString; notes: ZodArray<ZodString>; item: ZodOptional<ZodString>; commented: ZodArray<ZodString>; checked: ZodOptional<ZodObject<{ at: ZodInt; check: ZodString; }, $strip>>; misses: ZodArray<ZodString>; }, $strip>>; possibleRepeats: Records<ZodObject<{ a: ZodString; b: ZodString; models: ZodArray<ZodString>; at: ZodInt; }, $strip>>; merges: Records<ZodObject<{ item: ZodString; sha: ZodString; at: ZodInt; paths: ZodArray<ZodString>; baseChecked: ZodDefault<ZodBoolean>; }, $strip>>; breaks: Records<ZodObject<{ item: ZodString; sha: ZodString; at: ZodInt; paths: ZodArray<ZodString>; level: ZodString; failure: ZodString; onBreak: ZodEnum<{ \"follow-up\": \"follow-up\"; block: \"block\"; }>; followUp: ZodString; }, $strip>>; proofs: Records<ZodDiscriminatedUnion<[ZodObject<{ passed: ZodLiteral<true>; item: ZodString; at: ZodInt; worktrees: ZodInt; ms: ZodInt; }, $strip>, ZodObject<{ passed: ZodLiteral<false>; reason: ZodString; item: ZodString; at: ZodInt; worktrees: ZodInt; ms: ZodInt; }, $strip>], \"passed\">>; }, config: Config) => void"
6567
7079
  },
6568
7080
  "renderUnit": {
6569
7081
  "type": "(kind: UnitKind, vars: UnitVars) => string"
@@ -6584,7 +7096,7 @@
6584
7096
  "type": "export type Result<T> = {\n readonly ok: true;\n readonly value: T;\n} | {\n readonly ok: false;\n readonly refusal: Refusal;\n};\n= { readonly ok: false; readonly refusal: Refusal; } | { readonly ok: true; readonly value: T; }"
6585
7097
  },
6586
7098
  "reviewInput": {
6587
- "type": "(item: ItemText, diff: string, { diffLimit }: Pick<{ checks: string[]; kindLabels: Record<string, string>; runPlaces: (\"ci\" | \"mac\")[]; runBranchPrefix: string; claimPrefix: string; readyLabel: string; mergeMethod: \"merge\" | \"rebase\" | \"squash\"; models: Record<\"light\" | \"standard\" | \"top\", string>; runners: number; tickIntervalSeconds: number; drainTimeoutSeconds: number; claimExpirySeconds: number; latestVersionCacheSeconds: number; watchCacheSeconds: number; watchLockSeconds: number; maxFixRuns: number; serviceLabel: string; maxCrashes: number; crashWindowSeconds: number; workerDownTicks: number; tokenWarnDays: number; ciSchedule: string; ciTickCacheSeconds: number; itemsDir: string; providerTimeoutSeconds: number; providerBackoff: { firstSeconds: number; maxSeconds: number; }; mergedShown: number; choicesShown: number; statusReadTimeoutSeconds: number; commandTimeoutSeconds: number; mergeTries: number; writeRaceRetries: number; itemReadsAtOnce: number; restartBackoff: { firstSeconds: number; maxSeconds: number; }; restartDelaySeconds: number; pullRequestTokenSecret: string; ciWakeTimeoutMinutes: number; strictPaths: string[]; launches: ({ glob: string; level: string; base: string; } | { glob: string; level: string; from: string; until: string; })[]; sizeRange: { changes: number; fewest: number; middle: number; }; loosenedCheck: { added: string[]; removed: string[]; }; changeLabels: { fixWindow: number; fixSubject: string; revertSubject: string; revertTrailer: string; }; historyDepth: number; lockfiles: string[]; hookPaths: string[]; diffLimit: number; failureTail: number; kindMeanings: Record<string, string>; fallbackKind: string; docsOnly: { kind: string; paths: string[]; }; decisionModel: string; modelCallTimeoutSeconds: number; measuredModels: Record<\"alignment\" | \"kind\" | \"plan-outcome\" | \"repeat-pair\" | \"reply-option\" | \"review-verdict\" | \"taste\", Record<string, number>>; minJudgeRate: number; questionLimits: { cells: number; wordCells: number; }; questionTimeoutHours: number; priorityLabels: string[]; undoableLevels: string[]; ownerBranchPrefix: string; backgroundRuns: boolean; backgroundLaunchSeconds: number; backgroundPollSeconds: number; deniedRunCommands: string[]; runAutoMode: { environment: string[]; allow: string[]; hardDeny: string[]; }; runSlots: { enabled: boolean; pool: string; services: \"per-slot\" | \"shared\"; ports: { base: number; stride: number; }; projectPrefix: string; stepTimeoutSeconds: number; recipe: { prepare: string[]; refresh: { run: string; when: \"always\" | \"lockfile-changed\"; }[]; ready: string[]; }; }; ownerLogins: string[]; repeatAt: number; repeatPrecision: number; tasteRules: string[]; memoryMaxBytes: number; memoryUnusedRuns: number; measureWindow: number; loopIntervalSeconds: number; proofTimeoutSeconds: number; kindFloors: Record<string, string>; checkKind: string; breakCheck: boolean; mergeRisk: { weights: Record<\"alignment\" | \"errorDetection\" | \"impact\" | \"rollback\" | \"verification\", number>; cuts: [number, number]; }; schemaVersion: 1; levels: { name: string; review: \"agent\" | \"none\" | \"owner\"; release: \"after-proof\" | \"at-once\"; onBreak: \"block\" | \"follow-up\"; }[]; paths: { glob: string; level: string; proofs?: Record<string, string> | undefined; limit?: undefined | { fixes: number; of: number; }; }[]; roles: Record<string, { file: string; purpose: \"build\" | \"fix\" | \"plan\" | \"review\"; skills: string[]; }>; events: Record<string, { source: string; }>; kinds: string[]; commitIdentity: { name: string; email: string; }; safety?: Record<string, unknown> | undefined; dailyQuestionCap?: number | undefined; integrations?: Record<string, string> | undefined; ciToken?: undefined | { setUp: string; }; }, \"diffLimit\">) => string"
7099
+ "type": "(item: ItemText, diff: string, { diffLimit }: Pick<{ checks: string[]; kindLabels: Record<string, string>; runPlaces: (\"ci\" | \"mac\")[]; runBranchPrefix: string; claimPrefix: string; readyLabel: string; mergeMethod: \"merge\" | \"rebase\" | \"squash\"; models: Record<\"light\" | \"standard\" | \"top\", string>; runners: number; tickIntervalSeconds: number; drainTimeoutSeconds: number; claimExpirySeconds: number; latestVersionCacheSeconds: number; watchCacheSeconds: number; watchLockSeconds: number; maxFixRuns: number; serviceLabel: string; maxCrashes: number; crashWindowSeconds: number; workerDownTicks: number; tokenWarnDays: number; ciSchedule: string; ciTickCacheSeconds: number; itemsDir: string; providerTimeoutSeconds: number; providerBackoff: { firstSeconds: number; maxSeconds: number; }; mergedShown: number; choicesShown: number; statusReadTimeoutSeconds: number; commandTimeoutSeconds: number; mergeTries: number; writeRaceRetries: number; itemReadsAtOnce: number; restartBackoff: { firstSeconds: number; maxSeconds: number; }; restartDelaySeconds: number; pullRequestToken: { from: \"app\"; clientIdSecret: string; privateKeySecret: string; } | { from: \"secret\"; secret: string; }; ciWakeTimeoutMinutes: number; ciOutboxMaxMegabytes: number; ciUsageLimitMaxHours: number; followUpsPerPass: number; publishTreeMaxMegabytes: number; ciMergeMarginMinutes: number; ciRunner: string | string[] | { group: string; labels?: string | string[] | undefined; }; ciContainer: null | string | { image: string; credentials?: undefined | { username: string; password: string; }; env?: Record<string, string> | undefined; ports?: (number | string)[] | undefined; volumes?: string[] | undefined; options?: string | undefined; }; ciEnv: Record<string, string>; ciClaudeAuth: \"env\" | \"oauth-token\"; strictPaths: string[]; launches: ({ glob: string; level: string; base: string; } | { glob: string; level: string; from: string; until: string; })[]; sizeRange: { changes: number; fewest: number; middle: number; }; loosenedCheck: { added: string[]; removed: string[]; }; changeLabels: { fixWindow: number; fixSubject: string; revertSubject: string; revertTrailer: string; }; historyDepth: number; lockfiles: string[]; hookPaths: string[]; diffLimit: number; failureTail: number; kindMeanings: Record<string, string>; fallbackKind: string; docsOnly: { kind: string; paths: string[]; }; decisionModel: string; modelCallTimeoutSeconds: number; measuredModels: Record<\"alignment\" | \"kind\" | \"plan-outcome\" | \"repeat-pair\" | \"reply-option\" | \"review-verdict\" | \"taste\", Record<string, number>>; minJudgeRate: number; questionLimits: { cells: number; wordCells: number; }; questionTimeoutHours: number; priorityLabels: string[]; undoableLevels: string[]; ownerBranchPrefix: string; backgroundRuns: boolean; backgroundLaunchSeconds: number; backgroundPollSeconds: number; deniedRunCommands: string[]; runAutoMode: { environment: string[]; allow: string[]; hardDeny: string[]; }; runSlots: { enabled: boolean; pool: string; services: \"per-slot\" | \"shared\"; ports: { base: number; stride: number; }; projectPrefix: string; stepTimeoutSeconds: number; recipe: { prepare: string[]; refresh: { run: string; when: \"always\" | \"lockfile-changed\"; }[]; ready: string[]; }; }; ownerLogins: string[]; repeatAt: number; repeatPrecision: number; tasteRules: string[]; memoryMaxBytes: number; memoryUnusedRuns: number; measureWindow: number; loopIntervalSeconds: number; proofTimeoutSeconds: number; kindFloors: Record<string, string>; checkKind: string; breakCheck: boolean; mergeRisk: { weights: Record<\"alignment\" | \"errorDetection\" | \"impact\" | \"rollback\" | \"verification\", number>; cuts: [number, number]; }; schemaVersion: 2; levels: { name: string; review: \"agent\" | \"none\" | \"owner\"; release: \"after-proof\" | \"at-once\"; onBreak: \"block\" | \"follow-up\"; }[]; paths: { glob: string; level: string; proofs?: Record<string, string> | undefined; limit?: undefined | { fixes: number; of: number; }; }[]; roles: Record<string, { file: string; purpose: \"build\" | \"fix\" | \"plan\" | \"review\"; skills: string[]; }>; events: Record<string, { source: string; }>; kinds: string[]; commitIdentity: { name: string; email: string; }; safety?: Record<string, unknown> | undefined; dailyQuestionCap?: number | undefined; integrations?: Partial<Record<\"answers\" | \"questions\" | \"release\" | \"work-source\", string>> | undefined; ciToken?: undefined | { setUp: string; }; }, \"diffLimit\">) => string"
6588
7100
  },
6589
7101
  "roundupAdapter": {
6590
7102
  "type": "(options: RoundupOptions, { now, env }: AdapterContext) => Whole"
@@ -6683,6 +7195,28 @@
6683
7195
  "exclusiveMinimum": 0,
6684
7196
  "maximum": 9007199254740991
6685
7197
  }
7198
+ },
7199
+ "pullRequest": {
7200
+ "type": "object",
7201
+ "properties": {
7202
+ "title": {
7203
+ "type": "string",
7204
+ "minLength": 1
7205
+ },
7206
+ "body": {
7207
+ "type": "string",
7208
+ "minLength": 1
7209
+ },
7210
+ "evidence": {
7211
+ "type": "string",
7212
+ "minLength": 1
7213
+ }
7214
+ },
7215
+ "required": [
7216
+ "title",
7217
+ "body"
7218
+ ],
7219
+ "additionalProperties": false
6686
7220
  }
6687
7221
  },
6688
7222
  "required": [
@@ -6738,7 +7272,7 @@
6738
7272
  "type": "export type Runner = {\n readonly run: (request: RunRequest) => Promise<RunOutcome>;\n readonly limitedUntil: () => number;\n readonly liveRuns?: () => Promise<ReadonlySet<string>>;\n};\n= { readonly run: (request: RunRequest) => Promise<RunOutcome>; readonly limitedUntil: () => number; readonly liveRuns?: (() => Promise<ReadonlySet<string>>) | undefined; }"
6739
7273
  },
6740
7274
  "RunnerOptions": {
6741
- "type": "export type RunnerOptions = {\n readonly state: Pick<State, \"dir\" | \"faults\" | \"limit\">;\n readonly model: string;\n readonly binary?: string;\n readonly timeoutMs?: number;\n readonly env: Env;\n readonly now: () => number;\n readonly lockBackoffMs?: number;\n};\n= { readonly state: Pick<{ dir: string; statusPath: string; heartbeatPath: string; inbox: string; stops: string; faults: Faults; items: Items; events: EventLog; ops: OpKeys; runs: RunRecords; parked: Records<ZodObject<{ item: ZodString; why: ZodEnum<{ review: \"review\"; stuck: \"stuck\"; }>; cause: ZodString; since: ZodInt; }, $strip>>; spent: Records<ZodObject<{ item: ZodString; total: ZodInt; base: ZodInt; }, $strip>>; kinds: Records<ZodObject<{ tiers: ZodArray<ZodObject<{ purpose: ZodEnum<{ fix: \"fix\"; review: \"review\"; plan: \"plan\"; build: \"build\"; }>; level: ZodOptional<ZodString>; size: ZodOptional<ZodEnum<{ small: \"small\"; medium: \"medium\"; large: \"large\"; }>>; tier: ZodEnum<{ light: \"light\"; standard: \"standard\"; top: \"top\"; }>; effort: ZodEnum<{ medium: \"medium\"; low: \"low\"; high: \"high\"; }>; }, $strict>>; tokenCap: ZodObject<{ tokens: ZodNumber; overCap: ZodString; }, $strict>; stateMap: ZodOptional<ZodRecord<ZodString, ZodRecord<ZodString, ZodString>>>; machine: ZodObject<{ id: ZodString; version: ZodString; initial: ZodString; states: ZodRecord<ZodString, ZodObject<{ type: ZodOptional<ZodEnum<{ atomic: \"atomic\"; final: \"final\"; }>>; description: ZodOptional<ZodString>; tags: ZodOptional<ZodArray<ZodString>>; invoke: ZodOptional<ZodObject<{ src: ZodString; onDone: ZodOptional<ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>; onError: ZodOptional<ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>; }, $strict>>; on: ZodOptional<ZodRecord<ZodString, ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>>; always: ZodOptional<ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>; after: ZodOptional<ZodRecord<ZodString, ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>>; timeout: ZodOptional<ZodNumber>; onTimeout: ZodOptional<ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>; entry: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; exit: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; }, $strict>>; }, $strict>; }, $strict>>; limit: Records<ZodObject<{ until: ZodInt; }, $strip>>; ready: Records<ZodObject<{ ids: ZodArray<ZodString>; }, $strip>>; slots: Records<ZodDiscriminatedUnion<[ZodObject<{ status: ZodEnum<{ out: \"out\"; new: \"new\"; free: \"free\"; stale: \"stale\"; }>; name: ZodString; index: ZodInt; folder: ZodString; lockfiles: ZodOptional<ZodString>; since: ZodInt; }, $strip>, ZodObject<{ status: ZodEnum<{ taken: \"taken\"; kept: \"kept\"; }>; item: ZodString; name: ZodString; index: ZodInt; folder: ZodString; lockfiles: ZodOptional<ZodString>; since: ZodInt; }, $strip>], \"status\">>; landings: Records<ZodObject<{ item: ZodString; branch: ZodString; since: ZodInt; change: ZodReadonly<ZodObject<{ paths: ZodReadonly<ZodArray<ZodString>>; size: ZodInt; loosened: ZodBoolean; pinChanged: ZodBoolean; }, $strip>>; head: ZodString; ownerApproved: ZodBoolean; alignment: ZodOptional<ZodUnion<readonly [ZodObject<{ graded: ZodObject<{ alignment: ZodEnum<{ sound: \"sound\"; partial: \"partial\"; concern: \"concern\"; }>; verification: ZodEnum<{ sound: \"sound\"; partial: \"partial\"; concern: \"concern\"; }>; }, $strict>; }, $strip>, ZodObject<{ abstained: ZodString; }, $strip>]>>; }, $strip>>; learned: Records<ZodObject<{ glob: ZodString; level: ZodString; item: ZodString; commit: ZodString; pull: ZodOptional<ZodString>; at: ZodInt; }, $strip>>; itemKinds: Records<ZodDiscriminatedUnion<[ZodObject<{ item: ZodString; kind: ZodString; from: ZodLiteral<\"source\">; }, $strip>, ZodObject<{ item: ZodString; kind: ZodString; from: ZodLiteral<\"model\">; }, $strip>, ZodObject<{ item: ZodString; kind: ZodString; from: ZodLiteral<\"fallback\">; why: ZodString; }, $strip>], \"from\">>; plans: Records<ZodObject<{ item: ZodString; plan: ZodObject<{ summary: ZodString; steps: ZodArray<ZodString>; paths: ZodArray<ZodString>; }, $strict>; hash: ZodString; models: ZodArray<ZodString>; }, $strip>>; verdicts: Records<ZodObject<{ item: ZodString; head: ZodString; event: ZodString; reason: ZodString; cites: ZodArray<ZodObject<{ file: ZodString; line: ZodInt; }, $strict>>; models: ZodArray<ZodString>; }, $strip>>; questions: Records<ZodObject<{ item: ZodString; text: ZodString; options: ZodOptional<ZodArray<ZodString>>; detail: ZodOptional<ZodString>; priority: ZodInt; footprint: ZodOptional<ZodArray<ZodString>>; queuedAt: ZodInt; askedAt: ZodOptional<ZodInt>; }, $strip>>; choices: Records<ZodMiniObject<{ item: ZodMiniString<string>; text: ZodMiniString<string>; at: ZodMiniInt; }, $strip>>; answers: Records<ZodDiscriminatedUnion<[ZodObject<{ source: ZodLiteral<\"marker\">; option: ZodOptional<ZodString>; item: ZodString; ordinal: ZodInt; text: ZodString; disposition: ZodEnum<{ applied: \"applied\"; held: \"held\"; dropped: \"dropped\"; }>; why: ZodString; at: ZodInt; }, $strip>, ZodObject<{ source: ZodEnum<{ model: \"model\"; \"first-word\": \"first-word\"; }>; option: ZodString; item: ZodString; ordinal: ZodInt; text: ZodString; disposition: ZodEnum<{ applied: \"applied\"; held: \"held\"; dropped: \"dropped\"; }>; why: ZodString; at: ZodInt; }, $strip>, ZodObject<{ source: ZodEnum<{ free: \"free\"; abstained: \"abstained\"; \"none-of-these\": \"none-of-these\"; }>; item: ZodString; ordinal: ZodInt; text: ZodString; disposition: ZodEnum<{ applied: \"applied\"; held: \"held\"; dropped: \"dropped\"; }>; why: ZodString; at: ZodInt; }, $strip>], \"source\">>; notes: Records<ZodObject<{ source: ZodEnum<{ fix: \"fix\"; \"review-comment\": \"review-comment\"; \"review-body\": \"review-body\"; \"plan-answer\": \"plan-answer\"; revert: \"revert\"; }>; sourceId: ZodString; change: ZodString; item: ZodOptional<ZodString>; file: ZodOptional<ZodString>; line: ZodOptional<ZodInt>; hunk: ZodString; text: ZodString; at: ZodInt; }, $strip>>; repeats: Records<ZodObject<{ key: ZodString; notes: ZodArray<ZodString>; item: ZodOptional<ZodString>; commented: ZodArray<ZodString>; checked: ZodOptional<ZodObject<{ at: ZodInt; check: ZodString; }, $strip>>; misses: ZodArray<ZodString>; }, $strip>>; possibleRepeats: Records<ZodObject<{ a: ZodString; b: ZodString; models: ZodArray<ZodString>; at: ZodInt; }, $strip>>; merges: Records<ZodObject<{ item: ZodString; sha: ZodString; at: ZodInt; paths: ZodArray<ZodString>; }, $strip>>; breaks: Records<ZodObject<{ item: ZodString; sha: ZodString; at: ZodInt; paths: ZodArray<ZodString>; level: ZodString; failure: ZodString; onBreak: ZodEnum<{ \"follow-up\": \"follow-up\"; block: \"block\"; }>; followUp: ZodString; }, $strip>>; proofs: Records<ZodDiscriminatedUnion<[ZodObject<{ passed: ZodLiteral<true>; item: ZodString; at: ZodInt; worktrees: ZodInt; ms: ZodInt; }, $strip>, ZodObject<{ passed: ZodLiteral<false>; reason: ZodString; item: ZodString; at: ZodInt; worktrees: ZodInt; ms: ZodInt; }, $strip>], \"passed\">>; }, \"dir\" | \"faults\" | \"limit\">; readonly model: string; readonly binary?: string | undefined; readonly timeoutMs?: number | undefined; readonly env: Readonly<Record<string, string | undefined>>; readonly now: () => number; readonly lockBackoffMs?: number | undefined; }"
7275
+ "type": "export type RunnerOptions = {\n readonly state: Pick<State, \"dir\" | \"faults\" | \"limit\">;\n readonly model: string;\n readonly binary?: string;\n readonly timeoutMs?: number;\n readonly env: Env;\n readonly now: () => number;\n readonly lockBackoffMs?: number;\n};\n= { readonly state: Pick<{ dir: string; statusPath: string; heartbeatPath: string; inbox: string; stops: string; faults: Faults; items: Items; events: EventLog; ops: OpKeys; runs: RunRecords; parked: Records<ZodObject<{ item: ZodString; why: ZodEnum<{ review: \"review\"; stuck: \"stuck\"; }>; cause: ZodString; since: ZodInt; }, $strip>>; spent: Records<ZodObject<{ item: ZodString; total: ZodInt; base: ZodInt; }, $strip>>; kinds: Records<ZodObject<{ tiers: ZodArray<ZodObject<{ purpose: ZodEnum<{ fix: \"fix\"; review: \"review\"; plan: \"plan\"; build: \"build\"; }>; level: ZodOptional<ZodString>; size: ZodOptional<ZodEnum<{ small: \"small\"; medium: \"medium\"; large: \"large\"; }>>; tier: ZodEnum<{ light: \"light\"; standard: \"standard\"; top: \"top\"; }>; effort: ZodEnum<{ medium: \"medium\"; low: \"low\"; high: \"high\"; }>; }, $strict>>; tokenCap: ZodObject<{ tokens: ZodNumber; overCap: ZodString; }, $strict>; stateMap: ZodOptional<ZodRecord<ZodString, ZodRecord<ZodString, ZodString>>>; machine: ZodObject<{ id: ZodString; version: ZodString; initial: ZodString; states: ZodRecord<ZodString, ZodObject<{ type: ZodOptional<ZodEnum<{ atomic: \"atomic\"; final: \"final\"; }>>; description: ZodOptional<ZodString>; tags: ZodOptional<ZodArray<ZodString>>; invoke: ZodOptional<ZodObject<{ src: ZodString; onDone: ZodOptional<ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>; onError: ZodOptional<ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>; }, $strict>>; on: ZodOptional<ZodRecord<ZodString, ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>>; always: ZodOptional<ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>; after: ZodOptional<ZodRecord<ZodString, ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>>; timeout: ZodOptional<ZodNumber>; onTimeout: ZodOptional<ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>; entry: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; exit: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; }, $strict>>; }, $strict>; }, $strict>>; limit: Records<ZodObject<{ until: ZodInt; }, $strip>>; ready: Records<ZodObject<{ ids: ZodArray<ZodString>; }, $strip>>; slots: Records<ZodDiscriminatedUnion<[ZodObject<{ status: ZodEnum<{ out: \"out\"; new: \"new\"; free: \"free\"; stale: \"stale\"; }>; name: ZodString; index: ZodInt; folder: ZodString; lockfiles: ZodOptional<ZodString>; since: ZodInt; }, $strip>, ZodObject<{ status: ZodEnum<{ taken: \"taken\"; kept: \"kept\"; }>; item: ZodString; name: ZodString; index: ZodInt; folder: ZodString; lockfiles: ZodOptional<ZodString>; since: ZodInt; }, $strip>], \"status\">>; landings: Records<ZodObject<{ item: ZodString; branch: ZodString; since: ZodInt; change: ZodReadonly<ZodObject<{ paths: ZodReadonly<ZodArray<ZodString>>; size: ZodInt; loosened: ZodBoolean; pinChanged: ZodBoolean; }, $strip>>; head: ZodString; lostRaces: ZodDefault<ZodInt>; patch: ZodOptional<ZodString>; alignment: ZodOptional<ZodUnion<readonly [ZodObject<{ graded: ZodObject<{ alignment: ZodEnum<{ sound: \"sound\"; partial: \"partial\"; concern: \"concern\"; }>; verification: ZodEnum<{ sound: \"sound\"; partial: \"partial\"; concern: \"concern\"; }>; }, $strict>; }, $strip>, ZodObject<{ abstained: ZodString; }, $strip>]>>; }, $strip>>; learned: Records<ZodObject<{ glob: ZodString; level: ZodString; item: ZodString; commit: ZodString; pull: ZodOptional<ZodString>; at: ZodInt; }, $strip>>; itemKinds: Records<ZodDiscriminatedUnion<[ZodObject<{ item: ZodString; kind: ZodString; from: ZodLiteral<\"source\">; }, $strip>, ZodObject<{ item: ZodString; kind: ZodString; from: ZodLiteral<\"model\">; }, $strip>, ZodObject<{ item: ZodString; kind: ZodString; from: ZodLiteral<\"fallback\">; why: ZodString; }, $strip>], \"from\">>; plans: Records<ZodObject<{ item: ZodString; plan: ZodObject<{ summary: ZodString; steps: ZodArray<ZodString>; paths: ZodArray<ZodString>; }, $strict>; hash: ZodString; models: ZodArray<ZodString>; }, $strip>>; verdicts: Records<ZodObject<{ item: ZodString; head: ZodString; event: ZodString; reason: ZodString; cites: ZodArray<ZodObject<{ file: ZodString; line: ZodInt; }, $strict>>; models: ZodArray<ZodString>; }, $strip>>; pullRequests: Records<ZodObject<{ item: ZodString; title: ZodString; body: ZodString; evidence: ZodOptional<ZodUnion<readonly [ZodObject<{ kind: ZodEnum<{ image: \"image\"; video: \"video\"; }>; url: ZodURL; }, $strip>, ZodObject<{ left: ZodString; }, $strip>]>>; }, $strip>>; questions: Records<ZodObject<{ item: ZodString; text: ZodString; options: ZodOptional<ZodArray<ZodString>>; detail: ZodOptional<ZodString>; priority: ZodInt; footprint: ZodOptional<ZodArray<ZodString>>; queuedAt: ZodInt; askedAt: ZodOptional<ZodInt>; }, $strip>>; followUps: Records<ZodObject<{ item: ZodString; from: ZodString; at: ZodInt; }, $strip>>; choices: Records<ZodMiniObject<{ item: ZodMiniString<string>; text: ZodMiniString<string>; at: ZodMiniInt; }, $strip>>; answers: Records<ZodDiscriminatedUnion<[ZodObject<{ source: ZodLiteral<\"marker\">; option: ZodOptional<ZodString>; item: ZodString; ordinal: ZodInt; text: ZodString; disposition: ZodEnum<{ applied: \"applied\"; held: \"held\"; dropped: \"dropped\"; }>; why: ZodString; at: ZodInt; }, $strip>, ZodObject<{ source: ZodEnum<{ model: \"model\"; \"first-word\": \"first-word\"; }>; option: ZodString; item: ZodString; ordinal: ZodInt; text: ZodString; disposition: ZodEnum<{ applied: \"applied\"; held: \"held\"; dropped: \"dropped\"; }>; why: ZodString; at: ZodInt; }, $strip>, ZodObject<{ source: ZodEnum<{ free: \"free\"; abstained: \"abstained\"; \"none-of-these\": \"none-of-these\"; }>; item: ZodString; ordinal: ZodInt; text: ZodString; disposition: ZodEnum<{ applied: \"applied\"; held: \"held\"; dropped: \"dropped\"; }>; why: ZodString; at: ZodInt; }, $strip>], \"source\">>; notes: Records<ZodObject<{ source: ZodEnum<{ fix: \"fix\"; \"review-comment\": \"review-comment\"; \"review-body\": \"review-body\"; \"plan-answer\": \"plan-answer\"; revert: \"revert\"; }>; sourceId: ZodString; change: ZodString; item: ZodOptional<ZodString>; file: ZodOptional<ZodString>; line: ZodOptional<ZodInt>; hunk: ZodString; text: ZodString; at: ZodInt; }, $strip>>; repeats: Records<ZodObject<{ key: ZodString; notes: ZodArray<ZodString>; item: ZodOptional<ZodString>; commented: ZodArray<ZodString>; checked: ZodOptional<ZodObject<{ at: ZodInt; check: ZodString; }, $strip>>; misses: ZodArray<ZodString>; }, $strip>>; possibleRepeats: Records<ZodObject<{ a: ZodString; b: ZodString; models: ZodArray<ZodString>; at: ZodInt; }, $strip>>; merges: Records<ZodObject<{ item: ZodString; sha: ZodString; at: ZodInt; paths: ZodArray<ZodString>; baseChecked: ZodDefault<ZodBoolean>; }, $strip>>; breaks: Records<ZodObject<{ item: ZodString; sha: ZodString; at: ZodInt; paths: ZodArray<ZodString>; level: ZodString; failure: ZodString; onBreak: ZodEnum<{ \"follow-up\": \"follow-up\"; block: \"block\"; }>; followUp: ZodString; }, $strip>>; proofs: Records<ZodDiscriminatedUnion<[ZodObject<{ passed: ZodLiteral<true>; item: ZodString; at: ZodInt; worktrees: ZodInt; ms: ZodInt; }, $strip>, ZodObject<{ passed: ZodLiteral<false>; reason: ZodString; item: ZodString; at: ZodInt; worktrees: ZodInt; ms: ZodInt; }, $strip>], \"passed\">>; }, \"dir\" | \"faults\" | \"limit\">; readonly model: string; readonly binary?: string | undefined; readonly timeoutMs?: number | undefined; readonly env: Readonly<Record<string, string | undefined>>; readonly now: () => number; readonly lockBackoffMs?: number | undefined; }"
6742
7276
  },
6743
7277
  "runOp": {
6744
7278
  "type": "(op: \"answer\" | \"ask\" | \"claim\" | \"comment\" | \"decide\" | \"file-follow-up\" | \"list-ready\" | \"publish\" | \"push\" | \"read\" | \"release\" | \"watch\", argv: readonly string[], io: Io) => Promise<number>"
@@ -6844,7 +7378,7 @@
6844
7378
  }
6845
7379
  },
6846
7380
  "RunRecords": {
6847
- "type": "typeof RunRecords; new (folder: string, now: () => number) => RunRecords\nget: (key: { itemId: string; run: string; attempt: number; }) => undefined | { itemId: string; run: string; attempt: number; name: string; savedAt: number; endedAt: number; sessionId?: string | undefined; memoryUsed?: string[] | undefined; } | { itemId: string; run: string; attempt: number; name: string; savedAt: number; sessionId?: string | undefined; endedAt?: undefined; }; begin: (key: { itemId: string; run: string; attempt: number; }, { name, sessionId }: { readonly name: string; readonly sessionId?: string | undefined; }) => BegunRun; unended: (itemId: string, run: string) => undefined | { itemId: string; run: string; attempt: number; name: string; savedAt: number; endedAt: number; sessionId?: string | undefined; memoryUsed?: string[] | undefined; } | { itemId: string; run: string; attempt: number; name: string; savedAt: number; sessionId?: string | undefined; endedAt?: undefined; }; all: () => ({ itemId: string; run: string; attempt: number; name: string; savedAt: number; endedAt: number; sessionId?: string | undefined; memoryUsed?: string[] | undefined; } | { itemId: string; run: string; attempt: number; name: string; savedAt: number; sessionId?: string | undefined; endedAt?: undefined; })[]; list: (itemId: string) => ({ itemId: string; run: string; attempt: number; name: string; savedAt: number; endedAt: number; sessionId?: string | undefined; memoryUsed?: string[] | undefined; } | { itemId: string; run: string; attempt: number; name: string; savedAt: number; sessionId?: string | undefined; endedAt?: undefined; })[]"
7381
+ "type": "typeof RunRecords; new (folder: string, now: () => number) => RunRecords\nget: (key: { itemId: string; run: string; attempt: number; }) => undefined | { itemId: string; run: string; attempt: number; name: string; savedAt: number; endedAt: number; sessionId?: string | undefined; memoryUsed?: string[] | undefined; } | { itemId: string; run: string; attempt: number; name: string; savedAt: number; sessionId?: string | undefined; endedAt?: undefined; }; begin: (key: { itemId: string; run: string; attempt: number; }, { name, sessionId }: { readonly name: string; readonly sessionId?: string | undefined; }) => BegunRun; keep: (record: { itemId: string; run: string; attempt: number; name: string; savedAt: number; endedAt: number; sessionId?: string | undefined; memoryUsed?: string[] | undefined; } | { itemId: string; run: string; attempt: number; name: string; savedAt: number; sessionId?: string | undefined; endedAt?: undefined; }) => void; unended: (itemId: string, run: string) => undefined | { itemId: string; run: string; attempt: number; name: string; savedAt: number; endedAt: number; sessionId?: string | undefined; memoryUsed?: string[] | undefined; } | { itemId: string; run: string; attempt: number; name: string; savedAt: number; sessionId?: string | undefined; endedAt?: undefined; }; all: () => ({ itemId: string; run: string; attempt: number; name: string; savedAt: number; endedAt: number; sessionId?: string | undefined; memoryUsed?: string[] | undefined; } | { itemId: string; run: string; attempt: number; name: string; savedAt: number; sessionId?: string | undefined; endedAt?: undefined; })[]; list: (itemId: string) => ({ itemId: string; run: string; attempt: number; name: string; savedAt: number; endedAt: number; sessionId?: string | undefined; memoryUsed?: string[] | undefined; } | { itemId: string; run: string; attempt: number; name: string; savedAt: number; sessionId?: string | undefined; endedAt?: undefined; })[]"
6848
7382
  },
6849
7383
  "RunRequest": {
6850
7384
  "type": "export type RunRequest = {\n readonly prompt: string;\n readonly cwd: string;\n readonly model: string;\n readonly effort: Effort;\n readonly schema: object;\n readonly call?: Call;\n readonly name?: string;\n readonly tokenCap?: number;\n readonly sessionId?: string;\n readonly env?: Readonly<Record<string, string>>;\n readonly signal?: AbortSignal;\n readonly onSession?: (sessionId: string) => void;\n readonly onFirstToken?: () => void;\n};\n= { readonly prompt: string; readonly cwd: string; readonly model: string; readonly effort: \"high\" | \"low\" | \"medium\"; readonly schema: object; readonly call?: \"judgment\" | \"run\" | undefined; readonly name?: string | undefined; readonly tokenCap?: number | undefined; readonly sessionId?: string | undefined; readonly env?: Readonly<Record<string, string>> | undefined; readonly signal?: AbortSignal | undefined; readonly onSession?: ((sessionId: string) => void) | undefined; readonly onFirstToken?: (() => void) | undefined; }"
@@ -6936,14 +7470,14 @@
6936
7470
  "type": "export type SavedSnapshot = {\n readonly itemId: string;\n readonly kind: string;\n readonly machineVersion: string;\n readonly savedAt: number;\n readonly state: string | undefined;\n};\n= { readonly itemId: string; readonly kind: string; readonly machineVersion: string; readonly savedAt: number; readonly state: string | undefined; }"
6937
7471
  },
6938
7472
  "SCHEMA_VERSION": {
6939
- "type": "1",
6940
- "value": 1
7473
+ "type": "2",
7474
+ "value": 2
6941
7475
  },
6942
7476
  "serialized": {
6943
7477
  "type": "(adapter: Integrations) => Integrations"
6944
7478
  },
6945
7479
  "settleLimit": {
6946
- "type": "(state: Pick<{ dir: string; statusPath: string; heartbeatPath: string; inbox: string; stops: string; faults: Faults; items: Items; events: EventLog; ops: OpKeys; runs: RunRecords; parked: Records<ZodObject<{ item: ZodString; why: ZodEnum<{ review: \"review\"; stuck: \"stuck\"; }>; cause: ZodString; since: ZodInt; }, $strip>>; spent: Records<ZodObject<{ item: ZodString; total: ZodInt; base: ZodInt; }, $strip>>; kinds: Records<ZodObject<{ tiers: ZodArray<ZodObject<{ purpose: ZodEnum<{ fix: \"fix\"; review: \"review\"; plan: \"plan\"; build: \"build\"; }>; level: ZodOptional<ZodString>; size: ZodOptional<ZodEnum<{ small: \"small\"; medium: \"medium\"; large: \"large\"; }>>; tier: ZodEnum<{ light: \"light\"; standard: \"standard\"; top: \"top\"; }>; effort: ZodEnum<{ medium: \"medium\"; low: \"low\"; high: \"high\"; }>; }, $strict>>; tokenCap: ZodObject<{ tokens: ZodNumber; overCap: ZodString; }, $strict>; stateMap: ZodOptional<ZodRecord<ZodString, ZodRecord<ZodString, ZodString>>>; machine: ZodObject<{ id: ZodString; version: ZodString; initial: ZodString; states: ZodRecord<ZodString, ZodObject<{ type: ZodOptional<ZodEnum<{ atomic: \"atomic\"; final: \"final\"; }>>; description: ZodOptional<ZodString>; tags: ZodOptional<ZodArray<ZodString>>; invoke: ZodOptional<ZodObject<{ src: ZodString; onDone: ZodOptional<ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>; onError: ZodOptional<ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>; }, $strict>>; on: ZodOptional<ZodRecord<ZodString, ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>>; always: ZodOptional<ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>; after: ZodOptional<ZodRecord<ZodString, ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>>; timeout: ZodOptional<ZodNumber>; onTimeout: ZodOptional<ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>; entry: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; exit: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; }, $strict>>; }, $strict>; }, $strict>>; limit: Records<ZodObject<{ until: ZodInt; }, $strip>>; ready: Records<ZodObject<{ ids: ZodArray<ZodString>; }, $strip>>; slots: Records<ZodDiscriminatedUnion<[ZodObject<{ status: ZodEnum<{ out: \"out\"; new: \"new\"; free: \"free\"; stale: \"stale\"; }>; name: ZodString; index: ZodInt; folder: ZodString; lockfiles: ZodOptional<ZodString>; since: ZodInt; }, $strip>, ZodObject<{ status: ZodEnum<{ taken: \"taken\"; kept: \"kept\"; }>; item: ZodString; name: ZodString; index: ZodInt; folder: ZodString; lockfiles: ZodOptional<ZodString>; since: ZodInt; }, $strip>], \"status\">>; landings: Records<ZodObject<{ item: ZodString; branch: ZodString; since: ZodInt; change: ZodReadonly<ZodObject<{ paths: ZodReadonly<ZodArray<ZodString>>; size: ZodInt; loosened: ZodBoolean; pinChanged: ZodBoolean; }, $strip>>; head: ZodString; ownerApproved: ZodBoolean; alignment: ZodOptional<ZodUnion<readonly [ZodObject<{ graded: ZodObject<{ alignment: ZodEnum<{ sound: \"sound\"; partial: \"partial\"; concern: \"concern\"; }>; verification: ZodEnum<{ sound: \"sound\"; partial: \"partial\"; concern: \"concern\"; }>; }, $strict>; }, $strip>, ZodObject<{ abstained: ZodString; }, $strip>]>>; }, $strip>>; learned: Records<ZodObject<{ glob: ZodString; level: ZodString; item: ZodString; commit: ZodString; pull: ZodOptional<ZodString>; at: ZodInt; }, $strip>>; itemKinds: Records<ZodDiscriminatedUnion<[ZodObject<{ item: ZodString; kind: ZodString; from: ZodLiteral<\"source\">; }, $strip>, ZodObject<{ item: ZodString; kind: ZodString; from: ZodLiteral<\"model\">; }, $strip>, ZodObject<{ item: ZodString; kind: ZodString; from: ZodLiteral<\"fallback\">; why: ZodString; }, $strip>], \"from\">>; plans: Records<ZodObject<{ item: ZodString; plan: ZodObject<{ summary: ZodString; steps: ZodArray<ZodString>; paths: ZodArray<ZodString>; }, $strict>; hash: ZodString; models: ZodArray<ZodString>; }, $strip>>; verdicts: Records<ZodObject<{ item: ZodString; head: ZodString; event: ZodString; reason: ZodString; cites: ZodArray<ZodObject<{ file: ZodString; line: ZodInt; }, $strict>>; models: ZodArray<ZodString>; }, $strip>>; questions: Records<ZodObject<{ item: ZodString; text: ZodString; options: ZodOptional<ZodArray<ZodString>>; detail: ZodOptional<ZodString>; priority: ZodInt; footprint: ZodOptional<ZodArray<ZodString>>; queuedAt: ZodInt; askedAt: ZodOptional<ZodInt>; }, $strip>>; choices: Records<ZodMiniObject<{ item: ZodMiniString<string>; text: ZodMiniString<string>; at: ZodMiniInt; }, $strip>>; answers: Records<ZodDiscriminatedUnion<[ZodObject<{ source: ZodLiteral<\"marker\">; option: ZodOptional<ZodString>; item: ZodString; ordinal: ZodInt; text: ZodString; disposition: ZodEnum<{ applied: \"applied\"; held: \"held\"; dropped: \"dropped\"; }>; why: ZodString; at: ZodInt; }, $strip>, ZodObject<{ source: ZodEnum<{ model: \"model\"; \"first-word\": \"first-word\"; }>; option: ZodString; item: ZodString; ordinal: ZodInt; text: ZodString; disposition: ZodEnum<{ applied: \"applied\"; held: \"held\"; dropped: \"dropped\"; }>; why: ZodString; at: ZodInt; }, $strip>, ZodObject<{ source: ZodEnum<{ free: \"free\"; abstained: \"abstained\"; \"none-of-these\": \"none-of-these\"; }>; item: ZodString; ordinal: ZodInt; text: ZodString; disposition: ZodEnum<{ applied: \"applied\"; held: \"held\"; dropped: \"dropped\"; }>; why: ZodString; at: ZodInt; }, $strip>], \"source\">>; notes: Records<ZodObject<{ source: ZodEnum<{ fix: \"fix\"; \"review-comment\": \"review-comment\"; \"review-body\": \"review-body\"; \"plan-answer\": \"plan-answer\"; revert: \"revert\"; }>; sourceId: ZodString; change: ZodString; item: ZodOptional<ZodString>; file: ZodOptional<ZodString>; line: ZodOptional<ZodInt>; hunk: ZodString; text: ZodString; at: ZodInt; }, $strip>>; repeats: Records<ZodObject<{ key: ZodString; notes: ZodArray<ZodString>; item: ZodOptional<ZodString>; commented: ZodArray<ZodString>; checked: ZodOptional<ZodObject<{ at: ZodInt; check: ZodString; }, $strip>>; misses: ZodArray<ZodString>; }, $strip>>; possibleRepeats: Records<ZodObject<{ a: ZodString; b: ZodString; models: ZodArray<ZodString>; at: ZodInt; }, $strip>>; merges: Records<ZodObject<{ item: ZodString; sha: ZodString; at: ZodInt; paths: ZodArray<ZodString>; }, $strip>>; breaks: Records<ZodObject<{ item: ZodString; sha: ZodString; at: ZodInt; paths: ZodArray<ZodString>; level: ZodString; failure: ZodString; onBreak: ZodEnum<{ \"follow-up\": \"follow-up\"; block: \"block\"; }>; followUp: ZodString; }, $strip>>; proofs: Records<ZodDiscriminatedUnion<[ZodObject<{ passed: ZodLiteral<true>; item: ZodString; at: ZodInt; worktrees: ZodInt; ms: ZodInt; }, $strip>, ZodObject<{ passed: ZodLiteral<false>; reason: ZodString; item: ZodString; at: ZodInt; worktrees: ZodInt; ms: ZodInt; }, $strip>], \"passed\">>; }, \"faults\" | \"limit\">, ended: LimitEnded) => Held | { readonly kind: \"limited\"; readonly until: number; }"
7480
+ "type": "(state: Pick<{ dir: string; statusPath: string; heartbeatPath: string; inbox: string; stops: string; faults: Faults; items: Items; events: EventLog; ops: OpKeys; runs: RunRecords; parked: Records<ZodObject<{ item: ZodString; why: ZodEnum<{ review: \"review\"; stuck: \"stuck\"; }>; cause: ZodString; since: ZodInt; }, $strip>>; spent: Records<ZodObject<{ item: ZodString; total: ZodInt; base: ZodInt; }, $strip>>; kinds: Records<ZodObject<{ tiers: ZodArray<ZodObject<{ purpose: ZodEnum<{ fix: \"fix\"; review: \"review\"; plan: \"plan\"; build: \"build\"; }>; level: ZodOptional<ZodString>; size: ZodOptional<ZodEnum<{ small: \"small\"; medium: \"medium\"; large: \"large\"; }>>; tier: ZodEnum<{ light: \"light\"; standard: \"standard\"; top: \"top\"; }>; effort: ZodEnum<{ medium: \"medium\"; low: \"low\"; high: \"high\"; }>; }, $strict>>; tokenCap: ZodObject<{ tokens: ZodNumber; overCap: ZodString; }, $strict>; stateMap: ZodOptional<ZodRecord<ZodString, ZodRecord<ZodString, ZodString>>>; machine: ZodObject<{ id: ZodString; version: ZodString; initial: ZodString; states: ZodRecord<ZodString, ZodObject<{ type: ZodOptional<ZodEnum<{ atomic: \"atomic\"; final: \"final\"; }>>; description: ZodOptional<ZodString>; tags: ZodOptional<ZodArray<ZodString>>; invoke: ZodOptional<ZodObject<{ src: ZodString; onDone: ZodOptional<ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>; onError: ZodOptional<ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>; }, $strict>>; on: ZodOptional<ZodRecord<ZodString, ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>>; always: ZodOptional<ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>; after: ZodOptional<ZodRecord<ZodString, ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>>; timeout: ZodOptional<ZodNumber>; onTimeout: ZodOptional<ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>; entry: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; exit: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; }, $strict>>; }, $strict>; }, $strict>>; limit: Records<ZodObject<{ until: ZodInt; }, $strip>>; ready: Records<ZodObject<{ ids: ZodArray<ZodString>; }, $strip>>; slots: Records<ZodDiscriminatedUnion<[ZodObject<{ status: ZodEnum<{ out: \"out\"; new: \"new\"; free: \"free\"; stale: \"stale\"; }>; name: ZodString; index: ZodInt; folder: ZodString; lockfiles: ZodOptional<ZodString>; since: ZodInt; }, $strip>, ZodObject<{ status: ZodEnum<{ taken: \"taken\"; kept: \"kept\"; }>; item: ZodString; name: ZodString; index: ZodInt; folder: ZodString; lockfiles: ZodOptional<ZodString>; since: ZodInt; }, $strip>], \"status\">>; landings: Records<ZodObject<{ item: ZodString; branch: ZodString; since: ZodInt; change: ZodReadonly<ZodObject<{ paths: ZodReadonly<ZodArray<ZodString>>; size: ZodInt; loosened: ZodBoolean; pinChanged: ZodBoolean; }, $strip>>; head: ZodString; lostRaces: ZodDefault<ZodInt>; patch: ZodOptional<ZodString>; alignment: ZodOptional<ZodUnion<readonly [ZodObject<{ graded: ZodObject<{ alignment: ZodEnum<{ sound: \"sound\"; partial: \"partial\"; concern: \"concern\"; }>; verification: ZodEnum<{ sound: \"sound\"; partial: \"partial\"; concern: \"concern\"; }>; }, $strict>; }, $strip>, ZodObject<{ abstained: ZodString; }, $strip>]>>; }, $strip>>; learned: Records<ZodObject<{ glob: ZodString; level: ZodString; item: ZodString; commit: ZodString; pull: ZodOptional<ZodString>; at: ZodInt; }, $strip>>; itemKinds: Records<ZodDiscriminatedUnion<[ZodObject<{ item: ZodString; kind: ZodString; from: ZodLiteral<\"source\">; }, $strip>, ZodObject<{ item: ZodString; kind: ZodString; from: ZodLiteral<\"model\">; }, $strip>, ZodObject<{ item: ZodString; kind: ZodString; from: ZodLiteral<\"fallback\">; why: ZodString; }, $strip>], \"from\">>; plans: Records<ZodObject<{ item: ZodString; plan: ZodObject<{ summary: ZodString; steps: ZodArray<ZodString>; paths: ZodArray<ZodString>; }, $strict>; hash: ZodString; models: ZodArray<ZodString>; }, $strip>>; verdicts: Records<ZodObject<{ item: ZodString; head: ZodString; event: ZodString; reason: ZodString; cites: ZodArray<ZodObject<{ file: ZodString; line: ZodInt; }, $strict>>; models: ZodArray<ZodString>; }, $strip>>; pullRequests: Records<ZodObject<{ item: ZodString; title: ZodString; body: ZodString; evidence: ZodOptional<ZodUnion<readonly [ZodObject<{ kind: ZodEnum<{ image: \"image\"; video: \"video\"; }>; url: ZodURL; }, $strip>, ZodObject<{ left: ZodString; }, $strip>]>>; }, $strip>>; questions: Records<ZodObject<{ item: ZodString; text: ZodString; options: ZodOptional<ZodArray<ZodString>>; detail: ZodOptional<ZodString>; priority: ZodInt; footprint: ZodOptional<ZodArray<ZodString>>; queuedAt: ZodInt; askedAt: ZodOptional<ZodInt>; }, $strip>>; followUps: Records<ZodObject<{ item: ZodString; from: ZodString; at: ZodInt; }, $strip>>; choices: Records<ZodMiniObject<{ item: ZodMiniString<string>; text: ZodMiniString<string>; at: ZodMiniInt; }, $strip>>; answers: Records<ZodDiscriminatedUnion<[ZodObject<{ source: ZodLiteral<\"marker\">; option: ZodOptional<ZodString>; item: ZodString; ordinal: ZodInt; text: ZodString; disposition: ZodEnum<{ applied: \"applied\"; held: \"held\"; dropped: \"dropped\"; }>; why: ZodString; at: ZodInt; }, $strip>, ZodObject<{ source: ZodEnum<{ model: \"model\"; \"first-word\": \"first-word\"; }>; option: ZodString; item: ZodString; ordinal: ZodInt; text: ZodString; disposition: ZodEnum<{ applied: \"applied\"; held: \"held\"; dropped: \"dropped\"; }>; why: ZodString; at: ZodInt; }, $strip>, ZodObject<{ source: ZodEnum<{ free: \"free\"; abstained: \"abstained\"; \"none-of-these\": \"none-of-these\"; }>; item: ZodString; ordinal: ZodInt; text: ZodString; disposition: ZodEnum<{ applied: \"applied\"; held: \"held\"; dropped: \"dropped\"; }>; why: ZodString; at: ZodInt; }, $strip>], \"source\">>; notes: Records<ZodObject<{ source: ZodEnum<{ fix: \"fix\"; \"review-comment\": \"review-comment\"; \"review-body\": \"review-body\"; \"plan-answer\": \"plan-answer\"; revert: \"revert\"; }>; sourceId: ZodString; change: ZodString; item: ZodOptional<ZodString>; file: ZodOptional<ZodString>; line: ZodOptional<ZodInt>; hunk: ZodString; text: ZodString; at: ZodInt; }, $strip>>; repeats: Records<ZodObject<{ key: ZodString; notes: ZodArray<ZodString>; item: ZodOptional<ZodString>; commented: ZodArray<ZodString>; checked: ZodOptional<ZodObject<{ at: ZodInt; check: ZodString; }, $strip>>; misses: ZodArray<ZodString>; }, $strip>>; possibleRepeats: Records<ZodObject<{ a: ZodString; b: ZodString; models: ZodArray<ZodString>; at: ZodInt; }, $strip>>; merges: Records<ZodObject<{ item: ZodString; sha: ZodString; at: ZodInt; paths: ZodArray<ZodString>; baseChecked: ZodDefault<ZodBoolean>; }, $strip>>; breaks: Records<ZodObject<{ item: ZodString; sha: ZodString; at: ZodInt; paths: ZodArray<ZodString>; level: ZodString; failure: ZodString; onBreak: ZodEnum<{ \"follow-up\": \"follow-up\"; block: \"block\"; }>; followUp: ZodString; }, $strip>>; proofs: Records<ZodDiscriminatedUnion<[ZodObject<{ passed: ZodLiteral<true>; item: ZodString; at: ZodInt; worktrees: ZodInt; ms: ZodInt; }, $strip>, ZodObject<{ passed: ZodLiteral<false>; reason: ZodString; item: ZodString; at: ZodInt; worktrees: ZodInt; ms: ZodInt; }, $strip>], \"passed\">>; }, \"faults\" | \"limit\">, ended: LimitEnded) => Held | { readonly kind: \"limited\"; readonly until: number; }"
6947
7481
  },
6948
7482
  "Signature": {
6949
7483
  "type": "export type Signature = {\n readonly engineVersion: string;\n readonly hash: string;\n};\n= { readonly engineVersion: string; readonly hash: string; }"
@@ -7035,7 +7569,7 @@
7035
7569
  "type": "(options: RunnerOptions) => Promise<Started>"
7036
7570
  },
7037
7571
  "State": {
7038
- "type": "export type State = ReturnType<typeof openState>;\n= { dir: string; statusPath: string; heartbeatPath: string; inbox: string; stops: string; faults: Faults; items: Items; events: EventLog; ops: OpKeys; runs: RunRecords; parked: Records<ZodObject<{ item: ZodString; why: ZodEnum<{ review: \"review\"; stuck: \"stuck\"; }>; cause: ZodString; since: ZodInt; }, $strip>>; spent: Records<ZodObject<{ item: ZodString; total: ZodInt; base: ZodInt; }, $strip>>; kinds: Records<ZodObject<{ tiers: ZodArray<ZodObject<{ purpose: ZodEnum<{ fix: \"fix\"; review: \"review\"; plan: \"plan\"; build: \"build\"; }>; level: ZodOptional<ZodString>; size: ZodOptional<ZodEnum<{ small: \"small\"; medium: \"medium\"; large: \"large\"; }>>; tier: ZodEnum<{ light: \"light\"; standard: \"standard\"; top: \"top\"; }>; effort: ZodEnum<{ medium: \"medium\"; low: \"low\"; high: \"high\"; }>; }, $strict>>; tokenCap: ZodObject<{ tokens: ZodNumber; overCap: ZodString; }, $strict>; stateMap: ZodOptional<ZodRecord<ZodString, ZodRecord<ZodString, ZodString>>>; machine: ZodObject<{ id: ZodString; version: ZodString; initial: ZodString; states: ZodRecord<ZodString, ZodObject<{ type: ZodOptional<ZodEnum<{ atomic: \"atomic\"; final: \"final\"; }>>; description: ZodOptional<ZodString>; tags: ZodOptional<ZodArray<ZodString>>; invoke: ZodOptional<ZodObject<{ src: ZodString; onDone: ZodOptional<ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>; onError: ZodOptional<ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>; }, $strict>>; on: ZodOptional<ZodRecord<ZodString, ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>>; always: ZodOptional<ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>; after: ZodOptional<ZodRecord<ZodString, ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>>; timeout: ZodOptional<ZodNumber>; onTimeout: ZodOptional<ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>; entry: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; exit: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; }, $strict>>; }, $strict>; }, $strict>>; limit: Records<ZodObject<{ until: ZodInt; }, $strip>>; ready: Records<ZodObject<{ ids: ZodArray<ZodString>; }, $strip>>; slots: Records<ZodDiscriminatedUnion<[ZodObject<{ status: ZodEnum<{ out: \"out\"; new: \"new\"; free: \"free\"; stale: \"stale\"; }>; name: ZodString; index: ZodInt; folder: ZodString; lockfiles: ZodOptional<ZodString>; since: ZodInt; }, $strip>, ZodObject<{ status: ZodEnum<{ taken: \"taken\"; kept: \"kept\"; }>; item: ZodString; name: ZodString; index: ZodInt; folder: ZodString; lockfiles: ZodOptional<ZodString>; since: ZodInt; }, $strip>], \"status\">>; landings: Records<ZodObject<{ item: ZodString; branch: ZodString; since: ZodInt; change: ZodReadonly<ZodObject<{ paths: ZodReadonly<ZodArray<ZodString>>; size: ZodInt; loosened: ZodBoolean; pinChanged: ZodBoolean; }, $strip>>; head: ZodString; ownerApproved: ZodBoolean; alignment: ZodOptional<ZodUnion<readonly [ZodObject<{ graded: ZodObject<{ alignment: ZodEnum<{ sound: \"sound\"; partial: \"partial\"; concern: \"concern\"; }>; verification: ZodEnum<{ sound: \"sound\"; partial: \"partial\"; concern: \"concern\"; }>; }, $strict>; }, $strip>, ZodObject<{ abstained: ZodString; }, $strip>]>>; }, $strip>>; learned: Records<ZodObject<{ glob: ZodString; level: ZodString; item: ZodString; commit: ZodString; pull: ZodOptional<ZodString>; at: ZodInt; }, $strip>>; itemKinds: Records<ZodDiscriminatedUnion<[ZodObject<{ item: ZodString; kind: ZodString; from: ZodLiteral<\"source\">; }, $strip>, ZodObject<{ item: ZodString; kind: ZodString; from: ZodLiteral<\"model\">; }, $strip>, ZodObject<{ item: ZodString; kind: ZodString; from: ZodLiteral<\"fallback\">; why: ZodString; }, $strip>], \"from\">>; plans: Records<ZodObject<{ item: ZodString; plan: ZodObject<{ summary: ZodString; steps: ZodArray<ZodString>; paths: ZodArray<ZodString>; }, $strict>; hash: ZodString; models: ZodArray<ZodString>; }, $strip>>; verdicts: Records<ZodObject<{ item: ZodString; head: ZodString; event: ZodString; reason: ZodString; cites: ZodArray<ZodObject<{ file: ZodString; line: ZodInt; }, $strict>>; models: ZodArray<ZodString>; }, $strip>>; questions: Records<ZodObject<{ item: ZodString; text: ZodString; options: ZodOptional<ZodArray<ZodString>>; detail: ZodOptional<ZodString>; priority: ZodInt; footprint: ZodOptional<ZodArray<ZodString>>; queuedAt: ZodInt; askedAt: ZodOptional<ZodInt>; }, $strip>>; choices: Records<ZodMiniObject<{ item: ZodMiniString<string>; text: ZodMiniString<string>; at: ZodMiniInt; }, $strip>>; answers: Records<ZodDiscriminatedUnion<[ZodObject<{ source: ZodLiteral<\"marker\">; option: ZodOptional<ZodString>; item: ZodString; ordinal: ZodInt; text: ZodString; disposition: ZodEnum<{ applied: \"applied\"; held: \"held\"; dropped: \"dropped\"; }>; why: ZodString; at: ZodInt; }, $strip>, ZodObject<{ source: ZodEnum<{ model: \"model\"; \"first-word\": \"first-word\"; }>; option: ZodString; item: ZodString; ordinal: ZodInt; text: ZodString; disposition: ZodEnum<{ applied: \"applied\"; held: \"held\"; dropped: \"dropped\"; }>; why: ZodString; at: ZodInt; }, $strip>, ZodObject<{ source: ZodEnum<{ free: \"free\"; abstained: \"abstained\"; \"none-of-these\": \"none-of-these\"; }>; item: ZodString; ordinal: ZodInt; text: ZodString; disposition: ZodEnum<{ applied: \"applied\"; held: \"held\"; dropped: \"dropped\"; }>; why: ZodString; at: ZodInt; }, $strip>], \"source\">>; notes: Records<ZodObject<{ source: ZodEnum<{ fix: \"fix\"; \"review-comment\": \"review-comment\"; \"review-body\": \"review-body\"; \"plan-answer\": \"plan-answer\"; revert: \"revert\"; }>; sourceId: ZodString; change: ZodString; item: ZodOptional<ZodString>; file: ZodOptional<ZodString>; line: ZodOptional<ZodInt>; hunk: ZodString; text: ZodString; at: ZodInt; }, $strip>>; repeats: Records<ZodObject<{ key: ZodString; notes: ZodArray<ZodString>; item: ZodOptional<ZodString>; commented: ZodArray<ZodString>; checked: ZodOptional<ZodObject<{ at: ZodInt; check: ZodString; }, $strip>>; misses: ZodArray<ZodString>; }, $strip>>; possibleRepeats: Records<ZodObject<{ a: ZodString; b: ZodString; models: ZodArray<ZodString>; at: ZodInt; }, $strip>>; merges: Records<ZodObject<{ item: ZodString; sha: ZodString; at: ZodInt; paths: ZodArray<ZodString>; }, $strip>>; breaks: Records<ZodObject<{ item: ZodString; sha: ZodString; at: ZodInt; paths: ZodArray<ZodString>; level: ZodString; failure: ZodString; onBreak: ZodEnum<{ \"follow-up\": \"follow-up\"; block: \"block\"; }>; followUp: ZodString; }, $strip>>; proofs: Records<ZodDiscriminatedUnion<[ZodObject<{ passed: ZodLiteral<true>; item: ZodString; at: ZodInt; worktrees: ZodInt; ms: ZodInt; }, $strip>, ZodObject<{ passed: ZodLiteral<false>; reason: ZodString; item: ZodString; at: ZodInt; worktrees: ZodInt; ms: ZodInt; }, $strip>], \"passed\">>; }"
7572
+ "type": "export type State = ReturnType<typeof openState>;\n= { dir: string; statusPath: string; heartbeatPath: string; inbox: string; stops: string; faults: Faults; items: Items; events: EventLog; ops: OpKeys; runs: RunRecords; parked: Records<ZodObject<{ item: ZodString; why: ZodEnum<{ review: \"review\"; stuck: \"stuck\"; }>; cause: ZodString; since: ZodInt; }, $strip>>; spent: Records<ZodObject<{ item: ZodString; total: ZodInt; base: ZodInt; }, $strip>>; kinds: Records<ZodObject<{ tiers: ZodArray<ZodObject<{ purpose: ZodEnum<{ fix: \"fix\"; review: \"review\"; plan: \"plan\"; build: \"build\"; }>; level: ZodOptional<ZodString>; size: ZodOptional<ZodEnum<{ small: \"small\"; medium: \"medium\"; large: \"large\"; }>>; tier: ZodEnum<{ light: \"light\"; standard: \"standard\"; top: \"top\"; }>; effort: ZodEnum<{ medium: \"medium\"; low: \"low\"; high: \"high\"; }>; }, $strict>>; tokenCap: ZodObject<{ tokens: ZodNumber; overCap: ZodString; }, $strict>; stateMap: ZodOptional<ZodRecord<ZodString, ZodRecord<ZodString, ZodString>>>; machine: ZodObject<{ id: ZodString; version: ZodString; initial: ZodString; states: ZodRecord<ZodString, ZodObject<{ type: ZodOptional<ZodEnum<{ atomic: \"atomic\"; final: \"final\"; }>>; description: ZodOptional<ZodString>; tags: ZodOptional<ZodArray<ZodString>>; invoke: ZodOptional<ZodObject<{ src: ZodString; onDone: ZodOptional<ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>; onError: ZodOptional<ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>; }, $strict>>; on: ZodOptional<ZodRecord<ZodString, ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>>; always: ZodOptional<ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>; after: ZodOptional<ZodRecord<ZodString, ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>>; timeout: ZodOptional<ZodNumber>; onTimeout: ZodOptional<ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>; entry: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; exit: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; }, $strict>>; }, $strict>; }, $strict>>; limit: Records<ZodObject<{ until: ZodInt; }, $strip>>; ready: Records<ZodObject<{ ids: ZodArray<ZodString>; }, $strip>>; slots: Records<ZodDiscriminatedUnion<[ZodObject<{ status: ZodEnum<{ out: \"out\"; new: \"new\"; free: \"free\"; stale: \"stale\"; }>; name: ZodString; index: ZodInt; folder: ZodString; lockfiles: ZodOptional<ZodString>; since: ZodInt; }, $strip>, ZodObject<{ status: ZodEnum<{ taken: \"taken\"; kept: \"kept\"; }>; item: ZodString; name: ZodString; index: ZodInt; folder: ZodString; lockfiles: ZodOptional<ZodString>; since: ZodInt; }, $strip>], \"status\">>; landings: Records<ZodObject<{ item: ZodString; branch: ZodString; since: ZodInt; change: ZodReadonly<ZodObject<{ paths: ZodReadonly<ZodArray<ZodString>>; size: ZodInt; loosened: ZodBoolean; pinChanged: ZodBoolean; }, $strip>>; head: ZodString; lostRaces: ZodDefault<ZodInt>; patch: ZodOptional<ZodString>; alignment: ZodOptional<ZodUnion<readonly [ZodObject<{ graded: ZodObject<{ alignment: ZodEnum<{ sound: \"sound\"; partial: \"partial\"; concern: \"concern\"; }>; verification: ZodEnum<{ sound: \"sound\"; partial: \"partial\"; concern: \"concern\"; }>; }, $strict>; }, $strip>, ZodObject<{ abstained: ZodString; }, $strip>]>>; }, $strip>>; learned: Records<ZodObject<{ glob: ZodString; level: ZodString; item: ZodString; commit: ZodString; pull: ZodOptional<ZodString>; at: ZodInt; }, $strip>>; itemKinds: Records<ZodDiscriminatedUnion<[ZodObject<{ item: ZodString; kind: ZodString; from: ZodLiteral<\"source\">; }, $strip>, ZodObject<{ item: ZodString; kind: ZodString; from: ZodLiteral<\"model\">; }, $strip>, ZodObject<{ item: ZodString; kind: ZodString; from: ZodLiteral<\"fallback\">; why: ZodString; }, $strip>], \"from\">>; plans: Records<ZodObject<{ item: ZodString; plan: ZodObject<{ summary: ZodString; steps: ZodArray<ZodString>; paths: ZodArray<ZodString>; }, $strict>; hash: ZodString; models: ZodArray<ZodString>; }, $strip>>; verdicts: Records<ZodObject<{ item: ZodString; head: ZodString; event: ZodString; reason: ZodString; cites: ZodArray<ZodObject<{ file: ZodString; line: ZodInt; }, $strict>>; models: ZodArray<ZodString>; }, $strip>>; pullRequests: Records<ZodObject<{ item: ZodString; title: ZodString; body: ZodString; evidence: ZodOptional<ZodUnion<readonly [ZodObject<{ kind: ZodEnum<{ image: \"image\"; video: \"video\"; }>; url: ZodURL; }, $strip>, ZodObject<{ left: ZodString; }, $strip>]>>; }, $strip>>; questions: Records<ZodObject<{ item: ZodString; text: ZodString; options: ZodOptional<ZodArray<ZodString>>; detail: ZodOptional<ZodString>; priority: ZodInt; footprint: ZodOptional<ZodArray<ZodString>>; queuedAt: ZodInt; askedAt: ZodOptional<ZodInt>; }, $strip>>; followUps: Records<ZodObject<{ item: ZodString; from: ZodString; at: ZodInt; }, $strip>>; choices: Records<ZodMiniObject<{ item: ZodMiniString<string>; text: ZodMiniString<string>; at: ZodMiniInt; }, $strip>>; answers: Records<ZodDiscriminatedUnion<[ZodObject<{ source: ZodLiteral<\"marker\">; option: ZodOptional<ZodString>; item: ZodString; ordinal: ZodInt; text: ZodString; disposition: ZodEnum<{ applied: \"applied\"; held: \"held\"; dropped: \"dropped\"; }>; why: ZodString; at: ZodInt; }, $strip>, ZodObject<{ source: ZodEnum<{ model: \"model\"; \"first-word\": \"first-word\"; }>; option: ZodString; item: ZodString; ordinal: ZodInt; text: ZodString; disposition: ZodEnum<{ applied: \"applied\"; held: \"held\"; dropped: \"dropped\"; }>; why: ZodString; at: ZodInt; }, $strip>, ZodObject<{ source: ZodEnum<{ free: \"free\"; abstained: \"abstained\"; \"none-of-these\": \"none-of-these\"; }>; item: ZodString; ordinal: ZodInt; text: ZodString; disposition: ZodEnum<{ applied: \"applied\"; held: \"held\"; dropped: \"dropped\"; }>; why: ZodString; at: ZodInt; }, $strip>], \"source\">>; notes: Records<ZodObject<{ source: ZodEnum<{ fix: \"fix\"; \"review-comment\": \"review-comment\"; \"review-body\": \"review-body\"; \"plan-answer\": \"plan-answer\"; revert: \"revert\"; }>; sourceId: ZodString; change: ZodString; item: ZodOptional<ZodString>; file: ZodOptional<ZodString>; line: ZodOptional<ZodInt>; hunk: ZodString; text: ZodString; at: ZodInt; }, $strip>>; repeats: Records<ZodObject<{ key: ZodString; notes: ZodArray<ZodString>; item: ZodOptional<ZodString>; commented: ZodArray<ZodString>; checked: ZodOptional<ZodObject<{ at: ZodInt; check: ZodString; }, $strip>>; misses: ZodArray<ZodString>; }, $strip>>; possibleRepeats: Records<ZodObject<{ a: ZodString; b: ZodString; models: ZodArray<ZodString>; at: ZodInt; }, $strip>>; merges: Records<ZodObject<{ item: ZodString; sha: ZodString; at: ZodInt; paths: ZodArray<ZodString>; baseChecked: ZodDefault<ZodBoolean>; }, $strip>>; breaks: Records<ZodObject<{ item: ZodString; sha: ZodString; at: ZodInt; paths: ZodArray<ZodString>; level: ZodString; failure: ZodString; onBreak: ZodEnum<{ \"follow-up\": \"follow-up\"; block: \"block\"; }>; followUp: ZodString; }, $strip>>; proofs: Records<ZodDiscriminatedUnion<[ZodObject<{ passed: ZodLiteral<true>; item: ZodString; at: ZodInt; worktrees: ZodInt; ms: ZodInt; }, $strip>, ZodObject<{ passed: ZodLiteral<false>; reason: ZodString; item: ZodString; at: ZodInt; worktrees: ZodInt; ms: ZodInt; }, $strip>], \"passed\">>; }"
7039
7573
  },
7040
7574
  "StateOptions": {
7041
7575
  "type": "export type StateOptions = Codec & {\n readonly now: () => number;\n};\n= Codec & { readonly now: () => number; }"
@@ -7064,10 +7598,10 @@
7064
7598
  "type": "(o: Supervision) => Promise<Ended>"
7065
7599
  },
7066
7600
  "Supervision": {
7067
- "type": "export type Supervision = {\n readonly state: Pick<State, \"faults\" | \"heartbeatPath\" | \"statusPath\">;\n readonly spawn: () => Child;\n readonly now: () => number;\n readonly intervalMs: number;\n readonly workerDownTicks: number;\n readonly maxCrashes: number;\n readonly crashWindowMs: number;\n readonly backoffMs: number;\n readonly maxBackoffMs: number;\n readonly stop: AbortSignal;\n};\n= { readonly state: Pick<{ dir: string; statusPath: string; heartbeatPath: string; inbox: string; stops: string; faults: Faults; items: Items; events: EventLog; ops: OpKeys; runs: RunRecords; parked: Records<ZodObject<{ item: ZodString; why: ZodEnum<{ review: \"review\"; stuck: \"stuck\"; }>; cause: ZodString; since: ZodInt; }, $strip>>; spent: Records<ZodObject<{ item: ZodString; total: ZodInt; base: ZodInt; }, $strip>>; kinds: Records<ZodObject<{ tiers: ZodArray<ZodObject<{ purpose: ZodEnum<{ fix: \"fix\"; review: \"review\"; plan: \"plan\"; build: \"build\"; }>; level: ZodOptional<ZodString>; size: ZodOptional<ZodEnum<{ small: \"small\"; medium: \"medium\"; large: \"large\"; }>>; tier: ZodEnum<{ light: \"light\"; standard: \"standard\"; top: \"top\"; }>; effort: ZodEnum<{ medium: \"medium\"; low: \"low\"; high: \"high\"; }>; }, $strict>>; tokenCap: ZodObject<{ tokens: ZodNumber; overCap: ZodString; }, $strict>; stateMap: ZodOptional<ZodRecord<ZodString, ZodRecord<ZodString, ZodString>>>; machine: ZodObject<{ id: ZodString; version: ZodString; initial: ZodString; states: ZodRecord<ZodString, ZodObject<{ type: ZodOptional<ZodEnum<{ atomic: \"atomic\"; final: \"final\"; }>>; description: ZodOptional<ZodString>; tags: ZodOptional<ZodArray<ZodString>>; invoke: ZodOptional<ZodObject<{ src: ZodString; onDone: ZodOptional<ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>; onError: ZodOptional<ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>; }, $strict>>; on: ZodOptional<ZodRecord<ZodString, ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>>; always: ZodOptional<ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>; after: ZodOptional<ZodRecord<ZodString, ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>>; timeout: ZodOptional<ZodNumber>; onTimeout: ZodOptional<ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>; entry: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; exit: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; }, $strict>>; }, $strict>; }, $strict>>; limit: Records<ZodObject<{ until: ZodInt; }, $strip>>; ready: Records<ZodObject<{ ids: ZodArray<ZodString>; }, $strip>>; slots: Records<ZodDiscriminatedUnion<[ZodObject<{ status: ZodEnum<{ out: \"out\"; new: \"new\"; free: \"free\"; stale: \"stale\"; }>; name: ZodString; index: ZodInt; folder: ZodString; lockfiles: ZodOptional<ZodString>; since: ZodInt; }, $strip>, ZodObject<{ status: ZodEnum<{ taken: \"taken\"; kept: \"kept\"; }>; item: ZodString; name: ZodString; index: ZodInt; folder: ZodString; lockfiles: ZodOptional<ZodString>; since: ZodInt; }, $strip>], \"status\">>; landings: Records<ZodObject<{ item: ZodString; branch: ZodString; since: ZodInt; change: ZodReadonly<ZodObject<{ paths: ZodReadonly<ZodArray<ZodString>>; size: ZodInt; loosened: ZodBoolean; pinChanged: ZodBoolean; }, $strip>>; head: ZodString; ownerApproved: ZodBoolean; alignment: ZodOptional<ZodUnion<readonly [ZodObject<{ graded: ZodObject<{ alignment: ZodEnum<{ sound: \"sound\"; partial: \"partial\"; concern: \"concern\"; }>; verification: ZodEnum<{ sound: \"sound\"; partial: \"partial\"; concern: \"concern\"; }>; }, $strict>; }, $strip>, ZodObject<{ abstained: ZodString; }, $strip>]>>; }, $strip>>; learned: Records<ZodObject<{ glob: ZodString; level: ZodString; item: ZodString; commit: ZodString; pull: ZodOptional<ZodString>; at: ZodInt; }, $strip>>; itemKinds: Records<ZodDiscriminatedUnion<[ZodObject<{ item: ZodString; kind: ZodString; from: ZodLiteral<\"source\">; }, $strip>, ZodObject<{ item: ZodString; kind: ZodString; from: ZodLiteral<\"model\">; }, $strip>, ZodObject<{ item: ZodString; kind: ZodString; from: ZodLiteral<\"fallback\">; why: ZodString; }, $strip>], \"from\">>; plans: Records<ZodObject<{ item: ZodString; plan: ZodObject<{ summary: ZodString; steps: ZodArray<ZodString>; paths: ZodArray<ZodString>; }, $strict>; hash: ZodString; models: ZodArray<ZodString>; }, $strip>>; verdicts: Records<ZodObject<{ item: ZodString; head: ZodString; event: ZodString; reason: ZodString; cites: ZodArray<ZodObject<{ file: ZodString; line: ZodInt; }, $strict>>; models: ZodArray<ZodString>; }, $strip>>; questions: Records<ZodObject<{ item: ZodString; text: ZodString; options: ZodOptional<ZodArray<ZodString>>; detail: ZodOptional<ZodString>; priority: ZodInt; footprint: ZodOptional<ZodArray<ZodString>>; queuedAt: ZodInt; askedAt: ZodOptional<ZodInt>; }, $strip>>; choices: Records<ZodMiniObject<{ item: ZodMiniString<string>; text: ZodMiniString<string>; at: ZodMiniInt; }, $strip>>; answers: Records<ZodDiscriminatedUnion<[ZodObject<{ source: ZodLiteral<\"marker\">; option: ZodOptional<ZodString>; item: ZodString; ordinal: ZodInt; text: ZodString; disposition: ZodEnum<{ applied: \"applied\"; held: \"held\"; dropped: \"dropped\"; }>; why: ZodString; at: ZodInt; }, $strip>, ZodObject<{ source: ZodEnum<{ model: \"model\"; \"first-word\": \"first-word\"; }>; option: ZodString; item: ZodString; ordinal: ZodInt; text: ZodString; disposition: ZodEnum<{ applied: \"applied\"; held: \"held\"; dropped: \"dropped\"; }>; why: ZodString; at: ZodInt; }, $strip>, ZodObject<{ source: ZodEnum<{ free: \"free\"; abstained: \"abstained\"; \"none-of-these\": \"none-of-these\"; }>; item: ZodString; ordinal: ZodInt; text: ZodString; disposition: ZodEnum<{ applied: \"applied\"; held: \"held\"; dropped: \"dropped\"; }>; why: ZodString; at: ZodInt; }, $strip>], \"source\">>; notes: Records<ZodObject<{ source: ZodEnum<{ fix: \"fix\"; \"review-comment\": \"review-comment\"; \"review-body\": \"review-body\"; \"plan-answer\": \"plan-answer\"; revert: \"revert\"; }>; sourceId: ZodString; change: ZodString; item: ZodOptional<ZodString>; file: ZodOptional<ZodString>; line: ZodOptional<ZodInt>; hunk: ZodString; text: ZodString; at: ZodInt; }, $strip>>; repeats: Records<ZodObject<{ key: ZodString; notes: ZodArray<ZodString>; item: ZodOptional<ZodString>; commented: ZodArray<ZodString>; checked: ZodOptional<ZodObject<{ at: ZodInt; check: ZodString; }, $strip>>; misses: ZodArray<ZodString>; }, $strip>>; possibleRepeats: Records<ZodObject<{ a: ZodString; b: ZodString; models: ZodArray<ZodString>; at: ZodInt; }, $strip>>; merges: Records<ZodObject<{ item: ZodString; sha: ZodString; at: ZodInt; paths: ZodArray<ZodString>; }, $strip>>; breaks: Records<ZodObject<{ item: ZodString; sha: ZodString; at: ZodInt; paths: ZodArray<ZodString>; level: ZodString; failure: ZodString; onBreak: ZodEnum<{ \"follow-up\": \"follow-up\"; block: \"block\"; }>; followUp: ZodString; }, $strip>>; proofs: Records<ZodDiscriminatedUnion<[ZodObject<{ passed: ZodLiteral<true>; item: ZodString; at: ZodInt; worktrees: ZodInt; ms: ZodInt; }, $strip>, ZodObject<{ passed: ZodLiteral<false>; reason: ZodString; item: ZodString; at: ZodInt; worktrees: ZodInt; ms: ZodInt; }, $strip>], \"passed\">>; }, \"faults\" | \"heartbeatPath\" | \"statusPath\">; readonly spawn: () => Child; readonly now: () => number; readonly intervalMs: number; readonly workerDownTicks: number; readonly maxCrashes: number; readonly crashWindowMs: number; readonly backoffMs: number; readonly maxBackoffMs: number; readonly stop: AbortSignal; }"
7601
+ "type": "export type Supervision = {\n readonly state: Pick<State, \"faults\" | \"heartbeatPath\" | \"statusPath\">;\n readonly spawn: () => Child;\n readonly now: () => number;\n readonly intervalMs: number;\n readonly workerDownTicks: number;\n readonly maxCrashes: number;\n readonly crashWindowMs: number;\n readonly backoffMs: number;\n readonly maxBackoffMs: number;\n readonly stop: AbortSignal;\n};\n= { readonly state: Pick<{ dir: string; statusPath: string; heartbeatPath: string; inbox: string; stops: string; faults: Faults; items: Items; events: EventLog; ops: OpKeys; runs: RunRecords; parked: Records<ZodObject<{ item: ZodString; why: ZodEnum<{ review: \"review\"; stuck: \"stuck\"; }>; cause: ZodString; since: ZodInt; }, $strip>>; spent: Records<ZodObject<{ item: ZodString; total: ZodInt; base: ZodInt; }, $strip>>; kinds: Records<ZodObject<{ tiers: ZodArray<ZodObject<{ purpose: ZodEnum<{ fix: \"fix\"; review: \"review\"; plan: \"plan\"; build: \"build\"; }>; level: ZodOptional<ZodString>; size: ZodOptional<ZodEnum<{ small: \"small\"; medium: \"medium\"; large: \"large\"; }>>; tier: ZodEnum<{ light: \"light\"; standard: \"standard\"; top: \"top\"; }>; effort: ZodEnum<{ medium: \"medium\"; low: \"low\"; high: \"high\"; }>; }, $strict>>; tokenCap: ZodObject<{ tokens: ZodNumber; overCap: ZodString; }, $strict>; stateMap: ZodOptional<ZodRecord<ZodString, ZodRecord<ZodString, ZodString>>>; machine: ZodObject<{ id: ZodString; version: ZodString; initial: ZodString; states: ZodRecord<ZodString, ZodObject<{ type: ZodOptional<ZodEnum<{ atomic: \"atomic\"; final: \"final\"; }>>; description: ZodOptional<ZodString>; tags: ZodOptional<ZodArray<ZodString>>; invoke: ZodOptional<ZodObject<{ src: ZodString; onDone: ZodOptional<ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>; onError: ZodOptional<ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>; }, $strict>>; on: ZodOptional<ZodRecord<ZodString, ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>>; always: ZodOptional<ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>; after: ZodOptional<ZodRecord<ZodString, ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>>; timeout: ZodOptional<ZodNumber>; onTimeout: ZodOptional<ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>; entry: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; exit: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; }, $strict>>; }, $strict>; }, $strict>>; limit: Records<ZodObject<{ until: ZodInt; }, $strip>>; ready: Records<ZodObject<{ ids: ZodArray<ZodString>; }, $strip>>; slots: Records<ZodDiscriminatedUnion<[ZodObject<{ status: ZodEnum<{ out: \"out\"; new: \"new\"; free: \"free\"; stale: \"stale\"; }>; name: ZodString; index: ZodInt; folder: ZodString; lockfiles: ZodOptional<ZodString>; since: ZodInt; }, $strip>, ZodObject<{ status: ZodEnum<{ taken: \"taken\"; kept: \"kept\"; }>; item: ZodString; name: ZodString; index: ZodInt; folder: ZodString; lockfiles: ZodOptional<ZodString>; since: ZodInt; }, $strip>], \"status\">>; landings: Records<ZodObject<{ item: ZodString; branch: ZodString; since: ZodInt; change: ZodReadonly<ZodObject<{ paths: ZodReadonly<ZodArray<ZodString>>; size: ZodInt; loosened: ZodBoolean; pinChanged: ZodBoolean; }, $strip>>; head: ZodString; lostRaces: ZodDefault<ZodInt>; patch: ZodOptional<ZodString>; alignment: ZodOptional<ZodUnion<readonly [ZodObject<{ graded: ZodObject<{ alignment: ZodEnum<{ sound: \"sound\"; partial: \"partial\"; concern: \"concern\"; }>; verification: ZodEnum<{ sound: \"sound\"; partial: \"partial\"; concern: \"concern\"; }>; }, $strict>; }, $strip>, ZodObject<{ abstained: ZodString; }, $strip>]>>; }, $strip>>; learned: Records<ZodObject<{ glob: ZodString; level: ZodString; item: ZodString; commit: ZodString; pull: ZodOptional<ZodString>; at: ZodInt; }, $strip>>; itemKinds: Records<ZodDiscriminatedUnion<[ZodObject<{ item: ZodString; kind: ZodString; from: ZodLiteral<\"source\">; }, $strip>, ZodObject<{ item: ZodString; kind: ZodString; from: ZodLiteral<\"model\">; }, $strip>, ZodObject<{ item: ZodString; kind: ZodString; from: ZodLiteral<\"fallback\">; why: ZodString; }, $strip>], \"from\">>; plans: Records<ZodObject<{ item: ZodString; plan: ZodObject<{ summary: ZodString; steps: ZodArray<ZodString>; paths: ZodArray<ZodString>; }, $strict>; hash: ZodString; models: ZodArray<ZodString>; }, $strip>>; verdicts: Records<ZodObject<{ item: ZodString; head: ZodString; event: ZodString; reason: ZodString; cites: ZodArray<ZodObject<{ file: ZodString; line: ZodInt; }, $strict>>; models: ZodArray<ZodString>; }, $strip>>; pullRequests: Records<ZodObject<{ item: ZodString; title: ZodString; body: ZodString; evidence: ZodOptional<ZodUnion<readonly [ZodObject<{ kind: ZodEnum<{ image: \"image\"; video: \"video\"; }>; url: ZodURL; }, $strip>, ZodObject<{ left: ZodString; }, $strip>]>>; }, $strip>>; questions: Records<ZodObject<{ item: ZodString; text: ZodString; options: ZodOptional<ZodArray<ZodString>>; detail: ZodOptional<ZodString>; priority: ZodInt; footprint: ZodOptional<ZodArray<ZodString>>; queuedAt: ZodInt; askedAt: ZodOptional<ZodInt>; }, $strip>>; followUps: Records<ZodObject<{ item: ZodString; from: ZodString; at: ZodInt; }, $strip>>; choices: Records<ZodMiniObject<{ item: ZodMiniString<string>; text: ZodMiniString<string>; at: ZodMiniInt; }, $strip>>; answers: Records<ZodDiscriminatedUnion<[ZodObject<{ source: ZodLiteral<\"marker\">; option: ZodOptional<ZodString>; item: ZodString; ordinal: ZodInt; text: ZodString; disposition: ZodEnum<{ applied: \"applied\"; held: \"held\"; dropped: \"dropped\"; }>; why: ZodString; at: ZodInt; }, $strip>, ZodObject<{ source: ZodEnum<{ model: \"model\"; \"first-word\": \"first-word\"; }>; option: ZodString; item: ZodString; ordinal: ZodInt; text: ZodString; disposition: ZodEnum<{ applied: \"applied\"; held: \"held\"; dropped: \"dropped\"; }>; why: ZodString; at: ZodInt; }, $strip>, ZodObject<{ source: ZodEnum<{ free: \"free\"; abstained: \"abstained\"; \"none-of-these\": \"none-of-these\"; }>; item: ZodString; ordinal: ZodInt; text: ZodString; disposition: ZodEnum<{ applied: \"applied\"; held: \"held\"; dropped: \"dropped\"; }>; why: ZodString; at: ZodInt; }, $strip>], \"source\">>; notes: Records<ZodObject<{ source: ZodEnum<{ fix: \"fix\"; \"review-comment\": \"review-comment\"; \"review-body\": \"review-body\"; \"plan-answer\": \"plan-answer\"; revert: \"revert\"; }>; sourceId: ZodString; change: ZodString; item: ZodOptional<ZodString>; file: ZodOptional<ZodString>; line: ZodOptional<ZodInt>; hunk: ZodString; text: ZodString; at: ZodInt; }, $strip>>; repeats: Records<ZodObject<{ key: ZodString; notes: ZodArray<ZodString>; item: ZodOptional<ZodString>; commented: ZodArray<ZodString>; checked: ZodOptional<ZodObject<{ at: ZodInt; check: ZodString; }, $strip>>; misses: ZodArray<ZodString>; }, $strip>>; possibleRepeats: Records<ZodObject<{ a: ZodString; b: ZodString; models: ZodArray<ZodString>; at: ZodInt; }, $strip>>; merges: Records<ZodObject<{ item: ZodString; sha: ZodString; at: ZodInt; paths: ZodArray<ZodString>; baseChecked: ZodDefault<ZodBoolean>; }, $strip>>; breaks: Records<ZodObject<{ item: ZodString; sha: ZodString; at: ZodInt; paths: ZodArray<ZodString>; level: ZodString; failure: ZodString; onBreak: ZodEnum<{ \"follow-up\": \"follow-up\"; block: \"block\"; }>; followUp: ZodString; }, $strip>>; proofs: Records<ZodDiscriminatedUnion<[ZodObject<{ passed: ZodLiteral<true>; item: ZodString; at: ZodInt; worktrees: ZodInt; ms: ZodInt; }, $strip>, ZodObject<{ passed: ZodLiteral<false>; reason: ZodString; item: ZodString; at: ZodInt; worktrees: ZodInt; ms: ZodInt; }, $strip>], \"passed\">>; }, \"faults\" | \"heartbeatPath\" | \"statusPath\">; readonly spawn: () => Child; readonly now: () => number; readonly intervalMs: number; readonly workerDownTicks: number; readonly maxCrashes: number; readonly crashWindowMs: number; readonly backoffMs: number; readonly maxBackoffMs: number; readonly stop: AbortSignal; }"
7068
7602
  },
7069
7603
  "ThinPathOptions": {
7070
- "type": "export type ThinPathOptions = {\n readonly workSource: WorkSource;\n readonly questions: Questions;\n readonly state: State;\n readonly runner: Runner;\n readonly config: Config;\n readonly judge?: ModelCall;\n readonly remote: string;\n readonly base?: string;\n readonly checks: readonly string[];\n readonly holder: Holder;\n readonly workDir?: string;\n readonly checkout?: Checkout;\n readonly dir?: string;\n readonly itemId?: ItemId;\n readonly now: () => number;\n readonly signal?: AbortSignal;\n readonly gate?: PrefixGate;\n readonly pulls?: PullRequests;\n readonly runnerVariables: ReadonlySet<string>;\n readonly newSessionId: () => string;\n readonly mayLand?: () => boolean;\n};\n= { readonly workSource: WorkSource; readonly questions: Questions; readonly state: { dir: string; statusPath: string; heartbeatPath: string; inbox: string; stops: string; faults: Faults; items: Items; events: EventLog; ops: OpKeys; runs: RunRecords; parked: Records<ZodObject<{ item: ZodString; why: ZodEnum<{ review: \"review\"; stuck: \"stuck\"; }>; cause: ZodString; since: ZodInt; }, $strip>>; spent: Records<ZodObject<{ item: ZodString; total: ZodInt; base: ZodInt; }, $strip>>; kinds: Records<ZodObject<{ tiers: ZodArray<ZodObject<{ purpose: ZodEnum<{ fix: \"fix\"; review: \"review\"; plan: \"plan\"; build: \"build\"; }>; level: ZodOptional<ZodString>; size: ZodOptional<ZodEnum<{ small: \"small\"; medium: \"medium\"; large: \"large\"; }>>; tier: ZodEnum<{ light: \"light\"; standard: \"standard\"; top: \"top\"; }>; effort: ZodEnum<{ medium: \"medium\"; low: \"low\"; high: \"high\"; }>; }, $strict>>; tokenCap: ZodObject<{ tokens: ZodNumber; overCap: ZodString; }, $strict>; stateMap: ZodOptional<ZodRecord<ZodString, ZodRecord<ZodString, ZodString>>>; machine: ZodObject<{ id: ZodString; version: ZodString; initial: ZodString; states: ZodRecord<ZodString, ZodObject<{ type: ZodOptional<ZodEnum<{ atomic: \"atomic\"; final: \"final\"; }>>; description: ZodOptional<ZodString>; tags: ZodOptional<ZodArray<ZodString>>; invoke: ZodOptional<ZodObject<{ src: ZodString; onDone: ZodOptional<ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>; onError: ZodOptional<ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>; }, $strict>>; on: ZodOptional<ZodRecord<ZodString, ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>>; always: ZodOptional<ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>; after: ZodOptional<ZodRecord<ZodString, ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>>; timeout: ZodOptional<ZodNumber>; onTimeout: ZodOptional<ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>; entry: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; exit: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; }, $strict>>; }, $strict>; }, $strict>>; limit: Records<ZodObject<{ until: ZodInt; }, $strip>>; ready: Records<ZodObject<{ ids: ZodArray<ZodString>; }, $strip>>; slots: Records<ZodDiscriminatedUnion<[ZodObject<{ status: ZodEnum<{ out: \"out\"; new: \"new\"; free: \"free\"; stale: \"stale\"; }>; name: ZodString; index: ZodInt; folder: ZodString; lockfiles: ZodOptional<ZodString>; since: ZodInt; }, $strip>, ZodObject<{ status: ZodEnum<{ taken: \"taken\"; kept: \"kept\"; }>; item: ZodString; name: ZodString; index: ZodInt; folder: ZodString; lockfiles: ZodOptional<ZodString>; since: ZodInt; }, $strip>], \"status\">>; landings: Records<ZodObject<{ item: ZodString; branch: ZodString; since: ZodInt; change: ZodReadonly<ZodObject<{ paths: ZodReadonly<ZodArray<ZodString>>; size: ZodInt; loosened: ZodBoolean; pinChanged: ZodBoolean; }, $strip>>; head: ZodString; ownerApproved: ZodBoolean; alignment: ZodOptional<ZodUnion<readonly [ZodObject<{ graded: ZodObject<{ alignment: ZodEnum<{ sound: \"sound\"; partial: \"partial\"; concern: \"concern\"; }>; verification: ZodEnum<{ sound: \"sound\"; partial: \"partial\"; concern: \"concern\"; }>; }, $strict>; }, $strip>, ZodObject<{ abstained: ZodString; }, $strip>]>>; }, $strip>>; learned: Records<ZodObject<{ glob: ZodString; level: ZodString; item: ZodString; commit: ZodString; pull: ZodOptional<ZodString>; at: ZodInt; }, $strip>>; itemKinds: Records<ZodDiscriminatedUnion<[ZodObject<{ item: ZodString; kind: ZodString; from: ZodLiteral<\"source\">; }, $strip>, ZodObject<{ item: ZodString; kind: ZodString; from: ZodLiteral<\"model\">; }, $strip>, ZodObject<{ item: ZodString; kind: ZodString; from: ZodLiteral<\"fallback\">; why: ZodString; }, $strip>], \"from\">>; plans: Records<ZodObject<{ item: ZodString; plan: ZodObject<{ summary: ZodString; steps: ZodArray<ZodString>; paths: ZodArray<ZodString>; }, $strict>; hash: ZodString; models: ZodArray<ZodString>; }, $strip>>; verdicts: Records<ZodObject<{ item: ZodString; head: ZodString; event: ZodString; reason: ZodString; cites: ZodArray<ZodObject<{ file: ZodString; line: ZodInt; }, $strict>>; models: ZodArray<ZodString>; }, $strip>>; questions: Records<ZodObject<{ item: ZodString; text: ZodString; options: ZodOptional<ZodArray<ZodString>>; detail: ZodOptional<ZodString>; priority: ZodInt; footprint: ZodOptional<ZodArray<ZodString>>; queuedAt: ZodInt; askedAt: ZodOptional<ZodInt>; }, $strip>>; choices: Records<ZodMiniObject<{ item: ZodMiniString<string>; text: ZodMiniString<string>; at: ZodMiniInt; }, $strip>>; answers: Records<ZodDiscriminatedUnion<[ZodObject<{ source: ZodLiteral<\"marker\">; option: ZodOptional<ZodString>; item: ZodString; ordinal: ZodInt; text: ZodString; disposition: ZodEnum<{ applied: \"applied\"; held: \"held\"; dropped: \"dropped\"; }>; why: ZodString; at: ZodInt; }, $strip>, ZodObject<{ source: ZodEnum<{ model: \"model\"; \"first-word\": \"first-word\"; }>; option: ZodString; item: ZodString; ordinal: ZodInt; text: ZodString; disposition: ZodEnum<{ applied: \"applied\"; held: \"held\"; dropped: \"dropped\"; }>; why: ZodString; at: ZodInt; }, $strip>, ZodObject<{ source: ZodEnum<{ free: \"free\"; abstained: \"abstained\"; \"none-of-these\": \"none-of-these\"; }>; item: ZodString; ordinal: ZodInt; text: ZodString; disposition: ZodEnum<{ applied: \"applied\"; held: \"held\"; dropped: \"dropped\"; }>; why: ZodString; at: ZodInt; }, $strip>], \"source\">>; notes: Records<ZodObject<{ source: ZodEnum<{ fix: \"fix\"; \"review-comment\": \"review-comment\"; \"review-body\": \"review-body\"; \"plan-answer\": \"plan-answer\"; revert: \"revert\"; }>; sourceId: ZodString; change: ZodString; item: ZodOptional<ZodString>; file: ZodOptional<ZodString>; line: ZodOptional<ZodInt>; hunk: ZodString; text: ZodString; at: ZodInt; }, $strip>>; repeats: Records<ZodObject<{ key: ZodString; notes: ZodArray<ZodString>; item: ZodOptional<ZodString>; commented: ZodArray<ZodString>; checked: ZodOptional<ZodObject<{ at: ZodInt; check: ZodString; }, $strip>>; misses: ZodArray<ZodString>; }, $strip>>; possibleRepeats: Records<ZodObject<{ a: ZodString; b: ZodString; models: ZodArray<ZodString>; at: ZodInt; }, $strip>>; merges: Records<ZodObject<{ item: ZodString; sha: ZodString; at: ZodInt; paths: ZodArray<ZodString>; }, $strip>>; breaks: Records<ZodObject<{ item: ZodString; sha: ZodString; at: ZodInt; paths: ZodArray<ZodString>; level: ZodString; failure: ZodString; onBreak: ZodEnum<{ \"follow-up\": \"follow-up\"; block: \"block\"; }>; followUp: ZodString; }, $strip>>; proofs: Records<ZodDiscriminatedUnion<[ZodObject<{ passed: ZodLiteral<true>; item: ZodString; at: ZodInt; worktrees: ZodInt; ms: ZodInt; }, $strip>, ZodObject<{ passed: ZodLiteral<false>; reason: ZodString; item: ZodString; at: ZodInt; worktrees: ZodInt; ms: ZodInt; }, $strip>], \"passed\">>; }; readonly runner: Runner; readonly config: Config; readonly judge?: ModelCall | undefined; readonly remote: string; readonly base?: string | undefined; readonly checks: readonly string[]; readonly holder: string & $brand<\"Holder\">; readonly workDir?: string | undefined; readonly checkout?: Checkout | undefined; readonly dir?: string | undefined; readonly itemId?: (string & $brand<\"ItemId\">) | undefined; readonly now: () => number; readonly signal?: AbortSignal | undefined; readonly gate?: PrefixGate | undefined; readonly pulls?: PullRequests | undefined; readonly runnerVariables: ReadonlySet<string>; readonly newSessionId: () => string; readonly mayLand?: (() => boolean) | undefined; }"
7604
+ "type": "export type ThinPathOptions = {\n readonly workSource: WorkSource;\n readonly questions: Questions;\n readonly state: State;\n readonly runner: Runner;\n readonly config: Config;\n readonly judge?: ModelCall;\n readonly remote: string;\n readonly base?: string;\n readonly checks: readonly string[];\n readonly holder: Holder;\n readonly workDir?: string;\n readonly checkout?: Checkout;\n readonly dir?: string;\n readonly itemId?: ItemId;\n readonly now: () => number;\n readonly signal?: AbortSignal;\n readonly gate?: PrefixGate;\n readonly pulls?: PullRequests;\n readonly commits?: GitHubCommits;\n readonly runnerVariables: ReadonlySet<string>;\n readonly newSessionId: () => string;\n readonly publish?: (pass: PassOutbox, worked: ThinResult) => Promise<ThinResult | undefined>;\n readonly mayLand?: () => boolean;\n};\n= { readonly workSource: WorkSource; readonly questions: Questions; readonly state: { dir: string; statusPath: string; heartbeatPath: string; inbox: string; stops: string; faults: Faults; items: Items; events: EventLog; ops: OpKeys; runs: RunRecords; parked: Records<ZodObject<{ item: ZodString; why: ZodEnum<{ review: \"review\"; stuck: \"stuck\"; }>; cause: ZodString; since: ZodInt; }, $strip>>; spent: Records<ZodObject<{ item: ZodString; total: ZodInt; base: ZodInt; }, $strip>>; kinds: Records<ZodObject<{ tiers: ZodArray<ZodObject<{ purpose: ZodEnum<{ fix: \"fix\"; review: \"review\"; plan: \"plan\"; build: \"build\"; }>; level: ZodOptional<ZodString>; size: ZodOptional<ZodEnum<{ small: \"small\"; medium: \"medium\"; large: \"large\"; }>>; tier: ZodEnum<{ light: \"light\"; standard: \"standard\"; top: \"top\"; }>; effort: ZodEnum<{ medium: \"medium\"; low: \"low\"; high: \"high\"; }>; }, $strict>>; tokenCap: ZodObject<{ tokens: ZodNumber; overCap: ZodString; }, $strict>; stateMap: ZodOptional<ZodRecord<ZodString, ZodRecord<ZodString, ZodString>>>; machine: ZodObject<{ id: ZodString; version: ZodString; initial: ZodString; states: ZodRecord<ZodString, ZodObject<{ type: ZodOptional<ZodEnum<{ atomic: \"atomic\"; final: \"final\"; }>>; description: ZodOptional<ZodString>; tags: ZodOptional<ZodArray<ZodString>>; invoke: ZodOptional<ZodObject<{ src: ZodString; onDone: ZodOptional<ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>; onError: ZodOptional<ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>; }, $strict>>; on: ZodOptional<ZodRecord<ZodString, ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>>; always: ZodOptional<ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>; after: ZodOptional<ZodRecord<ZodString, ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>>; timeout: ZodOptional<ZodNumber>; onTimeout: ZodOptional<ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>; entry: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; exit: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; }, $strict>>; }, $strict>; }, $strict>>; limit: Records<ZodObject<{ until: ZodInt; }, $strip>>; ready: Records<ZodObject<{ ids: ZodArray<ZodString>; }, $strip>>; slots: Records<ZodDiscriminatedUnion<[ZodObject<{ status: ZodEnum<{ out: \"out\"; new: \"new\"; free: \"free\"; stale: \"stale\"; }>; name: ZodString; index: ZodInt; folder: ZodString; lockfiles: ZodOptional<ZodString>; since: ZodInt; }, $strip>, ZodObject<{ status: ZodEnum<{ taken: \"taken\"; kept: \"kept\"; }>; item: ZodString; name: ZodString; index: ZodInt; folder: ZodString; lockfiles: ZodOptional<ZodString>; since: ZodInt; }, $strip>], \"status\">>; landings: Records<ZodObject<{ item: ZodString; branch: ZodString; since: ZodInt; change: ZodReadonly<ZodObject<{ paths: ZodReadonly<ZodArray<ZodString>>; size: ZodInt; loosened: ZodBoolean; pinChanged: ZodBoolean; }, $strip>>; head: ZodString; lostRaces: ZodDefault<ZodInt>; patch: ZodOptional<ZodString>; alignment: ZodOptional<ZodUnion<readonly [ZodObject<{ graded: ZodObject<{ alignment: ZodEnum<{ sound: \"sound\"; partial: \"partial\"; concern: \"concern\"; }>; verification: ZodEnum<{ sound: \"sound\"; partial: \"partial\"; concern: \"concern\"; }>; }, $strict>; }, $strip>, ZodObject<{ abstained: ZodString; }, $strip>]>>; }, $strip>>; learned: Records<ZodObject<{ glob: ZodString; level: ZodString; item: ZodString; commit: ZodString; pull: ZodOptional<ZodString>; at: ZodInt; }, $strip>>; itemKinds: Records<ZodDiscriminatedUnion<[ZodObject<{ item: ZodString; kind: ZodString; from: ZodLiteral<\"source\">; }, $strip>, ZodObject<{ item: ZodString; kind: ZodString; from: ZodLiteral<\"model\">; }, $strip>, ZodObject<{ item: ZodString; kind: ZodString; from: ZodLiteral<\"fallback\">; why: ZodString; }, $strip>], \"from\">>; plans: Records<ZodObject<{ item: ZodString; plan: ZodObject<{ summary: ZodString; steps: ZodArray<ZodString>; paths: ZodArray<ZodString>; }, $strict>; hash: ZodString; models: ZodArray<ZodString>; }, $strip>>; verdicts: Records<ZodObject<{ item: ZodString; head: ZodString; event: ZodString; reason: ZodString; cites: ZodArray<ZodObject<{ file: ZodString; line: ZodInt; }, $strict>>; models: ZodArray<ZodString>; }, $strip>>; pullRequests: Records<ZodObject<{ item: ZodString; title: ZodString; body: ZodString; evidence: ZodOptional<ZodUnion<readonly [ZodObject<{ kind: ZodEnum<{ image: \"image\"; video: \"video\"; }>; url: ZodURL; }, $strip>, ZodObject<{ left: ZodString; }, $strip>]>>; }, $strip>>; questions: Records<ZodObject<{ item: ZodString; text: ZodString; options: ZodOptional<ZodArray<ZodString>>; detail: ZodOptional<ZodString>; priority: ZodInt; footprint: ZodOptional<ZodArray<ZodString>>; queuedAt: ZodInt; askedAt: ZodOptional<ZodInt>; }, $strip>>; followUps: Records<ZodObject<{ item: ZodString; from: ZodString; at: ZodInt; }, $strip>>; choices: Records<ZodMiniObject<{ item: ZodMiniString<string>; text: ZodMiniString<string>; at: ZodMiniInt; }, $strip>>; answers: Records<ZodDiscriminatedUnion<[ZodObject<{ source: ZodLiteral<\"marker\">; option: ZodOptional<ZodString>; item: ZodString; ordinal: ZodInt; text: ZodString; disposition: ZodEnum<{ applied: \"applied\"; held: \"held\"; dropped: \"dropped\"; }>; why: ZodString; at: ZodInt; }, $strip>, ZodObject<{ source: ZodEnum<{ model: \"model\"; \"first-word\": \"first-word\"; }>; option: ZodString; item: ZodString; ordinal: ZodInt; text: ZodString; disposition: ZodEnum<{ applied: \"applied\"; held: \"held\"; dropped: \"dropped\"; }>; why: ZodString; at: ZodInt; }, $strip>, ZodObject<{ source: ZodEnum<{ free: \"free\"; abstained: \"abstained\"; \"none-of-these\": \"none-of-these\"; }>; item: ZodString; ordinal: ZodInt; text: ZodString; disposition: ZodEnum<{ applied: \"applied\"; held: \"held\"; dropped: \"dropped\"; }>; why: ZodString; at: ZodInt; }, $strip>], \"source\">>; notes: Records<ZodObject<{ source: ZodEnum<{ fix: \"fix\"; \"review-comment\": \"review-comment\"; \"review-body\": \"review-body\"; \"plan-answer\": \"plan-answer\"; revert: \"revert\"; }>; sourceId: ZodString; change: ZodString; item: ZodOptional<ZodString>; file: ZodOptional<ZodString>; line: ZodOptional<ZodInt>; hunk: ZodString; text: ZodString; at: ZodInt; }, $strip>>; repeats: Records<ZodObject<{ key: ZodString; notes: ZodArray<ZodString>; item: ZodOptional<ZodString>; commented: ZodArray<ZodString>; checked: ZodOptional<ZodObject<{ at: ZodInt; check: ZodString; }, $strip>>; misses: ZodArray<ZodString>; }, $strip>>; possibleRepeats: Records<ZodObject<{ a: ZodString; b: ZodString; models: ZodArray<ZodString>; at: ZodInt; }, $strip>>; merges: Records<ZodObject<{ item: ZodString; sha: ZodString; at: ZodInt; paths: ZodArray<ZodString>; baseChecked: ZodDefault<ZodBoolean>; }, $strip>>; breaks: Records<ZodObject<{ item: ZodString; sha: ZodString; at: ZodInt; paths: ZodArray<ZodString>; level: ZodString; failure: ZodString; onBreak: ZodEnum<{ \"follow-up\": \"follow-up\"; block: \"block\"; }>; followUp: ZodString; }, $strip>>; proofs: Records<ZodDiscriminatedUnion<[ZodObject<{ passed: ZodLiteral<true>; item: ZodString; at: ZodInt; worktrees: ZodInt; ms: ZodInt; }, $strip>, ZodObject<{ passed: ZodLiteral<false>; reason: ZodString; item: ZodString; at: ZodInt; worktrees: ZodInt; ms: ZodInt; }, $strip>], \"passed\">>; }; readonly runner: Runner; readonly config: Config; readonly judge?: ModelCall | undefined; readonly remote: string; readonly base?: string | undefined; readonly checks: readonly string[]; readonly holder: string & $brand<\"Holder\">; readonly workDir?: string | undefined; readonly checkout?: Checkout | undefined; readonly dir?: string | undefined; readonly itemId?: (string & $brand<\"ItemId\">) | undefined; readonly now: () => number; readonly signal?: AbortSignal | undefined; readonly gate?: PrefixGate | undefined; readonly pulls?: PullRequests | undefined; readonly commits?: GitHubCommits | undefined; readonly runnerVariables: ReadonlySet<string>; readonly newSessionId: () => string; readonly publish?: ((pass: PassOutbox, worked: ThinResult) => Promise<ThinResult | undefined>) | undefined; readonly mayLand?: (() => boolean) | undefined; }"
7071
7605
  },
7072
7606
  "ThinResult": {
7073
7607
  "type": "export type ThinResult = {\n readonly outcome: \"idle\";\n} | {\n readonly outcome: \"lost\" | \"waiting\";\n readonly item: string;\n} | {\n readonly outcome: \"moved\";\n readonly item: string;\n readonly kind: string;\n} | {\n readonly outcome: \"merged\" | \"asked\" | \"stuck\" | \"review\" | \"landing\";\n readonly item: string;\n readonly detail?: string;\n} | {\n readonly outcome: \"limited\";\n readonly item: string;\n readonly until: number;\n} | {\n readonly outcome: \"held\";\n readonly item: string;\n readonly why: string;\n};\n= { readonly outcome: \"asked\" | \"landing\" | \"merged\" | \"review\" | \"stuck\"; readonly item: string; readonly detail?: string | undefined; } | { readonly outcome: \"held\"; readonly item: string; readonly why: string; } | { readonly outcome: \"idle\"; } | { readonly outcome: \"limited\"; readonly item: string; readonly until: number; } | { readonly outcome: \"lost\" | \"waiting\"; readonly item: string; } | { readonly outcome: \"moved\"; readonly item: string; readonly kind: string; }"
@@ -7169,7 +7703,7 @@
7169
7703
  "type": "(route: Route) => string"
7170
7704
  },
7171
7705
  "wakeUntilQuiet": {
7172
- "type": "(worker: Worker) => Promise<void>"
7706
+ "type": "(worker: Pick<Worker, \"idle\" | \"tick\">, afterTick?: () => Promise<void>) => Promise<void>"
7173
7707
  },
7174
7708
  "Watch": {
7175
7709
  "type": "export type Watch = z.infer<typeof Watch>;\n= { token: string; changed: boolean; }\nZodObject<{ token: ZodString; changed: ZodBoolean; }, $strict>",
@@ -7196,16 +7730,16 @@
7196
7730
  "type": "typeof Worker; new (options: WorkerOptions) => Worker\nconfig: Config; running: () => string[]; idle: () => Promise<void>; wake: () => void; tick: () => Promise<TickResult>; serve: (stop?: AbortSignal | undefined) => Promise<Exit>"
7197
7731
  },
7198
7732
  "WorkerOptions": {
7199
- "type": "export type WorkerOptions = {\n readonly repo: string;\n readonly state: State;\n readonly config: Config;\n readonly adapters: {\n readonly workSource: WorkSource;\n readonly questions: Questions;\n readonly answers?: Answers;\n };\n readonly runner: Runner;\n readonly judge?: ModelCall;\n readonly remote: string;\n readonly base?: string;\n readonly checks: readonly string[];\n readonly holder: Holder;\n readonly workDir?: string;\n readonly checkout?: Checkout;\n readonly slots?: Pick<SlotPool, \"keepReady\" | \"idle\">;\n readonly dir?: string;\n readonly where?: \"mac\" | \"ci\";\n readonly now: () => number;\n readonly runnerVariables: ReadonlySet<string>;\n readonly newSessionId: () => string;\n readonly engineVersion?: string;\n readonly latestVersion?: () => Promise<string | undefined>;\n readonly ciTick?: () => Promise<number | undefined>;\n readonly gate?: PrefixGate;\n readonly onResult?: (result: ThinResult) => void;\n readonly pulls?: PullRequests;\n readonly loop?: Partial<Pick<LoopPass, \"comments\" | \"ciLogs\">>;\n};\n= { readonly repo: string; readonly state: { dir: string; statusPath: string; heartbeatPath: string; inbox: string; stops: string; faults: Faults; items: Items; events: EventLog; ops: OpKeys; runs: RunRecords; parked: Records<ZodObject<{ item: ZodString; why: ZodEnum<{ review: \"review\"; stuck: \"stuck\"; }>; cause: ZodString; since: ZodInt; }, $strip>>; spent: Records<ZodObject<{ item: ZodString; total: ZodInt; base: ZodInt; }, $strip>>; kinds: Records<ZodObject<{ tiers: ZodArray<ZodObject<{ purpose: ZodEnum<{ fix: \"fix\"; review: \"review\"; plan: \"plan\"; build: \"build\"; }>; level: ZodOptional<ZodString>; size: ZodOptional<ZodEnum<{ small: \"small\"; medium: \"medium\"; large: \"large\"; }>>; tier: ZodEnum<{ light: \"light\"; standard: \"standard\"; top: \"top\"; }>; effort: ZodEnum<{ medium: \"medium\"; low: \"low\"; high: \"high\"; }>; }, $strict>>; tokenCap: ZodObject<{ tokens: ZodNumber; overCap: ZodString; }, $strict>; stateMap: ZodOptional<ZodRecord<ZodString, ZodRecord<ZodString, ZodString>>>; machine: ZodObject<{ id: ZodString; version: ZodString; initial: ZodString; states: ZodRecord<ZodString, ZodObject<{ type: ZodOptional<ZodEnum<{ atomic: \"atomic\"; final: \"final\"; }>>; description: ZodOptional<ZodString>; tags: ZodOptional<ZodArray<ZodString>>; invoke: ZodOptional<ZodObject<{ src: ZodString; onDone: ZodOptional<ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>; onError: ZodOptional<ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>; }, $strict>>; on: ZodOptional<ZodRecord<ZodString, ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>>; always: ZodOptional<ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>; after: ZodOptional<ZodRecord<ZodString, ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>>; timeout: ZodOptional<ZodNumber>; onTimeout: ZodOptional<ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>; entry: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; exit: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; }, $strict>>; }, $strict>; }, $strict>>; limit: Records<ZodObject<{ until: ZodInt; }, $strip>>; ready: Records<ZodObject<{ ids: ZodArray<ZodString>; }, $strip>>; slots: Records<ZodDiscriminatedUnion<[ZodObject<{ status: ZodEnum<{ out: \"out\"; new: \"new\"; free: \"free\"; stale: \"stale\"; }>; name: ZodString; index: ZodInt; folder: ZodString; lockfiles: ZodOptional<ZodString>; since: ZodInt; }, $strip>, ZodObject<{ status: ZodEnum<{ taken: \"taken\"; kept: \"kept\"; }>; item: ZodString; name: ZodString; index: ZodInt; folder: ZodString; lockfiles: ZodOptional<ZodString>; since: ZodInt; }, $strip>], \"status\">>; landings: Records<ZodObject<{ item: ZodString; branch: ZodString; since: ZodInt; change: ZodReadonly<ZodObject<{ paths: ZodReadonly<ZodArray<ZodString>>; size: ZodInt; loosened: ZodBoolean; pinChanged: ZodBoolean; }, $strip>>; head: ZodString; ownerApproved: ZodBoolean; alignment: ZodOptional<ZodUnion<readonly [ZodObject<{ graded: ZodObject<{ alignment: ZodEnum<{ sound: \"sound\"; partial: \"partial\"; concern: \"concern\"; }>; verification: ZodEnum<{ sound: \"sound\"; partial: \"partial\"; concern: \"concern\"; }>; }, $strict>; }, $strip>, ZodObject<{ abstained: ZodString; }, $strip>]>>; }, $strip>>; learned: Records<ZodObject<{ glob: ZodString; level: ZodString; item: ZodString; commit: ZodString; pull: ZodOptional<ZodString>; at: ZodInt; }, $strip>>; itemKinds: Records<ZodDiscriminatedUnion<[ZodObject<{ item: ZodString; kind: ZodString; from: ZodLiteral<\"source\">; }, $strip>, ZodObject<{ item: ZodString; kind: ZodString; from: ZodLiteral<\"model\">; }, $strip>, ZodObject<{ item: ZodString; kind: ZodString; from: ZodLiteral<\"fallback\">; why: ZodString; }, $strip>], \"from\">>; plans: Records<ZodObject<{ item: ZodString; plan: ZodObject<{ summary: ZodString; steps: ZodArray<ZodString>; paths: ZodArray<ZodString>; }, $strict>; hash: ZodString; models: ZodArray<ZodString>; }, $strip>>; verdicts: Records<ZodObject<{ item: ZodString; head: ZodString; event: ZodString; reason: ZodString; cites: ZodArray<ZodObject<{ file: ZodString; line: ZodInt; }, $strict>>; models: ZodArray<ZodString>; }, $strip>>; questions: Records<ZodObject<{ item: ZodString; text: ZodString; options: ZodOptional<ZodArray<ZodString>>; detail: ZodOptional<ZodString>; priority: ZodInt; footprint: ZodOptional<ZodArray<ZodString>>; queuedAt: ZodInt; askedAt: ZodOptional<ZodInt>; }, $strip>>; choices: Records<ZodMiniObject<{ item: ZodMiniString<string>; text: ZodMiniString<string>; at: ZodMiniInt; }, $strip>>; answers: Records<ZodDiscriminatedUnion<[ZodObject<{ source: ZodLiteral<\"marker\">; option: ZodOptional<ZodString>; item: ZodString; ordinal: ZodInt; text: ZodString; disposition: ZodEnum<{ applied: \"applied\"; held: \"held\"; dropped: \"dropped\"; }>; why: ZodString; at: ZodInt; }, $strip>, ZodObject<{ source: ZodEnum<{ model: \"model\"; \"first-word\": \"first-word\"; }>; option: ZodString; item: ZodString; ordinal: ZodInt; text: ZodString; disposition: ZodEnum<{ applied: \"applied\"; held: \"held\"; dropped: \"dropped\"; }>; why: ZodString; at: ZodInt; }, $strip>, ZodObject<{ source: ZodEnum<{ free: \"free\"; abstained: \"abstained\"; \"none-of-these\": \"none-of-these\"; }>; item: ZodString; ordinal: ZodInt; text: ZodString; disposition: ZodEnum<{ applied: \"applied\"; held: \"held\"; dropped: \"dropped\"; }>; why: ZodString; at: ZodInt; }, $strip>], \"source\">>; notes: Records<ZodObject<{ source: ZodEnum<{ fix: \"fix\"; \"review-comment\": \"review-comment\"; \"review-body\": \"review-body\"; \"plan-answer\": \"plan-answer\"; revert: \"revert\"; }>; sourceId: ZodString; change: ZodString; item: ZodOptional<ZodString>; file: ZodOptional<ZodString>; line: ZodOptional<ZodInt>; hunk: ZodString; text: ZodString; at: ZodInt; }, $strip>>; repeats: Records<ZodObject<{ key: ZodString; notes: ZodArray<ZodString>; item: ZodOptional<ZodString>; commented: ZodArray<ZodString>; checked: ZodOptional<ZodObject<{ at: ZodInt; check: ZodString; }, $strip>>; misses: ZodArray<ZodString>; }, $strip>>; possibleRepeats: Records<ZodObject<{ a: ZodString; b: ZodString; models: ZodArray<ZodString>; at: ZodInt; }, $strip>>; merges: Records<ZodObject<{ item: ZodString; sha: ZodString; at: ZodInt; paths: ZodArray<ZodString>; }, $strip>>; breaks: Records<ZodObject<{ item: ZodString; sha: ZodString; at: ZodInt; paths: ZodArray<ZodString>; level: ZodString; failure: ZodString; onBreak: ZodEnum<{ \"follow-up\": \"follow-up\"; block: \"block\"; }>; followUp: ZodString; }, $strip>>; proofs: Records<ZodDiscriminatedUnion<[ZodObject<{ passed: ZodLiteral<true>; item: ZodString; at: ZodInt; worktrees: ZodInt; ms: ZodInt; }, $strip>, ZodObject<{ passed: ZodLiteral<false>; reason: ZodString; item: ZodString; at: ZodInt; worktrees: ZodInt; ms: ZodInt; }, $strip>], \"passed\">>; }; readonly config: Config; readonly adapters: { readonly workSource: WorkSource; readonly questions: Questions; readonly answers?: Answers | undefined; }; readonly runner: Runner; readonly judge?: ModelCall | undefined; readonly remote: string; readonly base?: string | undefined; readonly checks: readonly string[]; readonly holder: string & $brand<\"Holder\">; readonly workDir?: string | undefined; readonly checkout?: Checkout | undefined; readonly slots?: Pick<SlotPool, \"idle\" | \"keepReady\"> | undefined; readonly dir?: string | undefined; readonly where?: \"ci\" | \"mac\" | undefined; readonly now: () => number; readonly runnerVariables: ReadonlySet<string>; readonly newSessionId: () => string; readonly engineVersion?: string | undefined; readonly latestVersion?: (() => Promise<string | undefined>) | undefined; readonly ciTick?: (() => Promise<number | undefined>) | undefined; readonly gate?: PrefixGate | undefined; readonly onResult?: ((result: ThinResult) => void) | undefined; readonly pulls?: PullRequests | undefined; readonly loop?: Partial<Pick<LoopPass, \"ciLogs\" | \"comments\">> | undefined; }"
7733
+ "type": "export type WorkerOptions = {\n readonly repo: string;\n readonly state: State;\n readonly config: Config;\n readonly adapters: {\n readonly workSource: WorkSource;\n readonly questions: Questions;\n readonly answers?: Answers;\n };\n readonly runner: Runner;\n readonly judge?: ModelCall;\n readonly remote: string;\n readonly base?: string;\n readonly checks: readonly string[];\n readonly holder: Holder;\n readonly workDir?: string;\n readonly checkout?: Checkout;\n readonly slots?: Pick<SlotPool, \"keepReady\" | \"idle\">;\n readonly dir?: string;\n readonly where?: \"mac\" | \"ci\";\n readonly now: () => number;\n readonly runnerVariables: ReadonlySet<string>;\n readonly newSessionId: () => string;\n readonly engineVersion?: string;\n readonly latestVersion?: () => Promise<string | undefined>;\n readonly ciTick?: () => Promise<number | undefined>;\n readonly gate?: PrefixGate;\n readonly onResult?: (result: ThinResult) => void;\n readonly pulls?: PullRequests;\n readonly commits?: GitHubCommits;\n readonly loop?: Partial<Pick<LoopPass, \"comments\" | \"ciLogs\">>;\n readonly ciJob?: CiJob;\n};\n= { readonly repo: string; readonly state: { dir: string; statusPath: string; heartbeatPath: string; inbox: string; stops: string; faults: Faults; items: Items; events: EventLog; ops: OpKeys; runs: RunRecords; parked: Records<ZodObject<{ item: ZodString; why: ZodEnum<{ review: \"review\"; stuck: \"stuck\"; }>; cause: ZodString; since: ZodInt; }, $strip>>; spent: Records<ZodObject<{ item: ZodString; total: ZodInt; base: ZodInt; }, $strip>>; kinds: Records<ZodObject<{ tiers: ZodArray<ZodObject<{ purpose: ZodEnum<{ fix: \"fix\"; review: \"review\"; plan: \"plan\"; build: \"build\"; }>; level: ZodOptional<ZodString>; size: ZodOptional<ZodEnum<{ small: \"small\"; medium: \"medium\"; large: \"large\"; }>>; tier: ZodEnum<{ light: \"light\"; standard: \"standard\"; top: \"top\"; }>; effort: ZodEnum<{ medium: \"medium\"; low: \"low\"; high: \"high\"; }>; }, $strict>>; tokenCap: ZodObject<{ tokens: ZodNumber; overCap: ZodString; }, $strict>; stateMap: ZodOptional<ZodRecord<ZodString, ZodRecord<ZodString, ZodString>>>; machine: ZodObject<{ id: ZodString; version: ZodString; initial: ZodString; states: ZodRecord<ZodString, ZodObject<{ type: ZodOptional<ZodEnum<{ atomic: \"atomic\"; final: \"final\"; }>>; description: ZodOptional<ZodString>; tags: ZodOptional<ZodArray<ZodString>>; invoke: ZodOptional<ZodObject<{ src: ZodString; onDone: ZodOptional<ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>; onError: ZodOptional<ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>; }, $strict>>; on: ZodOptional<ZodRecord<ZodString, ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>>; always: ZodOptional<ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>; after: ZodOptional<ZodRecord<ZodString, ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>>; timeout: ZodOptional<ZodNumber>; onTimeout: ZodOptional<ZodPipe<ZodUnion<readonly [ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>, ZodArray<ZodObject<{ target: ZodOptional<ZodString>; guard: ZodOptional<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>; actions: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; description: ZodOptional<ZodString>; }, $strict>>]>, ZodTransform<{ target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[], { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; } | { target?: string | undefined; guard?: undefined | { type: string; params?: unknown; }; actions?: undefined | { type: string; params?: unknown; }[]; description?: string | undefined; }[]>>>; entry: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; exit: ZodOptional<ZodArray<ZodObject<{ type: ZodString; params: ZodOptional<ZodUnknown>; }, $strict>>>; }, $strict>>; }, $strict>; }, $strict>>; limit: Records<ZodObject<{ until: ZodInt; }, $strip>>; ready: Records<ZodObject<{ ids: ZodArray<ZodString>; }, $strip>>; slots: Records<ZodDiscriminatedUnion<[ZodObject<{ status: ZodEnum<{ out: \"out\"; new: \"new\"; free: \"free\"; stale: \"stale\"; }>; name: ZodString; index: ZodInt; folder: ZodString; lockfiles: ZodOptional<ZodString>; since: ZodInt; }, $strip>, ZodObject<{ status: ZodEnum<{ taken: \"taken\"; kept: \"kept\"; }>; item: ZodString; name: ZodString; index: ZodInt; folder: ZodString; lockfiles: ZodOptional<ZodString>; since: ZodInt; }, $strip>], \"status\">>; landings: Records<ZodObject<{ item: ZodString; branch: ZodString; since: ZodInt; change: ZodReadonly<ZodObject<{ paths: ZodReadonly<ZodArray<ZodString>>; size: ZodInt; loosened: ZodBoolean; pinChanged: ZodBoolean; }, $strip>>; head: ZodString; lostRaces: ZodDefault<ZodInt>; patch: ZodOptional<ZodString>; alignment: ZodOptional<ZodUnion<readonly [ZodObject<{ graded: ZodObject<{ alignment: ZodEnum<{ sound: \"sound\"; partial: \"partial\"; concern: \"concern\"; }>; verification: ZodEnum<{ sound: \"sound\"; partial: \"partial\"; concern: \"concern\"; }>; }, $strict>; }, $strip>, ZodObject<{ abstained: ZodString; }, $strip>]>>; }, $strip>>; learned: Records<ZodObject<{ glob: ZodString; level: ZodString; item: ZodString; commit: ZodString; pull: ZodOptional<ZodString>; at: ZodInt; }, $strip>>; itemKinds: Records<ZodDiscriminatedUnion<[ZodObject<{ item: ZodString; kind: ZodString; from: ZodLiteral<\"source\">; }, $strip>, ZodObject<{ item: ZodString; kind: ZodString; from: ZodLiteral<\"model\">; }, $strip>, ZodObject<{ item: ZodString; kind: ZodString; from: ZodLiteral<\"fallback\">; why: ZodString; }, $strip>], \"from\">>; plans: Records<ZodObject<{ item: ZodString; plan: ZodObject<{ summary: ZodString; steps: ZodArray<ZodString>; paths: ZodArray<ZodString>; }, $strict>; hash: ZodString; models: ZodArray<ZodString>; }, $strip>>; verdicts: Records<ZodObject<{ item: ZodString; head: ZodString; event: ZodString; reason: ZodString; cites: ZodArray<ZodObject<{ file: ZodString; line: ZodInt; }, $strict>>; models: ZodArray<ZodString>; }, $strip>>; pullRequests: Records<ZodObject<{ item: ZodString; title: ZodString; body: ZodString; evidence: ZodOptional<ZodUnion<readonly [ZodObject<{ kind: ZodEnum<{ image: \"image\"; video: \"video\"; }>; url: ZodURL; }, $strip>, ZodObject<{ left: ZodString; }, $strip>]>>; }, $strip>>; questions: Records<ZodObject<{ item: ZodString; text: ZodString; options: ZodOptional<ZodArray<ZodString>>; detail: ZodOptional<ZodString>; priority: ZodInt; footprint: ZodOptional<ZodArray<ZodString>>; queuedAt: ZodInt; askedAt: ZodOptional<ZodInt>; }, $strip>>; followUps: Records<ZodObject<{ item: ZodString; from: ZodString; at: ZodInt; }, $strip>>; choices: Records<ZodMiniObject<{ item: ZodMiniString<string>; text: ZodMiniString<string>; at: ZodMiniInt; }, $strip>>; answers: Records<ZodDiscriminatedUnion<[ZodObject<{ source: ZodLiteral<\"marker\">; option: ZodOptional<ZodString>; item: ZodString; ordinal: ZodInt; text: ZodString; disposition: ZodEnum<{ applied: \"applied\"; held: \"held\"; dropped: \"dropped\"; }>; why: ZodString; at: ZodInt; }, $strip>, ZodObject<{ source: ZodEnum<{ model: \"model\"; \"first-word\": \"first-word\"; }>; option: ZodString; item: ZodString; ordinal: ZodInt; text: ZodString; disposition: ZodEnum<{ applied: \"applied\"; held: \"held\"; dropped: \"dropped\"; }>; why: ZodString; at: ZodInt; }, $strip>, ZodObject<{ source: ZodEnum<{ free: \"free\"; abstained: \"abstained\"; \"none-of-these\": \"none-of-these\"; }>; item: ZodString; ordinal: ZodInt; text: ZodString; disposition: ZodEnum<{ applied: \"applied\"; held: \"held\"; dropped: \"dropped\"; }>; why: ZodString; at: ZodInt; }, $strip>], \"source\">>; notes: Records<ZodObject<{ source: ZodEnum<{ fix: \"fix\"; \"review-comment\": \"review-comment\"; \"review-body\": \"review-body\"; \"plan-answer\": \"plan-answer\"; revert: \"revert\"; }>; sourceId: ZodString; change: ZodString; item: ZodOptional<ZodString>; file: ZodOptional<ZodString>; line: ZodOptional<ZodInt>; hunk: ZodString; text: ZodString; at: ZodInt; }, $strip>>; repeats: Records<ZodObject<{ key: ZodString; notes: ZodArray<ZodString>; item: ZodOptional<ZodString>; commented: ZodArray<ZodString>; checked: ZodOptional<ZodObject<{ at: ZodInt; check: ZodString; }, $strip>>; misses: ZodArray<ZodString>; }, $strip>>; possibleRepeats: Records<ZodObject<{ a: ZodString; b: ZodString; models: ZodArray<ZodString>; at: ZodInt; }, $strip>>; merges: Records<ZodObject<{ item: ZodString; sha: ZodString; at: ZodInt; paths: ZodArray<ZodString>; baseChecked: ZodDefault<ZodBoolean>; }, $strip>>; breaks: Records<ZodObject<{ item: ZodString; sha: ZodString; at: ZodInt; paths: ZodArray<ZodString>; level: ZodString; failure: ZodString; onBreak: ZodEnum<{ \"follow-up\": \"follow-up\"; block: \"block\"; }>; followUp: ZodString; }, $strip>>; proofs: Records<ZodDiscriminatedUnion<[ZodObject<{ passed: ZodLiteral<true>; item: ZodString; at: ZodInt; worktrees: ZodInt; ms: ZodInt; }, $strip>, ZodObject<{ passed: ZodLiteral<false>; reason: ZodString; item: ZodString; at: ZodInt; worktrees: ZodInt; ms: ZodInt; }, $strip>], \"passed\">>; }; readonly config: Config; readonly adapters: { readonly workSource: WorkSource; readonly questions: Questions; readonly answers?: Answers | undefined; }; readonly runner: Runner; readonly judge?: ModelCall | undefined; readonly remote: string; readonly base?: string | undefined; readonly checks: readonly string[]; readonly holder: string & $brand<\"Holder\">; readonly workDir?: string | undefined; readonly checkout?: Checkout | undefined; readonly slots?: Pick<SlotPool, \"idle\" | \"keepReady\"> | undefined; readonly dir?: string | undefined; readonly where?: \"ci\" | \"mac\" | undefined; readonly now: () => number; readonly runnerVariables: ReadonlySet<string>; readonly newSessionId: () => string; readonly engineVersion?: string | undefined; readonly latestVersion?: (() => Promise<string | undefined>) | undefined; readonly ciTick?: (() => Promise<number | undefined>) | undefined; readonly gate?: PrefixGate | undefined; readonly onResult?: ((result: ThinResult) => void) | undefined; readonly pulls?: PullRequests | undefined; readonly commits?: GitHubCommits | undefined; readonly loop?: Partial<Pick<LoopPass, \"ciLogs\" | \"comments\">> | undefined; readonly ciJob?: CiJob | undefined; }"
7200
7734
  },
7201
7735
  "WorkflowFile": {
7202
7736
  "type": "export type WorkflowFile = {\n readonly file: string;\n readonly text: string;\n};\n= { readonly file: string; readonly text: string; }"
7203
7737
  },
7204
7738
  "WorkflowSettings": {
7205
- "type": "export type WorkflowSettings = Pick<HumConfig, \"runBranchPrefix\" | \"itemsDir\" | \"ciSchedule\" | \"commitIdentity\" | \"ciWakeTimeoutMinutes\" | \"pullRequestTokenSecret\">;\n= { commitIdentity: { name: string; email: string; }; runBranchPrefix: string; ciSchedule: string; itemsDir: string; pullRequestTokenSecret: string; ciWakeTimeoutMinutes: number; }"
7739
+ "type": "export type WorkflowSettings = Pick<HumConfig, \"runBranchPrefix\" | \"itemsDir\" | \"ciSchedule\" | \"commitIdentity\" | \"ciWakeTimeoutMinutes\" | \"ciOutboxMaxMegabytes\" | \"pullRequestToken\" | \"ciRunner\" | \"ciContainer\" | \"ciEnv\" | \"ciClaudeAuth\">;\n= { commitIdentity: { name: string; email: string; }; runBranchPrefix: string; ciSchedule: string; itemsDir: string; pullRequestToken: { from: \"app\"; clientIdSecret: string; privateKeySecret: string; } | { from: \"secret\"; secret: string; }; ciWakeTimeoutMinutes: number; ciOutboxMaxMegabytes: number; ciRunner: string | string[] | { group: string; labels?: string | string[] | undefined; }; ciContainer: null | string | { image: string; credentials?: undefined | { username: string; password: string; }; env?: Record<string, string> | undefined; ports?: (number | string)[] | undefined; volumes?: string[] | undefined; options?: string | undefined; }; ciEnv: Record<string, string>; ciClaudeAuth: \"env\" | \"oauth-token\"; }"
7206
7740
  },
7207
7741
  "WorkSource": {
7208
- "type": "export interface WorkSource {\n listReady(): Promise<ItemRef[]>;\n read(id: ItemId): Promise<Item>;\n claim(id: ItemId, holder: Holder, ttlMs: number): Promise<ClaimResult>;\n renew(id: ItemId, holder: Holder, ttlMs: number): Promise<ClaimResult>;\n comment(id: ItemId, text: string): Promise<void>;\n fileFollowUp(from: ItemId, followUp: FollowUp): Promise<ItemRef>;\n}"
7742
+ "type": "export interface WorkSource {\n listReady(): Promise<ItemRef[]>;\n read(id: ItemId): Promise<Item>;\n claim(id: ItemId, holder: Holder, ttlMs: number): Promise<ClaimResult>;\n renew(id: ItemId, holder: Holder, ttlMs: number): Promise<ClaimResult>;\n comment(id: ItemId, text: string): Promise<void>;\n fileFollowUp(from: ItemId, followUp: FollowUp): Promise<ItemRef>;\n finish(id: ItemId): Promise<void>;\n}"
7209
7743
  },
7210
7744
  "writeCards": {
7211
7745
  "type": "(path: string, cards: { kind: \"fault\" | \"limited\" | \"waiting\"; key: string; code: string; cause: string; fix: string; since: number; item?: string | undefined; action?: undefined | { label: string; answer: string; }; }[], engineVersion: string, now: number) => void"