@moo.md/hum 0.0.0-stage → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (150) hide show
  1. package/defaults/hum.json +321 -0
  2. package/defaults/kinds/check.json +183 -0
  3. package/defaults/kinds/docs.json +151 -0
  4. package/defaults/kinds/feature.json +202 -0
  5. package/defaults/kinds/fix.json +183 -0
  6. package/defaults/kinds/hotfix.json +164 -0
  7. package/defaults/roles/build.md +3 -0
  8. package/defaults/roles/fix.md +1 -0
  9. package/defaults/roles/plan.md +3 -0
  10. package/defaults/roles/review.md +3 -0
  11. package/evals/alignment/RESULTS.md +8 -0
  12. package/evals/alignment/cases.jsonl +128 -0
  13. package/evals/alignment/sample.jsonl +20 -0
  14. package/evals/kind/RESULTS.md +5 -0
  15. package/evals/kind/cases.jsonl +24 -0
  16. package/evals/plan-outcome/RESULTS.md +4 -0
  17. package/evals/plan-outcome/cases.jsonl +12 -0
  18. package/evals/repeat-pair/RESULTS.md +4 -0
  19. package/evals/repeat-pair/cases.jsonl +51 -0
  20. package/evals/reply-option/RESULTS.md +3 -0
  21. package/evals/reply-option/cases.jsonl +45 -0
  22. package/evals/review-verdict/RESULTS.md +4 -0
  23. package/evals/review-verdict/cases.jsonl +12 -0
  24. package/package.json +88 -4
  25. package/schema/hum.schema.json +1355 -0
  26. package/scripts/eval.ts +244 -0
  27. package/src/adapter-api.ts +134 -0
  28. package/src/adapters/admit.ts +111 -0
  29. package/src/adapters/argument.ts +11 -0
  30. package/src/adapters/claim.ts +93 -0
  31. package/src/adapters/claude-bg.ts +392 -0
  32. package/src/adapters/claude-p.ts +599 -0
  33. package/src/adapters/contract.ts +231 -0
  34. package/src/adapters/fake.ts +157 -0
  35. package/src/adapters/git.ts +156 -0
  36. package/src/adapters/github.ts +479 -0
  37. package/src/adapters/guard.ts +152 -0
  38. package/src/adapters/history.ts +215 -0
  39. package/src/adapters/item-file.ts +102 -0
  40. package/src/adapters/limit.ts +67 -0
  41. package/src/adapters/markdown.ts +365 -0
  42. package/src/adapters/marked.ts +127 -0
  43. package/src/adapters/model-call.ts +75 -0
  44. package/src/adapters/once.ts +45 -0
  45. package/src/adapters/owner-commit.ts +60 -0
  46. package/src/adapters/pull-requests.ts +253 -0
  47. package/src/adapters/registry.ts +156 -0
  48. package/src/adapters/roundup.ts +293 -0
  49. package/src/adapters/serial.ts +22 -0
  50. package/src/adapters/transcript.ts +99 -0
  51. package/src/cli/commands.ts +46 -0
  52. package/src/cli/main.ts +8 -0
  53. package/src/cli/ops.ts +224 -0
  54. package/src/cli/service.ts +156 -0
  55. package/src/cli/setup.ts +141 -0
  56. package/src/cli/shared-watch.ts +127 -0
  57. package/src/config/change.ts +54 -0
  58. package/src/config/checks.ts +217 -0
  59. package/src/config/git-ref-name.d.ts +3 -0
  60. package/src/config/hash.ts +6 -0
  61. package/src/config/json.ts +6 -0
  62. package/src/config/load.ts +88 -0
  63. package/src/config/machine.ts +20 -0
  64. package/src/config/migrate.ts +61 -0
  65. package/src/config/refusal.ts +58 -0
  66. package/src/config/schema.ts +465 -0
  67. package/src/config/settings.ts +6 -0
  68. package/src/config/state-map.ts +76 -0
  69. package/src/decide/alignment.ts +79 -0
  70. package/src/decide/answer.ts +131 -0
  71. package/src/decide/kind.ts +39 -0
  72. package/src/decide/labels.ts +137 -0
  73. package/src/decide/merge.ts +102 -0
  74. package/src/decide/prose.ts +109 -0
  75. package/src/decide/question.ts +159 -0
  76. package/src/decide/review.ts +10 -0
  77. package/src/decide/risk.ts +216 -0
  78. package/src/decide/taste.ts +37 -0
  79. package/src/exec.ts +85 -0
  80. package/src/index.ts +200 -0
  81. package/src/loop/breaks.ts +8 -0
  82. package/src/loop/check-item.ts +76 -0
  83. package/src/loop/ci.ts +8 -0
  84. package/src/loop/github.ts +81 -0
  85. package/src/loop/groups.ts +108 -0
  86. package/src/loop/memory.ts +70 -0
  87. package/src/loop/notes.ts +76 -0
  88. package/src/loop/pair.ts +39 -0
  89. package/src/loop/pass.ts +99 -0
  90. package/src/loop/proof.ts +85 -0
  91. package/src/loop/prove-item.ts +33 -0
  92. package/src/loop/records.ts +75 -0
  93. package/src/loop/signals.ts +130 -0
  94. package/src/measure/inputs.ts +28 -0
  95. package/src/measure/measure.ts +68 -0
  96. package/src/service/cards.ts +24 -0
  97. package/src/service/ci-tick.ts +28 -0
  98. package/src/service/launchd.ts +16 -0
  99. package/src/service/supervise.ts +145 -0
  100. package/src/service/systemd.ts +44 -0
  101. package/src/service/token.ts +21 -0
  102. package/src/service/unit.ts +29 -0
  103. package/src/service/wake.ts +30 -0
  104. package/src/service/workflows.ts +97 -0
  105. package/src/setup/propose.ts +120 -0
  106. package/src/setup/prove.ts +216 -0
  107. package/src/setup/scan.ts +186 -0
  108. package/src/setup/scratch.ts +81 -0
  109. package/src/setup/shipped.ts +15 -0
  110. package/src/setup/tables.ts +101 -0
  111. package/src/setup/waits.ts +58 -0
  112. package/src/setup/write.ts +161 -0
  113. package/src/slots/env.ts +42 -0
  114. package/src/slots/pool.ts +329 -0
  115. package/src/slots/scan.ts +26 -0
  116. package/src/slots/worktree.ts +17 -0
  117. package/src/state/events.ts +52 -0
  118. package/src/state/faults.ts +73 -0
  119. package/src/state/format.ts +50 -0
  120. package/src/state/fs.ts +100 -0
  121. package/src/state/items.ts +195 -0
  122. package/src/state/open.ts +80 -0
  123. package/src/state/ops.ts +76 -0
  124. package/src/state/records.ts +35 -0
  125. package/src/state/runs.ts +99 -0
  126. package/src/state/saved.ts +119 -0
  127. package/src/status/file.ts +49 -0
  128. package/src/status/format.ts +132 -0
  129. package/src/status/sections.ts +14 -0
  130. package/src/status/version.ts +2 -0
  131. package/src/time.ts +7 -0
  132. package/src/worker/alignment-report.ts +18 -0
  133. package/src/worker/answers.ts +153 -0
  134. package/src/worker/base-check.ts +45 -0
  135. package/src/worker/checks.ts +40 -0
  136. package/src/worker/kind.ts +68 -0
  137. package/src/worker/land.ts +509 -0
  138. package/src/worker/lifecycle.ts +97 -0
  139. package/src/worker/merged.ts +29 -0
  140. package/src/worker/open.ts +100 -0
  141. package/src/worker/prose-run.ts +56 -0
  142. package/src/worker/questions.ts +89 -0
  143. package/src/worker/scheduler.ts +135 -0
  144. package/src/worker/signature.ts +41 -0
  145. package/src/worker/tally.ts +25 -0
  146. package/src/worker/taste.ts +38 -0
  147. package/src/worker/thin-path.ts +886 -0
  148. package/src/worker/worker.ts +750 -0
  149. package/surface.json +8787 -0
  150. package/README.md +0 -3
