openmill 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.
- package/LICENSE +21 -0
- package/README.md +126 -2
- package/dist/.claude-plugin/plugin.json +4 -0
- package/dist/agents/claude/code-simplifier.md +72 -0
- package/dist/agents/claude/verifier.md +29 -0
- package/dist/agents/codex/code-simplifier.toml +46 -0
- package/dist/agents/codex/verifier.toml +30 -0
- package/dist/bin/openmill.mjs +1958 -0
- package/dist/drizzle/20261117041330_init/migration.sql +48 -0
- package/dist/drizzle/20261117041330_init/snapshot.json +462 -0
- package/dist/skills/autonomous-feature-pr/SKILL.md +53 -0
- package/dist/skills/autonomous-feature-pr/agents/openai.yaml +2 -0
- package/package.json +54 -3
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
CREATE TABLE `job_dependencies` (
|
|
2
|
+
`jobKey` integer NOT NULL,
|
|
3
|
+
`dependsOnKey` integer NOT NULL,
|
|
4
|
+
CONSTRAINT `job_dependencies_pk` PRIMARY KEY(`jobKey`, `dependsOnKey`),
|
|
5
|
+
CONSTRAINT `fk_job_dependencies_jobKey_jobs_key_fk` FOREIGN KEY (`jobKey`) REFERENCES `jobs`(`key`) ON DELETE CASCADE,
|
|
6
|
+
CONSTRAINT `fk_job_dependencies_dependsOnKey_jobs_key_fk` FOREIGN KEY (`dependsOnKey`) REFERENCES `jobs`(`key`) ON DELETE CASCADE
|
|
7
|
+
);
|
|
8
|
+
--> statement-breakpoint
|
|
9
|
+
CREATE TABLE `jobs` (
|
|
10
|
+
`key` integer PRIMARY KEY AUTOINCREMENT,
|
|
11
|
+
`id` text NOT NULL,
|
|
12
|
+
`repoPath` text NOT NULL,
|
|
13
|
+
`docPath` text NOT NULL,
|
|
14
|
+
`docSnapshot` text NOT NULL,
|
|
15
|
+
`projectSnapshot` text,
|
|
16
|
+
`baseBranch` text,
|
|
17
|
+
`prBaseBranch` text,
|
|
18
|
+
`requestedBase` text,
|
|
19
|
+
`branchName` text NOT NULL,
|
|
20
|
+
`worktreePath` text NOT NULL,
|
|
21
|
+
`harness` text,
|
|
22
|
+
`model` text,
|
|
23
|
+
`effort` text,
|
|
24
|
+
`state` text DEFAULT 'queued' NOT NULL,
|
|
25
|
+
`blockedReason` text,
|
|
26
|
+
`prUrl` text,
|
|
27
|
+
`sessionId` text,
|
|
28
|
+
`createdAt` integer DEFAULT (unixepoch('subsec') * 1000) NOT NULL,
|
|
29
|
+
`updatedAt` integer DEFAULT (unixepoch('subsec') * 1000) NOT NULL
|
|
30
|
+
);
|
|
31
|
+
--> statement-breakpoint
|
|
32
|
+
CREATE TABLE `runs` (
|
|
33
|
+
`id` integer PRIMARY KEY AUTOINCREMENT,
|
|
34
|
+
`jobKey` integer NOT NULL,
|
|
35
|
+
`harness` text NOT NULL,
|
|
36
|
+
`model` text,
|
|
37
|
+
`effort` text NOT NULL,
|
|
38
|
+
`sessionId` text,
|
|
39
|
+
`recovery` integer DEFAULT false NOT NULL,
|
|
40
|
+
`startedAt` integer DEFAULT (unixepoch('subsec') * 1000) NOT NULL,
|
|
41
|
+
`endedAt` integer,
|
|
42
|
+
`result` text,
|
|
43
|
+
CONSTRAINT `fk_runs_jobKey_jobs_key_fk` FOREIGN KEY (`jobKey`) REFERENCES `jobs`(`key`) ON DELETE CASCADE
|
|
44
|
+
);
|
|
45
|
+
--> statement-breakpoint
|
|
46
|
+
CREATE INDEX `job_dependencies_depends_on` ON `job_dependencies` (`dependsOnKey`);--> statement-breakpoint
|
|
47
|
+
CREATE UNIQUE INDEX `jobs_repo_id` ON `jobs` (`repoPath`,`id`);--> statement-breakpoint
|
|
48
|
+
CREATE INDEX `runs_job` ON `runs` (`jobKey`);
|
|
@@ -0,0 +1,462 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "7",
|
|
3
|
+
"dialect": "sqlite",
|
|
4
|
+
"id": "d8a9167a-c179-4869-b607-c1a17e378baa",
|
|
5
|
+
"prevIds": [
|
|
6
|
+
"00000000-0000-0000-0000-000000000000"
|
|
7
|
+
],
|
|
8
|
+
"ddl": [
|
|
9
|
+
{
|
|
10
|
+
"name": "job_dependencies",
|
|
11
|
+
"entityType": "tables"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"name": "jobs",
|
|
15
|
+
"entityType": "tables"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"name": "runs",
|
|
19
|
+
"entityType": "tables"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"table": "job_dependencies",
|
|
23
|
+
"name": "jobKey",
|
|
24
|
+
"type": "integer",
|
|
25
|
+
"notNull": true,
|
|
26
|
+
"autoincrement": false,
|
|
27
|
+
"default": null,
|
|
28
|
+
"generated": null,
|
|
29
|
+
"entityType": "columns"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"table": "job_dependencies",
|
|
33
|
+
"name": "dependsOnKey",
|
|
34
|
+
"type": "integer",
|
|
35
|
+
"notNull": true,
|
|
36
|
+
"autoincrement": false,
|
|
37
|
+
"default": null,
|
|
38
|
+
"generated": null,
|
|
39
|
+
"entityType": "columns"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"table": "jobs",
|
|
43
|
+
"name": "key",
|
|
44
|
+
"type": "integer",
|
|
45
|
+
"notNull": false,
|
|
46
|
+
"autoincrement": true,
|
|
47
|
+
"default": null,
|
|
48
|
+
"generated": null,
|
|
49
|
+
"entityType": "columns"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"table": "jobs",
|
|
53
|
+
"name": "id",
|
|
54
|
+
"type": "text",
|
|
55
|
+
"notNull": true,
|
|
56
|
+
"autoincrement": false,
|
|
57
|
+
"default": null,
|
|
58
|
+
"generated": null,
|
|
59
|
+
"entityType": "columns"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"table": "jobs",
|
|
63
|
+
"name": "repoPath",
|
|
64
|
+
"type": "text",
|
|
65
|
+
"notNull": true,
|
|
66
|
+
"autoincrement": false,
|
|
67
|
+
"default": null,
|
|
68
|
+
"generated": null,
|
|
69
|
+
"entityType": "columns"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"table": "jobs",
|
|
73
|
+
"name": "docPath",
|
|
74
|
+
"type": "text",
|
|
75
|
+
"notNull": true,
|
|
76
|
+
"autoincrement": false,
|
|
77
|
+
"default": null,
|
|
78
|
+
"generated": null,
|
|
79
|
+
"entityType": "columns"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"table": "jobs",
|
|
83
|
+
"name": "docSnapshot",
|
|
84
|
+
"type": "text",
|
|
85
|
+
"notNull": true,
|
|
86
|
+
"autoincrement": false,
|
|
87
|
+
"default": null,
|
|
88
|
+
"generated": null,
|
|
89
|
+
"entityType": "columns"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"table": "jobs",
|
|
93
|
+
"name": "projectSnapshot",
|
|
94
|
+
"type": "text",
|
|
95
|
+
"notNull": false,
|
|
96
|
+
"autoincrement": false,
|
|
97
|
+
"default": null,
|
|
98
|
+
"generated": null,
|
|
99
|
+
"entityType": "columns"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"table": "jobs",
|
|
103
|
+
"name": "baseBranch",
|
|
104
|
+
"type": "text",
|
|
105
|
+
"notNull": false,
|
|
106
|
+
"autoincrement": false,
|
|
107
|
+
"default": null,
|
|
108
|
+
"generated": null,
|
|
109
|
+
"entityType": "columns"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"table": "jobs",
|
|
113
|
+
"name": "prBaseBranch",
|
|
114
|
+
"type": "text",
|
|
115
|
+
"notNull": false,
|
|
116
|
+
"autoincrement": false,
|
|
117
|
+
"default": null,
|
|
118
|
+
"generated": null,
|
|
119
|
+
"entityType": "columns"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"table": "jobs",
|
|
123
|
+
"name": "requestedBase",
|
|
124
|
+
"type": "text",
|
|
125
|
+
"notNull": false,
|
|
126
|
+
"autoincrement": false,
|
|
127
|
+
"default": null,
|
|
128
|
+
"generated": null,
|
|
129
|
+
"entityType": "columns"
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"table": "jobs",
|
|
133
|
+
"name": "branchName",
|
|
134
|
+
"type": "text",
|
|
135
|
+
"notNull": true,
|
|
136
|
+
"autoincrement": false,
|
|
137
|
+
"default": null,
|
|
138
|
+
"generated": null,
|
|
139
|
+
"entityType": "columns"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"table": "jobs",
|
|
143
|
+
"name": "worktreePath",
|
|
144
|
+
"type": "text",
|
|
145
|
+
"notNull": true,
|
|
146
|
+
"autoincrement": false,
|
|
147
|
+
"default": null,
|
|
148
|
+
"generated": null,
|
|
149
|
+
"entityType": "columns"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"table": "jobs",
|
|
153
|
+
"name": "harness",
|
|
154
|
+
"type": "text",
|
|
155
|
+
"notNull": false,
|
|
156
|
+
"autoincrement": false,
|
|
157
|
+
"default": null,
|
|
158
|
+
"generated": null,
|
|
159
|
+
"entityType": "columns"
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"table": "jobs",
|
|
163
|
+
"name": "model",
|
|
164
|
+
"type": "text",
|
|
165
|
+
"notNull": false,
|
|
166
|
+
"autoincrement": false,
|
|
167
|
+
"default": null,
|
|
168
|
+
"generated": null,
|
|
169
|
+
"entityType": "columns"
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"table": "jobs",
|
|
173
|
+
"name": "effort",
|
|
174
|
+
"type": "text",
|
|
175
|
+
"notNull": false,
|
|
176
|
+
"autoincrement": false,
|
|
177
|
+
"default": null,
|
|
178
|
+
"generated": null,
|
|
179
|
+
"entityType": "columns"
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
"table": "jobs",
|
|
183
|
+
"name": "state",
|
|
184
|
+
"type": "text",
|
|
185
|
+
"notNull": true,
|
|
186
|
+
"autoincrement": false,
|
|
187
|
+
"default": "'queued'",
|
|
188
|
+
"generated": null,
|
|
189
|
+
"entityType": "columns"
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"table": "jobs",
|
|
193
|
+
"name": "blockedReason",
|
|
194
|
+
"type": "text",
|
|
195
|
+
"notNull": false,
|
|
196
|
+
"autoincrement": false,
|
|
197
|
+
"default": null,
|
|
198
|
+
"generated": null,
|
|
199
|
+
"entityType": "columns"
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"table": "jobs",
|
|
203
|
+
"name": "prUrl",
|
|
204
|
+
"type": "text",
|
|
205
|
+
"notNull": false,
|
|
206
|
+
"autoincrement": false,
|
|
207
|
+
"default": null,
|
|
208
|
+
"generated": null,
|
|
209
|
+
"entityType": "columns"
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"table": "jobs",
|
|
213
|
+
"name": "sessionId",
|
|
214
|
+
"type": "text",
|
|
215
|
+
"notNull": false,
|
|
216
|
+
"autoincrement": false,
|
|
217
|
+
"default": null,
|
|
218
|
+
"generated": null,
|
|
219
|
+
"entityType": "columns"
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
"table": "jobs",
|
|
223
|
+
"name": "createdAt",
|
|
224
|
+
"type": "integer",
|
|
225
|
+
"notNull": true,
|
|
226
|
+
"autoincrement": false,
|
|
227
|
+
"default": "(unixepoch('subsec') * 1000)",
|
|
228
|
+
"generated": null,
|
|
229
|
+
"entityType": "columns"
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
"table": "jobs",
|
|
233
|
+
"name": "updatedAt",
|
|
234
|
+
"type": "integer",
|
|
235
|
+
"notNull": true,
|
|
236
|
+
"autoincrement": false,
|
|
237
|
+
"default": "(unixepoch('subsec') * 1000)",
|
|
238
|
+
"generated": null,
|
|
239
|
+
"entityType": "columns"
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
"table": "runs",
|
|
243
|
+
"name": "id",
|
|
244
|
+
"type": "integer",
|
|
245
|
+
"notNull": false,
|
|
246
|
+
"autoincrement": true,
|
|
247
|
+
"default": null,
|
|
248
|
+
"generated": null,
|
|
249
|
+
"entityType": "columns"
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
"table": "runs",
|
|
253
|
+
"name": "jobKey",
|
|
254
|
+
"type": "integer",
|
|
255
|
+
"notNull": true,
|
|
256
|
+
"autoincrement": false,
|
|
257
|
+
"default": null,
|
|
258
|
+
"generated": null,
|
|
259
|
+
"entityType": "columns"
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
"table": "runs",
|
|
263
|
+
"name": "harness",
|
|
264
|
+
"type": "text",
|
|
265
|
+
"notNull": true,
|
|
266
|
+
"autoincrement": false,
|
|
267
|
+
"default": null,
|
|
268
|
+
"generated": null,
|
|
269
|
+
"entityType": "columns"
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
"table": "runs",
|
|
273
|
+
"name": "model",
|
|
274
|
+
"type": "text",
|
|
275
|
+
"notNull": false,
|
|
276
|
+
"autoincrement": false,
|
|
277
|
+
"default": null,
|
|
278
|
+
"generated": null,
|
|
279
|
+
"entityType": "columns"
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
"table": "runs",
|
|
283
|
+
"name": "effort",
|
|
284
|
+
"type": "text",
|
|
285
|
+
"notNull": true,
|
|
286
|
+
"autoincrement": false,
|
|
287
|
+
"default": null,
|
|
288
|
+
"generated": null,
|
|
289
|
+
"entityType": "columns"
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
"table": "runs",
|
|
293
|
+
"name": "sessionId",
|
|
294
|
+
"type": "text",
|
|
295
|
+
"notNull": false,
|
|
296
|
+
"autoincrement": false,
|
|
297
|
+
"default": null,
|
|
298
|
+
"generated": null,
|
|
299
|
+
"entityType": "columns"
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
"table": "runs",
|
|
303
|
+
"name": "recovery",
|
|
304
|
+
"type": "integer",
|
|
305
|
+
"notNull": true,
|
|
306
|
+
"autoincrement": false,
|
|
307
|
+
"default": "false",
|
|
308
|
+
"generated": null,
|
|
309
|
+
"entityType": "columns"
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
"table": "runs",
|
|
313
|
+
"name": "startedAt",
|
|
314
|
+
"type": "integer",
|
|
315
|
+
"notNull": true,
|
|
316
|
+
"autoincrement": false,
|
|
317
|
+
"default": "(unixepoch('subsec') * 1000)",
|
|
318
|
+
"generated": null,
|
|
319
|
+
"entityType": "columns"
|
|
320
|
+
},
|
|
321
|
+
{
|
|
322
|
+
"table": "runs",
|
|
323
|
+
"name": "endedAt",
|
|
324
|
+
"type": "integer",
|
|
325
|
+
"notNull": false,
|
|
326
|
+
"autoincrement": false,
|
|
327
|
+
"default": null,
|
|
328
|
+
"generated": null,
|
|
329
|
+
"entityType": "columns"
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
"table": "runs",
|
|
333
|
+
"name": "result",
|
|
334
|
+
"type": "text",
|
|
335
|
+
"notNull": false,
|
|
336
|
+
"autoincrement": false,
|
|
337
|
+
"default": null,
|
|
338
|
+
"generated": null,
|
|
339
|
+
"entityType": "columns"
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
"table": "job_dependencies",
|
|
343
|
+
"name": "job_dependencies_depends_on",
|
|
344
|
+
"columns": [
|
|
345
|
+
{
|
|
346
|
+
"value": "dependsOnKey",
|
|
347
|
+
"isExpression": false
|
|
348
|
+
}
|
|
349
|
+
],
|
|
350
|
+
"isUnique": false,
|
|
351
|
+
"where": null,
|
|
352
|
+
"origin": "manual",
|
|
353
|
+
"entityType": "indexes"
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
"table": "jobs",
|
|
357
|
+
"name": "jobs_repo_id",
|
|
358
|
+
"columns": [
|
|
359
|
+
{
|
|
360
|
+
"value": "repoPath",
|
|
361
|
+
"isExpression": false
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
"value": "id",
|
|
365
|
+
"isExpression": false
|
|
366
|
+
}
|
|
367
|
+
],
|
|
368
|
+
"isUnique": true,
|
|
369
|
+
"where": null,
|
|
370
|
+
"origin": "manual",
|
|
371
|
+
"entityType": "indexes"
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
"table": "runs",
|
|
375
|
+
"name": "runs_job",
|
|
376
|
+
"columns": [
|
|
377
|
+
{
|
|
378
|
+
"value": "jobKey",
|
|
379
|
+
"isExpression": false
|
|
380
|
+
}
|
|
381
|
+
],
|
|
382
|
+
"isUnique": false,
|
|
383
|
+
"where": null,
|
|
384
|
+
"origin": "manual",
|
|
385
|
+
"entityType": "indexes"
|
|
386
|
+
},
|
|
387
|
+
{
|
|
388
|
+
"table": "job_dependencies",
|
|
389
|
+
"name": "fk_job_dependencies_jobKey_jobs_key_fk",
|
|
390
|
+
"columns": [
|
|
391
|
+
"jobKey"
|
|
392
|
+
],
|
|
393
|
+
"tableTo": "jobs",
|
|
394
|
+
"columnsTo": [
|
|
395
|
+
"key"
|
|
396
|
+
],
|
|
397
|
+
"onUpdate": "NO ACTION",
|
|
398
|
+
"onDelete": "CASCADE",
|
|
399
|
+
"nameExplicit": false,
|
|
400
|
+
"entityType": "fks"
|
|
401
|
+
},
|
|
402
|
+
{
|
|
403
|
+
"table": "job_dependencies",
|
|
404
|
+
"name": "fk_job_dependencies_dependsOnKey_jobs_key_fk",
|
|
405
|
+
"columns": [
|
|
406
|
+
"dependsOnKey"
|
|
407
|
+
],
|
|
408
|
+
"tableTo": "jobs",
|
|
409
|
+
"columnsTo": [
|
|
410
|
+
"key"
|
|
411
|
+
],
|
|
412
|
+
"onUpdate": "NO ACTION",
|
|
413
|
+
"onDelete": "CASCADE",
|
|
414
|
+
"nameExplicit": false,
|
|
415
|
+
"entityType": "fks"
|
|
416
|
+
},
|
|
417
|
+
{
|
|
418
|
+
"table": "runs",
|
|
419
|
+
"name": "fk_runs_jobKey_jobs_key_fk",
|
|
420
|
+
"columns": [
|
|
421
|
+
"jobKey"
|
|
422
|
+
],
|
|
423
|
+
"tableTo": "jobs",
|
|
424
|
+
"columnsTo": [
|
|
425
|
+
"key"
|
|
426
|
+
],
|
|
427
|
+
"onUpdate": "NO ACTION",
|
|
428
|
+
"onDelete": "CASCADE",
|
|
429
|
+
"nameExplicit": false,
|
|
430
|
+
"entityType": "fks"
|
|
431
|
+
},
|
|
432
|
+
{
|
|
433
|
+
"table": "job_dependencies",
|
|
434
|
+
"name": "job_dependencies_pk",
|
|
435
|
+
"columns": [
|
|
436
|
+
"jobKey",
|
|
437
|
+
"dependsOnKey"
|
|
438
|
+
],
|
|
439
|
+
"nameExplicit": false,
|
|
440
|
+
"entityType": "pks"
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
"table": "jobs",
|
|
444
|
+
"name": "jobs_pk",
|
|
445
|
+
"columns": [
|
|
446
|
+
"key"
|
|
447
|
+
],
|
|
448
|
+
"nameExplicit": false,
|
|
449
|
+
"entityType": "pks"
|
|
450
|
+
},
|
|
451
|
+
{
|
|
452
|
+
"table": "runs",
|
|
453
|
+
"name": "runs_pk",
|
|
454
|
+
"columns": [
|
|
455
|
+
"id"
|
|
456
|
+
],
|
|
457
|
+
"nameExplicit": false,
|
|
458
|
+
"entityType": "pks"
|
|
459
|
+
}
|
|
460
|
+
],
|
|
461
|
+
"renames": []
|
|
462
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: autonomous-feature-pr
|
|
3
|
+
description: Implement a small feature from a request, a markdown design doc, or a Notion page, review it with verifier and code-simplifier agents, commit it, and open a draft pull request.
|
|
4
|
+
disable-model-invocation: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Autonomous feature PR
|
|
8
|
+
|
|
9
|
+
## Set up
|
|
10
|
+
|
|
11
|
+
1. Read repository guidance such as `AGENTS.md`, and inspect Git status, remotes, and available tooling.
|
|
12
|
+
2. If the user passed a design doc, read it before planning. See "Design docs" below.
|
|
13
|
+
3. Write acceptance criteria for the requested outcome. Include the required reviews and a draft pull request as the final deliverable. Keep working until the draft PR is open or a human decision or missing access blocks the work.
|
|
14
|
+
4. Follow repository conventions for implementation, validation, branch naming, and commit messages. Do not add scope that the requested feature doesn't need.
|
|
15
|
+
|
|
16
|
+
## Design docs
|
|
17
|
+
|
|
18
|
+
The user may pass a design doc with the request, either as a path to a markdown file or as a Notion page link.
|
|
19
|
+
|
|
20
|
+
- For a markdown file, read the whole file. If it links to other files the spec depends on, read those too.
|
|
21
|
+
- For a Notion page, fetch it with the Notion MCP tools such as `notion-fetch`, including child or linked pages the spec depends on. If the Notion tools are unavailable or the page can't be opened, stop and tell the user. Do not guess at its contents.
|
|
22
|
+
|
|
23
|
+
The doc is the spec. Derive acceptance criteria from its requirements and build only what it scopes for this change. If the user's message disagrees with the doc, follow the message. If repository guidance disagrees with the doc, follow the repository guidance and note the conflict in the PR description. If the doc leaves open a decision that changes the implementation, ask the user instead of building on a guess.
|
|
24
|
+
|
|
25
|
+
Do not edit the design doc, and do not commit it unless it was already tracked or the user asks. Reference it in the PR description.
|
|
26
|
+
|
|
27
|
+
## Implement and review
|
|
28
|
+
|
|
29
|
+
Work through the acceptance criteria in small, coherent changes. Run the repository's required checks and any focused checks that cover the changed behavior. Review the diff for accidental files, secrets, unrelated edits, and compatibility with local instructions.
|
|
30
|
+
|
|
31
|
+
Before every commit, run both independent reviews on the same diff:
|
|
32
|
+
|
|
33
|
+
- Have a `verifier` agent independently check the changed behavior against the request, the design doc if there is one, and the acceptance criteria. Give it the relevant diff and evidence, and ask it to report `CONFIRMED`, `REFUTED`, or `INCONCLUSIVE` with concrete findings.
|
|
34
|
+
- Have a `code-simplifier` agent inspect the changed code for unnecessary complexity and safe simplifications.
|
|
35
|
+
|
|
36
|
+
Then act on the results:
|
|
37
|
+
|
|
38
|
+
- If the verifier reports `REFUTED` and fixing its valid findings changes logic, make the fixes, run the repository checks, and repeat both reviews on the updated diff.
|
|
39
|
+
- If the verifier reports `REFUTED` but the valid findings need no logic change, such as missing evidence or a misread requirement, address them and rerun only the verifier.
|
|
40
|
+
- If the verifier reports `INCONCLUSIVE`, gather the missing evidence and rerun only the verifier.
|
|
41
|
+
- Once the verifier reports `CONFIRMED`, apply the useful simplifier suggestions and run the repository checks. Do not rerun either review for simplifier edits. Skip any suggestion that would change behavior. If the checks fail after a simplifier edit, revert that edit instead of reworking it.
|
|
42
|
+
|
|
43
|
+
Do not commit while the latest verifier result is `REFUTED` or `INCONCLUSIVE`.
|
|
44
|
+
|
|
45
|
+
If either agent role is unavailable, do not claim its review happened. Use an available mechanism to obtain that review. If none exists, stop before committing and tell the user which required review is unavailable.
|
|
46
|
+
|
|
47
|
+
Commit only after checks pass, the verifier has confirmed the logic being committed, and the simplifier has reviewed it. Use the repository's commit conventions. For multiple commits, repeat both reviews before each commit.
|
|
48
|
+
|
|
49
|
+
## Publish
|
|
50
|
+
|
|
51
|
+
Push the feature branch and open a draft PR against the same default branch used as the base, for example with `gh pr create --draft`. Write a concise title and a description that states the behavior, implementation, and checks run. Do not mark the PR ready for review, merge, deploy, or change repository settings.
|
|
52
|
+
|
|
53
|
+
Confirm the PR exists, is a draft, and capture its URL. Report the work as done only after the branch is pushed, the draft PR is open, and you have its URL. If permissions, credentials, CI requirements, or remote state prevent publication, keep the local work and commits, and report the exact blocker and next action.
|
package/package.json
CHANGED
|
@@ -1,6 +1,57 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "openmill",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "A local software factory that turns design docs into pull requests.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"agents",
|
|
7
|
+
"automation",
|
|
8
|
+
"claude",
|
|
9
|
+
"design-docs",
|
|
10
|
+
"pull-requests"
|
|
11
|
+
],
|
|
12
|
+
"homepage": "https://github.com/ZachMcM/openmill#readme",
|
|
13
|
+
"bugs": "https://github.com/ZachMcM/openmill/issues",
|
|
14
|
+
"license": "MIT",
|
|
15
|
+
"repository": {
|
|
16
|
+
"type": "git",
|
|
17
|
+
"url": "git+https://github.com/ZachMcM/openmill.git",
|
|
18
|
+
"directory": "apps/cli"
|
|
19
|
+
},
|
|
20
|
+
"bin": {
|
|
21
|
+
"openmill": "./dist/bin/openmill.mjs"
|
|
22
|
+
},
|
|
23
|
+
"files": [
|
|
24
|
+
"dist"
|
|
25
|
+
],
|
|
26
|
+
"type": "module",
|
|
27
|
+
"dependencies": {
|
|
28
|
+
"@anthropic-ai/claude-agent-sdk": "^0.3.325",
|
|
29
|
+
"@clack/prompts": "^1.9.0",
|
|
30
|
+
"@hono/node-server": "^2.1.8",
|
|
31
|
+
"commander": "^15.1.0",
|
|
32
|
+
"drizzle-orm": "1.0.0-rc.5",
|
|
33
|
+
"hono": "^4.13.18",
|
|
34
|
+
"ora": "^10.0.0",
|
|
35
|
+
"picocolors": "^1.1.1",
|
|
36
|
+
"yaml": "^2.9.1",
|
|
37
|
+
"zod": "^4.6.7"
|
|
38
|
+
},
|
|
39
|
+
"devDependencies": {
|
|
40
|
+
"@openmill/assets": "0.0.0",
|
|
41
|
+
"@openmill/core": "0.0.0",
|
|
42
|
+
"@openmill/server": "0.0.0",
|
|
43
|
+
"@types/node": "^26.6.6",
|
|
44
|
+
"tsdown": "^0.23.7",
|
|
45
|
+
"typescript": "^7.0.2",
|
|
46
|
+
"vitest": "^5.1.0"
|
|
47
|
+
},
|
|
48
|
+
"engines": {
|
|
49
|
+
"node": ">=24"
|
|
50
|
+
},
|
|
51
|
+
"scripts": {
|
|
52
|
+
"build": "tsdown",
|
|
53
|
+
"dev": "node --watch src/index.ts",
|
|
54
|
+
"typecheck": "tsc",
|
|
55
|
+
"test": "vitest run --passWithNoTests"
|
|
56
|
+
}
|
|
6
57
|
}
|