-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathimpl-manifest.schema.json
More file actions
891 lines (891 loc) · 28.7 KB
/
Copy pathimpl-manifest.schema.json
File metadata and controls
891 lines (891 loc) · 28.7 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
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://github.com/blackwell-systems/polywave/protocol/impl-manifest.schema.json",
"title": "Polywave IMPL Manifest",
"description": "Schema for the Polywave IMPL manifest document. Describes the full structure of a parallel implementation plan including waves, agents, file ownership, and completion reports.",
"type": "object",
"required": ["title", "feature_slug", "verdict"],
"additionalProperties": false,
"properties": {
"title": {
"type": "string",
"description": "Human-readable title of the feature being implemented."
},
"feature_slug": {
"type": "string",
"description": "URL-safe identifier for the feature (used in branch names and file paths)."
},
"verdict": {
"type": "string",
"enum": ["SUITABLE", "NOT_SUITABLE", "SUITABLE_WITH_CAVEATS"],
"description": "Scout's assessment of whether the feature is suitable for parallel implementation."
},
"feature": {
"type": "string",
"description": "Short one-line description of what this IMPL implements."
},
"repository": {
"type": "string",
"description": "Absolute path to the repository root (single-repo waves)."
},
"repositories": {
"type": "array",
"items": { "type": "string" },
"description": "Absolute paths for multi-repo waves (omit if single-repo)."
},
"plan_reference": {
"type": "string",
"description": "Optional path to the original plan document."
},
"suitability_assessment": {
"type": "string",
"description": "Prose explanation of the suitability verdict."
},
"suitability_reasoning": {
"type": "string",
"description": "Additional reasoning for the suitability verdict."
},
"test_command": {
"type": "string",
"description": "Command to run the project's test suite."
},
"lint_command": {
"type": "string",
"description": "Command to run the project's linter."
},
"file_ownership": {
"type": "array",
"description": "Maps each file to the agent and wave responsible for it.",
"items": { "$ref": "#/$defs/FileOwnership" }
},
"interface_contracts": {
"type": "array",
"description": "Contracts defining expected interfaces between agents.",
"items": { "$ref": "#/$defs/InterfaceContract" }
},
"waves": {
"type": "array",
"description": "Ordered list of execution waves. Agents within a wave run in parallel; waves execute sequentially.",
"items": { "$ref": "#/$defs/Wave" }
},
"quality_gates": {
"$ref": "#/$defs/QualityGates",
"description": "Quality checks that must pass before a wave is considered complete."
},
"post_merge_checklist": {
"$ref": "#/$defs/PostMergeChecklist",
"description": "Verification steps to run after merging all waves."
},
"scaffolds": {
"type": "array",
"description": "Type scaffold files created before wave execution for shared references.",
"items": { "$ref": "#/$defs/ScaffoldFile" }
},
"completion_reports": {
"type": "object",
"description": "Completion reports keyed by agent ID.",
"additionalProperties": { "$ref": "#/$defs/CompletionReport" },
"propertyNames": {
"pattern": "^[A-Z][2-9]?$"
}
},
"stub_reports": {
"type": "object",
"description": "Stub scan results keyed by agent ID.",
"additionalProperties": { "$ref": "#/$defs/ScanStubsResult" },
"propertyNames": {
"pattern": "^[A-Z][2-9]?$"
}
},
"pre_mortem": {
"$ref": "#/$defs/PreMortem",
"description": "Risk analysis of potential failure modes identified during scouting."
},
"known_issues": {
"type": "array",
"description": "Issues discovered during scouting with status and workarounds.",
"items": { "$ref": "#/$defs/KnownIssue" }
},
"wiring": {
"type": "array",
"description": "E35 wiring obligation declarations: exported symbols that must be called from aggregation points.",
"items": { "$ref": "#/$defs/WiringDeclaration" }
},
"wiring_validation_reports": {
"type": "object",
"description": "E35 wiring validation reports per wave, persisted by validate-integration --wiring.",
"additionalProperties": { "$ref": "#/$defs/WiringValidationData" }
},
"integration_reports": {
"type": "object",
"description": "E25 integration validation reports per wave.",
"additionalProperties": { "$ref": "#/$defs/IntegrationReport" }
},
"integration_connectors": {
"type": "array",
"description": "Files the integration agent (E26) is allowed to modify.",
"items": { "$ref": "#/$defs/IntegrationConnector" }
},
"integration_gap_severity_threshold": {
"type": "string",
"enum": ["error", "warning", "info"],
"description": "Minimum severity level for ValidateIntegration to treat as a gap. Defaults to 'warning'."
},
"reactions": {
"$ref": "#/$defs/ReactionsConfig",
"description": "E19.1 per-IMPL failure reaction overrides."
},
"critic_report": {
"$ref": "#/$defs/CriticData",
"description": "E37 structured output of critic-agent review run."
},
"state": {
"type": "string",
"enum": [
"SCOUT_PENDING",
"SCOUT_VALIDATING",
"REVIEWED",
"SCAFFOLD_PENDING",
"WAVE_PENDING",
"WAVE_EXECUTING",
"WAVE_MERGING",
"WAVE_VERIFIED",
"BLOCKED",
"COMPLETE",
"NOT_SUITABLE"
],
"description": "Current protocol state of this IMPL manifest."
},
"merge_state": {
"type": "string",
"enum": ["idle", "in_progress", "completed", "failed"],
"description": "Current state of the merge operation for the active wave."
},
"worktrees_created_at": {
"type": "string",
"format": "date-time",
"description": "Timestamp when worktrees were created (used for E2/I2-02 freeze enforcement)."
},
"frozen_contracts_hash": {
"type": "string",
"description": "Hash of interface contracts at freeze time for drift detection."
},
"frozen_scaffolds_hash": {
"type": "string",
"description": "Hash of scaffolds at freeze time for drift detection."
},
"completion_date": {
"type": "string",
"description": "Date when the IMPL was completed (YYYY-MM-DD format)."
},
"injection_method": {
"type": "string",
"enum": ["hook", "manual-fallback", "unknown"],
"description": "How the Scout agent received its reference file content. Set by finalize-scout."
}
},
"$defs": {
"FileOwnership": {
"type": "object",
"description": "Maps a file to its owning agent and wave.",
"required": ["file", "agent", "wave"],
"additionalProperties": false,
"properties": {
"file": {
"type": "string",
"description": "Relative file path from repo root."
},
"agent": {
"type": "string",
"pattern": "^[A-Z][2-9]?$",
"description": "Agent ID (single uppercase letter, optionally followed by digit 2-9)."
},
"wave": {
"type": "integer",
"minimum": 1,
"description": "Wave number this file belongs to."
},
"action": {
"type": "string",
"enum": ["new", "modify", "delete"],
"description": "What the agent will do with this file."
},
"depends_on": {
"type": "array",
"items": { "type": "string" },
"description": "List of file paths this file depends on."
},
"repo": {
"type": "string",
"description": "Repository name for cross-repo waves."
}
}
},
"Wave": {
"type": "object",
"description": "A concurrent execution phase containing multiple agents.",
"required": ["number", "agents"],
"additionalProperties": false,
"properties": {
"number": {
"type": "integer",
"minimum": 1,
"description": "Sequential wave number (1-based)."
},
"type": {
"type": "string",
"enum": ["standard", "integration"],
"description": "Wave type: standard (default) or integration (E27: wiring-only, no worktree)."
},
"agents": {
"type": "array",
"items": { "$ref": "#/$defs/Agent" },
"description": "Agents executing in parallel within this wave."
},
"agent_launch_order": {
"type": "array",
"items": { "type": "string" },
"description": "Preferred order for launching agents (advisory)."
},
"base_commit": {
"type": "string",
"description": "Git commit SHA recorded when worktrees were created."
}
}
},
"Agent": {
"type": "object",
"description": "A single concurrent task within a wave.",
"required": ["id", "task", "files"],
"additionalProperties": false,
"properties": {
"id": {
"type": "string",
"pattern": "^[A-Z][2-9]?$",
"description": "Unique agent identifier (e.g., A, B, C2)."
},
"task": {
"type": "string",
"description": "Description of what this agent should implement."
},
"files": {
"type": "array",
"items": { "type": "string" },
"description": "Files this agent owns and may modify."
},
"dependencies": {
"type": "array",
"items": {
"type": "string",
"pattern": "^[A-Z][2-9]?$"
},
"description": "Agent IDs this agent depends on (from prior waves). Must be uppercase agent letters (e.g. 'A', 'B2')."
},
"model": {
"type": "string",
"description": "Preferred model for this agent (optional override)."
}
}
},
"CompletionReport": {
"type": "object",
"description": "Records the outcome of an agent's work.",
"required": ["status"],
"additionalProperties": false,
"properties": {
"status": {
"type": "string",
"enum": ["complete", "partial", "blocked"],
"description": "Final status of the agent's work."
},
"worktree": {
"type": "string",
"description": "Path to the agent's worktree."
},
"branch": {
"type": "string",
"description": "Git branch name used by the agent."
},
"commit": {
"type": "string",
"description": "Final commit SHA of the agent's work."
},
"files_changed": {
"type": "array",
"items": { "type": "string" },
"description": "Files modified by the agent."
},
"files_created": {
"type": "array",
"items": { "type": "string" },
"description": "Files newly created by the agent."
},
"interface_deviations": {
"type": "array",
"items": { "$ref": "#/$defs/InterfaceDeviation" },
"description": "Any deviations from the planned interface contracts."
},
"out_of_scope_deps": {
"type": "array",
"items": { "type": "string" },
"description": "Dependencies discovered outside the agent's scope."
},
"tests_added": {
"type": "array",
"items": { "type": "string" },
"description": "Test names added by the agent."
},
"verification": {
"type": "string",
"description": "Verification gate result (e.g., PASS, FAIL with details)."
},
"failure_type": {
"type": "string",
"enum": ["transient", "fixable", "needs_replan", "escalate", "timeout"],
"description": "Type of failure when status is partial or blocked."
},
"notes": {
"type": "string",
"description": "Free-form notes about decisions, surprises, or warnings."
},
"dedup_stats": {
"$ref": "#/$defs/DedupStats",
"description": "File-read dedup metrics for the agent's session."
},
"repo": {
"type": "string",
"description": "Repository name for cross-repo agents."
}
}
},
"InterfaceDeviation": {
"type": "object",
"description": "Records a deviation from a planned interface contract.",
"required": ["description", "downstream_action_required"],
"additionalProperties": false,
"properties": {
"description": {
"type": "string",
"description": "What changed from the planned interface."
},
"downstream_action_required": {
"type": "boolean",
"description": "Whether downstream agents need to adapt to this change."
},
"affects": {
"type": "array",
"items": { "type": "string" },
"description": "Agent IDs affected by this deviation."
}
}
},
"InterfaceContract": {
"type": "object",
"description": "Defines an expected interface between agents.",
"required": ["name", "definition", "location"],
"additionalProperties": false,
"properties": {
"name": {
"type": "string",
"description": "Name of the interface or API."
},
"description": {
"type": "string",
"description": "What this interface does."
},
"definition": {
"type": "string",
"description": "The interface definition (e.g., function signature, type definition)."
},
"location": {
"type": "string",
"description": "File path where this interface is defined."
}
}
},
"QualityGates": {
"type": "object",
"description": "Quality checks configuration.",
"required": ["level", "gates"],
"additionalProperties": false,
"properties": {
"level": {
"type": "string",
"enum": ["quick", "standard", "full"],
"description": "Quality check thoroughness level."
},
"gates": {
"type": "array",
"items": { "$ref": "#/$defs/QualityGate" },
"description": "Individual quality gates to run."
}
}
},
"QualityGate": {
"type": "object",
"description": "A single quality check.",
"required": ["type", "command", "required"],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": ["build", "lint", "test", "typecheck", "format", "custom"],
"description": "Category of quality check."
},
"command": {
"type": "string",
"description": "Shell command to execute."
},
"required": {
"type": "boolean",
"description": "Whether this gate must pass for the wave to succeed."
},
"description": {
"type": "string",
"description": "Human-readable description of what this gate checks."
},
"repo": {
"type": "string",
"description": "If set, this gate only runs when finalize-wave processes this repo."
},
"fix": {
"type": "boolean",
"description": "If true, run in fix mode (e.g., gofmt -w). Default false."
},
"timing": {
"type": "string",
"enum": ["pre-merge", "post-merge"],
"description": "When the gate executes: pre-merge (default) or post-merge."
}
}
},
"ScaffoldFile": {
"type": "object",
"description": "A type scaffold file for shared references across agents.",
"required": ["file_path"],
"additionalProperties": false,
"properties": {
"file_path": {
"type": "string",
"description": "Relative path for the scaffold file."
},
"contents": {
"type": "string",
"description": "File contents of the scaffold."
},
"import_path": {
"type": "string",
"description": "Import path for the scaffold (e.g., Go package path)."
},
"status": {
"type": "string",
"enum": ["pending", "committed"],
"description": "Whether the scaffold has been committed to the repo."
},
"commit": {
"type": "string",
"description": "Commit SHA when scaffold was committed."
}
}
},
"PreMortem": {
"type": "object",
"description": "Risk analysis of potential failure modes.",
"required": ["overall_risk", "rows"],
"additionalProperties": false,
"properties": {
"overall_risk": {
"type": "string",
"enum": ["low", "medium", "high"],
"description": "Overall risk level for this implementation."
},
"rows": {
"type": "array",
"items": { "$ref": "#/$defs/PreMortemRow" },
"description": "Individual risk scenarios."
}
}
},
"PreMortemRow": {
"type": "object",
"description": "A single failure scenario and its mitigation.",
"required": ["scenario", "likelihood", "impact", "mitigation"],
"additionalProperties": false,
"properties": {
"scenario": {
"type": "string",
"description": "What could go wrong."
},
"likelihood": {
"type": "string",
"enum": ["low", "medium", "high"],
"description": "Probability of this scenario occurring."
},
"impact": {
"type": "string",
"enum": ["low", "medium", "high"],
"description": "Severity if this scenario occurs."
},
"mitigation": {
"type": "string",
"description": "How to prevent or handle this scenario."
}
}
},
"KnownIssue": {
"type": "object",
"description": "An issue discovered during scouting.",
"required": ["description"],
"additionalProperties": false,
"properties": {
"title": {
"type": "string",
"description": "Short title for the issue."
},
"description": {
"type": "string",
"description": "Detailed description of the issue."
},
"status": {
"type": "string",
"description": "Current status of the issue."
},
"workaround": {
"type": "string",
"description": "Known workaround if available."
}
}
},
"PostMergeChecklist": {
"type": "object",
"description": "Verification steps to run after merging all waves.",
"required": ["groups"],
"additionalProperties": false,
"properties": {
"groups": {
"type": "array",
"items": { "$ref": "#/$defs/ChecklistGroup" },
"description": "Logical groupings of checklist items."
}
}
},
"ChecklistGroup": {
"type": "object",
"description": "A logical grouping of related checklist items.",
"required": ["title", "items"],
"additionalProperties": false,
"properties": {
"title": {
"type": "string",
"description": "Group heading."
},
"items": {
"type": "array",
"items": { "$ref": "#/$defs/ChecklistItem" },
"description": "Checklist items in this group."
}
}
},
"ChecklistItem": {
"type": "object",
"description": "A single verification step.",
"required": ["description"],
"additionalProperties": false,
"properties": {
"description": {
"type": "string",
"description": "What to verify."
},
"command": {
"type": "string",
"description": "Optional command to run for verification."
}
}
},
"ScanStubsResult": {
"type": "object",
"description": "Results from scanning agent files for stub patterns.",
"required": ["hits"],
"additionalProperties": false,
"properties": {
"hits": {
"type": "array",
"items": { "$ref": "#/$defs/StubHit" },
"description": "Stub patterns found in agent files."
}
}
},
"StubHit": {
"type": "object",
"description": "A single stub pattern match.",
"required": ["file", "line", "pattern", "context"],
"additionalProperties": false,
"properties": {
"file": {
"type": "string",
"description": "File path containing the stub."
},
"line": {
"type": "integer",
"description": "Line number of the stub."
},
"pattern": {
"type": "string",
"description": "Stub pattern that matched (e.g., TODO, FIXME)."
},
"context": {
"type": "string",
"description": "Source line containing the stub."
}
}
},
"WiringDeclaration": {
"type": "object",
"description": "E35 wiring obligation: an exported symbol that must be called from an aggregation point.",
"required": ["symbol", "defined_in", "must_be_called_from", "agent", "wave"],
"additionalProperties": false,
"properties": {
"symbol": {
"type": "string",
"description": "Exported function or type name."
},
"defined_in": {
"type": "string",
"description": "Relative path to implementing file."
},
"must_be_called_from": {
"type": "string",
"description": "Relative path to caller/aggregator file."
},
"agent": {
"type": "string",
"description": "Agent ID that owns both sides."
},
"wave": {
"type": "integer",
"description": "Wave number."
},
"integration_pattern": {
"type": "string",
"enum": ["append", "register", "inject", "call", "prop-pass"],
"description": "How the symbol is integrated into the caller. 'prop-pass' is TSX-specific for React component props."
}
}
},
"WiringValidationData": {
"type": "object",
"description": "Result of E35 wiring validation for a wave.",
"required": ["gaps", "valid", "summary"],
"additionalProperties": false,
"properties": {
"gaps": {
"type": "array",
"items": { "$ref": "#/$defs/WiringGap" },
"description": "Missing wiring declarations."
},
"valid": {
"type": "boolean",
"description": "True if all wiring declarations are satisfied."
},
"summary": {
"type": "string",
"description": "Human-readable summary."
}
}
},
"WiringGap": {
"type": "object",
"description": "A single missing wiring: declared symbol not found in caller file.",
"required": ["declaration", "reason", "severity"],
"additionalProperties": false,
"properties": {
"declaration": {
"$ref": "#/$defs/WiringDeclaration",
"description": "The wiring declaration that was not satisfied."
},
"reason": {
"type": "string",
"description": "Why the wiring is missing."
},
"severity": {
"type": "string",
"description": "Always 'error' for declared but missing wiring."
}
}
},
"IntegrationReport": {
"type": "object",
"description": "E25 integration validation results for a wave.",
"required": ["wave", "gaps", "valid", "summary"],
"additionalProperties": false,
"properties": {
"wave": {
"type": "integer",
"description": "Wave number."
},
"gaps": {
"type": "array",
"items": { "$ref": "#/$defs/IntegrationGap" },
"description": "Detected unconnected exports."
},
"valid": {
"type": "boolean",
"description": "True if no gaps detected."
},
"summary": {
"type": "string",
"description": "Human-readable summary."
}
}
},
"IntegrationGap": {
"type": "object",
"description": "A detected unconnected export.",
"required": ["export_name", "file_path", "agent_id", "category", "severity", "reason", "suggested_fix"],
"additionalProperties": false,
"properties": {
"export_name": {
"type": "string",
"description": "Name of the unconnected export."
},
"file_path": {
"type": "string",
"description": "File where the export is defined."
},
"agent_id": {
"type": "string",
"description": "Agent that created the export."
},
"category": {
"type": "string",
"enum": ["function_call", "type_usage", "field_init"],
"description": "Type of integration gap."
},
"severity": {
"type": "string",
"enum": ["error", "warning", "info"],
"description": "Gap severity."
},
"reason": {
"type": "string",
"description": "Why this is a gap."
},
"suggested_fix": {
"type": "string",
"description": "Suggested fix for the gap."
},
"search_results": {
"type": "array",
"items": { "type": "string" },
"description": "Files that might need to call this export."
}
}
},
"IntegrationConnector": {
"type": "object",
"description": "A file the integration agent (E26) is allowed to modify.",
"required": ["file", "reason"],
"additionalProperties": false,
"properties": {
"file": {
"type": "string",
"description": "File path."
},
"reason": {
"type": "string",
"description": "Why this file needs modification."
}
}
},
"ReactionsConfig": {
"type": "object",
"description": "E19.1 per-IMPL failure reaction overrides.",
"additionalProperties": false,
"properties": {
"transient": { "$ref": "#/$defs/ReactionEntry" },
"timeout": { "$ref": "#/$defs/ReactionEntry" },
"fixable": { "$ref": "#/$defs/ReactionEntry" },
"needs_replan": { "$ref": "#/$defs/ReactionEntry" },
"escalate": { "$ref": "#/$defs/ReactionEntry" }
}
},
"ReactionEntry": {
"type": "object",
"description": "Action and retry cap for one failure type.",
"required": ["action"],
"additionalProperties": false,
"properties": {
"action": {
"type": "string",
"enum": ["retry", "send-fix-prompt", "pause", "auto-scout"],
"description": "What the orchestrator should do."
},
"max_attempts": {
"type": "integer",
"description": "Maximum launch attempts (including the first). 0 = use E19 default."
}
}
},
"CriticData": {
"type": "object",
"description": "E37 structured output of critic-agent review.",
"required": ["verdict"],
"additionalProperties": false,
"properties": {
"verdict": {
"type": "string",
"enum": ["PASS", "ISSUES", "SKIPPED"],
"description": "Overall decision."
},
"agent_reviews": {
"type": "object",
"description": "Per-agent verdicts indexed by agent ID.",
"additionalProperties": { "$ref": "#/$defs/AgentCriticReview" }
},
"summary": {
"type": "string",
"description": "Human-readable summary."
},
"reviewed_at": {
"type": "string",
"description": "ISO 8601 timestamp."
},
"issue_count": {
"type": "integer",
"description": "Total issues found."
}
}
},
"AgentCriticReview": {
"type": "object",
"description": "Per-agent critic verdict.",
"additionalProperties": true,
"properties": {
"verdict": {
"type": "string",
"description": "PASS or ISSUES."
}
}
},
"DedupStats": {
"type": "object",
"description": "File-read dedup metrics for an agent's session.",
"required": ["hits", "misses", "tokens_saved_estimate"],
"additionalProperties": false,
"properties": {
"hits": {
"type": "integer",
"description": "Number of cache hits."
},
"misses": {
"type": "integer",
"description": "Number of cache misses."
},
"tokens_saved_estimate": {
"type": "integer",
"description": "Estimated tokens saved by dedup."
}
}
}
}
}