@@ -0,0 +1,321 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "levels": [
4
+ {
5
+ "name": "low",
6
+ "review": "none",
7
+ "release": "at-once",
8
+ "onBreak": "follow-up"
9
+ },
10
+ {
11
+ "name": "medium",
12
+ "review": "agent",
13
+ "release": "at-once",
14
+ "onBreak": "follow-up"
15
+ },
16
+ {
17
+ "name": "high",
18
+ "review": "owner",
19
+ "release": "at-once",
20
+ "onBreak": "follow-up"
21
+ },
22
+ {
23
+ "name": "critical",
24
+ "review": "owner",
25
+ "release": "after-proof",
26
+ "onBreak": "block"
27
+ }
28
+ ],
29
+ "paths": [],
30
+ "roles": {
31
+ "plan": {
32
+ "file": "roles/plan.md",
33
+ "purpose": "plan",
34
+ "skills": [
35
+ "hope:intent",
36
+ "hope:shape"
37
+ ]
38
+ },
39
+ "build": {
40
+ "file": "roles/build.md",
41
+ "purpose": "build",
42
+ "skills": []
43
+ },
44
+ "fix": {
45
+ "file": "roles/fix.md",
46
+ "purpose": "fix",
47
+ "skills": []
48
+ },
49
+ "review": {
50
+ "file": "roles/review.md",
51
+ "purpose": "review",
52
+ "skills": [
53
+ "hope:judge"
54
+ ]
55
+ }
56
+ },
57
+ "events": {
58
+ "plan-ready": {
59
+ "source": "plan"
60
+ },
61
+ "needs-split": {
62
+ "source": "plan"
63
+ },
64
+ "plan-blocked": {
65
+ "source": "plan"
66
+ },
67
+ "token-cap": {
68
+ "source": "worker"
69
+ },
70
+ "approve": {
71
+ "source": "review"
72
+ },
73
+ "request-changes": {
74
+ "source": "review"
75
+ },
76
+ "needs-owner": {
77
+ "source": "review"
78
+ },
79
+ "answered": {
80
+ "source": "owner"
81
+ },
82
+ "owner-approved": {
83
+ "source": "owner"
84
+ },
85
+ "owner-rejected": {
86
+ "source": "owner"
87
+ },
88
+ "merged": {
89
+ "source": "work-source"
90
+ }
91
+ },
92
+ "kinds": [
93
+ "feature",
94
+ "fix",
95
+ "docs",
96
+ "hotfix",
97
+ "check"
98
+ ],
99
+ "runBranchPrefix": "hum/run/",
100
+ "claimPrefix": "hum/claim/",
101
+ "readyLabel": "hum:ready",
102
+ "mergeMethod": "squash",
103
+ "models": {
104
+ "light": "claude-haiku-5-5",
105
+ "standard": "claude-sonnet-5-5",
106
+ "top": "claude-opus-5-5"
107
+ },
108
+ "runners": 3,
109
+ "tickIntervalSeconds": 30,
110
+ "drainTimeoutSeconds": 300,
111
+ "claimExpirySeconds": 900,
112
+ "latestVersionCacheSeconds": 21600,
113
+ "watchCacheSeconds": 10,
114
+ "watchLockSeconds": 30,
115
+ "maxFixRuns": 3,
116
+ "serviceLabel": "md.moo.hum",
117
+ "maxCrashes": 5,
118
+ "crashWindowSeconds": 600,
119
+ "workerDownTicks": 3,
120
+ "tokenWarnDays": 30,
121
+ "ciSchedule": "*/15 * * * *",
122
+ "ciTickCacheSeconds": 300,
123
+ "itemsDir": ".hum/work",
124
+ "providerTimeoutSeconds": 30,
125
+ "providerBackoff": {
126
+ "firstSeconds": 0.5,
127
+ "maxSeconds": 30
128
+ },
129
+ "mergedShown": 50,
130
+ "choicesShown": 50,
131
+ "statusReadTimeoutSeconds": 10,
132
+ "commandTimeoutSeconds": 600,
133
+ "mergeTries": 3,
134
+ "writeRaceRetries": 7,
135
+ "itemReadsAtOnce": 8,
136
+ "restartBackoff": {
137
+ "firstSeconds": 1,
138
+ "maxSeconds": 60
139
+ },
140
+ "restartDelaySeconds": 10,
141
+ "ciWakeTimeoutMinutes": 60,
142
+ "pullRequestTokenSecret": "HUM_GITHUB_TOKEN",
143
+ "strictPaths": [],
144
+ "launches": [],
145
+ "sizeRange": {
146
+ "changes": 50,
147
+ "fewest": 20,
148
+ "middle": 0.8
149
+ },
150
+ "loosenedCheck": {
151
+ "added": [
152
+ "\\.(skip|skipIf|todo)\\(",
153
+ "\\bx(it|test|describe)\\(",
154
+ "(eslint|oxlint|biome)[- ](disable|ignore)",
155
+ "@ts-(ignore|expect-error|nocheck)"
156
+ ],
157
+ "removed": [
158
+ "^\\s*(test|it|describe)(\\.\\w+)?\\(",
159
+ "^\\s*\"[@\\w/-]+\"\\s*:\\s*\\[?\"(error|warn)\""
160
+ ]
161
+ },
162
+ "changeLabels": {
163
+ "fixWindow": 10,
164
+ "fixSubject": "^fix(\\(.+\\))?!?:",
165
+ "revertSubject": "^(Revert \"|[Rr]evert(\\(.+\\))?!?:)",
166
+ "revertTrailer": "This reverts commit ([0-9a-f]{7,40})"
167
+ },
168
+ "historyDepth": 1000,
169
+ "lockfiles": [
170
+ "bun.lock",
171
+ "bun.lockb",
172
+ "package-lock.json",
173
+ "yarn.lock",
174
+ "pnpm-lock.yaml"
175
+ ],
176
+ "hookPaths": [
177
+ ".husky/**",
178
+ ".githooks/**",
179
+ "lefthook.yml",
180
+ ".pre-commit-config.yaml"
181
+ ],
182
+ "diffLimit": 100000,
183
+ "failureTail": 4000,
184
+ "kindMeanings": {
185
+ "feature": "adds or changes what the product does or offers",
186
+ "fix": "corrects behaviour that is wrong, broken or inconsistent, with no new capability",
187
+ "docs": "changes only prose that explains the work: notes, changelog entries, guides, comments",
188
+ "hotfix": "an urgent correction to what is already live, named as urgent",
189
+ "check": "adds or repairs tests, benchmarks or other verification, with no change to behaviour"
190
+ },
191
+ "fallbackKind": "feature",
192
+ "docsOnly": {
193
+ "kind": "docs",
194
+ "paths": [
195
+ "**/*.md",
196
+ "**/*.mdx",
197
+ "docs/**"
198
+ ]
199
+ },
200
+ "decisionModel": "claude-haiku-5-5",
201
+ "modelCallTimeoutSeconds": 120,
202
+ "minJudgeRate": 0.8,
203
+ "measuredModels": {
204
+ "kind": {
205
+ "claude-haiku-5-5": 0.58,
206
+ "claude-sonnet-5-5": 0.63
207
+ },
208
+ "alignment": {
209
+ "claude-haiku-5-5": 0.68,
210
+ "claude-sonnet-5-5": 0.68
211
+ },
212
+ "plan-outcome": {
213
+ "claude-haiku-5-5": 1,
214
+ "claude-sonnet-5-5": 1
215
+ },
216
+ "review-verdict": {
217
+ "claude-haiku-5-5": 0.92,
218
+ "claude-sonnet-5-5": 0.83
219
+ },
220
+ "reply-option": {
221
+ "claude-haiku-5-5": 0.87
222
+ },
223
+ "repeat-pair": {
224
+ "claude-haiku-5-5": 1
225
+ },
226
+ "taste": {}
227
+ },
228
+ "mergeRisk": {
229
+ "weights": {
230
+ "impact": 2,
231
+ "verification": 2,
232
+ "rollback": 1.5,
233
+ "errorDetection": 1,
234
+ "alignment": 1
235
+ },
236
+ "cuts": [
237
+ 1.5,
238
+ 2.25
239
+ ]
240
+ },
241
+ "questionLimits": {
242
+ "cells": 80,
243
+ "wordCells": 40
244
+ },
245
+ "questionTimeoutHours": 24,
246
+ "priorityLabels": [
247
+ "priority:high"
248
+ ],
249
+ "undoableLevels": [
250
+ "low",
251
+ "medium"
252
+ ],
253
+ "ownerBranchPrefix": "hum/owner/",
254
+ "backgroundRuns": true,
255
+ "backgroundPollSeconds": 1,
256
+ "backgroundLaunchSeconds": 30,
257
+ "deniedRunCommands": [
258
+ "gh issue",
259
+ "gh label",
260
+ "gh api",
261
+ "gh auth",
262
+ "gh repo",
263
+ "gh pr create",
264
+ "gh pr comment",
265
+ "gh pr review",
266
+ "gh pr edit",
267
+ "gh pr merge",
268
+ "gh pr ready",
269
+ "gh pr close",
270
+ "git push"
271
+ ],
272
+ "runAutoMode": {
273
+ "environment": [
274
+ "A session named hum <item> <purpose> #<attempt> is an unattended hum run; nobody watches it, and its owner answers only the questions hum asks."
275
+ ],
276
+ "allow": [
277
+ "$defaults",
278
+ "Running hum's own commands (hum comment, ask, file-follow-up, decide) is the run's routine work, GitHub writes included.",
279
+ "Reading the run's own PR and its checks on GitHub (gh pr checks, gh pr view, gh run view, --log-failed included) is routine: hum asks the run to read failed checks and fix them."
280
+ ],
281
+ "hardDeny": [
282
+ "$defaults",
283
+ "Writing to GitHub other than through hum's own commands: commenting on, labelling, creating, editing or closing issues or PRs, submitting reviews, pushing, or reading a GitHub token (gh auth token, the keychain, ~/.config/gh).",
284
+ "Changing .hum/hum.json or any file under .github/workflows/."
285
+ ]
286
+ },
287
+ "ownerLogins": [],
288
+ "tasteRules": [],
289
+ "repeatAt": 2,
290
+ "repeatPrecision": 0.9,
291
+ "memoryMaxBytes": 8000,
292
+ "memoryUnusedRuns": 20,
293
+ "measureWindow": 20,
294
+ "loopIntervalSeconds": 3600,
295
+ "proofTimeoutSeconds": 900,
296
+ "kindFloors": {},
297
+ "checkKind": "check",
298
+ "breakCheck": true,
299
+ "runSlots": {
300
+ "enabled": false,
301
+ "pool": "../.hum-slots",
302
+ "services": "per-slot",
303
+ "ports": {
304
+ "base": 20000,
305
+ "stride": 10
306
+ },
307
+ "projectPrefix": "hum",
308
+ "stepTimeoutSeconds": 600,
309
+ "recipe": {
310
+ "prepare": [],
311
+ "refresh": [],
312
+ "ready": []
313
+ }
314
+ },
315
+ "checks": [],
316
+ "kindLabels": {},
317
+ "runPlaces": [
318
+ "mac",
319
+ "ci"
320
+ ]
321
+ }
@@ -0,0 +1,183 @@
1
+ {
2
+ "tiers": [
3
+ {
4
+ "purpose": "plan",
5
+ "tier": "standard",
6
+ "effort": "high"
7
+ },
8
+ {
9
+ "purpose": "plan",
10
+ "level": "high",
11
+ "tier": "top",
12
+ "effort": "high"
13
+ },
14
+ {
15
+ "purpose": "plan",
16
+ "level": "critical",
17
+ "tier": "top",
18
+ "effort": "high"
19
+ },
20
+ {
21
+ "purpose": "build",
22
+ "tier": "standard",
23
+ "effort": "medium"
24
+ },
25
+ {
26
+ "purpose": "build",
27
+ "level": "high",
28
+ "tier": "top",
29
+ "effort": "high"
30
+ },
31
+ {
32
+ "purpose": "build",
33
+ "level": "critical",
34
+ "tier": "top",
35
+ "effort": "high"
36
+ },
37
+ {
38
+ "purpose": "fix",
39
+ "tier": "standard",
40
+ "effort": "medium"
41
+ },
42
+ {
43
+ "purpose": "fix",
44
+ "level": "high",
45
+ "tier": "top",
46
+ "effort": "high"
47
+ },
48
+ {
49
+ "purpose": "fix",
50
+ "level": "critical",
51
+ "tier": "top",
52
+ "effort": "high"
53
+ },
54
+ {
55
+ "purpose": "review",
56
+ "tier": "standard",
57
+ "effort": "medium"
58
+ },
59
+ {
60
+ "purpose": "review",
61
+ "level": "high",
62
+ "tier": "top",
63
+ "effort": "high"
64
+ },
65
+ {
66
+ "purpose": "review",
67
+ "level": "critical",
68
+ "tier": "top",
69
+ "effort": "high"
70
+ }
71
+ ],
72
+ "tokenCap": {
73
+ "tokens": 300000,
74
+ "overCap": "asking"
75
+ },
76
+ "machine": {
77
+ "id": "check",
78
+ "version": "1",
79
+ "initial": "building",
80
+ "states": {
81
+ "building": {
82
+ "invoke": {
83
+ "src": "build",
84
+ "onDone": {
85
+ "target": "checking"
86
+ },
87
+ "onError": {
88
+ "target": "stuck"
89
+ }
90
+ },
91
+ "on": {
92
+ "token-cap": {
93
+ "target": "asking"
94
+ }
95
+ }
96
+ },
97
+ "checking": {
98
+ "invoke": {
99
+ "src": "checks",
100
+ "onDone": {
101
+ "target": "reviewing"
102
+ },
103
+ "onError": {
104
+ "target": "fixing"
105
+ }
106
+ }
107
+ },
108
+ "fixing": {
109
+ "invoke": {
110
+ "src": "fix",
111
+ "onDone": {
112
+ "target": "checking"
113
+ },
114
+ "onError": {
115
+ "target": "stuck"
116
+ }
117
+ },
118
+ "on": {
119
+ "token-cap": {
120
+ "target": "asking"
121
+ }
122
+ }
123
+ },
124
+ "reviewing": {
125
+ "invoke": {
126
+ "src": "review",
127
+ "onError": {
128
+ "target": "stuck"
129
+ }
130
+ },
131
+ "on": {
132
+ "approve": {
133
+ "target": "merging"
134
+ },
135
+ "request-changes": {
136
+ "target": "fixing"
137
+ },
138
+ "needs-owner": {
139
+ "target": "owner-review"
140
+ }
141
+ }
142
+ },
143
+ "owner-review": {
144
+ "tags": [
145
+ "owner-wait"
146
+ ],
147
+ "on": {
148
+ "owner-approved": {
149
+ "target": "merging"
150
+ },
151
+ "owner-rejected": {
152
+ "target": "fixing"
153
+ }
154
+ }
155
+ },
156
+ "merging": {
157
+ "on": {
158
+ "merged": {
159
+ "target": "done"
160
+ }
161
+ }
162
+ },
163
+ "asking": {
164
+ "tags": [
165
+ "owner-wait"
166
+ ],
167
+ "on": {
168
+ "answered": {
169
+ "target": "building"
170
+ }
171
+ }
172
+ },
173
+ "stuck": {
174
+ "tags": [
175
+ "stuck"
176
+ ]
177
+ },
178
+ "done": {
179
+ "type": "final"
180
+ }
181
+ }
182
+ }
183
+ }
@@ -0,0 +1,151 @@
1
+ {
2
+ "tiers": [
3
+ {
4
+ "purpose": "plan",
5
+ "tier": "light",
6
+ "effort": "low"
7
+ },
8
+ {
9
+ "purpose": "plan",
10
+ "level": "high",
11
+ "tier": "top",
12
+ "effort": "high"
13
+ },
14
+ {
15
+ "purpose": "plan",
16
+ "level": "critical",
17
+ "tier": "top",
18
+ "effort": "high"
19
+ },
20
+ {
21
+ "purpose": "build",
22
+ "tier": "light",
23
+ "effort": "low"
24
+ },
25
+ {
26
+ "purpose": "build",
27
+ "level": "high",
28
+ "tier": "top",
29
+ "effort": "high"
30
+ },
31
+ {
32
+ "purpose": "build",
33
+ "level": "critical",
34
+ "tier": "top",
35
+ "effort": "high"
36
+ },
37
+ {
38
+ "purpose": "fix",
39
+ "tier": "light",
40
+ "effort": "low"
41
+ },
42
+ {
43
+ "purpose": "fix",
44
+ "level": "high",
45
+ "tier": "top",
46
+ "effort": "high"
47
+ },
48
+ {
49
+ "purpose": "fix",
50
+ "level": "critical",
51
+ "tier": "top",
52
+ "effort": "high"
53
+ },
54
+ {
55
+ "purpose": "review",
56
+ "tier": "light",
57
+ "effort": "low"
58
+ },
59
+ {
60
+ "purpose": "review",
61
+ "level": "high",
62
+ "tier": "top",
63
+ "effort": "high"
64
+ },
65
+ {
66
+ "purpose": "review",
67
+ "level": "critical",
68
+ "tier": "top",
69
+ "effort": "high"
70
+ }
71
+ ],
72
+ "tokenCap": {
73
+ "tokens": 200000,
74
+ "overCap": "asking"
75
+ },
76
+ "machine": {
77
+ "id": "docs",
78
+ "version": "1",
79
+ "initial": "building",
80
+ "states": {
81
+ "building": {
82
+ "invoke": {
83
+ "src": "build",
84
+ "onDone": {
85
+ "target": "checking"
86
+ },
87
+ "onError": {
88
+ "target": "stuck"
89
+ }
90
+ },
91
+ "on": {
92
+ "token-cap": {
93
+ "target": "asking"
94
+ }
95
+ }
96
+ },
97
+ "checking": {
98
+ "invoke": {
99
+ "src": "checks",
100
+ "onDone": {
101
+ "target": "merging"
102
+ },
103
+ "onError": {
104
+ "target": "fixing"
105
+ }
106
+ }
107
+ },
108
+ "fixing": {
109
+ "invoke": {
110
+ "src": "fix",
111
+ "onDone": {
112
+ "target": "checking"
113
+ },
114
+ "onError": {
115
+ "target": "stuck"
116
+ }
117
+ },
118
+ "on": {
119
+ "token-cap": {
120
+ "target": "asking"
121
+ }
122
+ }
123
+ },
124
+ "merging": {
125
+ "on": {
126
+ "merged": {
127
+ "target": "done"
128
+ }
129
+ }
130
+ },
131
+ "asking": {
132
+ "tags": [
133
+ "owner-wait"
134
+ ],
135
+ "on": {
136
+ "answered": {
137
+ "target": "building"
138
+ }
139
+ }
140
+ },
141
+ "stuck": {
142
+ "tags": [
143
+ "stuck"
144
+ ]
145
+ },
146
+ "done": {
147
+ "type": "final"
148
+ }
149
+ }
150
+ }
151
+ }