@kitman-sh/software-engineering 0.13.7 → 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.
@@ -3,7 +3,7 @@
3
3
  {
4
4
  "id": "build",
5
5
  "title": "Build",
6
- "version": "2.10.0",
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": [
@@ -1298,7 +1415,7 @@
1298
1415
  {
1299
1416
  "id": "hillclimb",
1300
1417
  "title": "Hillclimb",
1301
- "version": "1.4.0",
1418
+ "version": "1.5.0",
1302
1419
  "input": {
1303
1420
  "type": "object",
1304
1421
  "properties": {
@@ -3648,6 +3765,45 @@
3648
3765
  "type": "null"
3649
3766
  }
3650
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
+ ]
3651
3807
  }
3652
3808
  },
3653
3809
  "required": [
@@ -3753,7 +3909,7 @@
3753
3909
  {
3754
3910
  "id": "review",
3755
3911
  "title": "Review",
3756
- "version": "3.9.0",
3912
+ "version": "3.10.0",
3757
3913
  "input": {
3758
3914
  "type": "object",
3759
3915
  "properties": {
@@ -3946,6 +4102,45 @@
3946
4102
  }
3947
4103
  ]
3948
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
+ },
3949
4144
  "failing": {
3950
4145
  "anyOf": [
3951
4146
  {
@@ -4465,7 +4660,7 @@
4465
4660
  {
4466
4661
  "id": "shepherd",
4467
4662
  "title": "Shepherd",
4468
- "version": "1.9.0",
4663
+ "version": "1.10.0",
4469
4664
  "input": {
4470
4665
  "type": "object",
4471
4666
  "properties": {
@@ -5049,6 +5244,45 @@
5049
5244
  "type": "null"
5050
5245
  }
5051
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
+ ]
5052
5286
  }
5053
5287
  },
5054
5288
  "required": [
@@ -5634,7 +5868,7 @@
5634
5868
  "carried": [
5635
5869
  {
5636
5870
  "name": "@kitman-sh/software-engineering",
5637
- "version": "0.13.7",
5871
+ "version": "0.13.8",
5638
5872
  "setup": "2a237548a69b0cd53ec3be7f687cfa8c2128335b3a655d34e185f2abce6a3c37",
5639
5873
  "loops": [
5640
5874
  "build",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kitman-sh/software-engineering",
3
- "version": "0.13.7",
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.7",
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": "4fb614facf6d2f22392e1be3142c31eee106ccf165a3c0fbfe9f71d41cd08766",
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: ScopeJudgement | undefined
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.10.0',
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.4.0',
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: blocking,
393
- reviewed: fixedFrom
392
+ earlier: reviewed.findings,
393
+ reviewed: fixedFrom,
394
+ ...(reviewed.scope === undefined ? undefined : { scope: reviewed.scope })
394
395
  })
395
396
  }
396
397