@knpkv/herdr-fleet 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/store.d.ts CHANGED
@@ -28,16 +28,142 @@ export declare class JobStore {
28
28
  readonly kind: "agent.delegate";
29
29
  readonly repository: string;
30
30
  readonly prompt: string;
31
- readonly mode: "consult" | "review" | "work";
31
+ readonly mode: "consult" | "review" | "transition_summary" | "work";
32
32
  readonly channel?: "coordinator_chat";
33
33
  } | {
34
34
  readonly kind: "agent.message";
35
35
  readonly session: string;
36
36
  readonly message: string;
37
+ } | {
38
+ readonly kind: "work.reconcile";
39
+ readonly repository: string;
40
+ readonly pullRequest: number;
41
+ readonly goalId: string;
42
+ readonly laneId: string;
43
+ readonly operationId: string;
44
+ readonly expectedRevision: number;
45
+ readonly expectedHead: string;
46
+ readonly newHead: string;
47
+ readonly expectedOwner: {
48
+ readonly id: string;
49
+ readonly name: string;
50
+ };
51
+ readonly expectedGoalEventId: string;
52
+ readonly bindingDispatchRequestId: string;
53
+ readonly sessionId: string;
54
+ readonly expectedWork: string;
55
+ readonly worker: {
56
+ readonly host: string;
57
+ readonly agentId: string;
58
+ readonly name: string;
59
+ readonly paneId: string;
60
+ readonly relationship?: {
61
+ readonly parentAgentId: string;
62
+ readonly relation: "delegated" | "pair" | "review";
63
+ };
64
+ };
65
+ readonly worktree: string;
66
+ readonly branch: string;
67
+ } | {
68
+ readonly kind: "work.admit";
69
+ readonly repository: string;
70
+ readonly pullRequest: number;
71
+ readonly reviewUrl: string;
72
+ readonly goalId: string;
73
+ readonly laneId: string;
74
+ readonly operationId: string;
75
+ readonly expectedAbsenceToken: string;
76
+ readonly head: string;
77
+ readonly baseHead: string;
78
+ readonly owner: {
79
+ readonly id: string;
80
+ readonly name: string;
81
+ };
82
+ readonly sessionId: string;
83
+ readonly expectedWork: string;
84
+ readonly worker: {
85
+ readonly host: string;
86
+ readonly agentId: string;
87
+ readonly name: string;
88
+ readonly paneId: string;
89
+ readonly relationship?: {
90
+ readonly parentAgentId: string;
91
+ readonly relation: "delegated" | "pair" | "review";
92
+ };
93
+ };
94
+ readonly worktree: string;
95
+ readonly branch: string;
96
+ readonly title: string;
97
+ readonly summary: string;
98
+ readonly detail: string;
99
+ } | {
100
+ readonly kind: "work.recover";
101
+ readonly repository: string;
102
+ readonly pullRequest: number;
103
+ readonly reviewUrl: string;
104
+ readonly goalId: string;
105
+ readonly laneId: string;
106
+ readonly operationId: string;
107
+ readonly expectedGoalEventId: string;
108
+ readonly expectedGoalUpdatedAt: number;
109
+ readonly expectedHistoryToken: string;
110
+ readonly head: string;
111
+ readonly baseHead: string;
112
+ readonly owner: {
113
+ readonly id: string;
114
+ readonly name: string;
115
+ };
116
+ readonly sessionId: string;
117
+ readonly expectedWork: string;
118
+ readonly worker: {
119
+ readonly host: string;
120
+ readonly agentId: string;
121
+ readonly name: string;
122
+ readonly paneId: string;
123
+ readonly relationship?: {
124
+ readonly parentAgentId: string;
125
+ readonly relation: "delegated" | "pair" | "review";
126
+ };
127
+ };
128
+ readonly worktree: string;
129
+ readonly branch: string;
130
+ } | {
131
+ readonly kind: "work.reassign";
132
+ readonly goalId: string;
133
+ readonly from: {
134
+ readonly id: string;
135
+ readonly name: string;
136
+ };
137
+ readonly to: {
138
+ readonly id: string;
139
+ readonly name: string;
140
+ };
141
+ readonly toAgent: {
142
+ readonly _tag: "clear";
143
+ } | {
144
+ readonly _tag: "keep";
145
+ } | {
146
+ readonly _tag: "set";
147
+ readonly agent: {
148
+ readonly host: string;
149
+ readonly agentId: string;
150
+ readonly name: string;
151
+ readonly paneId: string;
152
+ readonly relationship?: {
153
+ readonly parentAgentId: string;
154
+ readonly relation: "delegated" | "pair" | "review";
155
+ };
156
+ };
157
+ };
158
+ readonly reason: string;
159
+ readonly expectedGoalEventId: string;
160
+ readonly expectedGoalUpdatedAt: number;
37
161
  } | {
38
162
  readonly kind: "browser.mcp.recover";
39
163
  };
40
164
  readonly result: string | null;
165
+ readonly acceptedReceipt?: string | null;
166
+ readonly durableOperation?: true;
41
167
  readonly error: string | null;
