@kitman-sh/software-engineering 0.13.6 → 0.13.8
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/planner.md +2 -2
- package/dist/bundle.js +177 -64
- package/dist/declarations.json +289 -7
- package/kitman.config.ts +4 -2
- package/package.json +3 -3
- package/src/build.ts +15 -4
- package/src/hillclimb.ts +4 -3
- package/src/plan.ts +11 -2
- package/src/review.ts +175 -63
- package/src/reviewed-scope.ts +8 -0
- package/src/shepherd-output.ts +4 -1
- package/src/shepherd.ts +37 -10
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.11.0",
|
|
7
7
|
"input": {
|
|
8
8
|
"type": "object",
|
|
9
9
|
"properties": {
|
|
@@ -273,6 +273,45 @@
|
|
|
273
273
|
}
|
|
274
274
|
]
|
|
275
275
|
},
|
|
276
|
+
"scope": {
|
|
277
|
+
"anyOf": [
|
|
278
|
+
{
|
|
279
|
+
"type": "object",
|
|
280
|
+
"properties": {
|
|
281
|
+
"met": {
|
|
282
|
+
"type": "boolean"
|
|
283
|
+
},
|
|
284
|
+
"unmet": {
|
|
285
|
+
"type": "array",
|
|
286
|
+
"items": {
|
|
287
|
+
"type": "string"
|
|
288
|
+
}
|
|
289
|
+
},
|
|
290
|
+
"reported": {
|
|
291
|
+
"anyOf": [
|
|
292
|
+
{
|
|
293
|
+
"type": "array",
|
|
294
|
+
"items": {
|
|
295
|
+
"type": "string"
|
|
296
|
+
}
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
"type": "null"
|
|
300
|
+
}
|
|
301
|
+
]
|
|
302
|
+
}
|
|
303
|
+
},
|
|
304
|
+
"required": [
|
|
305
|
+
"met",
|
|
306
|
+
"unmet"
|
|
307
|
+
],
|
|
308
|
+
"additionalProperties": true
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
"type": "null"
|
|
312
|
+
}
|
|
313
|
+
]
|
|
314
|
+
},
|
|
276
315
|
"deliveryTarget": {
|
|
277
316
|
"anyOf": [
|
|
278
317
|
{
|
|
@@ -526,6 +565,45 @@
|
|
|
526
565
|
}
|
|
527
566
|
]
|
|
528
567
|
},
|
|
568
|
+
"scope": {
|
|
569
|
+
"anyOf": [
|
|
570
|
+
{
|
|
571
|
+
"type": "object",
|
|
572
|
+
"properties": {
|
|
573
|
+
"met": {
|
|
574
|
+
"type": "boolean"
|
|
575
|
+
},
|
|
576
|
+
"unmet": {
|
|
577
|
+
"type": "array",
|
|
578
|
+
"items": {
|
|
579
|
+
"type": "string"
|
|
580
|
+
}
|
|
581
|
+
},
|
|
582
|
+
"reported": {
|
|
583
|
+
"anyOf": [
|
|
584
|
+
{
|
|
585
|
+
"type": "array",
|
|
586
|
+
"items": {
|
|
587
|
+
"type": "string"
|
|
588
|
+
}
|
|
589
|
+
},
|
|
590
|
+
{
|
|
591
|
+
"type": "null"
|
|
592
|
+
}
|
|
593
|
+
]
|
|
594
|
+
}
|
|
595
|
+
},
|
|
596
|
+
"required": [
|
|
597
|
+
"met",
|
|
598
|
+
"unmet"
|
|
599
|
+
],
|
|
600
|
+
"additionalProperties": true
|
|
601
|
+
},
|
|
602
|
+
{
|
|
603
|
+
"type": "null"
|
|
604
|
+
}
|
|
605
|
+
]
|
|
606
|
+
},
|
|
529
607
|
"blockingCounts": {
|
|
530
608
|
"anyOf": [
|
|
531
609
|
{
|
|
@@ -873,6 +951,45 @@
|
|
|
873
951
|
"type": "null"
|
|
874
952
|
}
|
|
875
953
|
]
|
|
954
|
+
},
|
|
955
|
+
"scope": {
|
|
956
|
+
"anyOf": [
|
|
957
|
+
{
|
|
958
|
+
"type": "object",
|
|
959
|
+
"properties": {
|
|
960
|
+
"met": {
|
|
961
|
+
"type": "boolean"
|
|
962
|
+
},
|
|
963
|
+
"unmet": {
|
|
964
|
+
"type": "array",
|
|
965
|
+
"items": {
|
|
966
|
+
"type": "string"
|
|
967
|
+
}
|
|
968
|
+
},
|
|
969
|
+
"reported": {
|
|
970
|
+
"anyOf": [
|
|
971
|
+
{
|
|
972
|
+
"type": "array",
|
|
973
|
+
"items": {
|
|
974
|
+
"type": "string"
|
|
975
|
+
}
|
|
976
|
+
},
|
|
977
|
+
{
|
|
978
|
+
"type": "null"
|
|
979
|
+
}
|
|
980
|
+
]
|
|
981
|
+
}
|
|
982
|
+
},
|
|
983
|
+
"required": [
|
|
984
|
+
"met",
|
|
985
|
+
"unmet"
|
|
986
|
+
],
|
|
987
|
+
"additionalProperties": true
|
|
988
|
+
},
|
|
989
|
+
{
|
|
990
|
+
"type": "null"
|
|
991
|
+
}
|
|
992
|
+
]
|
|
876
993
|
}
|
|
877
994
|
},
|
|
878
995
|
"required": [
|
|
@@ -1172,6 +1289,29 @@
|
|
|
1172
1289
|
"type": "string"
|
|
1173
1290
|
}
|
|
1174
1291
|
},
|
|
1292
|
+
"promise": {
|
|
1293
|
+
"anyOf": [
|
|
1294
|
+
{
|
|
1295
|
+
"type": "string"
|
|
1296
|
+
},
|
|
1297
|
+
{
|
|
1298
|
+
"type": "null"
|
|
1299
|
+
}
|
|
1300
|
+
]
|
|
1301
|
+
},
|
|
1302
|
+
"outOfScope": {
|
|
1303
|
+
"anyOf": [
|
|
1304
|
+
{
|
|
1305
|
+
"type": "array",
|
|
1306
|
+
"items": {
|
|
1307
|
+
"type": "string"
|
|
1308
|
+
}
|
|
1309
|
+
},
|
|
1310
|
+
{
|
|
1311
|
+
"type": "null"
|
|
1312
|
+
}
|
|
1313
|
+
]
|
|
1314
|
+
},
|
|
1175
1315
|
"repoBindingId": {
|
|
1176
1316
|
"anyOf": [
|
|
1177
1317
|
{
|
|
@@ -1275,7 +1415,7 @@
|
|
|
1275
1415
|
{
|
|
1276
1416
|
"id": "hillclimb",
|
|
1277
1417
|
"title": "Hillclimb",
|
|
1278
|
-
"version": "1.
|
|
1418
|
+
"version": "1.5.0",
|
|
1279
1419
|
"input": {
|
|
1280
1420
|
"type": "object",
|
|
1281
1421
|
"properties": {
|
|
@@ -2717,6 +2857,29 @@
|
|
|
2717
2857
|
"type": "string"
|
|
2718
2858
|
}
|
|
2719
2859
|
},
|
|
2860
|
+
"promise": {
|
|
2861
|
+
"anyOf": [
|
|
2862
|
+
{
|
|
2863
|
+
"type": "string"
|
|
2864
|
+
},
|
|
2865
|
+
{
|
|
2866
|
+
"type": "null"
|
|
2867
|
+
}
|
|
2868
|
+
]
|
|
2869
|
+
},
|
|
2870
|
+
"outOfScope": {
|
|
2871
|
+
"anyOf": [
|
|
2872
|
+
{
|
|
2873
|
+
"type": "array",
|
|
2874
|
+
"items": {
|
|
2875
|
+
"type": "string"
|
|
2876
|
+
}
|
|
2877
|
+
},
|
|
2878
|
+
{
|
|
2879
|
+
"type": "null"
|
|
2880
|
+
}
|
|
2881
|
+
]
|
|
2882
|
+
},
|
|
2720
2883
|
"repoBindingId": {
|
|
2721
2884
|
"anyOf": [
|
|
2722
2885
|
{
|
|
@@ -3602,6 +3765,45 @@
|
|
|
3602
3765
|
"type": "null"
|
|
3603
3766
|
}
|
|
3604
3767
|
]
|
|
3768
|
+
},
|
|
3769
|
+
"scope": {
|
|
3770
|
+
"anyOf": [
|
|
3771
|
+
{
|
|
3772
|
+
"type": "object",
|
|
3773
|
+
"properties": {
|
|
3774
|
+
"met": {
|
|
3775
|
+
"type": "boolean"
|
|
3776
|
+
},
|
|
3777
|
+
"unmet": {
|
|
3778
|
+
"type": "array",
|
|
3779
|
+
"items": {
|
|
3780
|
+
"type": "string"
|
|
3781
|
+
}
|
|
3782
|
+
},
|
|
3783
|
+
"reported": {
|
|
3784
|
+
"anyOf": [
|
|
3785
|
+
{
|
|
3786
|
+
"type": "array",
|
|
3787
|
+
"items": {
|
|
3788
|
+
"type": "string"
|
|
3789
|
+
}
|
|
3790
|
+
},
|
|
3791
|
+
{
|
|
3792
|
+
"type": "null"
|
|
3793
|
+
}
|
|
3794
|
+
]
|
|
3795
|
+
}
|
|
3796
|
+
},
|
|
3797
|
+
"required": [
|
|
3798
|
+
"met",
|
|
3799
|
+
"unmet"
|
|
3800
|
+
],
|
|
3801
|
+
"additionalProperties": true
|
|
3802
|
+
},
|
|
3803
|
+
{
|
|
3804
|
+
"type": "null"
|
|
3805
|
+
}
|
|
3806
|
+
]
|
|
3605
3807
|
}
|
|
3606
3808
|
},
|
|
3607
3809
|
"required": [
|
|
@@ -3707,7 +3909,7 @@
|
|
|
3707
3909
|
{
|
|
3708
3910
|
"id": "review",
|
|
3709
3911
|
"title": "Review",
|
|
3710
|
-
"version": "3.
|
|
3912
|
+
"version": "3.10.0",
|
|
3711
3913
|
"input": {
|
|
3712
3914
|
"type": "object",
|
|
3713
3915
|
"properties": {
|
|
@@ -3900,6 +4102,45 @@
|
|
|
3900
4102
|
}
|
|
3901
4103
|
]
|
|
3902
4104
|
},
|
|
4105
|
+
"scope": {
|
|
4106
|
+
"anyOf": [
|
|
4107
|
+
{
|
|
4108
|
+
"type": "object",
|
|
4109
|
+
"properties": {
|
|
4110
|
+
"met": {
|
|
4111
|
+
"type": "boolean"
|
|
4112
|
+
},
|
|
4113
|
+
"unmet": {
|
|
4114
|
+
"type": "array",
|
|
4115
|
+
"items": {
|
|
4116
|
+
"type": "string"
|
|
4117
|
+
}
|
|
4118
|
+
},
|
|
4119
|
+
"reported": {
|
|
4120
|
+
"anyOf": [
|
|
4121
|
+
{
|
|
4122
|
+
"type": "array",
|
|
4123
|
+
"items": {
|
|
4124
|
+
"type": "string"
|
|
4125
|
+
}
|
|
4126
|
+
},
|
|
4127
|
+
{
|
|
4128
|
+
"type": "null"
|
|
4129
|
+
}
|
|
4130
|
+
]
|
|
4131
|
+
}
|
|
4132
|
+
},
|
|
4133
|
+
"required": [
|
|
4134
|
+
"met",
|
|
4135
|
+
"unmet"
|
|
4136
|
+
],
|
|
4137
|
+
"additionalProperties": true
|
|
4138
|
+
},
|
|
4139
|
+
{
|
|
4140
|
+
"type": "null"
|
|
4141
|
+
}
|
|
4142
|
+
]
|
|
4143
|
+
},
|
|
3903
4144
|
"failing": {
|
|
3904
4145
|
"anyOf": [
|
|
3905
4146
|
{
|
|
@@ -4419,7 +4660,7 @@
|
|
|
4419
4660
|
{
|
|
4420
4661
|
"id": "shepherd",
|
|
4421
4662
|
"title": "Shepherd",
|
|
4422
|
-
"version": "1.
|
|
4663
|
+
"version": "1.10.0",
|
|
4423
4664
|
"input": {
|
|
4424
4665
|
"type": "object",
|
|
4425
4666
|
"properties": {
|
|
@@ -5003,6 +5244,45 @@
|
|
|
5003
5244
|
"type": "null"
|
|
5004
5245
|
}
|
|
5005
5246
|
]
|
|
5247
|
+
},
|
|
5248
|
+
"scope": {
|
|
5249
|
+
"anyOf": [
|
|
5250
|
+
{
|
|
5251
|
+
"type": "object",
|
|
5252
|
+
"properties": {
|
|
5253
|
+
"met": {
|
|
5254
|
+
"type": "boolean"
|
|
5255
|
+
},
|
|
5256
|
+
"unmet": {
|
|
5257
|
+
"type": "array",
|
|
5258
|
+
"items": {
|
|
5259
|
+
"type": "string"
|
|
5260
|
+
}
|
|
5261
|
+
},
|
|
5262
|
+
"reported": {
|
|
5263
|
+
"anyOf": [
|
|
5264
|
+
{
|
|
5265
|
+
"type": "array",
|
|
5266
|
+
"items": {
|
|
5267
|
+
"type": "string"
|
|
5268
|
+
}
|
|
5269
|
+
},
|
|
5270
|
+
{
|
|
5271
|
+
"type": "null"
|
|
5272
|
+
}
|
|
5273
|
+
]
|
|
5274
|
+
}
|
|
5275
|
+
},
|
|
5276
|
+
"required": [
|
|
5277
|
+
"met",
|
|
5278
|
+
"unmet"
|
|
5279
|
+
],
|
|
5280
|
+
"additionalProperties": true
|
|
5281
|
+
},
|
|
5282
|
+
{
|
|
5283
|
+
"type": "null"
|
|
5284
|
+
}
|
|
5285
|
+
]
|
|
5006
5286
|
}
|
|
5007
5287
|
},
|
|
5008
5288
|
"required": [
|
|
@@ -5485,7 +5765,7 @@
|
|
|
5485
5765
|
{
|
|
5486
5766
|
"harness": "claude",
|
|
5487
5767
|
"model": "opus",
|
|
5488
|
-
"effort": "
|
|
5768
|
+
"effort": "medium"
|
|
5489
5769
|
}
|
|
5490
5770
|
]
|
|
5491
5771
|
},
|
|
@@ -5503,7 +5783,9 @@
|
|
|
5503
5783
|
]
|
|
5504
5784
|
},
|
|
5505
5785
|
"planner": {
|
|
5506
|
-
"instructions": "You are a planner. You turn what someone asked for into a spec and tickets an implementer can build without asking again.\n\n## Questions\n\n- When your Step runs grill-with-docs, interview the person with the Kitman MCP `ask` tool, never in your reply: walk the decisions one at a time, and ask only when the answer changes what gets built. A clear goal needs no interview and no approval of a summary.\n- Ask one question at a time, and give options when the choices are clear, each with its trade-off in a short `description`.\n- Recommend an answer with `recommended` and say why in `recommendationReason`. Keep the prompt to the context and the decision. Only a question that purely asks for information you cannot guess, such as a secret's name, sets `informationOnly` instead, saying why.\n- Respect decisions already made; do not ask for them again.\n- Push back when an approach has a concrete downside: name it, propose an alternative, then accept the decision.\n\n## Tickets\n\n- Write vertical slices: each ticket lands on its own as one ChangeRequest and is verifiable on its own
|
|
5786
|
+
"instructions": "You are a planner. You turn what someone asked for into a spec and tickets an implementer can build without asking again.\n\n## Questions\n\n- When your Step runs grill-with-docs, interview the person with the Kitman MCP `ask` tool, never in your reply: walk the decisions one at a time, and ask only when the answer changes what gets built. A clear goal needs no interview and no approval of a summary.\n- Ask one question at a time, and give options when the choices are clear, each with its trade-off in a short `description`.\n- Recommend an answer with `recommended` and say why in `recommendationReason`. Keep the prompt to the context and the decision. Only a question that purely asks for information you cannot guess, such as a secret's name, sets `informationOnly` instead, saying why.\n- Respect decisions already made; do not ask for them again.\n- Push back when an approach has a concrete downside: name it, propose an alternative, then accept the decision.\n\n## Tickets\n\n- Before you write tickets, load `skills({ name: 'scope-tasks' })` from the Kitman MCP and scope each ticket as it says.\n- Write vertical slices: each ticket lands on its own as one ChangeRequest and is verifiable on its own.\n- Give every ticket Acceptance Criteria that a reviewer can check against the change.\n- Give the plan an explicit out-of-scope list, so what was left out is a decision and not an omission.\n- Check the documentation when an API detail affects the plan.\n\n## Boundaries\n\n- Write no code; write only ADR and glossary changes. Your Output is the plan, and Kitman stores it.\n- Never `git stash`: the stash stack is shared with every other worktree of the repository.\n- An implementer that asks you a question gets one answer. Never give an answer and a wider version of it elsewhere: a requirement it was not told about is one it will not build.\n\n## Output\n\nSubmit your Output with the Kitman MCP `submit_output` tool, in the shape the brief's Output schema gives.",
|
|
5787
|
+
"harness": "claude",
|
|
5788
|
+
"model": "claude-fable-5-2",
|
|
5507
5789
|
"effort": "high",
|
|
5508
5790
|
"fallbacks": [
|
|
5509
5791
|
{
|
|
@@ -5586,7 +5868,7 @@
|
|
|
5586
5868
|
"carried": [
|
|
5587
5869
|
{
|
|
5588
5870
|
"name": "@kitman-sh/software-engineering",
|
|
5589
|
-
"version": "0.13.
|
|
5871
|
+
"version": "0.13.8",
|
|
5590
5872
|
"setup": "2a237548a69b0cd53ec3be7f687cfa8c2128335b3a655d34e185f2abce6a3c37",
|
|
5591
5873
|
"loops": [
|
|
5592
5874
|
"build",
|
package/kitman.config.ts
CHANGED
|
@@ -26,12 +26,12 @@ const fallbacks = [{ harness: 'pi' }]
|
|
|
26
26
|
/**
|
|
27
27
|
* Reviews run on Pi, off the Claude subscription, with another model family checking Opus's work; pi's `--model` is a
|
|
28
28
|
* fuzzy pattern with no alias for the latest Sol, so it is pinned and bumped here. When Codex is out of quota, Opus at
|
|
29
|
-
*
|
|
29
|
+
* medium effort reviews instead.
|
|
30
30
|
*/
|
|
31
31
|
const reviewer = {
|
|
32
32
|
harness: 'pi',
|
|
33
33
|
model: 'openai-codex/gpt-6.2-sol',
|
|
34
|
-
fallbacks: [{ harness: 'claude', model: 'opus', effort: '
|
|
34
|
+
fallbacks: [{ harness: 'claude', model: 'opus', effort: 'medium' as const }]
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
/** Kitman's Kit for building software: its Loops, the Agents they run, and the skills those use. */
|
|
@@ -69,6 +69,8 @@ export default defineKit({
|
|
|
69
69
|
skills: ['code-review-and-quality', 'security-and-hardening']
|
|
70
70
|
},
|
|
71
71
|
planner: {
|
|
72
|
+
harness: 'claude',
|
|
73
|
+
model: 'claude-fable-5-2',
|
|
72
74
|
effort: 'high',
|
|
73
75
|
fallbacks,
|
|
74
76
|
skills: ['grilling', 'domain-modeling'],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kitman-sh/software-engineering",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.8",
|
|
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.13.
|
|
20
|
+
"@kitman-sh/sdk": "0.13.8",
|
|
21
21
|
"effect": "^4.1.2"
|
|
22
22
|
},
|
|
23
23
|
"kitman": {
|
|
24
24
|
"bundle": "dist/bundle.js",
|
|
25
|
-
"digest": "
|
|
25
|
+
"digest": "9bb178d68e39290d2e54022788cbf9da47b0e698384db38121edb0da4ff824cc",
|
|
26
26
|
"protocolVersion": 5,
|
|
27
27
|
"declarations": "dist/declarations.json",
|
|
28
28
|
"setup": {
|
package/src/build.ts
CHANGED
|
@@ -30,7 +30,6 @@ import {
|
|
|
30
30
|
type Disputed,
|
|
31
31
|
MergedFinding,
|
|
32
32
|
type RallyDecision,
|
|
33
|
-
type ScopeJudgement,
|
|
34
33
|
type SettledRound,
|
|
35
34
|
type VerifyResult
|
|
36
35
|
} from '@kitman-sh/sdk/loop'
|
|
@@ -46,6 +45,7 @@ import {
|
|
|
46
45
|
} from './change-request-body'
|
|
47
46
|
import { blockingCount, rebuildRefusal } from './convergence'
|
|
48
47
|
import review from './review'
|
|
48
|
+
import { ReviewedScope } from './reviewed-scope'
|
|
49
49
|
import shepherd from './shepherd'
|
|
50
50
|
import { ShepherdOutput } from './shepherd-output'
|
|
51
51
|
import { DeliveryFields, epicOf, ownDeliveryTarget } from './delivery'
|
|
@@ -83,6 +83,8 @@ export const BuildInput = Schema.Struct({
|
|
|
83
83
|
/** The head an earlier review read, whose `earlier` findings this Build fixes: its first review reviews the fix. */
|
|
84
84
|
reviewed: Schema.optional(Schema.String),
|
|
85
85
|
earlier: Schema.optional(Schema.Array(MergedFinding)),
|
|
86
|
+
/** That review's scope judgement, whose unmet items this Build's first review judges again. */
|
|
87
|
+
scope: Schema.optional(ReviewedScope),
|
|
86
88
|
...DeliveryFields
|
|
87
89
|
})
|
|
88
90
|
|
|
@@ -153,6 +155,8 @@ export const BuildOutput = Schema.Struct({
|
|
|
153
155
|
notRun: Schema.optional(Schema.Array(Schema.String)),
|
|
154
156
|
/** The last review's code findings still open or disputed, which a Build fixing them takes as `earlier`. */
|
|
155
157
|
findings: Schema.optional(Schema.Array(MergedFinding)),
|
|
158
|
+
/** The last review's scope judgement, which a Build fixing what it left takes as `scope`. */
|
|
159
|
+
scope: Schema.optional(ReviewedScope),
|
|
156
160
|
/** Each Review round's blocking count, first to last, which decides whether a Rebuild may follow. */
|
|
157
161
|
blockingCounts: Schema.optional(Schema.Array(Schema.Int)),
|
|
158
162
|
/** Whether the last Review's approval was recorded, or why not, when nothing was left unsettled. */
|
|
@@ -295,7 +299,7 @@ type Round = {
|
|
|
295
299
|
readonly settled: SettledRound
|
|
296
300
|
readonly decision: RallyDecision & { readonly stop: true }
|
|
297
301
|
readonly claims: readonly string[]
|
|
298
|
-
readonly scope:
|
|
302
|
+
readonly scope: typeof ReviewedScope.Type | undefined
|
|
299
303
|
readonly conflicts: readonly string[]
|
|
300
304
|
readonly earlier: readonly MergedFinding[]
|
|
301
305
|
readonly blockingCounts: readonly number[]
|
|
@@ -315,6 +319,7 @@ const rally = (input: {
|
|
|
315
319
|
readonly reproducing: typeof SuggestedCheck.Type | undefined
|
|
316
320
|
readonly reviewed: string | undefined
|
|
317
321
|
readonly earlier: readonly MergedFinding[]
|
|
322
|
+
readonly scope: typeof ReviewedScope.Type | undefined
|
|
318
323
|
}) =>
|
|
319
324
|
Effect.gen(function* () {
|
|
320
325
|
const claims = [...input.claims]
|
|
@@ -369,6 +374,8 @@ const rally = (input: {
|
|
|
369
374
|
const failing = brokenChecks(head).map(check => check.name)
|
|
370
375
|
const notRun = testsNotRunReasons(head)
|
|
371
376
|
|
|
377
|
+
const scope = last === undefined ? input.scope : last.scope
|
|
378
|
+
|
|
372
379
|
const reviewed = yield* call(`review:${round}`, review, {
|
|
373
380
|
base,
|
|
374
381
|
head: head.revision,
|
|
@@ -379,6 +386,7 @@ const rally = (input: {
|
|
|
379
386
|
? undefined
|
|
380
387
|
: { reviewed: input.reviewed }
|
|
381
388
|
: { reviewed: last.head.revision }),
|
|
389
|
+
...(scope === undefined ? undefined : { scope }),
|
|
382
390
|
...(input.outcome === undefined ? undefined : { outcome: input.outcome }),
|
|
383
391
|
...(failing.length === 0 ? undefined : { failing }),
|
|
384
392
|
...(notRun.length === 0 ? undefined : { notRun }),
|
|
@@ -462,7 +470,7 @@ const rally = (input: {
|
|
|
462
470
|
*/
|
|
463
471
|
const build = defineLoop({
|
|
464
472
|
id: 'build',
|
|
465
|
-
version: '2.
|
|
473
|
+
version: '2.11.0',
|
|
466
474
|
title: 'Build',
|
|
467
475
|
input: BuildInput,
|
|
468
476
|
output: BuildOutput,
|
|
@@ -553,7 +561,8 @@ const build = defineLoop({
|
|
|
553
561
|
suggested: implemented.checks ?? [],
|
|
554
562
|
reproducing: reproduced?.check,
|
|
555
563
|
reviewed: input.reviewed,
|
|
556
|
-
earlier: input.earlier ?? []
|
|
564
|
+
earlier: input.earlier ?? [],
|
|
565
|
+
scope: input.scope
|
|
557
566
|
})
|
|
558
567
|
|
|
559
568
|
const verdict = evidenceGate({
|
|
@@ -630,6 +639,7 @@ const build = defineLoop({
|
|
|
630
639
|
criteria,
|
|
631
640
|
...(lastNotRun.length === 0 ? undefined : { notRun: lastNotRun }),
|
|
632
641
|
...(last.earlier.length === 0 ? undefined : { findings: last.earlier }),
|
|
642
|
+
...(last.scope === undefined ? undefined : { scope: last.scope }),
|
|
633
643
|
blockingCounts: last.blockingCounts,
|
|
634
644
|
...(approval === undefined ? undefined : { approval })
|
|
635
645
|
}
|
|
@@ -711,6 +721,7 @@ const build = defineLoop({
|
|
|
711
721
|
// Its first review reviews the fix of what the last review read.
|
|
712
722
|
reviewed: settledAs.revision,
|
|
713
723
|
...(settledAs.findings === undefined ? undefined : { earlier: settledAs.findings }),
|
|
724
|
+
...(settledAs.scope === undefined ? undefined : { scope: settledAs.scope }),
|
|
714
725
|
...ownDeliveryTarget(input)
|
|
715
726
|
},
|
|
716
727
|
{ constraints: standing.map(standingConstraint) }
|
package/src/hillclimb.ts
CHANGED
|
@@ -185,7 +185,7 @@ const steadier = (plan: MeasurePlan): MeasurePlan | undefined => {
|
|
|
185
185
|
*/
|
|
186
186
|
export default defineLoop({
|
|
187
187
|
id: 'hillclimb',
|
|
188
|
-
version: '1.
|
|
188
|
+
version: '1.5.0',
|
|
189
189
|
title: 'Hillclimb',
|
|
190
190
|
outcome: 'performance',
|
|
191
191
|
input: Input,
|
|
@@ -389,8 +389,9 @@ export default defineLoop({
|
|
|
389
389
|
outcome: 'performance',
|
|
390
390
|
...notRunOf(fixed),
|
|
391
391
|
claims,
|
|
392
|
-
earlier:
|
|
393
|
-
reviewed: fixedFrom
|
|
392
|
+
earlier: reviewed.findings,
|
|
393
|
+
reviewed: fixedFrom,
|
|
394
|
+
...(reviewed.scope === undefined ? undefined : { scope: reviewed.scope })
|
|
394
395
|
})
|
|
395
396
|
}
|
|
396
397
|
|
package/src/plan.ts
CHANGED
|
@@ -150,11 +150,16 @@ const planText = (plan: Plan) =>
|
|
|
150
150
|
...plan.tickets.map(ticketText)
|
|
151
151
|
].join('\n\n')
|
|
152
152
|
|
|
153
|
+
const outOfScopeText = ({ outOfScope = [] }: PlanTicket) =>
|
|
154
|
+
outOfScope.length === 0 ? [] : ['Out of scope:', ...outOfScope.map(item => `- ${item}`)]
|
|
155
|
+
|
|
153
156
|
const ticketText = (ticket: PlanTicket) =>
|
|
154
157
|
[
|
|
155
158
|
`### ${ticket.key}: ${ticket.title}`,
|
|
156
159
|
ticket.body,
|
|
160
|
+
...(ticket.promise === undefined ? [] : [`Promise: ${ticket.promise}`]),
|
|
157
161
|
...ticket.acceptanceCriteria.map(criterion => `- [ ] ${criterion}`),
|
|
162
|
+
...outOfScopeText(ticket),
|
|
158
163
|
...(ticket.blockedBy.length === 0 ? [] : [`Blocked by: ${ticket.blockedBy.join(', ')}`])
|
|
159
164
|
].join('\n\n')
|
|
160
165
|
|
|
@@ -255,10 +260,12 @@ const storePlan = (plan: Plan, suffix: string, revision: number, answered?: Answ
|
|
|
255
260
|
kind: 'plan_tickets',
|
|
256
261
|
title: `Tickets for ${plan.title}`,
|
|
257
262
|
text: plan.tickets.map(ticketText).join('\n\n'),
|
|
258
|
-
data: plan.tickets.map(({ repoBindingId, outcome, ...ticket }) => ({
|
|
263
|
+
data: plan.tickets.map(({ repoBindingId, outcome, promise, outOfScope, ...ticket }) => ({
|
|
259
264
|
...ticket,
|
|
260
265
|
acceptanceCriteria: [...ticket.acceptanceCriteria],
|
|
261
266
|
blockedBy: [...ticket.blockedBy],
|
|
267
|
+
...(promise === undefined ? undefined : { promise }),
|
|
268
|
+
...(outOfScope === undefined ? undefined : { outOfScope: [...outOfScope] }),
|
|
262
269
|
...(repoBindingId === undefined ? undefined : { repoBindingId }),
|
|
263
270
|
...(outcome === undefined ? undefined : { outcome })
|
|
264
271
|
}))
|
|
@@ -306,9 +313,11 @@ const buildWords = (ticket: PlanTicket) =>
|
|
|
306
313
|
[
|
|
307
314
|
ticket.title,
|
|
308
315
|
ticket.body,
|
|
316
|
+
...(ticket.promise === undefined ? [] : [`Promise: ${ticket.promise}`]),
|
|
309
317
|
...(ticket.acceptanceCriteria.length === 0
|
|
310
318
|
? []
|
|
311
|
-
: ['Acceptance criteria:', ...ticket.acceptanceCriteria.map(criterion => `- ${criterion}`)])
|
|
319
|
+
: ['Acceptance criteria:', ...ticket.acceptanceCriteria.map(criterion => `- ${criterion}`)]),
|
|
320
|
+
...outOfScopeText(ticket)
|
|
312
321
|
].join('\n\n')
|
|
313
322
|
|
|
314
323
|
const settled = (ticket: PlanTicket, result: Omit<TicketResult, 'key' | 'title'>): TicketResult => ({
|