Repository navigation
Expand file tree
/
Copy pathflows.html
More file actions
2117 lines (2066 loc) · 134 KB
/
Copy pathflows.html
File metadata and controls
2117 lines (2066 loc) · 134 KB
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
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!doctype html>
<!--
Copyright 2026 Specfuse Contributors
Licensed under the Apache License, Version 2.0. See LICENSE.
Interactive companion to the handbooks, docs/getting-started.md and the
ideation templates. Shipped into every project as
.specfuse/authoring/docs/flows.html, so it always describes the installed kit.
scripts/check-flows-page.py keeps the embedded data (#kit-data) in step with the
plugin's skills and agents, the backlog states, the validation layers in
validate-specs.sh and the upgrade overlay in specfuse/authoring/scaffold.py.
The Markdown stays the source of truth; every panel links to it.
-->
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
<title>Specfuse Authoring Flows</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,700&family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap">
<style>
/* Layout: a left rail of six views; each view is a track or map beside a detail card; one column on phones. Same family as the loop's flows page, with the authoring accent. */
:root {
--bg: #f2f5f4;
--surface: #ffffff;
--ink: #16252a;
--muted: #586b70;
--line: #d3dedc;
--accent: #0f6b6e; /* a skill or the kit does this */
--accent-soft: #dcefee;
--human: #b45f06; /* a person decides or acts */
--human-soft: #fbeedd;
--ok: #2c7a3a;
--ok-soft: #e1f2e3;
--stop: #a3302a;
--stop-soft: #f8e2e0;
--gen: #5b4bb3; /* generated or downstream */
--gen-soft: #ebe8fa;
--display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
--body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
--mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) {
--bg: #0e1719; --surface: #152226; --ink: #e2ecec; --muted: #93a8ab; --line: #27403f;
--accent: #5fc9c4; --accent-soft: #12332f; --human: #f0a24b; --human-soft: #3a2812;
--ok: #6fd17f; --ok-soft: #133019; --stop: #f08a83; --stop-soft: #3b1816;
--gen: #a99cf5; --gen-soft: #241f45; color-scheme: dark;
}
}
:root[data-theme="dark"] {
--bg: #0e1719; --surface: #152226; --ink: #e2ecec; --muted: #93a8ab; --line: #27403f;
--accent: #5fc9c4; --accent-soft: #12332f; --human: #f0a24b; --human-soft: #3a2812;
--ok: #6fd17f; --ok-soft: #133019; --stop: #f08a83; --stop-soft: #3b1816;
--gen: #a99cf5; --gen-soft: #241f45; color-scheme: dark;
}
* { box-sizing: border-box; }
body { background: var(--bg); color: var(--ink); font: 15px/1.55 var(--body); margin: 0; }
a { color: var(--accent); text-underline-offset: 2px; }
.wrap { max-width: 1180px; margin: 0 auto; padding-inline: 20px; padding-block: 28px 64px; }
header.top { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 22px; }
h1 { font-family: var(--display); font-weight: 700; font-size: clamp(28px, 4vw, 40px); line-height: 1.05; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
.lede { margin: 6px 0 0; color: var(--muted); max-width: 64ch; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.dot.auto { background: var(--accent); }
.dot.human { background: var(--human); }
.dot.end { background: var(--ok); }
.dot.gen { background: var(--gen); }
.dot.stop { background: var(--stop); }
.layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; }
nav.views { display: flex; flex-direction: column; gap: 4px; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 12px); align-self: start; }
nav.views button { all: unset; cursor: pointer; padding: 9px 12px; border-radius: 8px; display: grid; gap: 1px; }
nav.views button .n { font-weight: 600; }
nav.views button .s { font-size: 12.5px; color: var(--muted); }
nav.views button:hover { background: var(--surface); }
nav.views button[aria-selected="true"] { background: var(--surface); box-shadow: inset 3px 0 0 var(--accent); }
button:focus-visible, .stage:focus-visible, .chip:focus-visible, .node:focus-visible, .tnode:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h2 { font-family: var(--display); font-weight: 700; font-size: 26px; margin: 0 0 4px; text-wrap: balance; }
.summary { max-width: 72ch; margin: 0 0 18px; color: var(--muted); }
.summary b { color: var(--ink); }
.board { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 20px; align-items: start; }
ol.track { list-style: none; margin: 0; padding: 0; position: relative; }
ol.track::before { content: ""; position: absolute; left: 15px; top: 14px; bottom: 14px; width: 2px; background: var(--line); }
.stage { all: unset; cursor: pointer; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 10px; align-items: start; padding: 7px 8px 7px 0; border-radius: 8px; width: 100%; position: relative; }
.stage .k { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font: 600 12px var(--mono); background: var(--surface); border: 2px solid var(--accent); color: var(--accent); z-index: 1; }
.stage.human .k { border-color: var(--human); color: var(--human); }
.stage.end .k { border-color: var(--ok); color: var(--ok); }
.stage .t { font-weight: 600; padding-top: 5px; }
.stage .c { font: 12.5px var(--mono); color: var(--muted); overflow-wrap: anywhere; }
.stage:hover .t { text-decoration: underline; text-underline-offset: 3px; }
.stage[aria-current="true"] { background: var(--surface); }
.stage[aria-current="true"] .k { background: var(--accent); color: var(--surface); }
.stage.human[aria-current="true"] .k { background: var(--human); }
.stage.end[aria-current="true"] .k { background: var(--ok); }
.branchnote { margin: 2px 0 6px 42px; font-size: 12.5px; color: var(--muted); }
.detail { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; min-width: 0; }
.who { display: inline-block; font: 600 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 5px; background: var(--accent-soft); color: var(--accent); }
.who.human { background: var(--human-soft); color: var(--human); }
.who.end { background: var(--ok-soft); color: var(--ok); }
.who.gen { background: var(--gen-soft); color: var(--gen); }
.who.stop { background: var(--stop-soft); color: var(--stop); }
.who.yours { background: var(--bg); color: var(--ink); border: 1px solid var(--line); }
.detail h3 { font-family: var(--display); font-size: 21px; margin: 10px 0 6px; overflow-wrap: anywhere; }
.detail p { margin: 0 0 10px; max-width: 68ch; }
.detail dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 14px; margin: 12px 0 0; font-size: 14px; }
.detail dt { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; padding-top: 2px; }
.detail dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
code, .cmd { font-family: var(--mono); font-size: 13px; }
.cmd { display: block; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 6px 9px; overflow-x: auto; white-space: pre; }
.stops { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 12px; }
.stops h4 { margin: 0 0 6px; font-size: 13px; color: var(--human); text-transform: uppercase; letter-spacing: .05em; }
.stops ul { margin: 0; padding-left: 18px; }
.stops li { margin-bottom: 4px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { all: unset; cursor: pointer; font: 500 13px var(--body); padding: 5px 11px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); }
.chip.mono { font-family: var(--mono); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.controlrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 16px; }
.controlrow .lbl { font-size: 13px; font-weight: 600; }
/* Big picture: a left-to-right chain of planes, stacked on phones. */
.chain { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.node { all: unset; cursor: pointer; display: grid; gap: 4px; align-content: start; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: 8px; padding: 12px 14px; position: relative; min-width: 0; }
.node.human { border-top-color: var(--human); }
.node.gen { border-top-color: var(--gen); }
.node.yours { border-top-color: var(--ink); }
.node .t { font-family: var(--display); font-weight: 700; font-size: 17px; }
.node .s { font-size: 13px; color: var(--muted); }
.node .p { font: 12px var(--mono); color: var(--muted); overflow-wrap: anywhere; }
.node[aria-current="true"] { box-shadow: 0 0 0 2px var(--ink); }
.node:hover .t { text-decoration: underline; text-underline-offset: 3px; }
.chain .node:not(:last-child)::after { content: "→"; position: absolute; right: -13px; top: 50%; transform: translateY(-50%); color: var(--muted); font: 600 16px var(--mono); }
.chain.back .node:not(:last-child)::after { content: "←"; }
.planes-caption { font-size: 12.5px; color: var(--muted); margin: -4px 0 12px; }
.own { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.own div { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-size: 14px; min-width: 0; }
.own b { display: block; font-family: var(--mono); font-size: 13px; }
/* Backlog state strip */
.states { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 16px; }
.state { font: 500 12px var(--mono); padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); background: var(--surface); }
.state.on { background: var(--accent); color: var(--surface); border-color: var(--accent); }
.state.side { border-style: dashed; }
/* Structure tree */
.tree { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 6px; font: 13px/1.5 var(--mono); overflow-x: auto; }
.tnode { all: unset; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 2px 8px; border-radius: 5px; white-space: nowrap; }
.tnode:hover { background: var(--bg); }
.tnode[aria-current="true"] { background: var(--accent-soft); }
.tnode .bar { width: 4px; align-self: stretch; border-radius: 2px; background: var(--ink); flex: none; }
.tnode.kit .bar { background: var(--accent); }
.tnode.gen .bar { background: var(--gen); }
.tnode.record .bar { background: var(--stop); }
.tnode .ind { color: var(--muted); }
/* Skill finder */
.finder { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.search { width: 100%; font: inherit; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); margin-bottom: 12px; }
.intents { display: grid; gap: 14px; }
.intents h4 { margin: 0 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.intents ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.intent { all: unset; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 6px 10px; border-radius: 6px; width: 100%; box-sizing: border-box; }
.intent:hover { background: var(--surface); }
.intent[aria-current="true"] { background: var(--surface); box-shadow: inset 3px 0 0 var(--accent); }
.intent .sk { font: 12px var(--mono); color: var(--muted); }
.intent:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.empty { color: var(--muted); font-size: 14px; }
/* Validation */
.layers { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; counter-reset: layer; }
.layers li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.layers .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 600 12px var(--mono); background: var(--bg); color: var(--muted); }
.layers .l { font-weight: 600; font-size: 14px; }
.layers .sc { display: block; font: 12px var(--mono); color: var(--muted); font-weight: 400; overflow-wrap: anywhere; }
.layers .v { font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: .05em; padding: 2px 7px; border-radius: 5px; color: var(--muted); }
.layers li.hit { border-color: var(--stop); background: var(--stop-soft); }
.layers li.hit .n { background: var(--stop); color: var(--surface); }
.layers li.hit .v { color: var(--stop); }
.layers li.cascade { border-color: var(--stop); border-style: dashed; }
.layers li.cascade .v { color: var(--stop); }
.layers li.pass .v { color: var(--ok); }
table.exit { border-collapse: collapse; width: 100%; font-size: 14px; margin-top: 8px; }
table.exit th, table.exit td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.exit th { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.tablewrap { overflow-x: auto; }
/* Upgrade simulator */
.sim { display: grid; grid-template-columns: minmax(0, 330px) minmax(0, 1fr); gap: 22px; align-items: start; }
.controls { display: grid; gap: 16px; }
.controls .q { display: grid; gap: 6px; }
.controls .q > span { font-size: 13px; font-weight: 600; }
.controls .q small { font-weight: 400; color: var(--muted); }
.outcome { padding: 14px 16px; border-radius: 10px; font-weight: 600; font-size: 17px; font-family: var(--display); }
.outcome small { display: block; font: 400 14px/1.5 var(--body); color: var(--ink); margin-top: 4px; }
.outcome.ok { background: var(--ok-soft); color: var(--ok); }
.outcome.human { background: var(--human-soft); color: var(--human); }
.outcome.stop { background: var(--stop-soft); color: var(--stop); }
.outcome.quiet { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.term { margin-top: 12px; background: #10191b; color: #d6e4e3; border-radius: 8px; padding: 10px 12px; font: 12.5px/1.55 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.term .err { color: #f3b26b; }
.term .dim { color: #7f9796; }
section.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; margin-top: 22px; }
section.panel h3 { font-family: var(--display); font-size: 19px; margin: 0 0 4px; }
section.panel > p { color: var(--muted); margin: 0 0 10px; max-width: 72ch; }
/* State machine */
.machine { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow-x: auto; }
.machine svg { display: block; min-width: 720px; width: 100%; height: auto; }
.machine .st rect { fill: var(--surface); stroke: var(--accent); stroke-width: 2; }
.machine .st.end rect { stroke: var(--ok); }
.machine .st.side rect { stroke-dasharray: 5 4; }
.machine .st text { fill: var(--ink); font: 600 13.5px var(--mono); text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.machine .st, .machine .ed { cursor: pointer; }
.machine .st.sel rect { fill: var(--accent-soft); stroke-width: 3; }
.machine .st.end.sel rect { fill: var(--ok-soft); }
.machine .st.off rect { stroke: var(--line); }
.machine .st.off text { fill: var(--muted); }
.machine .ed path.line { fill: none; stroke: var(--muted); stroke-width: 1.6; }
.machine .ed path.hit { fill: none; stroke: transparent; stroke-width: 16; }
.machine .ed text { fill: var(--muted); font: 500 11.5px var(--body); text-anchor: middle; paint-order: stroke; stroke: var(--surface); stroke-width: 4px; stroke-linejoin: round; }
.machine .ed.dashed path.line { stroke-dasharray: 5 4; }
.machine .ed.off path.line { stroke: var(--line); stroke-dasharray: 2 4; }
.machine .ed.off text { fill: var(--muted); opacity: .6; }
.machine .ed.gap path.line { stroke: var(--stop); stroke-dasharray: 6 4; }
.machine .ed.gap text { fill: var(--stop); }
.machine .ed.sel path.line { stroke: var(--ink); stroke-width: 2.6; }
.machine .ed.sel text { fill: var(--ink); font-weight: 600; }
.machine .ed:hover path.line { stroke: var(--ink); }
.machine .ed:focus-visible, .machine .st:focus-visible { outline: none; }
.machine .ed:focus-visible path.line, .machine .st:focus-visible rect { stroke: var(--ink); stroke-width: 3; }
.machine .start { fill: var(--ink); }
.machine .veil { fill: var(--surface); opacity: .8; }
.machine .veiltext { fill: var(--stop); font: 600 15px var(--body); text-anchor: middle; }
.mach-head { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; margin: 22px 0 8px; }
.mach-head h3 { font-family: var(--display); font-size: 19px; margin: 0; }
.mach-head span { font-size: 13px; color: var(--muted); }
.mach-board { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px); gap: 18px; align-items: start; }
.mach-board .detail { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 12px); }
.badge { display: inline-block; font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: .05em; padding: 2px 7px; border-radius: 5px; }
.badge.works { background: var(--ok-soft); color: var(--ok); }
.badge.degrades { background: var(--human-soft); color: var(--human); }
.badge.unavailable { background: var(--stop-soft); color: var(--stop); }
.badge.idle { background: var(--bg); color: var(--muted); border: 1px solid var(--line); }
table.cap { border-collapse: collapse; width: 100%; font-size: 14px; }
table.cap td { padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.cap td:first-child { white-space: nowrap; font-family: var(--mono); font-size: 13px; }
.trans { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; font-size: 14px; }
.trans button { all: unset; cursor: pointer; color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.trans button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Project file */
.json { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 6px; font: 13px/1.6 var(--mono); overflow-x: auto; white-space: pre; }
.json .jk { all: unset; cursor: pointer; color: var(--accent); border-radius: 4px; padding: 0 2px; }
.json .jk.warn { color: var(--human); }
.json .jk:hover { background: var(--accent-soft); }
.json .jk[aria-current="true"] { background: var(--ink); color: var(--surface); }
.json .jk:focus-visible { outline: 2px solid var(--accent); }
.json .js { color: var(--ink); }
.json .jn { color: var(--gen); }
.json .jp { color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.cards div { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-size: 14px; min-width: 0; }
.cards b { display: block; margin-bottom: 2px; }
.cards.warn div { border-left: 3px solid var(--human); }
ol.steps { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; counter-reset: s; }
ol.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 13.5px; flex: 1 1 150px; min-width: 0; }
ol.steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: var(--surface); font: 600 11px var(--mono); margin-right: 6px; }
ol.steps b { font-weight: 600; }
/* Components */
.fan { display: grid; grid-template-columns: minmax(0, 240px) 40px minmax(0, 1fr); gap: 10px; align-items: stretch; }
.fan .src { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--ink); border-radius: 8px; padding: 12px 14px; display: grid; gap: 4px; align-content: start; }
.fan .src b { font-family: var(--display); font-size: 17px; }
.fan .src span { font: 12px var(--mono); color: var(--muted); }
.fan .arrows { display: grid; place-items: center; color: var(--muted); font: 600 22px var(--mono); }
.fan .targets { display: grid; gap: 8px; }
.tgt { all: unset; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 8px; padding: 8px 12px; }
.tgt.gen { border-left-color: var(--gen); }
.tgt .g { font-weight: 600; }
.tgt .l { font: 12px var(--mono); color: var(--muted); }
.tgt .d { grid-column: 1 / -1; font: 12px var(--mono); color: var(--muted); overflow-wrap: anywhere; }
.tgt[aria-current="true"] { box-shadow: 0 0 0 2px var(--ink); }
.tgt:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rules { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
/* Loop */
.fronts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.fronts div { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-size: 14px; min-width: 0; }
.fronts div.on { box-shadow: 0 0 0 2px var(--accent); }
.fronts code { font-weight: 600; display: block; margin-bottom: 2px; }
.cmdchain { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 10px 0; }
.cmdchain code { background: var(--bg); border: 1px solid var(--line); border-radius: 5px; padding: 2px 6px; font-size: 12.5px; }
.cmdchain i { color: var(--muted); font-style: normal; }
table.surf { border-collapse: collapse; width: 100%; font-size: 14px; }
table.surf th, table.surf td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.surf th { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.foot { margin-top: 40px; font-size: 13px; color: var(--muted); max-width: 80ch; }
/* Detail panels follow the scroll beside long lists; on phones they stack below instead. */
@media (min-width: 861px) {
.board > .detail, .finder > div:last-child { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 12px); max-height: calc(100vh - 24px); overflow-y: auto; }
}
@media (max-width: 980px) {
.chain { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.chain .node:nth-child(2n)::after { display: none; }
}
@media (max-width: 860px) {
.layout { grid-template-columns: minmax(0, 1fr); }
nav.views { position: static; flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 4px; }
nav.views button { white-space: nowrap; }
nav.views button .s { display: none; }
nav.views button[aria-selected="true"] { box-shadow: inset 0 -3px 0 var(--accent); }
.board, .finder, .sim, .mach-board { grid-template-columns: minmax(0, 1fr); }
.mach-board .detail { position: static; }
.own, .cards, .fronts { grid-template-columns: minmax(0, 1fr); }
.fan { grid-template-columns: minmax(0, 1fr); }
.fan .arrows { transform: rotate(90deg); height: 30px; }
}
@media (max-width: 560px) {
.chain { grid-template-columns: minmax(0, 1fr); }
.chain .node::after { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
.detail, .outcome { transition: background-color .15s ease; }
}
</style>
</head>
<body>
<div class="wrap">
<header class="top">
<div>
<h1>Specfuse Authoring Flows</h1>
<p class="lede">How an idea becomes validated specs, what lives where in your project, which skill to reach for, and what <code>specfuse authoring upgrade</code> will do to your files.</p>
</div>
<div class="legend" aria-label="Legend">
<span><i class="dot auto"></i>a skill or the kit</span>
<span><i class="dot human"></i>you decide</span>
<span><i class="dot gen"></i>generated or downstream</span>
<span><i class="dot end"></i>done here</span>
</div>
</header>
<div class="layout">
<nav class="views" id="nav" role="tablist" aria-label="Views"></nav>
<main id="main"></main>
</div>
<p class="foot">The handbooks and templates are the source of truth; this page is a map of them and links to each. It ships with the kit and <code>specfuse authoring upgrade</code> replaces it, so it describes the version you have installed. Skills are invoked as <code>/specfuse-authoring:<name></code> once the plugin is installed.</p>
</div>
<script type="application/json" id="kit-data">
{
"views": [
{"id": "picture", "name": "Big picture", "sub": "Where the kit sits"},
{"id": "lifecycle", "name": "Idea to specs", "sub": "The initiative lifecycle"},
{"id": "states", "name": "State machine", "sub": "Every state and transition"},
{"id": "structure", "name": "Your project", "sub": "What lives where"},
{"id": "projectfile", "name": "Project file", "sub": "<project>-project.json"},
{"id": "components", "name": "Specs and components", "sub": "Where generated code goes"},
{"id": "loop", "name": "The loop", "sub": "When and how to use it"},
{"id": "skills", "name": "Which skill?", "sub": "Find the right command"},
{"id": "validation", "name": "Validation", "sub": "What catches what"},
{"id": "upgrade", "name": "Upgrades", "sub": "What happens to a file"}
],
"planes": [
{"id": "kit", "kind": "auto", "row": "forward", "title": "Authoring kit", "sub": "The contract: rules, samples, linters, skills", "path": "specfuse authoring init | upgrade",
"body": "The kit defines how specs are written. Handbooks state the rules, samples show the canonical shapes, Spectral rulesets enforce them, and the validation scripts run every layer. The Claude Code skills and agents ship separately as the specfuse-authoring plugin in the specfuse marketplace.",
"facts": [["Delivered by", "<code>specfuse authoring init</code> once, then <code>specfuse authoring upgrade</code>"], ["Skills", "<code>/plugin install specfuse-authoring@specfuse</code>, updated with <code>/plugin update</code>"], ["Lands in", "<code>.specfuse/authoring/</code> and <code>scripts/specfuse/</code>"]],
"links": [["Getting started", "https://github.com/specfuse/authoring/blob/main/docs/getting-started.md"], ["Kit README", "https://github.com/specfuse/authoring/blob/main/README.md"]]},
{"id": "specs", "kind": "yours", "row": "forward", "title": "Your specs repo", "sub": "OpenAPI, AsyncAPI, Arazzo, backlog", "path": "api/specs/v1/ docs/product/",
"body": "You own everything you author: the OpenAPI operations and models, the AsyncAPI channels, events and workers, the Arazzo scenarios and setup recipes, and the ideation backlog. Skills write here with you; the kit's upgrade never touches it.",
"facts": [["Specs", "<code>api/specs/v1/</code>"], ["Backlog", "<code>docs/product/INITIATIVE_BACKLOG.md</code> plus one dossier per idea"], ["Generator config", "<code><project>-project.json</code>"]],
"links": [["API handbook", "../handbooks/API_Handbook.md"], ["AsyncAPI handbook", "../handbooks/AsyncAPI_Handbook.md"], ["Arazzo handbook", "../handbooks/Arazzo_Handbook.md"]]},
{"id": "generator", "kind": "auto", "row": "forward", "title": "Generator", "sub": "Validates the model, generates the code", "path": "generator.lock",
"body": "The Specfuse generator reads your bundled specs through the project file. Its validate pass is the last and broadest gate: the DDD ruleset, the async cross-spec rules and the source-tree rules. Its generate pass produces code and documentation. The kit pins one generator version and checks the jar's checksum before running it.",
"facts": [["Validate", "<code>./scripts/specfuse/validate-generator.sh</code>"], ["Generate", "<code>specfuse authoring generate --group <group> <project>-project.json</code>"], ["Access", "Needs a generator token; see generator access"]],
"links": [["Project file", "../handbooks/Project_File.md"], ["Generator access", "https://github.com/specfuse/authoring/blob/main/docs/generator-access.md"]]},
{"id": "output", "kind": "gen", "row": "forward", "title": "Generated output", "sub": "Backend, frontend, workers, docs", "path": "output/ api/docs/flows/ docs/generated/",
"body": "Generated code (C# backend and workers, Flutter frontend, per the groups your project file declares), the bundled specs under output/, and Markdown documentation: one page per scenario under api/docs/flows/ plus technical references under docs/generated/. Regenerate rather than edit.",
"facts": [["Bundles", "<code>output/openapi-bundled.yaml</code>, <code>output/asyncapi-bundled.yaml</code>"], ["Scenario docs", "<code>./scripts/specfuse/generate-scenario-docs.sh</code>"]],
"links": [["Vendor extensions", "../handbooks/Vendor_Extensions.md"]]},
{"id": "handoff", "kind": "auto", "row": "down", "title": "Handoff manifest", "sub": "Packages finished specs for implementation", "path": "api/docs/handoffs/",
"body": "prepare-handoff runs the full validation suite, regenerates scenario docs and bundles, builds the operation, async, entity and scenario inventories, and has the handoff-composer agent write one manifest. It writes nothing outside your repo.",
"facts": [["Skill", "<code>/specfuse-authoring:prepare-handoff</code>"], ["Backlog effect", "The idea becomes <code>specified</code>"]],
"links": [["Backlog template", "../templates/initiative-backlog.template.md"]]},
{"id": "orchestrator", "kind": "human", "row": "down", "title": "Orchestration repo", "sub": "Registry and the INIT- mint · optional", "path": "features/INIT-YYYY-NNNN.md",
"body": "A person decides to implement. initiative-intake mints the INIT-YYYY-NNNN correlation ID, writes the registry entry and emits initiative_created. From a manifest the initiative starts at planning, and decomposition into per-repo work reads the manifest's component inventory instead of guessing it.",
"facts": [["Skill", "<code>/specfuse-authoring:initiative-intake</code>"], ["Configured by", "<code>repos.orchestrator</code> in <code>.specfuse/authoring/config.yml</code>"], ["Without one", "Ideation, design, validation and generation still work; handoff and intake do not. See the State machine view."]],
"links": [["Backlog template", "../templates/initiative-backlog.template.md"]]},
{"id": "loop", "kind": "gen", "row": "down", "title": "Implementation", "sub": "Component repos and their agents", "path": "specfuse:spec-issue",
"body": "Component repos implement against your specs. When an implementing agent finds a problem in a spec it files an issue labelled specfuse:spec-issue; spec-issue-triage decides whether the fix is a spec correction you make here or a generator template bug to report upstream.",
"facts": [["Spec problems come back as", "<code>specfuse:spec-issue</code> issues, handled by <code>/specfuse-authoring:spec-issue-triage</code>"], ["Generated code wrong", "<code>/specfuse-authoring:file-generator-issue</code>"]],
"links": [["AI access policy", "../handbooks/AI_Access_Policy_Framework.md"]]}
],
"owners": [
["specfuse/authoring", "This kit: handbooks, samples, Spectral rulesets, validation scripts, the authoring skills and agents, and the idea dossier template."],
["Your specs repo", "Every spec file, the backlog and dossiers, the project file, config.yml, CLAUDE.md."],
["The orchestration repo", "Initiative registry entries and the INIT- mint. It reads your handoff manifest; it never reads your backlog."],
["specfuse/loop", "The methodology and the rules for spec work units when specs are authored under gates."]
],
"backlogStates": ["idea", "shaping", "ready", "specified", "minted", "delivered", "parked", "dropped"],
"backlogSide": ["delivered", "parked", "dropped"],
"readiness": [
"Problem stated (a real pain/opportunity, not a solution in disguise)",
"Value clear (one-sentence user-observable outcome)",
"Rough scope + boundary (in and out, coarse but bounded)",
"Target repos named (which components it spans)"
],
"lifecycles": [
{"id": "spec-first", "name": "Specs before the mint", "tag": "default",
"summary": "The default for spec-first projects. You author the specs under gates first; the INIT- is minted from the handoff manifest, so the orchestrator decomposes a known spec surface instead of rediscovering it.",
"stages": [
{"t": "Capture the idea", "skill": "ideation-capture", "kind": "auto", "state": "idea",
"body": "Record the idea before it is lost. One row in the backlog index and a stub dossier, both at <code>idea</code>. No interview and no readiness check: capture is meant to be cheap. Ideas from people outside the project can come in with <code>--from-issue <url></code>.",
"writes": "<code>docs/product/INITIATIVE_BACKLOG.md</code> row and <code>docs/product/backlog/IDEA-NNN-<slug>.md</code>"},
{"t": "Shape it to ready", "skill": "ideation-shape", "kind": "human", "state": "shaping",
"body": "Work the dossier until its specs can be authored. The skill infers what it can from your files and asks you the rest, moving the idea <code>idea → shaping → ready</code>. It is also where you decide to bundle several ideas into one initiative.",
"writes": "The dossier and the index row's state",
"stops": ["All four readiness items must be checked before the idea is <code>ready</code>.", "Bundling is your decision, recorded in the lead dossier's <code>bundles:</code>. It is never inferred."],
"readiness": true},
{"t": "Publish to GitHub", "skill": "ideation-publish", "kind": "human", "state": "ready", "optional": true,
"body": "Optional. Opens a GitHub issue for the idea so it can be assigned and planned on a GitHub Project while its specs are authored. Offered when the idea reaches <code>ready</code>, never done automatically. After that the issue mirrors the idea's state.",
"writes": "One GitHub issue, in the repo set under <code>github:</code> in <code>config.yml</code>",
"stops": ["You confirm anything that adds new public text."]},
{"t": "Author the specs", "skill": "design-scenario", "also": ["design-async", "design-recipe", "create-job", "create-worker"], "kind": "auto", "state": "ready",
"body": "Authoring happens in a loop feature, under gates, not in a backlog state. The dossier records which feature (<code>graduated_to</code>) and since when (<code>started</code>). Each work unit must leave the whole spec tree validating. The design skills do the shaping of each scenario, event, job, worker and recipe.",
"writes": "<code>api/specs/v1/</code>",
"stops": ["You review and arm each gate's work units (<code>/arm-gate</code> in the loop).", "A dangling <code>$ref</code> breaks the bundle and fails every validation layer at once."]},
{"t": "Validate everything", "skill": "validate", "also": ["validate-async", "validate-scenarios", "review-scenario"], "kind": "auto", "state": "ready",
"body": "Run the full suite: OpenAPI, AsyncAPI and Arazzo structure and lint, then the generator's cross-spec gate. <code>review-scenario</code> gives each new scenario a cold second opinion before merge. See the Validation view for what each layer catches.",
"writes": "Nothing in your specs; bundles under <code>output/</code>",
"cmd": "./scripts/specfuse/validate-specs.sh"},
{"t": "Publish the handoff", "skill": "prepare-handoff", "kind": "auto", "state": "specified",
"body": "Packages the finished specs: re-runs validation, regenerates scenario docs and bundles, builds the inventories and has the <code>handoff-composer</code> agent write the manifest. The idea becomes <code>specified</code>, and its dossier records the manifest in <code>handoff</code>.",
"writes": "<code>api/docs/handoffs/</code>"},
{"t": "Decide: implement or not", "kind": "human", "state": "specified",
"body": "<code>specified</code> is a waypoint, never a resting place: it means the specs exist and a decision is owed. Implement it, or record it as <code>delivered</code> when the spec tree is the whole deliverable. <code>ideation-groom</code> reports any <code>specified</code> idea that sits too long.",
"stops": ["Mint it (next stage), or mark it <code>delivered</code>: a spec-only idea gets no INIT-, because a registry entry nothing implements does nothing.", "Or park it: <code>parked</code> is a good idea at the wrong time."]},
{"t": "Mint the initiative", "skill": "initiative-intake", "kind": "end", "state": "minted",
"body": "Reads the dossier and the manifest, mints <code>INIT-YYYY-NNNN</code>, writes the registry entry in the orchestration repo with <code>specs_source</code> pointing at the manifest, and starts it at <code>planning</code>. The backlog row, and any bundled rows, flip to <code>minted</code> and link the INIT-.",
"writes": "The orchestration repo's registry; your backlog row"}
],
"aside": "Run <code>/specfuse-authoring:ideation-groom</code> now and then: it surfaces ideas ready to mint, parks stale ones, flags duplicates, undated feature starts and orphaned dossiers. It never deletes a row."},
{"id": "mint-first", "name": "Mint first", "tag": "small specs",
"summary": "The older order, still right when the specs are small next to the implementation. The INIT- is minted from the dossier alone and the specs are drafted inside the initiative, with the specs agent as partner.",
"stages": [
{"t": "Capture the idea", "skill": "ideation-capture", "kind": "auto", "state": "idea",
"body": "Same as the default path: one index row and a stub dossier at <code>idea</code>.",
"writes": "<code>docs/product/INITIATIVE_BACKLOG.md</code> and a dossier"},
{"t": "Shape it to ready", "skill": "ideation-shape", "kind": "human", "state": "ready",
"body": "Work the dossier through the four-point readiness checklist. A <code>ready</code> idea with no <code>graduated_to</code> is eligible for intake on this path.",
"stops": ["All four readiness items checked."], "readiness": true},
{"t": "Mint the initiative", "skill": "initiative-intake", "kind": "human", "state": "minted",
"body": "Mints <code>INIT-YYYY-NNNN</code> from the dossier, writes the registry entry, emits <code>initiative_created</code> and sets the initiative to <code>drafting</code>. No downstream skill can work on the initiative until this entry exists.",
"writes": "The orchestration repo's registry; your backlog row",
"stops": ["You decide to start the initiative; the mint is not reversible, an INIT- id is never reused."]},
{"t": "Draft the specs", "skill": "spec-drafting", "also": ["design-scenario", "design-async", "design-recipe"], "kind": "human", "state": "minted",
"body": "Three conversational phases: feature scoping, spec drafting, pre-validation review. Your product judgment leads; the skill keeps acceptance criteria concrete, single-behavior and testable. It never runs the validator or changes frontmatter.",
"writes": "The initiative's specs"},
{"t": "Validate and hand to planning", "skill": "spec-validation", "kind": "end", "state": "minted",
"body": "Runs Specfuse validation, turns failures into actionable feedback, and owns the <code>drafting → validating → planning</code> transitions. It emits <code>spec_validated</code> and never transitions on a failed run. At <code>planning</code> the PM agent takes over.",
"stops": ["You ask for validation; on failure you fix and run again."]}
],
"aside": "Both paths are legal. What is never right is dispatching implementation against specs that do not exist."},
{"id": "standalone", "name": "No orchestrator", "tag": "kit only",
"summary": "A specs repo with the kit but no orchestration repo: nothing to hand off to and nothing to mint into. Ideation, design, validation and generation all work. Handoff, intake, spec-drafting and spec-validation do not, because each reads or writes the orchestration repo.",
"stages": [
{"t": "Capture the idea", "skill": "ideation-capture", "kind": "auto", "state": "idea",
"body": "Unchanged. Capture never touches the orchestration repo.",
"writes": "<code>docs/product/INITIATIVE_BACKLOG.md</code> and a dossier"},
{"t": "Shape it to ready", "skill": "ideation-shape", "kind": "human", "state": "ready",
"body": "Works from the backlog alone. The one check it cannot make is overlap with already-minted initiatives; the report says <em>Overlap against minted work was not checked</em> instead of stopping.",
"stops": ["All four readiness items checked."], "readiness": true},
{"t": "Publish to GitHub", "skill": "ideation-publish", "kind": "human", "state": "ready", "optional": true,
"body": "Optional and unchanged. It needs <code>github.ideas.repo</code> in <code>config.yml</code>, not an orchestrator. A GitHub issue and Project board can stand in for the planning an orchestrator would do."},
{"t": "Author the specs", "skill": "design-scenario", "also": ["design-async", "design-recipe", "create-job", "create-worker"], "kind": "auto", "state": "ready",
"body": "Interactively with the design skills, or as a loop feature if the Specfuse loop is installed (then set <code>graduated_to</code> and <code>started</code>). <code>spec-drafting</code> is not available: it works inside a minted initiative.",
"writes": "<code>api/specs/v1/</code>"},
{"t": "Validate", "skill": "validate", "also": ["validate-async", "validate-scenarios", "review-scenario"], "kind": "auto", "state": "ready",
"body": "The full suite runs entirely in your repo. It replaces <code>spec-validation</code>, which records its result in the registry.",
"cmd": "./scripts/specfuse/validate-specs.sh"},
{"t": "Generate and build", "skill": "generate", "also": ["bundle"], "kind": "auto", "state": "ready",
"body": "Generate code and docs from the validated specs and implement against them yourself. There is no handoff manifest: <code>prepare-handoff</code> stops at its first step without the orchestration repo's handoff contract.",
"writes": "Generated code, <code>api/docs/flows/</code>, <code>docs/generated/</code>"},
{"t": "Close the idea", "kind": "end", "state": "delivered",
"body": "No skill takes an idea past <code>ready</code> here: <code>specified</code> needs a manifest and <code>minted</code> needs a registry. Record <code>delivered</code> by hand in the dossier and the row once the specs are authored and validated.",
"stops": ["You record <code>delivered</code>, or <code>parked</code> / <code>dropped</code>. The templates describe <code>delivered</code> as following <code>specified</code>, so this ending is not documented there yet; see the State machine view."]}
],
"aside": "<code>ideation-groom</code> still runs and grades every class except <em>overtaken</em>. It keeps listing <code>ready</code> ideas as ready to mint, which here you can read as ready to close."}
],
"machine": {
"source": "https://github.com/specfuse/specfuse/blob/main/docs/unit-lifecycles.md",
"backlog": {
"viewBox": "0 0 900 400",
"start": {
"x": 20,
"y": 200
},
"states": {
"idea": {
"x": 105,
"y": 200,
"meaning": "Captured and not yet shaped. A one-line row and a stub dossier is a valid, encouraged state: the backlog's job is to lose no idea.",
"sets": "idea_id, slug"
},
"shaping": {
"x": 270,
"y": 200,
"meaning": "The dossier is being worked: context, scope, target repos, readiness checklist. It stays here until every readiness item is checked and no [blocking] unknown remains.",
"sets": "target_repos, bundles / bundled_into"
},
"ready": {
"x": 440,
"y": 200,
"meaning": "Cleared to have its specs authored, not cleared to mint. Authoring is not a backlog state: when a loop feature starts authoring the specs, the dossier records graduated_to and started, and the idea stays ready until the manifest is published.",
"sets": "graduated_to, started"
},
"specified": {
"x": 625,
"y": 200,
"meaning": "The specs exist and a handoff manifest is published. A decision is owed: implement it or record it as delivered. A waypoint, never a resting place; ideation-groom reports one that ages.",
"sets": "handoff"
},
"minted": {
"x": 815,
"y": 200,
"meaning": "Graduated: an INIT-YYYY-NNNN exists in the orchestration repo. The row stays as a breadcrumb; the registry takes over. Bundled rows flip with the lead.",
"sets": "minted_init",
"end": true
},
"delivered": {
"x": 625,
"y": 345,
"meaning": "The terminal state for spec-only work: the spec tree was the whole deliverable, so no INIT- is minted. A deliberate act a person records, not a state a row decays into.",
"end": true
},
"parked": {
"x": 190,
"y": 62,
"meaning": "A good idea at the wrong time. Kept, and revisited at groom.",
"side": true
},
"dropped": {
"x": 530,
"y": 62,
"meaning": "Decided against. The row and dossier stay with a one-line reason, so the idea is not proposed again.",
"end": true,
"side": true
}
},
"edges": [
{
"id": "capture",
"from": "start",
"to": "idea",
"by": "ideation-capture",
"cond": "Any time. A typed title, or --from-issue <url> for an idea someone filed on GitHub.",
"writes": "A row in docs/product/INITIATIVE_BACKLOG.md and docs/product/backlog/IDEA-NNN-<slug>.md"
},
{
"id": "shape",
"from": "idea",
"to": "shaping",
"by": "ideation-shape",
"label": "shape",
"cond": "The first substantive edit to the dossier.",
"writes": "Dossier and row state",
"degrades": "Overlap with already-minted initiatives is not checked; the report says so."
},
{
"id": "ready",
"from": "shaping",
"to": "ready",
"by": "ideation-shape",
"label": "4/4 ready",
"cond": "All four readiness items genuinely checked and no [blocking] unknown left. The skill then offers ideation-publish.",
"writes": "Dossier and row state",
"degrades": "Overlap with already-minted initiatives is not checked."
},
{
"id": "reshape",
"from": "ready",
"to": "shaping",
"by": "ideation-groom",
"label": "under-shaped",
"bend": -46,
"cond": "Groom finds the readiness boxes checked but the dossier thin or unsupported. Reverted when you accept the report.",
"writes": "The backlog index"
},
{
"id": "handoff",
"from": "ready",
"to": "specified",
"by": "prepare-handoff",
"label": "handoff",
"needs": "orchestrator",
"cond": "The specs are authored and the whole suite validates. The manifest carries the id of the loop feature that authored the specs.",
"writes": "api/docs/handoffs/<id>.md; the dossier's handoff field",
"why": "prepare-handoff reads the handoff contract from the orchestration repo and stops at its first step when that repo cannot be resolved."
},
{
"id": "mint-direct",
"from": "ready",
"to": "minted",
"by": "initiative-intake",
"label": "mint first",
"bend": 112,
"needs": "orchestrator",
"cond": "Mint-first path: a ready idea with no graduated_to. The specs will be drafted inside the INIT-, starting at drafting.",
"writes": "The registry entry in the orchestration repo; minted_init on the dossier",
"why": "Intake writes the registry entry in the orchestration repo and mints the id from it.",
"ldx": 78
},
{
"id": "mint",
"from": "specified",
"to": "minted",
"by": "initiative-intake",
"label": "mint",
"needs": "orchestrator",
"cond": "A person decides to implement. Intake reads the dossier and the manifest; the initiative starts at planning.",
"writes": "The registry entry with specs_source; minted_init on the dossier",
"why": "Intake writes the registry entry in the orchestration repo and mints the id from it."
},
{
"id": "deliver",
"from": "specified",
"to": "delivered",
"by": null,
"label": "spec-only",
"cond": "The spec tree is the whole deliverable; no component repo will implement it as an initiative.",
"writes": "Dossier and row state, by hand. On a published idea, ideation-publish shows the reason before posting it.",
"ldy": 40,
"ldx": -30
},
{
"id": "gap",
"from": "ready",
"to": "delivered",
"by": null,
"label": "by hand",
"bend": -30,
"gap": true,
"only": "standalone",
"cond": "Without an orchestration repo no skill moves an idea past ready: prepare-handoff cannot publish a manifest, so specified is unreachable, and there is nothing to mint into. The workable ending today is to record delivered by hand once the specs are authored and validated.",
"writes": "Dossier and row state, by hand",
"why": "The templates describe delivered as following specified, so this ending is not documented there yet."
},
{
"id": "park-idea",
"from": "idea",
"to": "parked",
"by": "ideation-groom",
"cond": "Stale: untouched a long while, no momentum. Parked when you accept the groom report.",
"writes": "The backlog index"
},
{
"id": "park-shaping",
"from": "shaping",
"to": "parked",
"by": "ideation-groom",
"bend": 18,
"cond": "Stale: untouched a long while, no momentum.",
"writes": "The backlog index"
},
{
"id": "revisit",
"from": "parked",
"to": "shaping",
"by": null,
"bend": 18,
"dashed": true,
"cond": "Picked back up. Parked ideas are revisited at groom; resuming one is your call.",
"writes": "Row state, then ideation-shape"
},
{
"id": "drop-parked",
"from": "parked",
"to": "dropped",
"by": null,
"cond": "Decided against after parking. Record a one-line reason.",
"writes": "Row state and reason"
},
{
"id": "drop-idea",
"from": "idea",
"to": "dropped",
"by": null,
"cond": "Decided against. The row is kept with a one-line reason, never deleted.",
"writes": "Row state and reason"
},
{
"id": "drop-shaping",
"from": "shaping",
"to": "dropped",
"by": null,
"cond": "Decided against, for example because it duplicates already-minted work.",
"writes": "Row state and reason"
},
{
"id": "drop-ready",
"from": "ready",
"to": "dropped",
"by": "ideation-groom",
"cond": "Overtaken: groom finds it overlaps an already-minted INIT- and recommends dropped with a link.",
"writes": "The backlog index",
"degrades": "Without an orchestration repo groom cannot see minted work, so it reports overtaken as not assessed."
}
]
},
"registry": {
"viewBox": "0 0 900 340",
"start": {
"x": 22,
"y": 70
},
"states": {
"drafting": {
"x": 140,
"y": 70,
"meaning": "Minted from a dossier; the specs are being drafted with spec-drafting and the design skills."
},
"validating": {
"x": 310,
"y": 70,
"meaning": "spec-validation has run or is running. A failed run emits no transition and leaves the initiative here; it never goes back to drafting."
},
"planning": {
"x": 480,
"y": 70,
"meaning": "The plane handoff has happened: the pm agent owns the initiative and decomposes it into a feature graph."
},
"plan_review": {
"x": 650,
"y": 70,
"meaning": "The pm has proposed a feature graph and waits for a person to approve it. The pm never approves its own plan."
},
"generating": {
"x": 820,
"y": 70,
"meaning": "Approved. The pm generates code and opens one specfuse:feature issue per feature, per repo."
},
"in_progress": {
"x": 820,
"y": 205,
"meaning": "Component repos are running their loop features. The merge watcher closes tasks as PRs merge."
},
"done": {
"x": 650,
"y": 205,
"meaning": "The last feature is done and the pm has written the cross-component retro.",
"end": true
},
"blocked": {
"x": 310,
"y": 205,
"meaning": "An agent escalated. A person resolves the escalation and the initiative returns to drafting.",
"side": true
},
"abandoned": {
"x": 820,
"y": 300,
"meaning": "Stopped by a person, or by the pm cascading an abandonment.",
"end": true,
"side": true
}
},
"edges": [
{
"id": "r-intake",
"from": "start",
"to": "drafting",
"by": "initiative-intake",
"cond": "Mint first: intake mints the INIT-, writes the registry entry and emits initiative_created.",
"writes": "features/INIT-YYYY-NNNN.md in the orchestration repo"
},
{
"id": "r-manifest",
"from": "start",
"to": "planning",
"by": "initiative-intake",
"label": "from a manifest",
"bend": -58,
"cond": "Spec-before-mint: the specs were authored and validated under gates before the mint, so drafting and validating are skipped. The registry records specs_source.",
"writes": "features/INIT-YYYY-NNNN.md with specs_source"
},
{
"id": "r-validate",
"from": "drafting",
"to": "validating",
"by": "spec-validation",
"label": "validate",
"cond": "You ask for validation. The transition is emitted before the validator runs, so the log records the attempt even if it crashes.",
"writes": "Registry state and an event"
},
{
"id": "r-fail",
"from": "validating",
"to": "validating",
"by": "spec-validation",
"label": "fails",
"self": true,
"cond": "Errors found: no transition is emitted. Fix the specs and run validation again from here. Three failures in a row raise a spinning_detected escalation.",
"writes": "Nothing in the registry state"
},
{
"id": "r-pass",
"from": "validating",
"to": "planning",
"by": "spec-validation",
"label": "clean pass",
"cond": "Zero errors. This is the plane handoff from the specs agent to the pm.",
"writes": "Registry state and events"
},
{
"id": "r-plan",
"from": "planning",
"to": "plan_review",
"by": null,
"label": "pm plans",
"agent": "pm",
"cond": "The pm decomposes the initiative into a feature graph and writes a plan-review file.",
"writes": "Feature graph INIT-…/FNN, plan-review file"
},
{
"id": "r-reject",
"from": "plan_review",
"to": "planning",
"by": null,
"label": "rejected",
"bend": 34,
"cond": "A person rejects the plan; the pm plans again.",
"writes": "Registry state"
},
{
"id": "r-approve",
"from": "plan_review",
"to": "generating",
"by": null,
"label": "approved",
"cond": "The approval gate. A person approves; the pm never self-approves.",
"writes": "Registry state"
},
{
"id": "r-dispatch",
"from": "generating",
"to": "in_progress",
"by": null,
"label": "dispatched",
"agent": "pm",
"cond": "The first task issue is opened in a component repo.",
"writes": "specfuse:feature issues"
},
{
"id": "r-done",
"from": "in_progress",
"to": "done",
"by": null,
"label": "all merged",
"agent": "merge watcher, then pm",
"cond": "The last feature is done and the pm writes the retro.",
"writes": "Root LEARNINGS.md"
},
{
"id": "r-abandon",
"from": "in_progress",
"to": "abandoned",
"by": null,
"cond": "A person stops the initiative, or the pm cascades an abandonment.",
"writes": "Registry state"
},
{
"id": "r-block-d",
"from": "drafting",
"to": "blocked",
"by": null,
"agent": "any agent",
"cond": "Escalation. Any agent can block an initiative from drafting, validating, planning, generating or in_progress.",
"writes": "Registry state"
},
{
"id": "r-block-v",
"from": "validating",
"to": "blocked",
"by": null,
"agent": "any agent",
"cond": "Escalation, for example spinning_detected after three failed validations.",
"writes": "Registry state",
"bend": -52
},
{
"id": "r-block-p",
"from": "planning",
"to": "blocked",
"by": null,
"agent": "any agent",
"cond": "Escalation.",
"writes": "Registry state"
},
{
"id": "r-block-g",
"from": "generating",
"to": "blocked",
"by": null,
"agent": "any agent",
"cond": "Escalation.",
"writes": "Registry state"
},
{
"id": "r-block-i",
"from": "in_progress",
"to": "blocked",
"by": null,
"agent": "any agent",
"bend": -40,
"cond": "Escalation.",
"writes": "Registry state"
},
{
"id": "r-unblock",
"from": "blocked",
"to": "drafting",
"by": null,
"label": "resolved",
"bend": -30,
"cond": "A person resolves the escalation; the initiative returns to drafting.",
"writes": "Registry state"
}
]
}
},
"standalone": [
["ideation-capture", "works", "Writes only to this repo."],
["ideation-shape", "degrades", "Shapes from the backlog alone; overlap with minted work is not checked and the report says so."],
["ideation-publish", "works", "Needs github.ideas.repo in config.yml, not the orchestrator."],
["ideation-groom", "degrades", "Every class is graded except overtaken, reported as not assessed. It keeps listing ready ideas as ready to mint."],
["initiative-intake", "unavailable", "Writes the registry entry in the orchestration repo and mints the INIT- from it."],
["spec-drafting", "unavailable", "Works inside a minted INIT- and updates its registry entry. Use the design skills and the handbooks instead."],
["spec-validation", "unavailable", "Owns the registry's drafting → validating → planning transitions. Use validate, validate-async and validate-scenarios instead."],
["prepare-handoff", "unavailable", "Reads the handoff contract from the orchestration repo and stops at its first step without it."],
["spec-issue-triage", "idle", "Spec issues are filed from the orchestrator side, so nothing arrives to triage."],
["design-scenario", "works", ""],
["update-scenario", "works", ""],
["deprecate-scenario", "works", ""],
["design-recipe", "works", ""],
["design-flow", "works", ""],
["design-async", "works", ""],
["create-job", "works", ""],
["create-worker", "works", ""],
["list-scenarios", "works", ""],
["review-scenario", "works", ""],
["impact-scenarios", "works", ""],
["validate", "works", ""],
["validate-async", "works", ""],
["validate-scenarios", "works", ""],
["preview", "works", ""],
["preview-async", "works", ""],
["bundle", "works", ""],
["generate", "works", "Needs generator access, not the orchestrator."],
["file-generator-issue", "works", "Files against the generator repo on GitHub."]
],
"projectFile": {
"sample": {
"name": "hello-orders",
"description": "Orders backend, mobile app and AI services.",
"openApiSpecifications": "./output/openapi-bundled.yaml",
"asyncSpecifications": "./output/asyncapi-bundled.yaml",
"arazzoSpecifications": "./api/specs/v1",
"asyncSourceRoot": "./api/specs/v1",
"dbContextClassname": "HelloOrdersDbContext",
"stateDir": "./.specfuse/state",
"tenancy": {
"tenant": {
"entity": "Tenant",
"foreignKey": "TenantId",
"marker": "ITenantOwned"
}
},
"broker": {
"type": "azureServiceBus"
},
"groups": [
{
"name": "Domain",
"language": "C#",
"basePackage": "HelloOrders.Domain",
"destination": "../Backend/",
"cleanGenerated": true,
"artifacts": [