@kitman-sh/software-engineering 0.12.0-rc.2 → 0.12.0-rc.4
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/agents/reviewer.md +8 -0
- package/dist/bundle.js +243 -110
- package/dist/declarations.json +407 -6
- package/package.json +3 -3
- package/src/build.ts +26 -6
- package/src/hillclimb.ts +5 -2
- package/src/plan.ts +128 -91
- package/src/review.ts +99 -11
- package/src/shepherd-output.ts +7 -2
- package/src/shepherd.ts +84 -13
package/dist/declarations.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
{
|
|
4
4
|
"id": "build",
|
|
5
5
|
"title": "Build",
|
|
6
|
-
"version": "2.
|
|
6
|
+
"version": "2.8.0",
|
|
7
7
|
"input": {
|
|
8
8
|
"type": "object",
|
|
9
9
|
"properties": {
|
|
@@ -205,6 +205,68 @@
|
|
|
205
205
|
}
|
|
206
206
|
]
|
|
207
207
|
},
|
|
208
|
+
"reviewed": {
|
|
209
|
+
"anyOf": [
|
|
210
|
+
{
|
|
211
|
+
"type": "string"
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
"type": "null"
|
|
215
|
+
}
|
|
216
|
+
]
|
|
217
|
+
},
|
|
218
|
+
"earlier": {
|
|
219
|
+
"anyOf": [
|
|
220
|
+
{
|
|
221
|
+
"type": "array",
|
|
222
|
+
"items": {
|
|
223
|
+
"type": "object",
|
|
224
|
+
"properties": {
|
|
225
|
+
"id": {
|
|
226
|
+
"type": "string"
|
|
227
|
+
},
|
|
228
|
+
"severity": {
|
|
229
|
+
"type": "string",
|
|
230
|
+
"enum": [
|
|
231
|
+
"blocker",
|
|
232
|
+
"major",
|
|
233
|
+
"minor"
|
|
234
|
+
]
|
|
235
|
+
},
|
|
236
|
+
"file": {
|
|
237
|
+
"type": "string"
|
|
238
|
+
},
|
|
239
|
+
"line": {
|
|
240
|
+
"type": "integer",
|
|
241
|
+
"minimum": -9007199254740991,
|
|
242
|
+
"maximum": 9007199254740991
|
|
243
|
+
},
|
|
244
|
+
"detail": {
|
|
245
|
+
"type": "string"
|
|
246
|
+
},
|
|
247
|
+
"seats": {
|
|
248
|
+
"type": "array",
|
|
249
|
+
"items": {
|
|
250
|
+
"type": "string"
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
},
|
|
254
|
+
"required": [
|
|
255
|
+
"id",
|
|
256
|
+
"severity",
|
|
257
|
+
"file",
|
|
258
|
+
"line",
|
|
259
|
+
"detail",
|
|
260
|
+
"seats"
|
|
261
|
+
],
|
|
262
|
+
"additionalProperties": true
|
|
263
|
+
}
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
"type": "null"
|
|
267
|
+
}
|
|
268
|
+
]
|
|
269
|
+
},
|
|
208
270
|
"deliveryTarget": {
|
|
209
271
|
"anyOf": [
|
|
210
272
|
{
|
|
@@ -400,6 +462,58 @@
|
|
|
400
462
|
}
|
|
401
463
|
]
|
|
402
464
|
},
|
|
465
|
+
"findings": {
|
|
466
|
+
"anyOf": [
|
|
467
|
+
{
|
|
468
|
+
"type": "array",
|
|
469
|
+
"items": {
|
|
470
|
+
"type": "object",
|
|
471
|
+
"properties": {
|
|
472
|
+
"id": {
|
|
473
|
+
"type": "string"
|
|
474
|
+
},
|
|
475
|
+
"severity": {
|
|
476
|
+
"type": "string",
|
|
477
|
+
"enum": [
|
|
478
|
+
"blocker",
|
|
479
|
+
"major",
|
|
480
|
+
"minor"
|
|
481
|
+
]
|
|
482
|
+
},
|
|
483
|
+
"file": {
|
|
484
|
+
"type": "string"
|
|
485
|
+
},
|
|
486
|
+
"line": {
|
|
487
|
+
"type": "integer",
|
|
488
|
+
"minimum": -9007199254740991,
|
|
489
|
+
"maximum": 9007199254740991
|
|
490
|
+
},
|
|
491
|
+
"detail": {
|
|
492
|
+
"type": "string"
|
|
493
|
+
},
|
|
494
|
+
"seats": {
|
|
495
|
+
"type": "array",
|
|
496
|
+
"items": {
|
|
497
|
+
"type": "string"
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
},
|
|
501
|
+
"required": [
|
|
502
|
+
"id",
|
|
503
|
+
"severity",
|
|
504
|
+
"file",
|
|
505
|
+
"line",
|
|
506
|
+
"detail",
|
|
507
|
+
"seats"
|
|
508
|
+
],
|
|
509
|
+
"additionalProperties": true
|
|
510
|
+
}
|
|
511
|
+
},
|
|
512
|
+
{
|
|
513
|
+
"type": "null"
|
|
514
|
+
}
|
|
515
|
+
]
|
|
516
|
+
},
|
|
403
517
|
"approval": {
|
|
404
518
|
"anyOf": [
|
|
405
519
|
{
|
|
@@ -472,6 +586,32 @@
|
|
|
472
586
|
"minimum": -9007199254740991,
|
|
473
587
|
"maximum": 9007199254740991
|
|
474
588
|
},
|
|
589
|
+
"reused": {
|
|
590
|
+
"anyOf": [
|
|
591
|
+
{
|
|
592
|
+
"type": "array",
|
|
593
|
+
"items": {
|
|
594
|
+
"type": "object",
|
|
595
|
+
"properties": {
|
|
596
|
+
"review": {
|
|
597
|
+
"type": "string"
|
|
598
|
+
},
|
|
599
|
+
"head": {
|
|
600
|
+
"type": "string"
|
|
601
|
+
}
|
|
602
|
+
},
|
|
603
|
+
"required": [
|
|
604
|
+
"review",
|
|
605
|
+
"head"
|
|
606
|
+
],
|
|
607
|
+
"additionalProperties": true
|
|
608
|
+
}
|
|
609
|
+
},
|
|
610
|
+
{
|
|
611
|
+
"type": "null"
|
|
612
|
+
}
|
|
613
|
+
]
|
|
614
|
+
},
|
|
475
615
|
"unsettled": {
|
|
476
616
|
"anyOf": [
|
|
477
617
|
{
|
|
@@ -638,6 +778,68 @@
|
|
|
638
778
|
"type": "null"
|
|
639
779
|
}
|
|
640
780
|
]
|
|
781
|
+
},
|
|
782
|
+
"reviewed": {
|
|
783
|
+
"anyOf": [
|
|
784
|
+
{
|
|
785
|
+
"type": "string"
|
|
786
|
+
},
|
|
787
|
+
{
|
|
788
|
+
"type": "null"
|
|
789
|
+
}
|
|
790
|
+
]
|
|
791
|
+
},
|
|
792
|
+
"earlier": {
|
|
793
|
+
"anyOf": [
|
|
794
|
+
{
|
|
795
|
+
"type": "array",
|
|
796
|
+
"items": {
|
|
797
|
+
"type": "object",
|
|
798
|
+
"properties": {
|
|
799
|
+
"id": {
|
|
800
|
+
"type": "string"
|
|
801
|
+
},
|
|
802
|
+
"severity": {
|
|
803
|
+
"type": "string",
|
|
804
|
+
"enum": [
|
|
805
|
+
"blocker",
|
|
806
|
+
"major",
|
|
807
|
+
"minor"
|
|
808
|
+
]
|
|
809
|
+
},
|
|
810
|
+
"file": {
|
|
811
|
+
"type": "string"
|
|
812
|
+
},
|
|
813
|
+
"line": {
|
|
814
|
+
"type": "integer",
|
|
815
|
+
"minimum": -9007199254740991,
|
|
816
|
+
"maximum": 9007199254740991
|
|
817
|
+
},
|
|
818
|
+
"detail": {
|
|
819
|
+
"type": "string"
|
|
820
|
+
},
|
|
821
|
+
"seats": {
|
|
822
|
+
"type": "array",
|
|
823
|
+
"items": {
|
|
824
|
+
"type": "string"
|
|
825
|
+
}
|
|
826
|
+
}
|
|
827
|
+
},
|
|
828
|
+
"required": [
|
|
829
|
+
"id",
|
|
830
|
+
"severity",
|
|
831
|
+
"file",
|
|
832
|
+
"line",
|
|
833
|
+
"detail",
|
|
834
|
+
"seats"
|
|
835
|
+
],
|
|
836
|
+
"additionalProperties": true
|
|
837
|
+
}
|
|
838
|
+
},
|
|
839
|
+
{
|
|
840
|
+
"type": "null"
|
|
841
|
+
}
|
|
842
|
+
]
|
|
641
843
|
}
|
|
642
844
|
},
|
|
643
845
|
"required": [
|
|
@@ -1040,7 +1242,7 @@
|
|
|
1040
1242
|
{
|
|
1041
1243
|
"id": "hillclimb",
|
|
1042
1244
|
"title": "Hillclimb",
|
|
1043
|
-
"version": "1.
|
|
1245
|
+
"version": "1.4.0",
|
|
1044
1246
|
"input": {
|
|
1045
1247
|
"type": "object",
|
|
1046
1248
|
"properties": {
|
|
@@ -3106,6 +3308,32 @@
|
|
|
3106
3308
|
"minimum": -9007199254740991,
|
|
3107
3309
|
"maximum": 9007199254740991
|
|
3108
3310
|
},
|
|
3311
|
+
"reused": {
|
|
3312
|
+
"anyOf": [
|
|
3313
|
+
{
|
|
3314
|
+
"type": "array",
|
|
3315
|
+
"items": {
|
|
3316
|
+
"type": "object",
|
|
3317
|
+
"properties": {
|
|
3318
|
+
"review": {
|
|
3319
|
+
"type": "string"
|
|
3320
|
+
},
|
|
3321
|
+
"head": {
|
|
3322
|
+
"type": "string"
|
|
3323
|
+
}
|
|
3324
|
+
},
|
|
3325
|
+
"required": [
|
|
3326
|
+
"review",
|
|
3327
|
+
"head"
|
|
3328
|
+
],
|
|
3329
|
+
"additionalProperties": true
|
|
3330
|
+
}
|
|
3331
|
+
},
|
|
3332
|
+
{
|
|
3333
|
+
"type": "null"
|
|
3334
|
+
}
|
|
3335
|
+
]
|
|
3336
|
+
},
|
|
3109
3337
|
"unsettled": {
|
|
3110
3338
|
"anyOf": [
|
|
3111
3339
|
{
|
|
@@ -3272,6 +3500,68 @@
|
|
|
3272
3500
|
"type": "null"
|
|
3273
3501
|
}
|
|
3274
3502
|
]
|
|
3503
|
+
},
|
|
3504
|
+
"reviewed": {
|
|
3505
|
+
"anyOf": [
|
|
3506
|
+
{
|
|
3507
|
+
"type": "string"
|
|
3508
|
+
},
|
|
3509
|
+
{
|
|
3510
|
+
"type": "null"
|
|
3511
|
+
}
|
|
3512
|
+
]
|
|
3513
|
+
},
|
|
3514
|
+
"earlier": {
|
|
3515
|
+
"anyOf": [
|
|
3516
|
+
{
|
|
3517
|
+
"type": "array",
|
|
3518
|
+
"items": {
|
|
3519
|
+
"type": "object",
|
|
3520
|
+
"properties": {
|
|
3521
|
+
"id": {
|
|
3522
|
+
"type": "string"
|
|
3523
|
+
},
|
|
3524
|
+
"severity": {
|
|
3525
|
+
"type": "string",
|
|
3526
|
+
"enum": [
|
|
3527
|
+
"blocker",
|
|
3528
|
+
"major",
|
|
3529
|
+
"minor"
|
|
3530
|
+
]
|
|
3531
|
+
},
|
|
3532
|
+
"file": {
|
|
3533
|
+
"type": "string"
|
|
3534
|
+
},
|
|
3535
|
+
"line": {
|
|
3536
|
+
"type": "integer",
|
|
3537
|
+
"minimum": -9007199254740991,
|
|
3538
|
+
"maximum": 9007199254740991
|
|
3539
|
+
},
|
|
3540
|
+
"detail": {
|
|
3541
|
+
"type": "string"
|
|
3542
|
+
},
|
|
3543
|
+
"seats": {
|
|
3544
|
+
"type": "array",
|
|
3545
|
+
"items": {
|
|
3546
|
+
"type": "string"
|
|
3547
|
+
}
|
|
3548
|
+
}
|
|
3549
|
+
},
|
|
3550
|
+
"required": [
|
|
3551
|
+
"id",
|
|
3552
|
+
"severity",
|
|
3553
|
+
"file",
|
|
3554
|
+
"line",
|
|
3555
|
+
"detail",
|
|
3556
|
+
"seats"
|
|
3557
|
+
],
|
|
3558
|
+
"additionalProperties": true
|
|
3559
|
+
}
|
|
3560
|
+
},
|
|
3561
|
+
{
|
|
3562
|
+
"type": "null"
|
|
3563
|
+
}
|
|
3564
|
+
]
|
|
3275
3565
|
}
|
|
3276
3566
|
},
|
|
3277
3567
|
"required": [
|
|
@@ -3377,7 +3667,7 @@
|
|
|
3377
3667
|
{
|
|
3378
3668
|
"id": "review",
|
|
3379
3669
|
"title": "Review",
|
|
3380
|
-
"version": "3.
|
|
3670
|
+
"version": "3.9.0",
|
|
3381
3671
|
"input": {
|
|
3382
3672
|
"type": "object",
|
|
3383
3673
|
"properties": {
|
|
@@ -3554,6 +3844,16 @@
|
|
|
3554
3844
|
}
|
|
3555
3845
|
]
|
|
3556
3846
|
},
|
|
3847
|
+
"reviewed": {
|
|
3848
|
+
"anyOf": [
|
|
3849
|
+
{
|
|
3850
|
+
"type": "string"
|
|
3851
|
+
},
|
|
3852
|
+
{
|
|
3853
|
+
"type": "null"
|
|
3854
|
+
}
|
|
3855
|
+
]
|
|
3856
|
+
},
|
|
3557
3857
|
"failing": {
|
|
3558
3858
|
"anyOf": [
|
|
3559
3859
|
{
|
|
@@ -3887,6 +4187,19 @@
|
|
|
3887
4187
|
}
|
|
3888
4188
|
]
|
|
3889
4189
|
},
|
|
4190
|
+
"failing": {
|
|
4191
|
+
"anyOf": [
|
|
4192
|
+
{
|
|
4193
|
+
"type": "array",
|
|
4194
|
+
"items": {
|
|
4195
|
+
"type": "string"
|
|
4196
|
+
}
|
|
4197
|
+
},
|
|
4198
|
+
{
|
|
4199
|
+
"type": "null"
|
|
4200
|
+
}
|
|
4201
|
+
]
|
|
4202
|
+
},
|
|
3890
4203
|
"approval": {
|
|
3891
4204
|
"anyOf": [
|
|
3892
4205
|
{
|
|
@@ -4048,7 +4361,7 @@
|
|
|
4048
4361
|
{
|
|
4049
4362
|
"id": "shepherd",
|
|
4050
4363
|
"title": "Shepherd",
|
|
4051
|
-
"version": "1.
|
|
4364
|
+
"version": "1.9.0",
|
|
4052
4365
|
"input": {
|
|
4053
4366
|
"type": "object",
|
|
4054
4367
|
"properties": {
|
|
@@ -4372,6 +4685,32 @@
|
|
|
4372
4685
|
"minimum": -9007199254740991,
|
|
4373
4686
|
"maximum": 9007199254740991
|
|
4374
4687
|
},
|
|
4688
|
+
"reused": {
|
|
4689
|
+
"anyOf": [
|
|
4690
|
+
{
|
|
4691
|
+
"type": "array",
|
|
4692
|
+
"items": {
|
|
4693
|
+
"type": "object",
|
|
4694
|
+
"properties": {
|
|
4695
|
+
"review": {
|
|
4696
|
+
"type": "string"
|
|
4697
|
+
},
|
|
4698
|
+
"head": {
|
|
4699
|
+
"type": "string"
|
|
4700
|
+
}
|
|
4701
|
+
},
|
|
4702
|
+
"required": [
|
|
4703
|
+
"review",
|
|
4704
|
+
"head"
|
|
4705
|
+
],
|
|
4706
|
+
"additionalProperties": true
|
|
4707
|
+
}
|
|
4708
|
+
},
|
|
4709
|
+
{
|
|
4710
|
+
"type": "null"
|
|
4711
|
+
}
|
|
4712
|
+
]
|
|
4713
|
+
},
|
|
4375
4714
|
"unsettled": {
|
|
4376
4715
|
"anyOf": [
|
|
4377
4716
|
{
|
|
@@ -4538,6 +4877,68 @@
|
|
|
4538
4877
|
"type": "null"
|
|
4539
4878
|
}
|
|
4540
4879
|
]
|
|
4880
|
+
},
|
|
4881
|
+
"reviewed": {
|
|
4882
|
+
"anyOf": [
|
|
4883
|
+
{
|
|
4884
|
+
"type": "string"
|
|
4885
|
+
},
|
|
4886
|
+
{
|
|
4887
|
+
"type": "null"
|
|
4888
|
+
}
|
|
4889
|
+
]
|
|
4890
|
+
},
|
|
4891
|
+
"earlier": {
|
|
4892
|
+
"anyOf": [
|
|
4893
|
+
{
|
|
4894
|
+
"type": "array",
|
|
4895
|
+
"items": {
|
|
4896
|
+
"type": "object",
|
|
4897
|
+
"properties": {
|
|
4898
|
+
"id": {
|
|
4899
|
+
"type": "string"
|
|
4900
|
+
},
|
|
4901
|
+
"severity": {
|
|
4902
|
+
"type": "string",
|
|
4903
|
+
"enum": [
|
|
4904
|
+
"blocker",
|
|
4905
|
+
"major",
|
|
4906
|
+
"minor"
|
|
4907
|
+
]
|
|
4908
|
+
},
|
|
4909
|
+
"file": {
|
|
4910
|
+
"type": "string"
|
|
4911
|
+
},
|
|
4912
|
+
"line": {
|
|
4913
|
+
"type": "integer",
|
|
4914
|
+
"minimum": -9007199254740991,
|
|
4915
|
+
"maximum": 9007199254740991
|
|
4916
|
+
},
|
|
4917
|
+
"detail": {
|
|
4918
|
+
"type": "string"
|
|
4919
|
+
},
|
|
4920
|
+
"seats": {
|
|
4921
|
+
"type": "array",
|
|
4922
|
+
"items": {
|
|
4923
|
+
"type": "string"
|
|
4924
|
+
}
|
|
4925
|
+
}
|
|
4926
|
+
},
|
|
4927
|
+
"required": [
|
|
4928
|
+
"id",
|
|
4929
|
+
"severity",
|
|
4930
|
+
"file",
|
|
4931
|
+
"line",
|
|
4932
|
+
"detail",
|
|
4933
|
+
"seats"
|
|
4934
|
+
],
|
|
4935
|
+
"additionalProperties": true
|
|
4936
|
+
}
|
|
4937
|
+
},
|
|
4938
|
+
{
|
|
4939
|
+
"type": "null"
|
|
4940
|
+
}
|
|
4941
|
+
]
|
|
4541
4942
|
}
|
|
4542
4943
|
},
|
|
4543
4944
|
"required": [
|
|
@@ -5012,7 +5413,7 @@
|
|
|
5012
5413
|
]
|
|
5013
5414
|
},
|
|
5014
5415
|
"reviewer": {
|
|
5015
|
-
"instructions": "You are a reviewer. You report; you do not fix.\n\n## Scope\n\n- Review only the change: the diff between the base and the head you are given, and the code around it that the change touches. Read the change and that code before judging it.\n- Judge it against the standards this repository documents and against what the Task or plan asked for, including its Acceptance Criteria. When there is no spec, say so rather than inventing one.\n\n## Skills\n\nYour seat's review skill, when it has one, is listed. If the brief says it is not installed, follow the review prompt, which holds the fallback.\n\n## Findings\n\n- Report only what you can defend with a concrete failure or a named rule. No style opinions this codebase does not hold, and no speculation.\n- Give every finding a file and a line.\n- Severity is exactly one of `blocker` (wrong, unsafe, or breaks a contract), `major` (will bite us) or `minor` (worth fixing, not worth blocking). Only `minor` lets a change ship without another fix.\n- Missing required scope is a `blocker`, however large the work: a spec the change does not meet is not a follow-up.\n- One finding per problem.\n- Finding nothing is a real answer: submit an empty list of findings.\n\n## Rebuttals\n\n- Judge each rebuttal on its merits, not on who wrote it.\n- Raise a rebutted finding again only if you can answer the implementer's reason, and answer it when you do. If you cannot, leave it: a disputed blocker or major finding goes to the human, and raising it again only costs a round.\n\n## Branch\n\n- Do not edit files, commit, push or merge. The Run owns the branch.\n- Never `git stash`, and flag any `git stash` a change adds to a script, a workflow or the docs: the stash stack is shared with every other worktree of the repository. To look at a clean tree, make a throwaway checkout with `git worktree add` and remove it after.\n\n## Code comments\n\nCode should explain itself. For each comment the change adds or alters, check that it is necessary and uses the fewest words possible. Group unnecessary or verbose comments into one `minor` finding with examples; leave untouched comments alone.\n\n## Output\n\nSubmit your Output with the Kitman MCP `submit_output` tool, in the shape the brief's Output schema gives. A test result you report is a claim; Kitman's evidence gate runs the approved verifications itself.",
|
|
5416
|
+
"instructions": "You are a reviewer. You report; you do not fix.\n\n## Scope\n\n- Review only the change: the diff between the base and the head you are given, and the code around it that the change touches. Read the change and that code before judging it.\n- Judge it against the standards this repository documents and against what the Task or plan asked for, including its Acceptance Criteria. When there is no spec, say so rather than inventing one.\n\n## Skills\n\nYour seat's review skill, when it has one, is listed. If the brief says it is not installed, follow the review prompt, which holds the fallback.\n\n## One pass\n\n- Review exhaustively the first time. Each round a finding waits for costs a fix round.\n- For each rule or check the change adds or alters, trace it through every caller and every input it can get before you report: each kind of actor, each visibility, Team and Project scope, and ids the caller gives.\n- Report every finding of every severity in that one pass, grouped by the rule it breaks. Do not stop at the first serious finding in an area, and hold none back for a later round.\n- For each finding, name the sibling cases of its rule you checked and found fine, so the next round does not explore them again.\n- In a later round, after a fix, review the fix and the code it touches. Raise a new problem outside that only if it is a `blocker`; report anything less there as a `minor`, which does not block landing.\n\n## Findings\n\n- Report only what you can defend with a concrete failure or a named rule. No style opinions this codebase does not hold, and no speculation.\n- Give every finding a file and a line.\n- Severity is exactly one of `blocker` (wrong, unsafe, or breaks a contract), `major` (will bite us) or `minor` (worth fixing, not worth blocking). Only `minor` lets a change ship without another fix.\n- Missing required scope is a `blocker`, however large the work: a spec the change does not meet is not a follow-up.\n- One finding per problem.\n- Finding nothing is a real answer: submit an empty list of findings.\n\n## Rebuttals\n\n- Judge each rebuttal on its merits, not on who wrote it.\n- Raise a rebutted finding again only if you can answer the implementer's reason, and answer it when you do. If you cannot, leave it: a disputed blocker or major finding goes to the human, and raising it again only costs a round.\n\n## Branch\n\n- Do not edit files, commit, push or merge. The Run owns the branch.\n- Never `git stash`, and flag any `git stash` a change adds to a script, a workflow or the docs: the stash stack is shared with every other worktree of the repository. To look at a clean tree, make a throwaway checkout with `git worktree add` and remove it after.\n\n## Code comments\n\nCode should explain itself. For each comment the change adds or alters, check that it is necessary and uses the fewest words possible. Group unnecessary or verbose comments into one `minor` finding with examples; leave untouched comments alone.\n\n## Output\n\nSubmit your Output with the Kitman MCP `submit_output` tool, in the shape the brief's Output schema gives. A test result you report is a claim; Kitman's evidence gate runs the approved verifications itself.",
|
|
5016
5417
|
"harness": "pi",
|
|
5017
5418
|
"model": "openai-codex/gpt-6.1-sol",
|
|
5018
5419
|
"effort": "high",
|
|
@@ -5121,7 +5522,7 @@
|
|
|
5121
5522
|
"carried": [
|
|
5122
5523
|
{
|
|
5123
5524
|
"name": "@kitman-sh/software-engineering",
|
|
5124
|
-
"version": "0.12.0-rc.
|
|
5525
|
+
"version": "0.12.0-rc.4",
|
|
5125
5526
|
"setup": "2a237548a69b0cd53ec3be7f687cfa8c2128335b3a655d34e185f2abce6a3c37",
|
|
5126
5527
|
"loops": [
|
|
5127
5528
|
"build",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kitman-sh/software-engineering",
|
|
3
|
-
"version": "0.12.0-rc.
|
|
3
|
+
"version": "0.12.0-rc.4",
|
|
4
4
|
"description": "Everything for building software: Loops, their Agents, the skills they use and the Ponytail plugin.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -17,12 +17,12 @@
|
|
|
17
17
|
"tsconfig.json"
|
|
18
18
|
],
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@kitman-sh/sdk": "0.12.0-rc.
|
|
20
|
+
"@kitman-sh/sdk": "0.12.0-rc.4",
|
|
21
21
|
"effect": "^4.1.2"
|
|
22
22
|
},
|
|
23
23
|
"kitman": {
|
|
24
24
|
"bundle": "dist/bundle.js",
|
|
25
|
-
"digest": "
|
|
25
|
+
"digest": "22fd6ddd85daa2c42871d9399d0f8f626f2aa5d719c946f852a99e541a9b9ba3",
|
|
26
26
|
"protocolVersion": 5,
|
|
27
27
|
"declarations": "dist/declarations.json",
|
|
28
28
|
"setup": {
|
package/src/build.ts
CHANGED
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
verify,
|
|
29
29
|
writeBack,
|
|
30
30
|
type Disputed,
|
|
31
|
-
|
|
31
|
+
MergedFinding,
|
|
32
32
|
type RallyDecision,
|
|
33
33
|
type ScopeJudgement,
|
|
34
34
|
type SettledRound,
|
|
@@ -79,6 +79,9 @@ export const BuildInput = Schema.Struct({
|
|
|
79
79
|
* before it fails with them; 1 when left out.
|
|
80
80
|
*/
|
|
81
81
|
maxRebuilds: Schema.optional(Schema.Int.check(Schema.isGreaterThanOrEqualTo(0))),
|
|
82
|
+
/** The head an earlier review read, whose `earlier` findings this Build fixes: its first review reviews the fix. */
|
|
83
|
+
reviewed: Schema.optional(Schema.String),
|
|
84
|
+
earlier: Schema.optional(Schema.Array(MergedFinding)),
|
|
82
85
|
...DeliveryFields
|
|
83
86
|
})
|
|
84
87
|
|
|
@@ -147,6 +150,8 @@ export const BuildOutput = Schema.Struct({
|
|
|
147
150
|
criteria: Schema.Array(CriterionAnswer),
|
|
148
151
|
/** Why each head test verify never ran is unverified; absent when it ran them all. */
|
|
149
152
|
notRun: Schema.optional(Schema.Array(Schema.String)),
|
|
153
|
+
/** The last review's code findings still open or disputed, which a Build fixing them takes as `earlier`. */
|
|
154
|
+
findings: Schema.optional(Schema.Array(MergedFinding)),
|
|
150
155
|
/** Whether the last Review's approval was recorded, or why not, when nothing was left unsettled. */
|
|
151
156
|
approval: Schema.optional(ApproveChangeRequestResult),
|
|
152
157
|
/** What Shepherd did with the ChangeRequest, when the Build was told to land it. */
|
|
@@ -284,6 +289,7 @@ type Round = {
|
|
|
284
289
|
readonly claims: readonly string[]
|
|
285
290
|
readonly scope: ScopeJudgement | undefined
|
|
286
291
|
readonly conflicts: readonly string[]
|
|
292
|
+
readonly earlier: readonly MergedFinding[]
|
|
287
293
|
}
|
|
288
294
|
|
|
289
295
|
/**
|
|
@@ -296,12 +302,14 @@ const rally = (input: {
|
|
|
296
302
|
readonly outcome: LoopOutcome | undefined
|
|
297
303
|
readonly claims: readonly string[]
|
|
298
304
|
readonly suggested: readonly (typeof SuggestedCheck.Type)[]
|
|
305
|
+
readonly reviewed: string | undefined
|
|
306
|
+
readonly earlier: readonly MergedFinding[]
|
|
299
307
|
}) =>
|
|
300
308
|
Effect.gen(function* () {
|
|
301
309
|
const claims = [...input.claims]
|
|
302
310
|
const conflicts: string[] = []
|
|
303
311
|
let rebuttals: readonly Rebuttal[] = []
|
|
304
|
-
let earlier
|
|
312
|
+
let earlier = input.earlier
|
|
305
313
|
let previous: readonly string[] | undefined
|
|
306
314
|
let last: Pick<Round, 'head' | 'settled' | 'scope'> | undefined
|
|
307
315
|
const shown = new Set<string>()
|
|
@@ -338,7 +346,8 @@ const rally = (input: {
|
|
|
338
346
|
head,
|
|
339
347
|
decision: { stop: true, reason: 'findings_returned', unsettled: blockingIds(last.settled) },
|
|
340
348
|
claims,
|
|
341
|
-
conflicts
|
|
349
|
+
conflicts,
|
|
350
|
+
earlier
|
|
342
351
|
} satisfies Round
|
|
343
352
|
|
|
344
353
|
const failing = brokenChecks(head).map(check => check.name)
|
|
@@ -349,6 +358,11 @@ const rally = (input: {
|
|
|
349
358
|
head: head.revision,
|
|
350
359
|
...(rebuttals.length === 0 ? undefined : { rebuttals }),
|
|
351
360
|
...(earlier.length === 0 ? undefined : { earlier }),
|
|
361
|
+
...(last === undefined
|
|
362
|
+
? input.reviewed === undefined
|
|
363
|
+
? undefined
|
|
364
|
+
: { reviewed: input.reviewed }
|
|
365
|
+
: { reviewed: last.head.revision }),
|
|
352
366
|
...(input.outcome === undefined ? undefined : { outcome: input.outcome }),
|
|
353
367
|
...(failing.length === 0 ? undefined : { failing }),
|
|
354
368
|
...(notRun.length === 0 ? undefined : { notRun }),
|
|
@@ -379,7 +393,7 @@ const rally = (input: {
|
|
|
379
393
|
})
|
|
380
394
|
|
|
381
395
|
if (decision.stop && (!unseen || round >= input.maxRounds))
|
|
382
|
-
return { round, head, settled, decision, claims, scope: reviewed.scope, conflicts } satisfies Round
|
|
396
|
+
return { round, head, settled, decision, claims, scope: reviewed.scope, conflicts, earlier } satisfies Round
|
|
383
397
|
|
|
384
398
|
for (const finding of checks) shown.add(finding.detail)
|
|
385
399
|
|
|
@@ -419,7 +433,7 @@ const rally = (input: {
|
|
|
419
433
|
*/
|
|
420
434
|
const build = defineLoop({
|
|
421
435
|
id: 'build',
|
|
422
|
-
version: '2.
|
|
436
|
+
version: '2.8.0',
|
|
423
437
|
title: 'Build',
|
|
424
438
|
input: BuildInput,
|
|
425
439
|
output: BuildOutput,
|
|
@@ -507,7 +521,9 @@ const build = defineLoop({
|
|
|
507
521
|
target,
|
|
508
522
|
outcome,
|
|
509
523
|
claims: [...implemented.claims, ...criteria.map(answer => `Criterion ${answerLine(answer)}`)],
|
|
510
|
-
suggested: implemented.checks ?? []
|
|
524
|
+
suggested: implemented.checks ?? [],
|
|
525
|
+
reviewed: input.reviewed,
|
|
526
|
+
earlier: input.earlier ?? []
|
|
511
527
|
})
|
|
512
528
|
|
|
513
529
|
const verdict = evidenceGate({
|
|
@@ -583,6 +599,7 @@ const build = defineLoop({
|
|
|
583
599
|
stopped: last.decision.reason,
|
|
584
600
|
criteria,
|
|
585
601
|
...(lastNotRun.length === 0 ? undefined : { notRun: lastNotRun }),
|
|
602
|
+
...(last.earlier.length === 0 ? undefined : { findings: last.earlier }),
|
|
586
603
|
...(approval === undefined ? undefined : { approval })
|
|
587
604
|
}
|
|
588
605
|
|
|
@@ -653,6 +670,9 @@ const build = defineLoop({
|
|
|
653
670
|
...(input.maxRounds === undefined ? undefined : { maxRounds: input.maxRounds }),
|
|
654
671
|
changeRequestId: opened.id,
|
|
655
672
|
land: false,
|
|
673
|
+
// Its first review reviews the fix of what the last review read.
|
|
674
|
+
reviewed: settledAs.revision,
|
|
675
|
+
...(settledAs.findings === undefined ? undefined : { earlier: settledAs.findings }),
|
|
656
676
|
...ownDeliveryTarget(input)
|
|
657
677
|
},
|
|
658
678
|
{ constraints: standing.map(standingConstraint) }
|