scsh 1.25.1

Scoped Skills Helper — preflight a git repo and run its scoped skills in ephemeral containers.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
# Built-in review-loop demo: implement a meaningful change to a deliberately tiny word-counting
# program, prepare its PR description, and run the first 15-route review batch ONCE. Only then
# enter decide → fix → 15 reviewers → collect. `decide`, the first loop step, can break before
# any fix when the previous batch passed; otherwise it requests changes and another batch runs.
# Cursor Auto does the coding; Opus 4.8, Codex Terra, and Cursor Auto independently run each of the
# conventions, justification, reviewability, sanity, and testing profiles. The bar: 15/15 routes
# succeed, every grade is excellent or good, excellent outnumbers good, and the mean is at least 4.5.
# Four Cursor reviews run together; the fifth waits for the first so the demo does not
# depend on the Cursor CLI accepting five simultaneous interactive sessions.
description: "Run a Cursor-coded word-count change through a 15-route review loop until it meets the approval bar."
steps:
  implement:
    agent:
      harness: cursor
      model: auto
    prompt: |
      This repository contains a deliberately small word-counting CLI. Implement this feature
      request without adding third-party dependencies:

      Generalize the program from counting individual words to counting adjacent word groups.
      Add `--group-size N` (default 1) and `--limit N` (default 10). Word groups must never cross
      an input line boundary. Normalize case, treat punctuation as separators while retaining
      apostrophes inside words, and order results deterministically by descending count then
      alphabetically. Reject non-positive option values with a clear CLI error. Preserve the
      existing output format for the default options.

      Rewrite the implementation as needed, update or add focused tests and user documentation,
      run the tests, and commit the complete feature with the message
      `Add grouped word counts.` Put a one-line summary in the `summary` result
      field.
    output:
      summary:
        type: string
    commits: true
  prepare:
    needs: implement
    agent:
      harness: cursor
      model: auto
    prompt: |
      Read this repository's code and its git history. Write `PR-DESCRIPTION.md` at the
      repository root describing the change set as if opening a pull request. Use exactly these
      level-two headings, in this order, with no other headings: `## Summary`,
      `## What This Changes`, and `## Implementation Details`. Put the big picture and concise
      bullets first, then explanatory prose, then notable implementation details. Commit only
      that file with the message `Prepare PR description.` Never create any additional
      PR-description section for verification commands, expected results, or checklists;
      that evidence belongs in committed tests, README, or another committed verification
      document. Put a one-line summary in the `summary` result field.
    output:
      summary:
        type: string
    commits: true
  initial_conventions_opus:
    needs: prepare
    agent:
      harness: claude
      model: claude-opus-4-8
    prompt: |
      Review conventions, naming, structure, formatting, repository rules, and idioms. Return
      at most three actionable comment paragraphs. Grade excellent, good, average, or poor.
      Write `grade` as a string and `comments` as an array of strings. `PR-DESCRIPTION.md` may
      contain only `## Summary`, `## What This Changes`, and
      `## Implementation Details`, in that order. Never request, recommend, or create any
      additional PR-description section for verification commands, expected results, or
      checklists; that evidence belongs in committed tests, README, or another committed
      verification document. Do not change files or commit.
    output:
      grade:
        type: enum
        choices: excellent, good, average, poor
      comments:
        type: string_list
  initial_conventions_terra:
    needs: prepare
    agent:
      harness: codex
      model: gpt-5.6-terra
      effort: high
    prompt: |
      Review conventions, naming, structure, formatting, repository rules, and idioms. Return
      at most three actionable comment paragraphs. Grade excellent, good, average, or poor.
      Write `grade` as a string and `comments` as an array of strings. `PR-DESCRIPTION.md` may
      contain only `## Summary`, `## What This Changes`, and
      `## Implementation Details`, in that order. Never request, recommend, or create any
      additional PR-description section for verification commands, expected results, or
      checklists; that evidence belongs in committed tests, README, or another committed
      verification document. Do not change files or commit.
    output:
      grade:
        type: enum
        choices: excellent, good, average, poor
      comments:
        type: string_list
  initial_conventions_cursor:
    needs: prepare
    agent:
      harness: cursor
      model: auto
    prompt: |
      Review conventions, naming, structure, formatting, repository rules, and idioms. Return
      at most three actionable comment paragraphs. Grade excellent, good, average, or poor.
      Write `grade` as a string and `comments` as an array of strings. `PR-DESCRIPTION.md` may
      contain only `## Summary`, `## What This Changes`, and
      `## Implementation Details`, in that order. Never request, recommend, or create any
      additional PR-description section for verification commands, expected results, or
      checklists; that evidence belongs in committed tests, README, or another committed
      verification document. Do not change files or commit.
    output:
      grade:
        type: enum
        choices: excellent, good, average, poor
      comments:
        type: string_list

  initial_justification_opus:
    needs: prepare
    agent:
      harness: claude
      model: claude-opus-4-8
    prompt: |
      Challenge scope, necessity, and complexity; require PR-DESCRIPTION.md to name the
      user-facing capability. Return at most three actionable comment paragraphs. Grade
      excellent, good, average, or poor. Write `grade` as a string and `comments` as an array of
      strings. `PR-DESCRIPTION.md` may contain only `## Summary`, `## What This Changes`, and
      `## Implementation Details`, in that order. Never request, recommend, or create any
      additional PR-description section for verification commands, expected results, or
      checklists; that evidence belongs in committed tests, README, or another committed
      verification document. Do not edit.
    output:
      grade:
        type: enum
        choices: excellent, good, average, poor
      comments:
        type: string_list
  initial_justification_terra:
    needs: prepare
    agent:
      harness: codex
      model: gpt-5.6-terra
      effort: high
    prompt: |
      Challenge scope, necessity, and complexity; require PR-DESCRIPTION.md to name the
      user-facing capability. Return at most three actionable comment paragraphs. Grade
      excellent, good, average, or poor. Write `grade` as a string and `comments` as an array of
      strings. `PR-DESCRIPTION.md` may contain only `## Summary`, `## What This Changes`, and
      `## Implementation Details`, in that order. Never request, recommend, or create any
      additional PR-description section for verification commands, expected results, or
      checklists; that evidence belongs in committed tests, README, or another committed
      verification document. Do not edit.
    output:
      grade:
        type: enum
        choices: excellent, good, average, poor
      comments:
        type: string_list
  initial_justification_cursor:
    needs: prepare
    agent:
      harness: cursor
      model: auto
    prompt: |
      Challenge scope, necessity, and complexity; require PR-DESCRIPTION.md to name the
      user-facing capability. Return at most three actionable comment paragraphs. Grade
      excellent, good, average, or poor. Write `grade` as a string and `comments` as an array of
      strings. `PR-DESCRIPTION.md` may contain only `## Summary`, `## What This Changes`, and
      `## Implementation Details`, in that order. Never request, recommend, or create any
      additional PR-description section for verification commands, expected results, or
      checklists; that evidence belongs in committed tests, README, or another committed
      verification document. Do not edit.
    output:
      grade:
        type: enum
        choices: excellent, good, average, poor
      comments:
        type: string_list

  initial_reviewability_opus:
    needs: prepare
    agent:
      harness: claude
      model: claude-opus-4-8
    prompt: |
      Review PR-description clarity and ordering, commit coherence, and whether the change
      should be re-sliced. PR-DESCRIPTION.md is a required demo artifact; assess its presentation
      without suggesting its removal. Return at most three actionable comment paragraphs. Grade
      excellent, good, average, or poor. Write `grade` as a string and `comments` as an array of
      strings. `PR-DESCRIPTION.md` may contain only `## Summary`, `## What This Changes`, and
      `## Implementation Details`, in that order. Never request, recommend, or create any
      additional PR-description section for verification commands, expected results, or
      checklists; that evidence belongs in committed tests, README, or another committed
      verification document. Do not edit.
    output:
      grade:
        type: enum
        choices: excellent, good, average, poor
      comments:
        type: string_list
  initial_reviewability_terra:
    needs: prepare
    agent:
      harness: codex
      model: gpt-5.6-terra
      effort: high
    prompt: |
      Review PR-description clarity and ordering, commit coherence, and whether the change
      should be re-sliced. PR-DESCRIPTION.md is a required demo artifact; assess its presentation
      without suggesting its removal. Return at most three actionable comment paragraphs. Grade
      excellent, good, average, or poor. Write `grade` as a string and `comments` as an array of
      strings. `PR-DESCRIPTION.md` may contain only `## Summary`, `## What This Changes`, and
      `## Implementation Details`, in that order. Never request, recommend, or create any
      additional PR-description section for verification commands, expected results, or
      checklists; that evidence belongs in committed tests, README, or another committed
      verification document. Do not edit.
    output:
      grade:
        type: enum
        choices: excellent, good, average, poor
      comments:
        type: string_list
  initial_reviewability_cursor:
    needs: prepare
    agent:
      harness: cursor
      model: auto
    prompt: |
      Review PR-description clarity and ordering, commit coherence, and whether the change
      should be re-sliced. PR-DESCRIPTION.md is a required demo artifact; assess its presentation
      without suggesting its removal. Return at most three actionable comment paragraphs. Grade
      excellent, good, average, or poor. Write `grade` as a string and `comments` as an array of
      strings. `PR-DESCRIPTION.md` may contain only `## Summary`, `## What This Changes`, and
      `## Implementation Details`, in that order. Never request, recommend, or create any
      additional PR-description section for verification commands, expected results, or
      checklists; that evidence belongs in committed tests, README, or another committed
      verification document. Do not edit.
    output:
      grade:
        type: enum
        choices: excellent, good, average, poor
      comments:
        type: string_list

  initial_sanity_opus:
    needs: prepare
    agent:
      harness: claude
      model: claude-opus-4-8
    prompt: |
      Check only glaring performance, basic-security, and resource-leak problems. Return at most
      three actionable comment paragraphs. Grade excellent, good, average, or poor. Write `grade`
      as a string and `comments` as an array of strings. `PR-DESCRIPTION.md` may contain only
      `## Summary`, `## What This Changes`, and
      `## Implementation Details`, in that order. Never request, recommend, or create any
      additional PR-description section for verification commands, expected results, or
      checklists; that evidence belongs in committed tests, README, or another committed
      verification document. Do not change files or commit.
    output:
      grade:
        type: enum
        choices: excellent, good, average, poor
      comments:
        type: string_list
  initial_sanity_terra:
    needs: prepare
    agent:
      harness: codex
      model: gpt-5.6-terra
      effort: high
    prompt: |
      Check only glaring performance, basic-security, and resource-leak problems. Return at most
      three actionable comment paragraphs. Grade excellent, good, average, or poor. Write `grade`
      as a string and `comments` as an array of strings. `PR-DESCRIPTION.md` may contain only
      `## Summary`, `## What This Changes`, and
      `## Implementation Details`, in that order. Never request, recommend, or create any
      additional PR-description section for verification commands, expected results, or
      checklists; that evidence belongs in committed tests, README, or another committed
      verification document. Do not change files or commit.
    output:
      grade:
        type: enum
        choices: excellent, good, average, poor
      comments:
        type: string_list
  initial_sanity_cursor:
    # Cursor Auto currently sustains three concurrent agents reliably. Pair the five Cursor
    # reviewers into three lanes while Claude and Codex still run their full fleets in parallel.
    needs: initial_justification_cursor
    agent:
      harness: cursor
      model: auto
    prompt: |
      Check only glaring performance, basic-security, and resource-leak problems. Return at most
      three actionable comment paragraphs. Grade excellent, good, average, or poor. Write `grade`
      as a string and `comments` as an array of strings. `PR-DESCRIPTION.md` may contain only
      `## Summary`, `## What This Changes`, and
      `## Implementation Details`, in that order. Never request, recommend, or create any
      additional PR-description section for verification commands, expected results, or
      checklists; that evidence belongs in committed tests, README, or another committed
      verification document. Do not change files or commit.
    output:
      grade:
        type: enum
        choices: excellent, good, average, poor
      comments:
        type: string_list

  initial_testing_opus:
    needs: prepare
    agent:
      harness: claude
      model: claude-opus-4-8
    prompt: |
      Review test coverage, committed human-followable verification documentation, and teardown.
      Keep verification evidence in tests, README, or a committed verification document;
      PR-DESCRIPTION.md is change narrative only. Return at most three actionable comment
      paragraphs. Grade excellent, good, average, or poor. Write `grade` as a string and
      `comments` as an array of strings. `PR-DESCRIPTION.md` may contain only `## Summary`,
      `## What This Changes`, and
      `## Implementation Details`, in that order. Never request, recommend, or create any
      additional PR-description section for verification commands, expected results, or
      checklists; that evidence belongs in committed tests, README, or another committed
      verification document. Do not change files or commit.
    output:
      grade:
        type: enum
        choices: excellent, good, average, poor
      comments:
        type: string_list
  initial_testing_terra:
    needs: prepare
    agent:
      harness: codex
      model: gpt-5.6-terra
      effort: high
    prompt: |
      Review test coverage, committed human-followable verification documentation, and teardown.
      Keep verification evidence in tests, README, or a committed verification document;
      PR-DESCRIPTION.md is change narrative only. Return at most three actionable comment
      paragraphs. Grade excellent, good, average, or poor. Write `grade` as a string and
      `comments` as an array of strings. `PR-DESCRIPTION.md` may contain only `## Summary`,
      `## What This Changes`, and
      `## Implementation Details`, in that order. Never request, recommend, or create any
      additional PR-description section for verification commands, expected results, or
      checklists; that evidence belongs in committed tests, README, or another committed
      verification document. Do not change files or commit.
    output:
      grade:
        type: enum
        choices: excellent, good, average, poor
      comments:
        type: string_list
  initial_testing_cursor:
    needs: initial_conventions_cursor
    agent:
      harness: cursor
      model: auto
    prompt: |
      Review test coverage, committed human-followable verification documentation, and teardown.
      Keep verification evidence in tests, README, or a committed verification document;
      PR-DESCRIPTION.md is change narrative only. Return at most three actionable comment
      paragraphs. Grade excellent, good, average, or poor. Write `grade` as a string and
      `comments` as an array of strings. `PR-DESCRIPTION.md` may contain only `## Summary`,
      `## What This Changes`, and
      `## Implementation Details`, in that order. Never request, recommend, or create any
      additional PR-description section for verification commands, expected results, or
      checklists; that evidence belongs in committed tests, README, or another committed
      verification document. Do not change files or commit.
    output:
      grade:
        type: enum
        choices: excellent, good, average, poor
      comments:
        type: string_list

  decide:
    needs: |-
      initial_conventions_opus, initial_conventions_terra, initial_conventions_cursor,
      initial_justification_opus, initial_justification_terra, initial_justification_cursor,
      initial_reviewability_opus, initial_reviewability_terra, initial_reviewability_cursor,
      initial_sanity_opus, initial_sanity_terra, initial_sanity_cursor,
      initial_testing_opus, initial_testing_terra, initial_testing_cursor
    inputs:
      PREVIOUS_APPROVED: collect.approved
      PREVIOUS_FEEDBACK: collect.feedback
      INITIAL_CONVENTIONS_OPUS: initial_conventions_opus.grade
      INITIAL_CONVENTIONS_OPUS_COMMENTS: initial_conventions_opus.comments
      INITIAL_CONVENTIONS_TERRA: initial_conventions_terra.grade
      INITIAL_CONVENTIONS_TERRA_COMMENTS: initial_conventions_terra.comments
      INITIAL_CONVENTIONS_CURSOR: initial_conventions_cursor.grade
      INITIAL_CONVENTIONS_CURSOR_COMMENTS: initial_conventions_cursor.comments
      INITIAL_JUSTIFICATION_OPUS: initial_justification_opus.grade
      INITIAL_JUSTIFICATION_OPUS_COMMENTS: initial_justification_opus.comments
      INITIAL_JUSTIFICATION_TERRA: initial_justification_terra.grade
      INITIAL_JUSTIFICATION_TERRA_COMMENTS: initial_justification_terra.comments
      INITIAL_JUSTIFICATION_CURSOR: initial_justification_cursor.grade
      INITIAL_JUSTIFICATION_CURSOR_COMMENTS: initial_justification_cursor.comments
      INITIAL_REVIEWABILITY_OPUS: initial_reviewability_opus.grade
      INITIAL_REVIEWABILITY_OPUS_COMMENTS: initial_reviewability_opus.comments
      INITIAL_REVIEWABILITY_TERRA: initial_reviewability_terra.grade
      INITIAL_REVIEWABILITY_TERRA_COMMENTS: initial_reviewability_terra.comments
      INITIAL_REVIEWABILITY_CURSOR: initial_reviewability_cursor.grade
      INITIAL_REVIEWABILITY_CURSOR_COMMENTS: initial_reviewability_cursor.comments
      INITIAL_SANITY_OPUS: initial_sanity_opus.grade
      INITIAL_SANITY_OPUS_COMMENTS: initial_sanity_opus.comments
      INITIAL_SANITY_TERRA: initial_sanity_terra.grade
      INITIAL_SANITY_TERRA_COMMENTS: initial_sanity_terra.comments
      INITIAL_SANITY_CURSOR: initial_sanity_cursor.grade
      INITIAL_SANITY_CURSOR_COMMENTS: initial_sanity_cursor.comments
      INITIAL_TESTING_OPUS: initial_testing_opus.grade
      INITIAL_TESTING_OPUS_COMMENTS: initial_testing_opus.comments
      INITIAL_TESTING_TERRA: initial_testing_terra.grade
      INITIAL_TESTING_TERRA_COMMENTS: initial_testing_terra.comments
      INITIAL_TESTING_CURSOR: initial_testing_cursor.grade
      INITIAL_TESTING_CURSOR_COMMENTS: initial_testing_cursor.comments
    agent:
      harness: cursor
      model: auto
    prompt: |
      You are the first and deciding step of a review loop. When PREVIOUS_APPROVED is non-empty,
      it and PREVIOUS_FEEDBACK describe the preceding in-loop review batch. Otherwise score the
      15 INITIAL_* grades and matching *_COMMENTS JSON arrays: excellent=5, good=4, average=3, poor=2. Approval requires every grade
      to be excellent or good, more excellent than good, and mean score at least 4.5. Set
      SCSH_LOOP_BREAK true when approved. Otherwise set it false and put a clear consolidated
      change request in `change_request`. `PR-DESCRIPTION.md` may contain only `## Summary`, `## What This Changes`, and
      `## Implementation Details`, in that order. Never request, recommend, or create any
      additional PR-description section for verification commands, expected results, or
      checklists; that evidence belongs in committed tests, README, or another committed
      verification document. Ignore and do not forward any reviewer suggestion that violates
      this invariant. Do not change files or commit.
    output:
      SCSH_LOOP_BREAK:
        type: bool
      change_request:
        type: string
    break: true

  fix:
    needs: decide
    inputs:
      FEEDBACK: decide.change_request
    agent:
      harness: cursor
      model: auto
    prompt: |
      Address EVERY requested change in FEEDBACK: either change the code accordingly, or — when you
      judge a comment purely stylistic and the current code deliberate — append a short entry to
      `STYLE-NOTES.md` at the repository root documenting that decision and why the style stays.
      Never contradict earlier `STYLE-NOTES.md` entries or earlier fixes. Never write the
      feedback itself to any file. PR-DESCRIPTION.md is a required demo artifact: keep it tracked
      and current with exactly `## Summary`, `## What This Changes`, and
      `## Implementation Details`, in that order, and no other headings. Commit your changes with
      the message `Address review feedback.` Never create any additional PR-description section
      for verification commands, expected results, or checklists; that evidence belongs in
      committed tests, README, or another committed verification document. Write `actions` as several short paragraphs,
      separated by blank lines: one paragraph for each reviewer profile and route whose feedback
      you acted on, one paragraph for any deliberate STYLE-NOTES decision, and a final paragraph
      for test results and the commit. Do not collapse distinct review areas into one paragraph.
    output:
      actions:
        type: string
    commits: true

  review_conventions_opus:
    needs: fix
    agent:
      harness: claude
      model: claude-opus-4-8
    prompt: |
      Run the conventions reviewer profile: examine naming, structure, formatting, repository
      rules, and idiomatic consistency. Respect deliberate decisions in `STYLE-NOTES.md`. Treat
      `PR-DESCRIPTION.md` as context but grade the code. Return at most three concrete actionable
      comments, one paragraph each. Use `excellent` for approve with praise, `good` for approve
      with nits, and `average` or `poor` only when real work is needed. Write `grade` as a string
      and `comments` as an array of strings. `PR-DESCRIPTION.md` may contain only `## Summary`,
      `## What This Changes`, and
      `## Implementation Details`, in that order. Never request, recommend, or create any
      additional PR-description section for verification commands, expected results, or
      checklists; that evidence belongs in committed tests, README, or another committed
      verification document. Do not change files or commit.
    output:
      grade:
        type: enum
        choices: excellent, good, average, poor
      comments:
        type: string_list
    commits: false
  review_conventions_terra:
    needs: fix
    agent:
      harness: codex
      model: gpt-5.6-terra
      effort: high
    prompt: |
      Run the conventions reviewer profile: examine naming, structure, formatting, repository
      rules, and idiomatic consistency. Respect deliberate decisions in `STYLE-NOTES.md`. Treat
      `PR-DESCRIPTION.md` as context but grade the code. Return at most three concrete actionable
      comments, one paragraph each. Use `excellent` for approve with praise, `good` for approve
      with nits, and `average` or `poor` only when real work is needed. Write `grade` as a string
      and `comments` as an array of strings. `PR-DESCRIPTION.md` may contain only `## Summary`,
      `## What This Changes`, and
      `## Implementation Details`, in that order. Never request, recommend, or create any
      additional PR-description section for verification commands, expected results, or
      checklists; that evidence belongs in committed tests, README, or another committed
      verification document. Do not change files or commit.
    output:
      grade:
        type: enum
        choices: excellent, good, average, poor
      comments:
        type: string_list
    commits: false
  review_conventions_cursor:
    needs: fix
    agent:
      harness: cursor
      model: auto
    prompt: |
      Run the conventions reviewer profile: examine naming, structure, formatting, repository
      rules, and idiomatic consistency. Respect deliberate decisions in `STYLE-NOTES.md`. Treat
      `PR-DESCRIPTION.md` as context but grade the code. Return at most three concrete actionable
      comments, one paragraph each. Use `excellent` for approve with praise, `good` for approve
      with nits, and `average` or `poor` only when real work is needed. Write `grade` as a string
      and `comments` as an array of strings. `PR-DESCRIPTION.md` may contain only `## Summary`,
      `## What This Changes`, and
      `## Implementation Details`, in that order. Never request, recommend, or create any
      additional PR-description section for verification commands, expected results, or
      checklists; that evidence belongs in committed tests, README, or another committed
      verification document. Do not change files or commit.
    output:
      grade:
        type: enum
        choices: excellent, good, average, poor
      comments:
        type: string_list
    commits: false

  review_justification_opus:
    needs: fix
    agent:
      harness: claude
      model: claude-opus-4-8
    prompt: |
      Run the justification reviewer profile: challenge scope and necessity, ask whether the
      feature earns its complexity, and require `PR-DESCRIPTION.md` to state the user-facing
      capability. Respect ratified or deliberate decisions documented in the repository. Return
      at most three concrete actionable comments, one paragraph each. Use `excellent` for approve
      with praise, `good` for approve with nits, and `average` or `poor` only when real work is
      needed. Write `grade` as a string and `comments` as an array of strings.
      `PR-DESCRIPTION.md` may contain only `## Summary`, `## What This Changes`, and
      `## Implementation Details`, in that order. Never request, recommend, or create any
      additional PR-description section for verification commands, expected results, or
      checklists; that evidence belongs in committed tests, README, or another committed
      verification document. Do not change files or commit.
    output:
      grade:
        type: enum
        choices: excellent, good, average, poor
      comments:
        type: string_list
    commits: false
  review_justification_terra:
    needs: fix
    agent:
      harness: codex
      model: gpt-5.6-terra
      effort: high
    prompt: |
      Run the justification reviewer profile: challenge scope and necessity, ask whether the
      feature earns its complexity, and require `PR-DESCRIPTION.md` to state the user-facing
      capability. Respect ratified or deliberate decisions documented in the repository. Return
      at most three concrete actionable comments, one paragraph each. Use `excellent` for approve
      with praise, `good` for approve with nits, and `average` or `poor` only when real work is
      needed. Write `grade` as a string and `comments` as an array of strings.
      `PR-DESCRIPTION.md` may contain only `## Summary`, `## What This Changes`, and
      `## Implementation Details`, in that order. Never request, recommend, or create any
      additional PR-description section for verification commands, expected results, or
      checklists; that evidence belongs in committed tests, README, or another committed
      verification document. Do not change files or commit.
    output:
      grade:
        type: enum
        choices: excellent, good, average, poor
      comments:
        type: string_list
    commits: false
  review_justification_cursor:
    needs: fix
    agent:
      harness: cursor
      model: auto
    prompt: |
      Run the justification reviewer profile: challenge scope and necessity, ask whether the
      feature earns its complexity, and require `PR-DESCRIPTION.md` to state the user-facing
      capability. Respect ratified or deliberate decisions documented in the repository. Return
      at most three concrete actionable comments, one paragraph each. Use `excellent` for approve
      with praise, `good` for approve with nits, and `average` or `poor` only when real work is
      needed. Write `grade` as a string and `comments` as an array of strings.
      `PR-DESCRIPTION.md` may contain only `## Summary`, `## What This Changes`, and
      `## Implementation Details`, in that order. Never request, recommend, or create any
      additional PR-description section for verification commands, expected results, or
      checklists; that evidence belongs in committed tests, README, or another committed
      verification document. Do not change files or commit.
    output:
      grade:
        type: enum
        choices: excellent, good, average, poor
      comments:
        type: string_list
    commits: false

  review_reviewability_opus:
    needs: fix
    agent:
      harness: claude
      model: claude-opus-4-8
    prompt: |
      Run the reviewability reviewer profile: assess whether `PR-DESCRIPTION.md` explains the big
      picture before details, whether the commit history is coherent, and whether the change
      should be re-sliced or split. PR-DESCRIPTION.md is a required demo artifact; assess its
      presentation without suggesting its removal. Anchor findings to commits and the PR, not
      individual code lines. Return at most three concrete actionable comments, one paragraph each. Use
      `excellent` for approve with praise, `good` for approve with nits, and `average` or `poor`
      only when real work is needed. Write `grade` as a string and `comments` as an array of
      strings. `PR-DESCRIPTION.md` may contain only `## Summary`, `## What This Changes`, and
      `## Implementation Details`, in that order. Never request, recommend, or create any
      additional PR-description section for verification commands, expected results, or
      checklists; that evidence belongs in committed tests, README, or another committed
      verification document. Do not change files or commit.
    output:
      grade:
        type: enum
        choices: excellent, good, average, poor
      comments:
        type: string_list
    commits: false
  review_reviewability_terra:
    needs: fix
    agent:
      harness: codex
      model: gpt-5.6-terra
      effort: high
    prompt: |
      Run the reviewability reviewer profile: assess whether `PR-DESCRIPTION.md` explains the big
      picture before details, whether the commit history is coherent, and whether the change
      should be re-sliced or split. PR-DESCRIPTION.md is a required demo artifact; assess its
      presentation without suggesting its removal. Anchor findings to commits and the PR, not
      individual code lines. Return at most three concrete actionable comments, one paragraph each. Use
      `excellent` for approve with praise, `good` for approve with nits, and `average` or `poor`
      only when real work is needed. Write `grade` as a string and `comments` as an array of
      strings. `PR-DESCRIPTION.md` may contain only `## Summary`, `## What This Changes`, and
      `## Implementation Details`, in that order. Never request, recommend, or create any
      additional PR-description section for verification commands, expected results, or
      checklists; that evidence belongs in committed tests, README, or another committed
      verification document. Do not change files or commit.
    output:
      grade:
        type: enum
        choices: excellent, good, average, poor
      comments:
        type: string_list
    commits: false
  review_reviewability_cursor:
    needs: fix
    agent:
      harness: cursor
      model: auto
    prompt: |
      Run the reviewability reviewer profile: assess whether `PR-DESCRIPTION.md` explains the big
      picture before details, whether the commit history is coherent, and whether the change
      should be re-sliced or split. PR-DESCRIPTION.md is a required demo artifact; assess its
      presentation without suggesting its removal. Anchor findings to commits and the PR, not
      individual code lines. Return at most three concrete actionable comments, one paragraph each. Use
      `excellent` for approve with praise, `good` for approve with nits, and `average` or `poor`
      only when real work is needed. Write `grade` as a string and `comments` as an array of
      strings. `PR-DESCRIPTION.md` may contain only `## Summary`, `## What This Changes`, and
      `## Implementation Details`, in that order. Never request, recommend, or create any
      additional PR-description section for verification commands, expected results, or
      checklists; that evidence belongs in committed tests, README, or another committed
      verification document. Do not change files or commit.
    output:
      grade:
        type: enum
        choices: excellent, good, average, poor
      comments:
        type: string_list
    commits: false

  review_sanity_opus:
    needs: fix
    agent:
      harness: claude
      model: claude-opus-4-8
    prompt: |
      Run the deliberately shallow sanity reviewer profile. Flag only glaring performance,
      basic-security, or resource-leak problems; stay quiet when nothing is obviously wrong.
      Return at most three concrete actionable comments, one paragraph each. Use `excellent` for
      approve with praise, `good` for approve with nits, and `average` or `poor` only when real
      work is needed. Write `grade` as a string and `comments` as an array of strings.
      `PR-DESCRIPTION.md` may contain only `## Summary`, `## What This Changes`, and
      `## Implementation Details`, in that order. Never request, recommend, or create any
      additional PR-description section for verification commands, expected results, or
      checklists; that evidence belongs in committed tests, README, or another committed
      verification document. Do not change files or commit.
    output:
      grade:
        type: enum
        choices: excellent, good, average, poor
      comments:
        type: string_list
    commits: false
  review_sanity_terra:
    needs: fix
    agent:
      harness: codex
      model: gpt-5.6-terra
      effort: high
    prompt: |
      Run the deliberately shallow sanity reviewer profile. Flag only glaring performance,
      basic-security, or resource-leak problems; stay quiet when nothing is obviously wrong.
      Return at most three concrete actionable comments, one paragraph each. Use `excellent` for
      approve with praise, `good` for approve with nits, and `average` or `poor` only when real
      work is needed. Write `grade` as a string and `comments` as an array of strings.
      `PR-DESCRIPTION.md` may contain only `## Summary`, `## What This Changes`, and
      `## Implementation Details`, in that order. Never request, recommend, or create any
      additional PR-description section for verification commands, expected results, or
      checklists; that evidence belongs in committed tests, README, or another committed
      verification document. Do not change files or commit.
    output:
      grade:
        type: enum
        choices: excellent, good, average, poor
      comments:
        type: string_list
    commits: false
  review_sanity_cursor:
    # Keep this review round to the same three concurrent Cursor lanes as the initial round.
    needs: review_justification_cursor
    agent:
      harness: cursor
      model: auto
    prompt: |
      Run the deliberately shallow sanity reviewer profile. Flag only glaring performance,
      basic-security, or resource-leak problems; stay quiet when nothing is obviously wrong.
      Return at most three concrete actionable comments, one paragraph each. Use `excellent` for
      approve with praise, `good` for approve with nits, and `average` or `poor` only when real
      work is needed. Write `grade` as a string and `comments` as an array of strings.
      `PR-DESCRIPTION.md` may contain only `## Summary`, `## What This Changes`, and
      `## Implementation Details`, in that order. Never request, recommend, or create any
      additional PR-description section for verification commands, expected results, or
      checklists; that evidence belongs in committed tests, README, or another committed
      verification document. Do not change files or commit.
    output:
      grade:
        type: enum
        choices: excellent, good, average, poor
      comments:
        type: string_list
    commits: false

  review_testing_opus:
    needs: fix
    agent:
      harness: claude
      model: claude-opus-4-8
    prompt: |
      Run the testing reviewer profile: check whether changed behavior has runnable unit tests or
      a committed human-followable verification document, whether those instructions are
      sufficient, and whether tooling tears down without leaking resources. Keep verification
      evidence in tests, README, or a committed verification document; PR-DESCRIPTION.md is
      change narrative only. Return at most three concrete actionable comments, one paragraph
      each. Use `excellent` for approve with praise, `good` for approve with nits, and `average`
      or `poor` only when real work is needed. Write `grade` as a string and `comments` as an
      array of strings. `PR-DESCRIPTION.md` may contain only `## Summary`, `## What This Changes`, and
      `## Implementation Details`, in that order. Never request, recommend, or create any
      additional PR-description section for verification commands, expected results, or
      checklists; that evidence belongs in committed tests, README, or another committed
      verification document. Do not change files or commit.
    output:
      grade:
        type: enum
        choices: excellent, good, average, poor
      comments:
        type: string_list
    commits: false
  review_testing_terra:
    needs: fix
    agent:
      harness: codex
      model: gpt-5.6-terra
      effort: high
    prompt: |
      Run the testing reviewer profile: check whether changed behavior has runnable unit tests or
      a committed human-followable verification document, whether those instructions are
      sufficient, and whether tooling tears down without leaking resources. Keep verification
      evidence in tests, README, or a committed verification document; PR-DESCRIPTION.md is
      change narrative only. Return at most three concrete actionable comments, one paragraph
      each. Use `excellent` for approve with praise, `good` for approve with nits, and `average`
      or `poor` only when real work is needed. Write `grade` as a string and `comments` as an
      array of strings. `PR-DESCRIPTION.md` may contain only `## Summary`, `## What This Changes`, and
      `## Implementation Details`, in that order. Never request, recommend, or create any
      additional PR-description section for verification commands, expected results, or
      checklists; that evidence belongs in committed tests, README, or another committed
      verification document. Do not change files or commit.
    output:
      grade:
        type: enum
        choices: excellent, good, average, poor
      comments:
        type: string_list
    commits: false
  review_testing_cursor:
    needs: review_conventions_cursor
    agent:
      harness: cursor
      model: auto
    prompt: |
      Run the testing reviewer profile: check whether changed behavior has runnable unit tests or
      a committed human-followable verification document, whether those instructions are
      sufficient, and whether tooling tears down without leaking resources. Keep verification
      evidence in tests, README, or a committed verification document; PR-DESCRIPTION.md is
      change narrative only. Return at most three concrete actionable comments, one paragraph
      each. Use `excellent` for approve with praise, `good` for approve with nits, and `average`
      or `poor` only when real work is needed. Write `grade` as a string and `comments` as an
      array of strings. `PR-DESCRIPTION.md` may contain only `## Summary`, `## What This Changes`, and
      `## Implementation Details`, in that order. Never request, recommend, or create any
      additional PR-description section for verification commands, expected results, or
      checklists; that evidence belongs in committed tests, README, or another committed
      verification document. Do not change files or commit.
    output:
      grade:
        type: enum
        choices: excellent, good, average, poor
      comments:
        type: string_list
    commits: false

  collect:
    needs: |-
      review_conventions_opus, review_conventions_terra, review_conventions_cursor,
      review_justification_opus, review_justification_terra, review_justification_cursor,
      review_reviewability_opus, review_reviewability_terra, review_reviewability_cursor,
      review_sanity_opus, review_sanity_terra, review_sanity_cursor,
      review_testing_opus, review_testing_terra, review_testing_cursor
    do-while: decide
    agent:
      harness: cursor
      model: auto
    inputs:
      GRADE_CONVENTIONS_OPUS: review_conventions_opus.grade
      COMMENTS_CONVENTIONS_OPUS: review_conventions_opus.comments
      GRADE_CONVENTIONS_TERRA: review_conventions_terra.grade
      COMMENTS_CONVENTIONS_TERRA: review_conventions_terra.comments
      GRADE_CONVENTIONS_CURSOR: review_conventions_cursor.grade
      COMMENTS_CONVENTIONS_CURSOR: review_conventions_cursor.comments
      GRADE_JUSTIFICATION_OPUS: review_justification_opus.grade
      COMMENTS_JUSTIFICATION_OPUS: review_justification_opus.comments
      GRADE_JUSTIFICATION_TERRA: review_justification_terra.grade
      COMMENTS_JUSTIFICATION_TERRA: review_justification_terra.comments
      GRADE_JUSTIFICATION_CURSOR: review_justification_cursor.grade
      COMMENTS_JUSTIFICATION_CURSOR: review_justification_cursor.comments
      GRADE_REVIEWABILITY_OPUS: review_reviewability_opus.grade
      COMMENTS_REVIEWABILITY_OPUS: review_reviewability_opus.comments
      GRADE_REVIEWABILITY_TERRA: review_reviewability_terra.grade
      COMMENTS_REVIEWABILITY_TERRA: review_reviewability_terra.comments
      GRADE_REVIEWABILITY_CURSOR: review_reviewability_cursor.grade
      COMMENTS_REVIEWABILITY_CURSOR: review_reviewability_cursor.comments
      GRADE_SANITY_OPUS: review_sanity_opus.grade
      COMMENTS_SANITY_OPUS: review_sanity_opus.comments
      GRADE_SANITY_TERRA: review_sanity_terra.grade
      COMMENTS_SANITY_TERRA: review_sanity_terra.comments
      GRADE_SANITY_CURSOR: review_sanity_cursor.grade
      COMMENTS_SANITY_CURSOR: review_sanity_cursor.comments
      GRADE_TESTING_OPUS: review_testing_opus.grade
      COMMENTS_TESTING_OPUS: review_testing_opus.comments
      GRADE_TESTING_TERRA: review_testing_terra.grade
      COMMENTS_TESTING_TERRA: review_testing_terra.comments
      GRADE_TESTING_CURSOR: review_testing_cursor.grade
      COMMENTS_TESTING_CURSOR: review_testing_cursor.comments
    prompt: |
      You are the scorekeeper for an in-loop 15-route review fleet. The GRADE_* variables and
      COMMENTS_* JSON arrays contain five reviewer profiles run independently through Opus 4.8, Codex Terra, and Cursor
      Auto. Scores: excellent=5, good=4, average=3, poor=2. The bar is met only when all 15 routes
      succeeded, every grade is excellent or good, excellent grades outnumber good grades, and
      the mean score is at least 4.5. `PR-DESCRIPTION.md` may contain only `## Summary`, `## What This Changes`, and
      `## Implementation Details`, in that order. Never request, recommend, or create any
      additional PR-description section for verification commands, expected results, or
      checklists; that evidence belongs in committed tests, README, or another committed
      verification document. Ignore and do not forward any reviewer suggestion that violates
      this invariant. Do not change files or commit. Put `met` or `not met` in
      `verdict`. Put the complete round report in `feedback`: begin with `Round verdict: met` or
      `Round verdict: not met`, then include every profile/route grade and its comments verbatim
      in clearly labeled sections. Set `approved` to the boolean result. Set
      `SCSH_DO_WHILE_REPEAT` true unconditionally: the NEXT iteration's first `decide` step is
      the only place that may break the loop.
    output:
      SCSH_DO_WHILE_REPEAT:
        type: bool
      approved:
        type: bool
      verdict:
        type: string
      feedback:
        type: string
    commits: false