prodigy 0.4.4

Turn ad-hoc Claude sessions into reproducible development pipelines with parallel AI agents
Documentation
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
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
{
  "chapters": [
    {
      "id": "installation",
      "title": "Installation",
      "file": "book/src/installation.md",
      "type": "single-file",
      "topics": [
        "Installation",
        "Prerequisites",
        "Cargo Installation",
        "Building from Source"
      ],
      "validation": "Check installation documentation matches implementation"
    },
    {
      "id": "workflow-basics",
      "title": "Workflow Basics",
      "type": "multi-subsection",
      "topics": [
        "Standard workflows",
        "Basic structure",
        "Command execution"
      ],
      "validation": "Check basic workflow syntax and structure documentation",
      "index_file": "book/src/workflow-basics/index.md",
      "subsections": [
        {
          "id": "available-fields",
          "title": "Available Fields",
          "file": "book/src/workflow-basics/available-fields.md",
          "topics": [
            "Available Fields"
          ],
          "validation": "Check available fields documentation matches implementation"
        },
        {
          "id": "command-level-options",
          "title": "Command-Level Options",
          "file": "book/src/workflow-basics/command-level-options.md",
          "topics": [
            "Command-Level Options"
          ],
          "validation": "Check command-level options documentation matches implementation"
        },
        {
          "id": "command-types",
          "title": "Command Types",
          "file": "book/src/workflow-basics/command-types.md",
          "topics": [
            "Command Types"
          ],
          "validation": "Check command types documentation matches implementation"
        },
        {
          "id": "complete-example",
          "title": "Complete Example",
          "file": "book/src/workflow-basics/complete-example.md",
          "topics": [
            "Complete Example"
          ],
          "validation": "Check complete example documentation matches implementation"
        },
        {
          "id": "environment-configuration",
          "title": "Environment Configuration",
          "file": "book/src/workflow-basics/environment-configuration.md",
          "topics": [
            "Environment Configuration"
          ],
          "validation": "Check environment configuration documentation matches implementation"
        },
        {
          "id": "full-workflow-structure",
          "title": "Full Workflow Structure",
          "file": "book/src/workflow-basics/full-workflow-structure.md",
          "topics": [
            "Full Workflow Structure"
          ],
          "validation": "Check full workflow structure documentation matches implementation"
        },
        {
          "id": "merge-workflows",
          "title": "Merge Workflows",
          "file": "book/src/workflow-basics/merge-workflows.md",
          "topics": [
            "Merge Workflows"
          ],
          "validation": "Check merge workflows documentation matches implementation"
        },
        {
          "id": "next-steps",
          "title": "Next Steps",
          "file": "book/src/workflow-basics/next-steps.md",
          "topics": [
            "next steps"
          ],
          "validation": "Check next steps documentation matches implementation"
        }
      ]
    },
    {
      "id": "mapreduce",
      "title": "MapReduce Workflows",
      "type": "multi-subsection",
      "index_file": "book/src/mapreduce/index.md",
      "subsections": [
        {
          "id": "checkpoint-and-resume",
          "title": "Checkpoint and Resume",
          "file": "book/src/mapreduce/checkpoint-and-resume.md",
          "topics": [
            "checkpoints",
            "resume",
            "state management",
            "recovery"
          ],
          "validation": "Check checkpoint structure and resume behavior documented",
          "feature_mapping": [
            "mapreduce.checkpoint",
            "mapreduce.resume"
          ]
        },
        {
          "id": "dead-letter-queue-dlq",
          "title": "Dead Letter Queue (DLQ)",
          "file": "book/src/mapreduce/dead-letter-queue-dlq.md",
          "topics": [
            "failed items",
            "retry",
            "DLQ",
            "error handling"
          ],
          "validation": "Check DLQ structure and retry commands documented",
          "feature_mapping": [
            "mapreduce.dlq",
            "error_handling.dlq"
          ]
        },
        {
          "id": "environment-variables-in-configuration",
          "title": "Environment Variables in Configuration",
          "file": "book/src/mapreduce/environment-variables-in-configuration.md",
          "topics": [
            "environment variables",
            "secrets",
            "profiles",
            "configuration"
          ],
          "validation": "Check environment variable configuration in MapReduce workflows",
          "feature_mapping": [
            "environment.mapreduce",
            "environment.variables"
          ]
        },
        {
          "id": "error-collection-strategies",
          "title": "Error Collection Strategies",
          "file": "book/src/mapreduce/error-collection-strategies.md",
          "topics": [
            "error collection",
            "aggregate errors",
            "fail fast"
          ],
          "validation": "Check error collection strategies documented",
          "feature_mapping": [
            "error_handling.collection",
            "mapreduce.error_policy"
          ]
        },
        {
          "id": "event-tracking",
          "title": "Event Tracking",
          "file": "book/src/mapreduce/event-tracking.md",
          "topics": [
            "events",
            "monitoring",
            "observability",
            "debugging"
          ],
          "validation": "Check event tracking and monitoring features",
          "feature_mapping": [
            "mapreduce.events",
            "observability.events"
          ]
        },
        {
          "id": "global-storage-architecture",
          "title": "Global Storage Architecture",
          "file": "book/src/mapreduce/global-storage-architecture.md",
          "topics": [
            "storage",
            "global state",
            "worktree isolation"
          ],
          "validation": "Check global storage architecture documented",
          "feature_mapping": [
            "storage.global",
            "mapreduce.storage"
          ]
        },
        {
          "id": "setup-phase-advanced",
          "title": "Setup Phase Advanced",
          "file": "book/src/mapreduce/setup-phase-advanced.md",
          "topics": [
            "setup phase",
            "initialization",
            "preprocessing"
          ],
          "validation": "Check advanced setup phase features",
          "feature_mapping": [
            "mapreduce.setup",
            "mapreduce.phases"
          ]
        },
        {
          "id": "backoff-strategies",
          "title": "Backoff Strategies",
          "file": "book/src/mapreduce/backoff-strategies.md",
          "topics": [
            "retry",
            "backoff",
            "exponential",
            "fibonacci"
          ],
          "validation": "Check retry backoff strategies documented",
          "feature_mapping": [
            "retry.backoff",
            "mapreduce.retry"
          ]
        },
        {
          "id": "workflow-format-comparison",
          "title": "Workflow Format Comparison",
          "file": "book/src/mapreduce/workflow-format-comparison.md",
          "topics": [
            "syntax",
            "formats",
            "comparison"
          ],
          "validation": "Check workflow format comparisons",
          "feature_mapping": [
            "mapreduce.syntax",
            "workflow.formats"
          ]
        }
      ],
      "topics": [
        "MapReduce mode",
        "Setup phase",
        "Map phase",
        "Reduce phase",
        "Parallel execution"
      ],
      "validation": "Check MapReduce configuration matches MapReduceWorkflowConfig struct"
    },
    {
      "id": "commands",
      "title": "Command Types",
      "type": "single-file",
      "file": "book/src/commands.md",
      "topics": [
        "Shell commands",
        "Claude commands",
        "Goal-seeking",
        "Foreach",
        "Validation"
      ],
      "validation": "Check all command types and their fields are documented"
    },
    {
      "id": "variables",
      "title": "Variables and Interpolation",
      "topics": [
        "Standard variables",
        "Output variables",
        "MapReduce variables",
        "Custom capture"
      ],
      "validation": "Check all variable types and interpolation syntax",
      "type": "multi-subsection",
      "index_file": "book/src/variables/index.md",
      "subsections": [
        {
          "id": "available-variables",
          "title": "Available Variables",
          "file": "book/src/variables/available-variables.md",
          "topics": [
            "Available Variables",
            "Standard Variables",
            "Workflow Context Variables",
            "Step Context Variables",
            "Item Variables (Map Phase Only)"
          ],
          "validation": "Check available variables documentation matches implementation"
        },
        {
          "id": "custom-variable-capture",
          "title": "Custom Variable Capture",
          "file": "book/src/variables/custom-variable-capture.md",
          "topics": [
            "Custom Variable Capture",
            "Basic Syntax",
            "Default Variable Names",
            "Capture Formats",
            "Metadata Fields"
          ],
          "validation": "Check custom variable capture documentation matches implementation"
        },
        {
          "id": "see-also",
          "title": "See Also",
          "file": "book/src/variables/see-also.md",
          "topics": [
            "Related Documentation",
            "Key Concepts",
            "External Resources",
            "Quick Reference"
          ],
          "validation": "Check see also documentation matches implementation"
        },
        {
          "id": "troubleshooting-variable-interpolation",
          "title": "Troubleshooting Variable Interpolation",
          "file": "book/src/variables/troubleshooting-variable-interpolation.md",
          "topics": [
            "Troubleshooting Variable Interpolation",
            "Issue: Variables Not Interpolating",
            "Issue: Variable Empty or Undefined",
            "Issue: Phase-Specific Variable Not Available",
            "Issue: Nested Field Access Fails"
          ],
          "validation": "Check troubleshooting variable interpolation documentation matches implementation"
        }
      ]
    },
    {
      "id": "environment",
      "title": "Environment Configuration",
      "topics": [
        "Global environment",
        "Secrets management",
        "Profiles",
        "Step-level environment"
      ],
      "validation": "Check environment configuration options and syntax",
      "type": "multi-subsection",
      "index_file": "book/src/environment/index.md",
      "subsections": [
        {
          "id": "best-practices",
          "title": "Best Practices",
          "file": "book/src/environment/best-practices.md",
          "topics": [
            "Best Practices",
            "Environment Variable Usage",
            "Naming Conventions",
            "Secrets Management Guidelines",
            "Profile Organization Strategies"
          ],
          "validation": "Check best practices documentation matches implementation"
        },
        {
          "id": "common-patterns",
          "title": "Common Patterns",
          "file": "book/src/environment/common-patterns.md",
          "topics": [
            "Common Patterns",
            "Multi-Environment Deployment Pattern",
            "Secrets Management Pattern",
            "Profile-Based Configuration Strategy",
            "Environment Variable Composition Pattern"
          ],
          "validation": "Check common patterns documentation matches implementation"
        },
        {
          "id": "environment-files",
          "title": "Environment Files",
          "file": "book/src/environment/environment-files.md",
          "topics": [
            "Environment Files",
            "Integration with Profiles and Secrets"
          ],
          "validation": "Check environment files documentation matches implementation"
        },
        {
          "id": "environment-precedence",
          "title": "Environment Precedence",
          "file": "book/src/environment/environment-precedence.md",
          "topics": [
            "Environment Precedence"
          ],
          "validation": "Check environment precedence documentation matches implementation"
        },
        {
          "id": "environment-profiles",
          "title": "Environment Profiles",
          "file": "book/src/environment/environment-profiles.md",
          "topics": [
            "Environment Profiles"
          ],
          "validation": "Check environment profiles documentation matches implementation"
        },
        {
          "id": "mapreduce-environment-variables",
          "title": "MapReduce Environment Variables",
          "file": "book/src/environment/mapreduce-environment-variables.md",
          "topics": [
            "MapReduce Environment Variables",
            "Setup Phase Environment Variables",
            "Map Phase Environment Variables",
            "Reduce Phase Environment Variables",
            "Merge Phase Environment Variables"
          ],
          "validation": "Check mapreduce environment variables documentation matches implementation"
        },
        {
          "id": "per-command-environment-overrides",
          "title": "Per-Command Environment Overrides",
          "file": "book/src/environment/per-command-environment-overrides.md",
          "topics": [
            "Per-Command Environment Overrides"
          ],
          "validation": "Check per-command environment overrides documentation matches implementation"
        },
        {
          "id": "secrets-management",
          "title": "Secrets Management",
          "file": "book/src/environment/secrets-management.md",
          "topics": [
            "Secrets Management"
          ],
          "validation": "Check secrets management documentation matches implementation"
        }
      ]
    },
    {
      "id": "advanced",
      "title": "Advanced Features",
      "topics": [
        "Conditional execution",
        "Output capture formats",
        "Nested conditionals",
        "Timeouts"
      ],
      "validation": "Check advanced features match implementation",
      "type": "multi-subsection",
      "index_file": "book/src/advanced/index.md",
      "subsections": [
        {
          "id": "best-practices",
          "title": "Best Practices",
          "file": "book/src/advanced/best-practices.md",
          "topics": [
            "Best Practices",
            "1. Use Meaningful Variable Names",
            "2. Set Appropriate Timeouts",
            "3. Handle Failures Gracefully",
            "4. Validate Critical Changes"
          ],
          "validation": "Check best practices documentation matches implementation"
        },
        {
          "id": "common-patterns",
          "title": "Common Patterns",
          "file": "book/src/advanced/common-patterns.md",
          "topics": [
            "Common Patterns",
            "Test-Fix-Verify Loop",
            "Parallel Processing with Aggregation",
            "Gradual Quality Improvement",
            "Conditional Deployment"
          ],
          "validation": "Check common patterns documentation matches implementation"
        },
        {
          "id": "goal-seeking-operations",
          "title": "Goal-Seeking Operations",
          "file": "book/src/advanced/goal-seeking-operations.md",
          "topics": [
            "Goal-Seeking Operations",
            "Basic Goal Seek",
            "Advanced Goal Seek Configuration",
            "Validation Integration",
            "Progressive Refinement"
          ],
          "validation": "Check goal-seeking operations documentation matches implementation"
        },
        {
          "id": "implementation-validation",
          "title": "Implementation Validation",
          "file": "book/src/advanced/implementation-validation.md",
          "topics": [
            "Implementation Validation",
            "Basic Validation",
            "Validation with Claude",
            "Multi-Step Validation",
            "Validation with Result Files"
          ],
          "validation": "Check implementation validation documentation matches implementation"
        },
        {
          "id": "parallel-iteration-with-foreach",
          "title": "Parallel Iteration with Foreach",
          "file": "book/src/advanced/parallel-iteration-with-foreach.md",
          "topics": [
            "Parallel Iteration with Foreach",
            "Basic Foreach",
            "Dynamic Item Lists",
            "Parallel Execution",
            "Error Handling"
          ],
          "validation": "Check parallel iteration with foreach documentation matches implementation"
        },
        {
          "id": "step-identification",
          "title": "Step Identification",
          "file": "book/src/advanced/step-identification.md",
          "topics": [
            "Step Identification",
            "Available Step Reference Fields",
            "Basic Step IDs",
            "When to Use Step IDs"
          ],
          "validation": "Check step identification documentation matches implementation"
        },
        {
          "id": "timeout-configuration",
          "title": "Timeout Configuration",
          "file": "book/src/advanced/timeout-configuration.md",
          "topics": [
            "Timeout Configuration",
            "Basic Timeouts",
            "Environment Variable Support",
            "Workflow-Level Timeouts",
            "Best Practices"
          ],
          "validation": "Check timeout configuration documentation matches implementation"
        }
      ]
    },
    {
      "id": "error-handling",
      "title": "Error Handling",
      "file": "book/src/error-handling.md",
      "topics": [
        "Workflow-level errors",
        "Command-level errors",
        "DLQ",
        "Circuit breaker",
        "Retry config"
      ],
      "validation": "Check error handling policies and configurations",
      "type": "single-file"
    },
    {
      "id": "examples",
      "title": "Examples",
      "file": "book/src/examples.md",
      "topics": [
        "Practical workflows",
        "Use cases",
        "Best practices"
      ],
      "validation": "Check examples are valid and work with current syntax",
      "type": "single-file"
    },
    {
      "id": "troubleshooting",
      "title": "Troubleshooting",
      "topics": [
        "Common issues",
        "Debug tips",
        "FAQ"
      ],
      "validation": "Check troubleshooting covers common user issues",
      "type": "multi-subsection",
      "index_file": "book/src/troubleshooting/index.md",
      "subsections": [
        {
          "id": "best-practices-for-debugging",
          "title": "Best Practices for Debugging",
          "file": "book/src/troubleshooting/best-practices-for-debugging.md",
          "topics": [
            "Best Practices for Debugging"
          ],
          "validation": "Check best practices for debugging documentation matches implementation"
        },
        {
          "id": "common-error-messages",
          "title": "Common Error Messages",
          "file": "book/src/troubleshooting/common-error-messages.md",
          "topics": [
            "Common Error Messages",
            "\"checkpoint not found\"",
            "\"items.json not found\"",
            "\"command not found: claude\"",
            "\"permission denied\""
          ],
          "validation": "Check common error messages documentation matches implementation"
        },
        {
          "id": "faq",
          "title": "FAQ",
          "file": "book/src/troubleshooting/faq.md",
          "topics": [
            "FAQ",
            "How do I debug variable interpolation issues?",
            "What should I do when checkpoint resume fails?",
            "How do I retry failed DLQ items?",
            "Why are my MapReduce items not being found?"
          ],
          "validation": "Check faq documentation matches implementation"
        }
      ]
    },
    {
      "id": "automated-documentation",
      "title": "Automated Documentation",
      "topics": [
        "mdBook setup",
        "Book workflow configuration",
        "Feature analysis",
        "GitHub Actions integration",
        "Customization examples"
      ],
      "validation": "Check that setup instructions are complete, configuration examples are valid, and GitHub Actions workflows are current",
      "type": "multi-subsection",
      "index_file": "book/src/automated-documentation/index.md",
      "subsections": [
        {
          "id": "advanced-configuration",
          "title": "Advanced Configuration",
          "file": "book/src/automated-documentation/advanced-configuration.md",
          "topics": [
            "Advanced Configuration"
          ],
          "validation": "Check advanced configuration documentation matches implementation"
        },
        {
          "id": "automatic-gap-detection",
          "title": "Automatic Gap Detection",
          "file": "book/src/automated-documentation/automatic-gap-detection.md",
          "topics": [
            "Automatic Gap Detection"
          ],
          "validation": "Check automatic gap detection documentation matches implementation"
        },
        {
          "id": "documentation-versioning",
          "title": "Documentation Versioning",
          "file": "book/src/automated-documentation/documentation-versioning.md",
          "topics": [
            "Documentation Versioning"
          ],
          "validation": "Check documentation versioning documentation matches implementation"
        },
        {
          "id": "github-actions-integration",
          "title": "GitHub Actions Integration",
          "file": "book/src/automated-documentation/github-actions-integration.md",
          "topics": [
            "GitHub Actions Integration"
          ],
          "validation": "Check github actions integration documentation matches implementation"
        },
        {
          "id": "quick-start",
          "title": "Quick Start",
          "file": "book/src/automated-documentation/quick-start.md",
          "topics": [
            "Quick Start"
          ],
          "validation": "Check quick start documentation matches implementation"
        },
        {
          "id": "tutorial",
          "title": "Tutorial (30 Minutes)",
          "file": "book/src/automated-documentation/tutorial.md",
          "topics": [
            "Tutorial (30 Minutes)"
          ],
          "validation": "Check tutorial documentation matches implementation"
        },
        {
          "id": "real-world-example-prodigys-own-documentation",
          "title": "Real-World Example: Prodigy's Own Documentation",
          "file": "book/src/automated-documentation/real-world-example-prodigys-own-documentation.md",
          "topics": [
            "Real-World Example: Prodigy's Own Documentation"
          ],
          "validation": "Check real-world example: prodigy's own documentation documentation matches implementation"
        },
        {
          "id": "troubleshooting",
          "title": "Troubleshooting",
          "file": "book/src/automated-documentation/troubleshooting.md",
          "topics": [
            "Troubleshooting"
          ],
          "validation": "Check troubleshooting documentation matches implementation"
        },
        {
          "id": "understanding-the-workflow",
          "title": "Understanding the Workflow",
          "file": "book/src/automated-documentation/understanding-the-workflow.md",
          "topics": [
            "Understanding the Workflow"
          ],
          "validation": "Check understanding the workflow documentation matches implementation"
        }
      ]
    },
    {
      "id": "retry-configuration",
      "title": "Retry Configuration",
      "topics": [
        "Retry defaults",
        "Backoff strategies",
        "Exponential backoff",
        "Fibonacci backoff",
        "Retry budget",
        "Conditional retry",
        "Jitter"
      ],
      "validation": "Check retry configuration options match RetryConfig struct and backoff strategies are documented",
      "type": "multi-subsection",
      "index_file": "book/src/retry-configuration/index.md",
      "subsections": [
        {
          "id": "backoff-strategies",
          "title": "Backoff Strategies",
          "file": "book/src/retry-configuration/backoff-strategies.md",
          "topics": [
            "Backoff Strategies",
            "Fixed Backoff",
            "Linear Backoff",
            "Exponential Backoff",
            "Fibonacci Backoff"
          ],
          "validation": "Check backoff strategies documentation matches implementation"
        },
        {
          "id": "backoff-strategy-comparison",
          "title": "Backoff Strategy Comparison",
          "file": "book/src/retry-configuration/backoff-strategy-comparison.md",
          "topics": [
            "Backoff Strategy Comparison"
          ],
          "validation": "Check backoff strategy comparison documentation matches implementation"
        },
        {
          "id": "basic-retry-configuration",
          "title": "Basic Retry Configuration",
          "file": "book/src/retry-configuration/basic-retry-configuration.md",
          "topics": [
            "Basic Retry Configuration",
            "Where Retry Config is Used",
            "Basic Configuration Example",
            "Complete Basic Configuration",
            "Default Behavior"
          ],
          "validation": "Check basic retry configuration documentation matches implementation"
        },
        {
          "id": "best-practices",
          "title": "Best Practices",
          "file": "book/src/retry-configuration/best-practices.md",
          "topics": [
            "Best Practices",
            "Choosing the Right Backoff Strategy",
            "Setting Appropriate max_delay",
            "Using Jitter in Distributed Systems",
            "Retry Budget for Preventing Infinite Loops"
          ],
          "validation": "Check best practices documentation matches implementation"
        },
        {
          "id": "complete-examples",
          "title": "Complete Examples",
          "file": "book/src/retry-configuration/complete-examples.md",
          "topics": [
            "Complete Examples",
            "Example 1: Basic Retry with Exponential Backoff",
            "Example 2: Exponential Backoff with Jitter (Distributed Systems)",
            "Example 3: Conditional Retry with Error Matchers",
            "Example 4: Retry Budget to Prevent Infinite Loops"
          ],
          "validation": "Check complete examples documentation matches implementation"
        },
        {
          "id": "conditional-retry-with-error-matchers",
          "title": "Conditional Retry with Error Matchers",
          "file": "book/src/retry-configuration/conditional-retry-with-error-matchers.md",
          "topics": [
            "Conditional Retry with Error Matchers",
            "Available Error Matchers",
            "Combining Multiple Matchers",
            "Empty retry_on (Retry All Errors)",
            "Selective Retry Example"
          ],
          "validation": "Check conditional retry with error matchers documentation matches implementation"
        },
        {
          "id": "failure-actions",
          "title": "Failure Actions",
          "file": "book/src/retry-configuration/failure-actions.md",
          "topics": [
            "Failure Actions",
            "Available Failure Actions",
            "Combining with Error Matchers",
            "Fallback Command Requirements",
            "Multiple Failure Actions in Workflow"
          ],
          "validation": "Check failure actions documentation matches implementation"
        },
        {
          "id": "implementation-references",
          "title": "Implementation References",
          "file": "book/src/retry-configuration/implementation-references.md",
          "topics": [
            "Implementation References"
          ],
          "validation": "Check implementation references documentation matches implementation"
        },
        {
          "id": "jitter-for-distributed-systems",
          "title": "Jitter for Distributed Systems",
          "file": "book/src/retry-configuration/jitter-for-distributed-systems.md",
          "topics": [
            "Jitter for Distributed Systems"
          ],
          "validation": "Check jitter for distributed systems documentation matches implementation"
        },
        {
          "id": "related-topics",
          "title": "Related Topics",
          "file": "book/src/retry-configuration/related-topics.md",
          "topics": [
            "Related Topics"
          ],
          "validation": "Check related topics documentation matches implementation"
        },
        {
          "id": "retry-budget",
          "title": "Retry Budget",
          "file": "book/src/retry-configuration/retry-budget.md",
          "topics": [
            "Retry Budget"
          ],
          "validation": "Check retry budget documentation matches implementation"
        },
        {
          "id": "retry-metrics-and-observability",
          "title": "Retry Metrics and Observability",
          "file": "book/src/retry-configuration/retry-metrics-and-observability.md",
          "topics": [
            "Retry Metrics and Observability"
          ],
          "validation": "Check retry metrics and observability documentation matches implementation"
        },
        {
          "id": "troubleshooting",
          "title": "Troubleshooting",
          "file": "book/src/retry-configuration/troubleshooting.md",
          "topics": [
            "Troubleshooting",
            "Issue: Retries Not Triggering",
            "Issue: Retries Happening But Taking Too Long",
            "Issue: Circuit Breaker Always Open",
            "Issue: Thundering Herd (Multiple Parallel Agents Retrying Simultaneously)"
          ],
          "validation": "Check troubleshooting documentation matches implementation"
        },
        {
          "id": "workflow-level-vs-command-level-retry",
          "title": "Workflow-Level vs Command-Level Retry",
          "file": "book/src/retry-configuration/workflow-level-vs-command-level-retry.md",
          "topics": [
            "Workflow-Level vs Command-Level Retry",
            "Command-Level Retry (retry_v2)",
            "Workflow-Level Retry (error_policy)",
            "Using Both Systems Together",
            "Key Differences"
          ],
          "validation": "Check workflow-level vs command-level retry documentation matches implementation"
        }
      ]
    },
    {
      "id": "composition",
      "title": "Workflow Composition",
      "topics": [
        "Workflow imports",
        "Template definitions",
        "Template parameters",
        "Workflow extension",
        "Template usage"
      ],
      "validation": "Check composition features match implementation and syntax examples are valid",
      "type": "multi-subsection",
      "index_file": "book/src/composition/index.md",
      "subsections": [
        {
          "id": "complete-examples",
          "title": "Complete Examples",
          "file": "book/src/composition/complete-examples.md",
          "topics": [
            "Complete Examples",
            "Example 1: Multi-Environment CI/CD Pipeline",
            "Example 2: Modular Monorepo Testing",
            "Example 3: Layered Configuration with Extends",
            "Example 4: Complex Composition with Multiple Features"
          ],
          "validation": "Check complete examples documentation matches implementation"
        },
        {
          "id": "composition-metadata",
          "title": "Composition Metadata",
          "file": "book/src/composition/composition-metadata.md",
          "topics": [
            "Composition Metadata",
            "CompositionMetadata Structure",
            "Dependency Tracking",
            "Dependency Types",
            "Viewing Composition Metadata"
          ],
          "validation": "Check composition metadata documentation matches implementation"
        },
        {
          "id": "default-values",
          "title": "Default Values",
          "file": "book/src/composition/default-values.md",
          "topics": [
            "Default Values",
            "Basic Syntax",
            "Defaults Field Structure",
            "Parameter Precedence",
            "Example with Precedence"
          ],
          "validation": "Check default values documentation matches implementation"
        },
        {
          "id": "parameter-definitions",
          "title": "Parameter Definitions",
          "file": "book/src/composition/parameter-definitions.md",
          "topics": [
            "Parameter Definitions",
            "Basic Parameter Definition",
            "Parameter Structure",
            "Parameter Types",
            "Default Values"
          ],
          "validation": "Check parameter definitions documentation matches implementation"
        },
        {
          "id": "sub-workflows",
          "title": "Sub-Workflows",
          "file": "book/src/composition/sub-workflows.md",
          "topics": [
            "Sub-Workflows",
            "Basic Sub-Workflow Syntax",
            "Sub-Workflow Configuration",
            "Parent-Child Context Isolation",
            "Output Variable Extraction"
          ],
          "validation": "Check sub-workflows documentation matches implementation"
        },
        {
          "id": "template-system",
          "title": "Template System",
          "file": "book/src/composition/template-system.md",
          "topics": [
            "Template System",
            "Template Sources",
            "Basic Template Usage",
            "Template Structure",
            "Template Registry"
          ],
          "validation": "Check template system documentation matches implementation"
        },
        {
          "id": "troubleshooting",
          "title": "Troubleshooting",
          "file": "book/src/composition/troubleshooting.md",
          "topics": [
            "Troubleshooting",
            "Circular Dependency Errors",
            "Template Not Found in Registry",
            "Parameter Validation Failures",
            "Import Path Resolution Errors"
          ],
          "validation": "Check troubleshooting documentation matches implementation"
        },
        {
          "id": "workflow-extension-inheritance",
          "title": "Workflow Extension (Inheritance)",
          "file": "book/src/composition/workflow-extension-inheritance.md",
          "topics": [
            "Workflow Extension (Inheritance)",
            "Basic Extension Syntax",
            "How Extension Works",
            "Extension vs Imports",
            "Multi-Environment Example"
          ],
          "validation": "Check workflow extension (inheritance) documentation matches implementation"
        }
      ]
    },
    {
      "id": "configuration",
      "title": "Configuration",
      "topics": [
        "Config file locations",
        "Precedence rules",
        "Claude settings",
        "Worktree settings",
        "Storage settings",
        "Retry defaults"
      ],
      "validation": "Check configuration structure matches Settings struct and precedence is correctly documented",
      "type": "multi-subsection",
      "index_file": "book/src/configuration/index.md",
      "subsections": [
        {
          "id": "best-practices",
          "title": "Best Practices",
          "file": "book/src/configuration/best-practices.md",
          "topics": [
            "Best Practices"
          ],
          "validation": "Check best practices documentation matches implementation"
        },
        {
          "id": "complete-configuration-examples",
          "title": "Complete Configuration Examples",
          "file": "book/src/configuration/complete-configuration-examples.md",
          "topics": [
            "Complete Configuration Examples"
          ],
          "validation": "Check complete configuration examples documentation matches implementation"
        },
        {
          "id": "configuration-precedence-rules",
          "title": "Configuration Precedence Rules",
          "file": "book/src/configuration/configuration-precedence-rules.md",
          "topics": [
            "Configuration Precedence Rules",
            "Precedence Hierarchy",
            "How Settings Override Each Other",
            "Examples",
            "Field-Level Precedence"
          ],
          "validation": "Check configuration precedence rules documentation matches implementation"
        },
        {
          "id": "default-values-reference",
          "title": "Default Values Reference",
          "file": "book/src/configuration/default-values-reference.md",
          "topics": [
            "Default Values Reference",
            "Global Configuration Defaults",
            "Project Configuration Defaults",
            "Storage Configuration Defaults",
            "File Storage Defaults"
          ],
          "validation": "Check default values reference documentation matches implementation"
        },
        {
          "id": "environment-variables",
          "title": "Environment Variables",
          "file": "book/src/configuration/environment-variables.md",
          "topics": [
            "Environment Variables",
            "Claude API Configuration",
            "General Configuration",
            "Storage Configuration",
            "Workflow Execution"
          ],
          "validation": "Check environment variables documentation matches implementation"
        },
        {
          "id": "global-configuration-structure",
          "title": "Global Configuration Structure",
          "file": "book/src/configuration/global-configuration-structure.md",
          "topics": [
            "Global Configuration Structure",
            "Location",
            "Fields",
            "Complete Example",
            "Plugin Configuration"
          ],
          "validation": "Check global configuration structure documentation matches implementation"
        },
        {
          "id": "migration-guide-toml-to-yaml",
          "title": "Migration Guide: TOML to YAML",
          "file": "book/src/configuration/migration-guide-toml-to-yaml.md",
          "topics": [
            "Migration Guide: TOML to YAML"
          ],
          "validation": "Check migration guide: toml to yaml documentation matches implementation"
        },
        {
          "id": "project-configuration-structure",
          "title": "Project Configuration Structure",
          "file": "book/src/configuration/project-configuration-structure.md",
          "topics": [
            "Project Configuration Structure",
            "Location",
            "Fields",
            "Complete Example",
            "Secrets Management"
          ],
          "validation": "Check project configuration structure documentation matches implementation"
        },
        {
          "id": "related-documentation",
          "title": "Related Documentation",
          "file": "book/src/configuration/related-documentation.md",
          "topics": [
            "Related Documentation"
          ],
          "validation": "Check related documentation documentation matches implementation"
        },
        {
          "id": "storage-configuration",
          "title": "Storage Configuration",
          "file": "book/src/configuration/storage-configuration.md",
          "topics": [
            "Storage Configuration",
            "Storage Backend Types",
            "File Storage Configuration",
            "Connection and Performance",
            "Retry Policy"
          ],
          "validation": "Check storage configuration documentation matches implementation"
        },
        {
          "id": "troubleshooting",
          "title": "Troubleshooting",
          "file": "book/src/configuration/troubleshooting.md",
          "topics": [
            "Troubleshooting"
          ],
          "validation": "Check troubleshooting documentation matches implementation"
        },
        {
          "id": "workflow-configuration",
          "title": "Workflow Configuration",
          "file": "book/src/configuration/workflow-configuration.md",
          "topics": [
            "Workflow Configuration",
            "Basic Workflow Structure",
            "Advanced Workflow Features",
            "Configuration Location",
            "Environment Variables in Workflows"
          ],
          "validation": "Check workflow configuration documentation matches implementation"
        }
      ]
    },
    {
      "id": "git-context-advanced",
      "title": "Advanced Git Context",
      "file": "book/src/git-context-advanced.md",
      "topics": [
        "Pattern filtering",
        "Format modifiers",
        "File patterns",
        "Combined filters",
        "Git context variables"
      ],
      "validation": "Check that pattern filtering syntax, format modifiers, and file pattern options are documented",
      "auto_generated": true,
      "source_feature": "git_context_advanced",
      "type": "single-file"
    },
    {
      "id": "mapreduce-worktree-architecture",
      "title": "MapReduce Worktree Architecture",
      "file": "book/src/mapreduce-worktree-architecture.md",
      "topics": [
        "Worktree hierarchy",
        "Branch naming",
        "Merge flow",
        "Agent merge",
        "MapReduce to parent merge",
        "Parent to master merge",
        "Debugging",
        "Verification"
      ],
      "validation": "Check that worktree isolation, branch naming conventions, merge flows, and debugging strategies are documented",
      "auto_generated": true,
      "source_feature": "mapreduce_worktree_architecture",
      "type": "single-file"
    }
  ]
}