42
168
  readonly worker?: {
43
169
  readonly host: string;
@@ -78,16 +204,142 @@ export declare class JobStore {
78
204
  readonly kind: "agent.delegate";
79
205
  readonly repository: string;
80
206
  readonly prompt: string;
81
- readonly mode: "consult" | "review" | "work";
207
+ readonly mode: "consult" | "review" | "transition_summary" | "work";
82
208
  readonly channel?: "coordinator_chat";
83
209
  } | {
84
210
  readonly kind: "agent.message";
85
211
  readonly session: string;
86
212
  readonly message: string;
213
+ } | {
214
+ readonly kind: "work.reconcile";
215
+ readonly repository: string;
216
+ readonly pullRequest: number;
217
+ readonly goalId: string;
218
+ readonly laneId: string;
219
+ readonly operationId: string;
220
+ readonly expectedRevision: number;
221
+ readonly expectedHead: string;
222
+ readonly newHead: string;
223
+ readonly expectedOwner: {
224
+ readonly id: string;
225
+ readonly name: string;
226
+ };
227
+ readonly expectedGoalEventId: string;
228
+ readonly bindingDispatchRequestId: string;
229
+ readonly sessionId: string;
230
+ readonly expectedWork: string;
231
+ readonly worker: {
232
+ readonly host: string;
233
+ readonly agentId: string;
234
+ readonly name: string;
235
+ readonly paneId: string;
236
+ readonly relationship?: {
237
+ readonly parentAgentId: string;
238
+ readonly relation: "delegated" | "pair" | "review";
239
+ };
240
+ };
241
+ readonly worktree: string;
242
+ readonly branch: string;
243
+ } | {
244
+ readonly kind: "work.admit";
245
+ readonly repository: string;
246
+ readonly pullRequest: number;
247
+ readonly reviewUrl: string;
248
+ readonly goalId: string;
249
+ readonly laneId: string;
250
+ readonly operationId: string;
251
+ readonly expectedAbsenceToken: string;
252
+ readonly head: string;
253
+ readonly baseHead: string;
254
+ readonly owner: {
255
+ readonly id: string;
256
+ readonly name: string;
257
+ };
258
+ readonly sessionId: string;
259
+ readonly expectedWork: string;
260
+ readonly worker: {
261
+ readonly host: string;
262
+ readonly agentId: string;
263
+ readonly name: string;
264
+ readonly paneId: string;
265
+ readonly relationship?: {
266
+ readonly parentAgentId: string;
267
+ readonly relation: "delegated" | "pair" | "review";
268
+ };
269
+ };
270
+ readonly worktree: string;
271
+ readonly branch: string;
272
+ readonly title: string;
273
+ readonly summary: string;
274
+ readonly detail: string;
275
+ } | {
276
+ readonly kind: "work.recover";
277
+ readonly repository: string;
278
+ readonly pullRequest: number;
279
+ readonly reviewUrl: string;
280
+ readonly goalId: string;
281
+ readonly laneId: string;
282
+ readonly operationId: string;
283
+ readonly expectedGoalEventId: string;
284
+ readonly expectedGoalUpdatedAt: number;
285
+ readonly expectedHistoryToken: string;
286
+ readonly head: string;
287
+ readonly baseHead: string;
288
+ readonly owner: {
289
+ readonly id: string;
290
+ readonly name: string;
291
+ };
292
+ readonly sessionId: string;
293
+ readonly expectedWork: string;
294
+ readonly worker: {
295
+ readonly host: string;
296
+ readonly agentId: string;
297
+ readonly name: string;
298
+ readonly paneId: string;
299
+ readonly relationship?: {
300
+ readonly parentAgentId: string;
301
+ readonly relation: "delegated" | "pair" | "review";
302
+ };
303
+ };
304
+ readonly worktree: string;
305
+ readonly branch: string;
306
+ } | {
307
+ readonly kind: "work.reassign";
308
+ readonly goalId: string;
309
+ readonly from: {
310
+ readonly id: string;
311
+ readonly name: string;
312
+ };
313
+ readonly to: {
314
+ readonly id: string;
315
+ readonly name: string;
316
+ };
317
+ readonly toAgent: {
318
+ readonly _tag: "clear";
319
+ } | {
320
+ readonly _tag: "keep";
321
+ } | {
322
+ readonly _tag: "set";
323
+ readonly agent: {
324
+ readonly host: string;
325
+ readonly agentId: string;
326
+ readonly name: string;
327
+ readonly paneId: string;
328
+ readonly relationship?: {
329
+ readonly parentAgentId: string;
330
+ readonly relation: "delegated" | "pair" | "review";
331
+ };
332
+ };
333
+ };
334
+ readonly reason: string;
335
+ readonly expectedGoalEventId: string;
336
+ readonly expectedGoalUpdatedAt: number;
87
337
  } | {
88
338
  readonly kind: "browser.mcp.recover";
89
339
  };
90
340
  readonly result: string | null;
341
+ readonly acceptedReceipt?: string | null;
342
+ readonly durableOperation?: true;
91
343
  readonly error: string | null;
92
344
  readonly worker?: {
93
345
  readonly host: string;
@@ -129,16 +381,142 @@ export declare class JobStore {
129
381
  readonly kind: "agent.delegate";
130
382
  readonly repository: string;
131
383
  readonly prompt: string;
132
- readonly mode: "consult" | "review" | "work";
384
+ readonly mode: "consult" | "review" | "transition_summary" | "work";
133
385
  readonly channel?: "coordinator_chat";
134
386
  } | {
135
387
  readonly kind: "agent.message";
136
388
  readonly session: string;
137
389
  readonly message: string;
390
+ } | {
391
+ readonly kind: "work.reconcile";
392
+ readonly repository: string;
393
+ readonly pullRequest: number;
394
+ readonly goalId: string;
395
+ readonly laneId: string;
396
+ readonly operationId: string;
397
+ readonly expectedRevision: number;
398
+ readonly expectedHead: string;
399
+ readonly newHead: string;
400
+ readonly expectedOwner: {
401
+ readonly id: string;
402
+ readonly name: string;
403
+ };
404
+ readonly expectedGoalEventId: string;
405
+ readonly bindingDispatchRequestId: string;
406
+ readonly sessionId: string;
407
+ readonly expectedWork: string;
408
+ readonly worker: {
409
+ readonly host: string;
410
+ readonly agentId: string;
411
+ readonly name: string;
412
+ readonly paneId: string;
413
+ readonly relationship?: {
414
+ readonly parentAgentId: string;
415
+ readonly relation: "delegated" | "pair" | "review";
416
+ };
417
+ };
418
+ readonly worktree: string;
419
+ readonly branch: string;
420
+ } | {
421
+ readonly kind: "work.admit";
422
+ readonly repository: string;
423
+ readonly pullRequest: number;
424
+ readonly reviewUrl: string;
425
+ readonly goalId: string;
426
+ readonly laneId: string;
427
+ readonly operationId: string;
428
+ readonly expectedAbsenceToken: string;
429
+ readonly head: string;
430
+ readonly baseHead: string;
431
+ readonly owner: {
432
+ readonly id: string;
433
+ readonly name: string;
434
+ };
435
+ readonly sessionId: string;
436
+ readonly expectedWork: string;
437
+ readonly worker: {
438
+ readonly host: string;
439
+ readonly agentId: string;
440
+ readonly name: string;
441
+ readonly paneId: string;
442
+ readonly relationship?: {
443
+ readonly parentAgentId: string;
444
+ readonly relation: "delegated" | "pair" | "review";
445
+ };
446
+ };
447
+ readonly worktree: string;
448
+ readonly branch: string;
449
+ readonly title: string;
450
+ readonly summary: string;
451
+ readonly detail: string;
452
+ } | {
453
+ readonly kind: "work.recover";
454
+ readonly repository: string;
455
+ readonly pullRequest: number;
456
+ readonly reviewUrl: string;
457
+ readonly goalId: string;
458
+ readonly laneId: string;
459
+ readonly operationId: string;
460
+ readonly expectedGoalEventId: string;
461
+ readonly expectedGoalUpdatedAt: number;
462
+ readonly expectedHistoryToken: string;
463
+ readonly head: string;
464
+ readonly baseHead: string;
465
+ readonly owner: {
466
+ readonly id: string;
467
+ readonly name: string;
468
+ };
469
+ readonly sessionId: string;
470
+ readonly expectedWork: string;
471
+ readonly worker: {
472
+ readonly host: string;
473
+ readonly agentId: string;
474
+ readonly name: string;
475
+ readonly paneId: string;
476
+ readonly relationship?: {
477
+ readonly parentAgentId: string;
478
+ readonly relation: "delegated" | "pair" | "review";
479
+ };
480
+ };
481
+ readonly worktree: string;
482
+ readonly branch: string;
483
+ } | {
484
+ readonly kind: "work.reassign";
485
+ readonly goalId: string;
486
+ readonly from: {
487
+ readonly id: string;
488
+ readonly name: string;
489
+ };
490
+ readonly to: {
491
+ readonly id: string;
492
+ readonly name: string;
493
+ };
494
+ readonly toAgent: {
495
+ readonly _tag: "clear";
496
+ } | {
497
+ readonly _tag: "keep";
498
+ } | {
499
+ readonly _tag: "set";
500
+ readonly agent: {
501
+ readonly host: string;
502
+ readonly agentId: string;
503
+ readonly name: string;
504
+ readonly paneId: string;
505
+ readonly relationship?: {
506
+ readonly parentAgentId: string;
507
+ readonly relation: "delegated" | "pair" | "review";
508
+ };
509
+ };
510
+ };
511
+ readonly reason: string;
512
+ readonly expectedGoalEventId: string;
513
+ readonly expectedGoalUpdatedAt: number;
138
514
  } | {
139
515
  readonly kind: "browser.mcp.recover";
140
516
  };
141
517
  readonly result: string | null;
518
+ readonly acceptedReceipt?: string | null;
519
+ readonly durableOperation?: true;
142
520
  readonly error: string | null;
143
521
  readonly worker?: {
144
522
  readonly host: string;
@@ -179,16 +557,142 @@ export declare class JobStore {
179
557
  readonly kind: "agent.delegate";
180
558
  readonly repository: string;
181
559
  readonly prompt: string;
182
- readonly mode: "consult" | "review" | "work";
560
+ readonly mode: "consult" | "review" | "transition_summary" | "work";
183
561
  readonly channel?: "coordinator_chat";
184
562
  } | {
185
563
  readonly kind: "agent.message";
186
564
  readonly session: string;
187
565
  readonly message: string;
566
+ } | {
567
+ readonly kind: "work.reconcile";
568
+ readonly repository: string;
569
+ readonly pullRequest: number;
570
+ readonly goalId: string;
571
+ readonly laneId: string;
572
+ readonly operationId: string;
573
+ readonly expectedRevision: number;
574
+ readonly expectedHead: string;
575
+ readonly newHead: string;
576
+ readonly expectedOwner: {
577
+ readonly id: string;
578
+ readonly name: string;
579
+ };
580
+ readonly expectedGoalEventId: string;
581
+ readonly bindingDispatchRequestId: string;
582
+ readonly sessionId: string;
583
+ readonly expectedWork: string;
584
+ readonly worker: {
585
+ readonly host: string;
586
+ readonly agentId: string;
587
+ readonly name: string;
588
+ readonly paneId: string;
589
+ readonly relationship?: {
590
+ readonly parentAgentId: string;
591
+ readonly relation: "delegated" | "pair" | "review";
592
+ };
593
+ };
594
+ readonly worktree: string;
595
+ readonly branch: string;
596
+ } | {
597
+ readonly kind: "work.admit";
598
+ readonly repository: string;
599
+ readonly pullRequest: number;
600
+ readonly reviewUrl: string;
601
+ readonly goalId: string;
602
+ readonly laneId: string;
603
+ readonly operationId: string;
604
+ readonly expectedAbsenceToken: string;
605
+ readonly head: string;
606
+ readonly baseHead: string;
607
+ readonly owner: {
608
+ readonly id: string;
609
+ readonly name: string;
610
+ };
611
+ readonly sessionId: string;
612
+ readonly expectedWork: string;
613
+ readonly worker: {
614
+ readonly host: string;
615
+ readonly agentId: string;
616
+ readonly name: string;
617
+ readonly paneId: string;
618
+ readonly relationship?: {
619
+ readonly parentAgentId: string;
620
+ readonly relation: "delegated" | "pair" | "review";
621
+ };
622
+ };
623
+ readonly worktree: string;
624
+ readonly branch: string;
625
+ readonly title: string;
626
+ readonly summary: string;
627
+ readonly detail: string;
628
+ } | {
629
+ readonly kind: "work.recover";
630
+ readonly repository: string;
631
+ readonly pullRequest: number;
632
+ readonly reviewUrl: string;
633
+ readonly goalId: string;
634
+ readonly laneId: string;
635
+ readonly operationId: string;
636
+ readonly expectedGoalEventId: string;
637
+ readonly expectedGoalUpdatedAt: number;
638
+ readonly expectedHistoryToken: string;
639
+ readonly head: string;
640
+ readonly baseHead: string;
641
+ readonly owner: {
642
+ readonly id: string;
643
+ readonly name: string;
644
+ };
645
+ readonly sessionId: string;
646
+ readonly expectedWork: string;
647
+ readonly worker: {
648
+ readonly host: string;
649
+ readonly agentId: string;
650
+ readonly name: string;
651
+ readonly paneId: string;
652
+ readonly relationship?: {
653
+ readonly parentAgentId: string;
654
+ readonly relation: "delegated" | "pair" | "review";
655
+ };
656
+ };
657
+ readonly worktree: string;
658
+ readonly branch: string;
659
+ } | {
660
+ readonly kind: "work.reassign";
661
+ readonly goalId: string;
662
+ readonly from: {
663
+ readonly id: string;
664
+ readonly name: string;
665
+ };
666
+ readonly to: {
667
+ readonly id: string;
668
+ readonly name: string;
669
+ };
670
+ readonly toAgent: {
671
+ readonly _tag: "clear";
672
+ } | {
673
+ readonly _tag: "keep";
674
+ } | {
675
+ readonly _tag: "set";
676
+ readonly agent: {
677
+ readonly host: string;
678
+ readonly agentId: string;
679
+ readonly name: string;
680
+ readonly paneId: string;
681
+ readonly relationship?: {
682
+ readonly parentAgentId: string;
683
+ readonly relation: "delegated" | "pair" | "review";
684
+ };
685
+ };
686
+ };
687
+ readonly reason: string;
688
+ readonly expectedGoalEventId: string;
689
+ readonly expectedGoalUpdatedAt: number;
188
690
  } | {
189
691
  readonly kind: "browser.mcp.recover";
190
692
  };
191
693
  readonly result: string | null;
694
+ readonly acceptedReceipt?: string | null;
695
+ readonly durableOperation?: true;
192
696
  readonly error: string | null;
193
697
  readonly worker?: {
194
698
  readonly host: string;
@@ -229,16 +733,142 @@ export declare class JobStore {
229
733
  readonly kind: "agent.delegate";
230
734
  readonly repository: string;
231
735
  readonly prompt: string;
232
- readonly mode: "consult" | "review" | "work";
736
+ readonly mode: "consult" | "review" | "transition_summary" | "work";
233
737
  readonly channel?: "coordinator_chat";
234
738
  } | {
235
739
  readonly kind: "agent.message";
236
740
  readonly session: string;
237
741
  readonly message: string;
742
+ } | {
743
+ readonly kind: "work.reconcile";
744
+ readonly repository: string;
745
+ readonly pullRequest: number;
746
+ readonly goalId: string;
747
+ readonly laneId: string;
748
+ readonly operationId: string;
749
+ readonly expectedRevision: number;
750
+ readonly expectedHead: string;
751
+ readonly newHead: string;
752
+ readonly expectedOwner: {
753
+ readonly id: string;
754
+ readonly name: string;
755
+ };
756
+ readonly expectedGoalEventId: string;
757
+ readonly bindingDispatchRequestId: string;
758
+ readonly sessionId: string;
759
+ readonly expectedWork: string;
760
+ readonly worker: {
761
+ readonly host: string;
762
+ readonly agentId: string;
763
+ readonly name: string;
764
+ readonly paneId: string;
765
+ readonly relationship?: {
766
+ readonly parentAgentId: string;
767
+ readonly relation: "delegated" | "pair" | "review";
768
+ };
769
+ };
770
+ readonly worktree: string;
771
+ readonly branch: string;
772
+ } | {
773
+ readonly kind: "work.admit";
774
+ readonly repository: string;
775
+ readonly pullRequest: number;
776
+ readonly reviewUrl: string;
777
+ readonly goalId: string;
778
+ readonly laneId: string;
779
+ readonly operationId: string;
780
+ readonly expectedAbsenceToken: string;
781
+ readonly head: string;
782
+ readonly baseHead: string;
783
+ readonly owner: {
784
+ readonly id: string;
785
+ readonly name: string;
786
+ };
787
+ readonly sessionId: string;
788
+ readonly expectedWork: string;
789
+ readonly worker: {
790
+ readonly host: string;
791
+ readonly agentId: string;
792
+ readonly name: string;
793
+ readonly paneId: string;
794
+ readonly relationship?: {
795
+ readonly parentAgentId: string;
796
+ readonly relation: "delegated" | "pair" | "review";
797
+ };
798
+ };
799
+ readonly worktree: string;
800
+ readonly branch: string;
801
+ readonly title: string;
802
+ readonly summary: string;
803
+ readonly detail: string;
804
+ } | {
805
+ readonly kind: "work.recover";
806
+ readonly repository: string;
807
+ readonly pullRequest: number;
808
+ readonly reviewUrl: string;
809
+ readonly goalId: string;
810
+ readonly laneId: string;
811
+ readonly operationId: string;
812
+ readonly expectedGoalEventId: string;
813
+ readonly expectedGoalUpdatedAt: number;
814
+ readonly expectedHistoryToken: string;
815
+ readonly head: string;
816
+ readonly baseHead: string;
817
+ readonly owner: {
818
+ readonly id: string;
819
+ readonly name: string;
820
+ };
821
+ readonly sessionId: string;
822
+ readonly expectedWork: string;
823
+ readonly worker: {
824
+ readonly host: string;
825
+ readonly agentId: string;
826
+ readonly name: string;
827
+ readonly paneId: string;
828
+ readonly relationship?: {
829
+ readonly parentAgentId: string;
830
+ readonly relation: "delegated" | "pair" | "review";
831
+ };
832
+ };
833
+ readonly worktree: string;
834
+ readonly branch: string;
835
+ } | {
836
+ readonly kind: "work.reassign";
837
+ readonly goalId: string;
838
+ readonly from: {
839
+ readonly id: string;
840
+ readonly name: string;
841
+ };
842
+ readonly to: {
843
+ readonly id: string;
844
+ readonly name: string;
845
+ };
846
+ readonly toAgent: {
847
+ readonly _tag: "clear";
848
+ } | {
849
+ readonly _tag: "keep";
850
+ } | {
851
+ readonly _tag: "set";
852
+ readonly agent: {
853
+ readonly host: string;
854
+ readonly agentId: string;
855
+ readonly name: string;
856
+ readonly paneId: string;
857
+ readonly relationship?: {
858
+ readonly parentAgentId: string;
859
+ readonly relation: "delegated" | "pair" | "review";
860
+ };
861
+ };
862
+ };
863
+ readonly reason: string;
864
+ readonly expectedGoalEventId: string;
865
+ readonly expectedGoalUpdatedAt: number;
238
866
  } | {
239
867
  readonly kind: "browser.mcp.recover";
240
868
  };
241
869
  readonly result: string | null;
870
+ readonly acceptedReceipt?: string | null;
871
+ readonly durableOperation?: true;
242
872
  readonly error: string | null;
243
873
  readonly worker?: {
244
874
  readonly host: string;
@@ -280,16 +910,142 @@ export declare class JobStore {
280
910
  readonly kind: "agent.delegate";
281
911
  readonly repository: string;
282
912
  readonly prompt: string;
283
- readonly mode: "consult" | "review" | "work";
913
+ readonly mode: "consult" | "review" | "transition_summary" | "work";
284
914
  readonly channel?: "coordinator_chat";
285
915
  } | {
286
916
  readonly kind: "agent.message";
287
917
  readonly session: string;
288
918
  readonly message: string;
919
+ } | {
920
+ readonly kind: "work.reconcile";
921
+ readonly repository: string;
922
+ readonly pullRequest: number;
923
+ readonly goalId: string;
924
+ readonly laneId: string;
925
+ readonly operationId: string;
926
+ readonly expectedRevision: number;
927
+ readonly expectedHead: string;
928
+ readonly newHead: string;
929
+ readonly expectedOwner: {
930
+ readonly id: string;
931
+ readonly name: string;
932
+ };
933
+ readonly expectedGoalEventId: string;
934
+ readonly bindingDispatchRequestId: string;
935
+ readonly sessionId: string;
936
+ readonly expectedWork: string;
937
+ readonly worker: {
938
+ readonly host: string;
939
+ readonly agentId: string;
940
+ readonly name: string;
941
+ readonly paneId: string;
942
+ readonly relationship?: {
943
+ readonly parentAgentId: string;
944
+ readonly relation: "delegated" | "pair" | "review";
945
+ };
946
+ };
947
+ readonly worktree: string;
948
+ readonly branch: string;
949
+ } | {
950
+ readonly kind: "work.admit";
951
+ readonly repository: string;
952
+ readonly pullRequest: number;
953
+ readonly reviewUrl: string;
954
+ readonly goalId: string;
955
+ readonly laneId: string;
956
+ readonly operationId: string;
957
+ readonly expectedAbsenceToken: string;
958
+ readonly head: string;
959
+ readonly baseHead: string;
960
+ readonly owner: {
961
+ readonly id: string;
962
+ readonly name: string;
963
+ };
964
+ readonly sessionId: string;
965
+ readonly expectedWork: string;
966
+ readonly worker: {
967
+ readonly host: string;
968
+ readonly agentId: string;
969
+ readonly name: string;
970
+ readonly paneId: string;
971
+ readonly relationship?: {
972
+ readonly parentAgentId: string;
973
+ readonly relation: "delegated" | "pair" | "review";
974
+ };
975
+ };
976
+ readonly worktree: string;
977
+ readonly branch: string;
978
+ readonly title: string;
979
+ readonly summary: string;
980
+ readonly detail: string;
981
+ } | {
982
+ readonly kind: "work.recover";
983
+ readonly repository: string;
984
+ readonly pullRequest: number;
985
+ readonly reviewUrl: string;
986
+ readonly goalId: string;
987
+ readonly laneId: string;
988
+ readonly operationId: string;
989
+ readonly expectedGoalEventId: string;
990
+ readonly expectedGoalUpdatedAt: number;
991
+ readonly expectedHistoryToken: string;
992
+ readonly head: string;
993
+ readonly baseHead: string;
994
+ readonly owner: {
995
+ readonly id: string;
996
+ readonly name: string;
997
+ };
998
+ readonly sessionId: string;
999
+ readonly expectedWork: string;
1000
+ readonly worker: {
1001
+ readonly host: string;
1002
+ readonly agentId: string;
1003
+ readonly name: string;
1004
+ readonly paneId: string;
1005
+ readonly relationship?: {
1006
+ readonly parentAgentId: string;
1007
+ readonly relation: "delegated" | "pair" | "review";
1008
+ };
1009
+ };
1010
+ readonly worktree: string;
1011
+ readonly branch: string;
1012
+ } | {
1013
+ readonly kind: "work.reassign";
1014
+ readonly goalId: string;
1015
+ readonly from: {
1016
+ readonly id: string;
1017
+ readonly name: string;
1018
+ };
1019
+ readonly to: {
1020
+ readonly id: string;
1021
+ readonly name: string;
1022
+ };
1023
+ readonly toAgent: {
1024
+ readonly _tag: "clear";
1025
+ } | {
1026
+ readonly _tag: "keep";
1027
+ } | {
1028
+ readonly _tag: "set";
1029
+ readonly agent: {
1030
+ readonly host: string;
1031
+ readonly agentId: string;
1032
+ readonly name: string;
1033
+ readonly paneId: string;
1034
+ readonly relationship?: {
1035
+ readonly parentAgentId: string;
1036
+ readonly relation: "delegated" | "pair" | "review";
1037
+ };
1038
+ };
1039
+ };
1040
+ readonly reason: string;
1041
+ readonly expectedGoalEventId: string;
1042
+ readonly expectedGoalUpdatedAt: number;
289
1043
  } | {
290
1044
  readonly kind: "browser.mcp.recover";
291
1045
  };
292
1046
  readonly result: string | null;
1047
+ readonly acceptedReceipt?: string | null;
1048
+ readonly durableOperation?: true;
293
1049
  readonly error: string | null;
294
1050
  readonly worker?: {
295
1051
  readonly host: string;
@@ -331,16 +1087,142 @@ export declare class JobStore {
331
1087
  readonly kind: "agent.delegate";
332
1088
  readonly repository: string;
333
1089
  readonly prompt: string;
334
- readonly mode: "consult" | "review" | "work";
1090
+ readonly mode: "consult" | "review" | "transition_summary" | "work";
335
1091
  readonly channel?: "coordinator_chat";
336
1092
  } | {
337
1093
  readonly kind: "agent.message";
338
1094
  readonly session: string;
339
1095
  readonly message: string;
1096
+ } | {
1097
+ readonly kind: "work.reconcile";
1098
+ readonly repository: string;
1099
+ readonly pullRequest: number;
1100
+ readonly goalId: string;
1101
+ readonly laneId: string;
1102
+ readonly operationId: string;
1103
+ readonly expectedRevision: number;
1104
+ readonly expectedHead: string;
1105
+ readonly newHead: string;
1106
+ readonly expectedOwner: {
1107
+ readonly id: string;
1108
+ readonly name: string;
1109
+ };
1110
+ readonly expectedGoalEventId: string;
1111
+ readonly bindingDispatchRequestId: string;
1112
+ readonly sessionId: string;
1113
+ readonly expectedWork: string;
1114
+ readonly worker: {
1115
+ readonly host: string;
1116
+ readonly agentId: string;
1117
+ readonly name: string;
1118
+ readonly paneId: string;
1119
+ readonly relationship?: {
1120
+ readonly parentAgentId: string;
1121
+ readonly relation: "delegated" | "pair" | "review";
1122
+ };
1123
+ };
1124
+ readonly worktree: string;
1125
+ readonly branch: string;
1126
+ } | {
1127
+ readonly kind: "work.admit";
1128
+ readonly repository: string;
1129
+ readonly pullRequest: number;
1130
+ readonly reviewUrl: string;
1131
+ readonly goalId: string;
1132
+ readonly laneId: string;
1133
+ readonly operationId: string;
1134
+ readonly expectedAbsenceToken: string;
1135
+ readonly head: string;
1136
+ readonly baseHead: string;
1137
+ readonly owner: {
1138
+ readonly id: string;
1139
+ readonly name: string;
1140
+ };
1141
+ readonly sessionId: string;
1142
+ readonly expectedWork: string;
1143
+ readonly worker: {
1144
+ readonly host: string;
1145
+ readonly agentId: string;
1146
+ readonly name: string;
1147
+ readonly paneId: string;
1148
+ readonly relationship?: {
1149
+ readonly parentAgentId: string;
1150
+ readonly relation: "delegated" | "pair" | "review";
1151
+ };
1152
+ };
1153
+ readonly worktree: string;
1154
+ readonly branch: string;
1155
+ readonly title: string;
1156
+ readonly summary: string;
1157
+ readonly detail: string;
1158
+ } | {
1159
+ readonly kind: "work.recover";
1160
+ readonly repository: string;
1161
+ readonly pullRequest: number;
1162
+ readonly reviewUrl: string;
1163
+ readonly goalId: string;
1164
+ readonly laneId: string;
1165
+ readonly operationId: string;
1166
+ readonly expectedGoalEventId: string;
1167
+ readonly expectedGoalUpdatedAt: number;
1168
+ readonly expectedHistoryToken: string;
1169
+ readonly head: string;
1170
+ readonly baseHead: string;
1171
+ readonly owner: {
1172
+ readonly id: string;
1173
+ readonly name: string;
1174
+ };
1175
+ readonly sessionId: string;
1176
+ readonly expectedWork: string;
1177
+ readonly worker: {
1178
+ readonly host: string;
1179
+ readonly agentId: string;
1180
+ readonly name: string;
1181
+ readonly paneId: string;
1182
+ readonly relationship?: {
1183
+ readonly parentAgentId: string;
1184
+ readonly relation: "delegated" | "pair" | "review";
1185
+ };
1186
+ };
1187
+ readonly worktree: string;
1188
+ readonly branch: string;
1189
+ } | {
1190
+ readonly kind: "work.reassign";
1191
+ readonly goalId: string;
1192
+ readonly from: {
1193
+ readonly id: string;
1194
+ readonly name: string;
1195
+ };
1196
+ readonly to: {
1197
+ readonly id: string;
1198
+ readonly name: string;
1199
+ };
1200
+ readonly toAgent: {
1201
+ readonly _tag: "clear";
1202
+ } | {
1203
+ readonly _tag: "keep";
1204
+ } | {
1205
+ readonly _tag: "set";
1206
+ readonly agent: {
1207
+ readonly host: string;
1208
+ readonly agentId: string;
1209
+ readonly name: string;
1210
+ readonly paneId: string;
1211
+ readonly relationship?: {
1212
+ readonly parentAgentId: string;
1213
+ readonly relation: "delegated" | "pair" | "review";
1214
+ };
1215
+ };
1216
+ };
1217
+ readonly reason: string;
1218
+ readonly expectedGoalEventId: string;
1219
+ readonly expectedGoalUpdatedAt: number;
340
1220
  } | {
341
1221
  readonly kind: "browser.mcp.recover";
342
1222
  };
343
1223
  readonly result: string | null;
1224
+ readonly acceptedReceipt?: string | null;
1225
+ readonly durableOperation?: true;
344
1226
  readonly error: string | null;
345
1227
  readonly worker?: {
346
1228
  readonly host: string;
@@ -385,16 +1267,142 @@ export declare class JobStore {
385
1267
  readonly kind: "agent.delegate";
386
1268
  readonly repository: string;
387
1269
  readonly prompt: string;
388
- readonly mode: "consult" | "review" | "work";
1270
+ readonly mode: "consult" | "review" | "transition_summary" | "work";
389
1271
  readonly channel?: "coordinator_chat";
390
1272
  } | {
391
1273
  readonly kind: "agent.message";
392
1274
  readonly session: string;
393
1275
  readonly message: string;
1276
+ } | {
1277
+ readonly kind: "work.reconcile";
1278
+ readonly repository: string;
1279
+ readonly pullRequest: number;
1280
+ readonly goalId: string;
1281
+ readonly laneId: string;
1282
+ readonly operationId: string;
1283
+ readonly expectedRevision: number;
1284
+ readonly expectedHead: string;
1285
+ readonly newHead: string;
1286
+ readonly expectedOwner: {
1287
+ readonly id: string;
1288
+ readonly name: string;
1289
+ };
1290
+ readonly expectedGoalEventId: string;
1291
+ readonly bindingDispatchRequestId: string;
1292
+ readonly sessionId: string;
1293
+ readonly expectedWork: string;
1294
+ readonly worker: {
1295
+ readonly host: string;
1296
+ readonly agentId: string;
1297
+ readonly name: string;
1298
+ readonly paneId: string;
1299
+ readonly relationship?: {
1300
+ readonly parentAgentId: string;
1301
+ readonly relation: "delegated" | "pair" | "review";
1302
+ };
1303
+ };
1304
+ readonly worktree: string;
1305
+ readonly branch: string;
1306
+ } | {
1307
+ readonly kind: "work.admit";
1308
+ readonly repository: string;
1309
+ readonly pullRequest: number;
1310
+ readonly reviewUrl: string;
1311
+ readonly goalId: string;
1312
+ readonly laneId: string;
1313
+ readonly operationId: string;
1314
+ readonly expectedAbsenceToken: string;
1315
+ readonly head: string;
1316
+ readonly baseHead: string;
1317
+ readonly owner: {
1318
+ readonly id: string;
1319
+ readonly name: string;
1320
+ };
1321
+ readonly sessionId: string;
1322
+ readonly expectedWork: string;
1323
+ readonly worker: {
1324
+ readonly host: string;
1325
+ readonly agentId: string;
1326
+ readonly name: string;
1327
+ readonly paneId: string;
1328
+ readonly relationship?: {
1329
+ readonly parentAgentId: string;
1330
+ readonly relation: "delegated" | "pair" | "review";
1331
+ };
1332
+ };
1333
+ readonly worktree: string;
1334
+ readonly branch: string;
1335
+ readonly title: string;
1336
+ readonly summary: string;
1337
+ readonly detail: string;
1338
+ } | {
1339
+ readonly kind: "work.recover";
1340
+ readonly repository: string;
1341
+ readonly pullRequest: number;
1342
+ readonly reviewUrl: string;
1343
+ readonly goalId: string;
1344
+ readonly laneId: string;
1345
+ readonly operationId: string;
1346
+ readonly expectedGoalEventId: string;
1347
+ readonly expectedGoalUpdatedAt: number;
1348
+ readonly expectedHistoryToken: string;
1349
+ readonly head: string;
1350
+ readonly baseHead: string;
1351
+ readonly owner: {
1352
+ readonly id: string;
1353
+ readonly name: string;
1354
+ };
1355
+ readonly sessionId: string;
1356
+ readonly expectedWork: string;
1357
+ readonly worker: {
1358
+ readonly host: string;
1359
+ readonly agentId: string;
1360
+ readonly name: string;
1361
+ readonly paneId: string;
1362
+ readonly relationship?: {
1363
+ readonly parentAgentId: string;
1364
+ readonly relation: "delegated" | "pair" | "review";
1365
+ };
1366
+ };
1367
+ readonly worktree: string;
1368
+ readonly branch: string;
1369
+ } | {
1370
+ readonly kind: "work.reassign";
1371
+ readonly goalId: string;
1372
+ readonly from: {
1373
+ readonly id: string;
1374
+ readonly name: string;
1375
+ };
1376
+ readonly to: {
1377
+ readonly id: string;
1378
+ readonly name: string;
1379
+ };
1380
+ readonly toAgent: {
1381
+ readonly _tag: "clear";
1382
+ } | {
1383
+ readonly _tag: "keep";
1384
+ } | {
1385
+ readonly _tag: "set";
1386
+ readonly agent: {
1387
+ readonly host: string;
1388
+ readonly agentId: string;
1389
+ readonly name: string;
1390
+ readonly paneId: string;
1391
+ readonly relationship?: {
1392
+ readonly parentAgentId: string;
1393
+ readonly relation: "delegated" | "pair" | "review";
1394
+ };
1395
+ };
1396
+ };
1397
+ readonly reason: string;
1398
+ readonly expectedGoalEventId: string;
1399
+ readonly expectedGoalUpdatedAt: number;
394
1400
  } | {
395
1401
  readonly kind: "browser.mcp.recover";
396
1402
  };
397
1403
  readonly result: string | null;
1404
+ readonly acceptedReceipt?: string | null;
1405
+ readonly durableOperation?: true;
398
1406
  readonly error: string | null;
399
1407
  readonly worker?: {
400
1408
  readonly host: string;
@@ -439,16 +1447,142 @@ export declare class JobStore {
439
1447
  readonly kind: "agent.delegate";
440
1448
  readonly repository: string;
441
1449
  readonly prompt: string;
442
- readonly mode: "consult" | "review" | "work";
1450
+ readonly mode: "consult" | "review" | "transition_summary" | "work";
443
1451
  readonly channel?: "coordinator_chat";
444
1452
  } | {
445
1453
  readonly kind: "agent.message";
446
1454
  readonly session: string;
447
1455
  readonly message: string;
1456
+ } | {
1457
+ readonly kind: "work.reconcile";
1458
+ readonly repository: string;
1459
+ readonly pullRequest: number;
1460
+ readonly goalId: string;
1461
+ readonly laneId: string;
1462
+ readonly operationId: string;
1463
+ readonly expectedRevision: number;
1464
+ readonly expectedHead: string;
1465
+ readonly newHead: string;
1466
+ readonly expectedOwner: {
1467
+ readonly id: string;
1468
+ readonly name: string;
1469
+ };
1470
+ readonly expectedGoalEventId: string;
1471
+ readonly bindingDispatchRequestId: string;
1472
+ readonly sessionId: string;
1473
+ readonly expectedWork: string;
1474
+ readonly worker: {
1475
+ readonly host: string;
1476
+ readonly agentId: string;
1477
+ readonly name: string;
1478
+ readonly paneId: string;
1479
+ readonly relationship?: {
1480
+ readonly parentAgentId: string;
1481
+ readonly relation: "delegated" | "pair" | "review";
1482
+ };
1483
+ };
1484
+ readonly worktree: string;
1485
+ readonly branch: string;
1486
+ } | {
1487
+ readonly kind: "work.admit";
1488
+ readonly repository: string;
1489
+ readonly pullRequest: number;
1490
+ readonly reviewUrl: string;
1491
+ readonly goalId: string;
1492
+ readonly laneId: string;
1493
+ readonly operationId: string;
1494
+ readonly expectedAbsenceToken: string;
1495
+ readonly head: string;
1496
+ readonly baseHead: string;
1497
+ readonly owner: {
1498
+ readonly id: string;
1499
+ readonly name: string;
1500
+ };
1501
+ readonly sessionId: string;
1502
+ readonly expectedWork: string;
1503
+ readonly worker: {
1504
+ readonly host: string;
1505
+ readonly agentId: string;
1506
+ readonly name: string;
1507
+ readonly paneId: string;
1508
+ readonly relationship?: {
1509
+ readonly parentAgentId: string;
1510
+ readonly relation: "delegated" | "pair" | "review";
1511
+ };
1512
+ };
1513
+ readonly worktree: string;
1514
+ readonly branch: string;
1515
+ readonly title: string;
1516
+ readonly summary: string;
1517
+ readonly detail: string;
1518
+ } | {
1519
+ readonly kind: "work.recover";
1520
+ readonly repository: string;
1521
+ readonly pullRequest: number;
1522
+ readonly reviewUrl: string;
1523
+ readonly goalId: string;
1524
+ readonly laneId: string;
1525
+ readonly operationId: string;
1526
+ readonly expectedGoalEventId: string;
1527
+ readonly expectedGoalUpdatedAt: number;
1528
+ readonly expectedHistoryToken: string;
1529
+ readonly head: string;
1530
+ readonly baseHead: string;
1531
+ readonly owner: {
1532
+ readonly id: string;
1533
+ readonly name: string;
1534
+ };
1535
+ readonly sessionId: string;
1536
+ readonly expectedWork: string;
1537
+ readonly worker: {
1538
+ readonly host: string;
1539
+ readonly agentId: string;
1540
+ readonly name: string;
1541
+ readonly paneId: string;
1542
+ readonly relationship?: {
1543
+ readonly parentAgentId: string;
1544
+ readonly relation: "delegated" | "pair" | "review";
1545
+ };
1546
+ };
1547
+ readonly worktree: string;
1548
+ readonly branch: string;
1549
+ } | {
1550
+ readonly kind: "work.reassign";
1551
+ readonly goalId: string;
1552
+ readonly from: {
1553
+ readonly id: string;
1554
+ readonly name: string;
1555
+ };
1556
+ readonly to: {
1557
+ readonly id: string;
1558
+ readonly name: string;
1559
+ };
1560
+ readonly toAgent: {
1561
+ readonly _tag: "clear";
1562
+ } | {
1563
+ readonly _tag: "keep";
1564
+ } | {
1565
+ readonly _tag: "set";
1566
+ readonly agent: {
1567
+ readonly host: string;
1568
+ readonly agentId: string;
1569
+ readonly name: string;
1570
+ readonly paneId: string;
1571
+ readonly relationship?: {
1572
+ readonly parentAgentId: string;
1573
+ readonly relation: "delegated" | "pair" | "review";
1574
+ };
1575
+ };
1576
+ };
1577
+ readonly reason: string;
1578
+ readonly expectedGoalEventId: string;
1579
+ readonly expectedGoalUpdatedAt: number;
448
1580
  } | {
449
1581
  readonly kind: "browser.mcp.recover";
450
1582
  };
451
1583
  readonly result: string | null;
1584
+ readonly acceptedReceipt?: string | null;
1585
+ readonly durableOperation?: true;
452
1586
  readonly error: string | null;
453
1587
  readonly worker?: {
454
1588
  readonly host: string;
@@ -490,16 +1624,142 @@ export declare class JobStore {
490
1624
  readonly kind: "agent.delegate";
491
1625
  readonly repository: string;
492
1626
  readonly prompt: string;
493
- readonly mode: "consult" | "review" | "work";
1627
+ readonly mode: "consult" | "review" | "transition_summary" | "work";
494
1628
  readonly channel?: "coordinator_chat";
495
1629
  } | {
496
1630
  readonly kind: "agent.message";
497
1631
  readonly session: string;
498
1632
  readonly message: string;
1633
+ } | {
1634
+ readonly kind: "work.reconcile";
1635
+ readonly repository: string;
1636
+ readonly pullRequest: number;
1637
+ readonly goalId: string;
1638
+ readonly laneId: string;
1639
+ readonly operationId: string;
1640
+ readonly expectedRevision: number;
1641
+ readonly expectedHead: string;
1642
+ readonly newHead: string;
1643
+ readonly expectedOwner: {
1644
+ readonly id: string;
1645
+ readonly name: string;
1646
+ };
1647
+ readonly expectedGoalEventId: string;
1648
+ readonly bindingDispatchRequestId: string;
1649
+ readonly sessionId: string;
1650
+ readonly expectedWork: string;
1651
+ readonly worker: {
1652
+ readonly host: string;
1653
+ readonly agentId: string;
1654
+ readonly name: string;
1655
+ readonly paneId: string;
1656
+ readonly relationship?: {
1657
+ readonly parentAgentId: string;
1658
+ readonly relation: "delegated" | "pair" | "review";
1659
+ };
1660
+ };
1661
+ readonly worktree: string;
1662
+ readonly branch: string;
1663
+ } | {
1664
+ readonly kind: "work.admit";
1665
+ readonly repository: string;
1666
+ readonly pullRequest: number;
1667
+ readonly reviewUrl: string;
1668
+ readonly goalId: string;
1669
+ readonly laneId: string;
1670
+ readonly operationId: string;
1671
+ readonly expectedAbsenceToken: string;
1672
+ readonly head: string;
1673
+ readonly baseHead: string;
1674
+ readonly owner: {
1675
+ readonly id: string;
1676
+ readonly name: string;
1677
+ };
1678
+ readonly sessionId: string;
1679
+ readonly expectedWork: string;
1680
+ readonly worker: {
1681
+ readonly host: string;
1682
+ readonly agentId: string;
1683
+ readonly name: string;
1684
+ readonly paneId: string;
1685
+ readonly relationship?: {
1686
+ readonly parentAgentId: string;
1687
+ readonly relation: "delegated" | "pair" | "review";
1688
+ };
1689
+ };
1690
+ readonly worktree: string;
1691
+ readonly branch: string;
1692
+ readonly title: string;
1693
+ readonly summary: string;
1694
+ readonly detail: string;
1695
+ } | {
1696
+ readonly kind: "work.recover";
1697
+ readonly repository: string;
1698
+ readonly pullRequest: number;
1699
+ readonly reviewUrl: string;
1700
+ readonly goalId: string;
1701
+ readonly laneId: string;
1702
+ readonly operationId: string;
1703
+ readonly expectedGoalEventId: string;
1704
+ readonly expectedGoalUpdatedAt: number;
1705
+ readonly expectedHistoryToken: string;
1706
+ readonly head: string;
1707
+ readonly baseHead: string;
1708
+ readonly owner: {
1709
+ readonly id: string;
1710
+ readonly name: string;
1711
+ };
1712
+ readonly sessionId: string;
1713
+ readonly expectedWork: string;
1714
+ readonly worker: {
1715
+ readonly host: string;
1716
+ readonly agentId: string;
1717
+ readonly name: string;
1718
+ readonly paneId: string;
1719
+ readonly relationship?: {
1720
+ readonly parentAgentId: string;
1721
+ readonly relation: "delegated" | "pair" | "review";
1722
+ };
1723
+ };
1724
+ readonly worktree: string;
1725
+ readonly branch: string;
1726
+ } | {
1727
+ readonly kind: "work.reassign";
1728
+ readonly goalId: string;
1729
+ readonly from: {
1730
+ readonly id: string;
1731
+ readonly name: string;
1732
+ };
1733
+ readonly to: {
1734
+ readonly id: string;
1735
+ readonly name: string;
1736
+ };
1737
+ readonly toAgent: {
1738
+ readonly _tag: "clear";
1739
+ } | {
1740
+ readonly _tag: "keep";
1741
+ } | {
1742
+ readonly _tag: "set";
1743
+ readonly agent: {
1744
+ readonly host: string;
1745
+ readonly agentId: string;
1746
+ readonly name: string;
1747
+ readonly paneId: string;
1748
+ readonly relationship?: {
1749
+ readonly parentAgentId: string;
1750
+ readonly relation: "delegated" | "pair" | "review";
1751
+ };
1752
+ };
1753
+ };
1754
+ readonly reason: string;
1755
+ readonly expectedGoalEventId: string;
1756
+ readonly expectedGoalUpdatedAt: number;
499
1757
  } | {
500
1758
  readonly kind: "browser.mcp.recover";
501
1759
  };
502
1760
  readonly result: string | null;
1761
+ readonly acceptedReceipt?: string | null;
1762
+ readonly durableOperation?: true;
503
1763
  readonly error: string | null;
504
1764
  readonly worker?: {
505
1765
  readonly host: string;
@@ -541,16 +1801,142 @@ export declare class JobStore {
541
1801
  readonly kind: "agent.delegate";
542
1802
  readonly repository: string;
543
1803
  readonly prompt: string;
544
- readonly mode: "consult" | "review" | "work";
1804
+ readonly mode: "consult" | "review" | "transition_summary" | "work";
545
1805
  readonly channel?: "coordinator_chat";
546
1806
  } | {
547
1807
  readonly kind: "agent.message";
548
1808
  readonly session: string;
549
1809
  readonly message: string;
1810
+ } | {
1811
+ readonly kind: "work.reconcile";
1812
+ readonly repository: string;
1813
+ readonly pullRequest: number;
1814
+ readonly goalId: string;
1815
+ readonly laneId: string;
1816
+ readonly operationId: string;
1817
+ readonly expectedRevision: number;
1818
+ readonly expectedHead: string;
1819
+ readonly newHead: string;
1820
+ readonly expectedOwner: {
1821
+ readonly id: string;
1822
+ readonly name: string;
1823
+ };
1824
+ readonly expectedGoalEventId: string;
1825
+ readonly bindingDispatchRequestId: string;
1826
+ readonly sessionId: string;
1827
+ readonly expectedWork: string;
1828
+ readonly worker: {
1829
+ readonly host: string;
1830
+ readonly agentId: string;
1831
+ readonly name: string;
1832
+ readonly paneId: string;
1833
+ readonly relationship?: {
1834
+ readonly parentAgentId: string;
1835
+ readonly relation: "delegated" | "pair" | "review";
1836
+ };
1837
+ };
1838
+ readonly worktree: string;
1839
+ readonly branch: string;
1840
+ } | {
1841
+ readonly kind: "work.admit";
1842
+ readonly repository: string;
1843
+ readonly pullRequest: number;
1844
+ readonly reviewUrl: string;
1845
+ readonly goalId: string;
1846
+ readonly laneId: string;
1847
+ readonly operationId: string;
1848
+ readonly expectedAbsenceToken: string;
1849
+ readonly head: string;
1850
+ readonly baseHead: string;
1851
+ readonly owner: {
1852
+ readonly id: string;
1853
+ readonly name: string;
1854
+ };
1855
+ readonly sessionId: string;
1856
+ readonly expectedWork: string;
1857
+ readonly worker: {
1858
+ readonly host: string;
1859
+ readonly agentId: string;
1860
+ readonly name: string;
1861
+ readonly paneId: string;
1862
+ readonly relationship?: {
1863
+ readonly parentAgentId: string;
1864
+ readonly relation: "delegated" | "pair" | "review";
1865
+ };
1866
+ };
1867
+ readonly worktree: string;
1868
+ readonly branch: string;
1869
+ readonly title: string;
1870
+ readonly summary: string;
1871
+ readonly detail: string;
1872
+ } | {
1873
+ readonly kind: "work.recover";
1874
+ readonly repository: string;
1875
+ readonly pullRequest: number;
1876
+ readonly reviewUrl: string;
1877
+ readonly goalId: string;
1878
+ readonly laneId: string;
1879
+ readonly operationId: string;
1880
+ readonly expectedGoalEventId: string;
1881
+ readonly expectedGoalUpdatedAt: number;
1882
+ readonly expectedHistoryToken: string;
1883
+ readonly head: string;
1884
+ readonly baseHead: string;
1885
+ readonly owner: {
1886
+ readonly id: string;
1887
+ readonly name: string;
1888
+ };
1889
+ readonly sessionId: string;
1890
+ readonly expectedWork: string;
1891
+ readonly worker: {
1892
+ readonly host: string;
1893
+ readonly agentId: string;
1894
+ readonly name: string;
1895
+ readonly paneId: string;
1896
+ readonly relationship?: {
1897
+ readonly parentAgentId: string;
1898
+ readonly relation: "delegated" | "pair" | "review";
1899
+ };
1900
+ };
1901
+ readonly worktree: string;
1902
+ readonly branch: string;
1903
+ } | {
1904
+ readonly kind: "work.reassign";
1905
+ readonly goalId: string;
1906
+ readonly from: {
1907
+ readonly id: string;
1908
+ readonly name: string;
1909
+ };
1910
+ readonly to: {
1911
+ readonly id: string;
1912
+ readonly name: string;
1913
+ };
1914
+ readonly toAgent: {
1915
+ readonly _tag: "clear";
1916
+ } | {
1917
+ readonly _tag: "keep";
1918
+ } | {
1919
+ readonly _tag: "set";
1920
+ readonly agent: {
1921
+ readonly host: string;
1922
+ readonly agentId: string;
1923
+ readonly name: string;
1924
+ readonly paneId: string;
1925
+ readonly relationship?: {
1926
+ readonly parentAgentId: string;
1927
+ readonly relation: "delegated" | "pair" | "review";
1928
+ };
1929
+ };
1930
+ };
1931
+ readonly reason: string;
1932
+ readonly expectedGoalEventId: string;
1933
+ readonly expectedGoalUpdatedAt: number;
550
1934
  } | {
551
1935
  readonly kind: "browser.mcp.recover";
552
1936
  };
553
1937
  readonly result: string | null;
1938
+ readonly acceptedReceipt?: string | null;
1939
+ readonly durableOperation?: true;
554
1940
  readonly error: string | null;
555
1941
  readonly worker?: {
556
1942
  readonly host: string;