@agent-vm/gateway-control-contracts 0.0.109 → 0.0.111

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/index.d.ts CHANGED
@@ -9,6 +9,7 @@ declare const GatewayControlRpcOperationSchema: z.ZodEnum<{
9
9
  lease_create: "lease_create";
10
10
  lease_get: "lease_get";
11
11
  lease_peek: "lease_peek";
12
+ lease_reacquire: "lease_reacquire";
12
13
  lease_renew: "lease_renew";
13
14
  lease_release: "lease_release";
14
15
  lease_use_start: "lease_use_start";
@@ -206,6 +207,84 @@ declare const GatewayControlLeaseUseEndPayloadSchema: z.ZodObject<{
206
207
  }>;
207
208
  useId: z.ZodString;
208
209
  }, z.core.$strict>;
210
+ declare const GatewayControlLeaseStaleEvidenceSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
211
+ errorCode: z.ZodOptional<z.ZodString>;
212
+ kind: z.ZodLiteral<"tool-vm-ssh">;
213
+ observedAtMs: z.ZodNumber;
214
+ operation: z.ZodEnum<{
215
+ command: "command";
216
+ "file-bridge": "file-bridge";
217
+ finalize: "finalize";
218
+ probe: "probe";
219
+ }>;
220
+ }, z.core.$strict>, z.ZodObject<{
221
+ kind: z.ZodLiteral<"caller-context">;
222
+ observedAtMs: z.ZodNumber;
223
+ reason: z.ZodOptional<z.ZodEnum<{
224
+ absent: "absent";
225
+ stale: "stale";
226
+ session_mismatch: "session_mismatch";
227
+ lease_authority_absent: "lease_authority_absent";
228
+ }>>;
229
+ }, z.core.$strict>, z.ZodObject<{
230
+ kind: z.ZodLiteral<"lease-manager">;
231
+ observedAtMs: z.ZodNumber;
232
+ reason: z.ZodOptional<z.ZodEnum<{
233
+ expired: "expired";
234
+ released: "released";
235
+ force_released: "force_released";
236
+ generation_stale: "generation_stale";
237
+ }>>;
238
+ }, z.core.$strict>], "kind">;
239
+ declare const GatewayControlLeaseReacquireIntentPayloadSchema: z.ZodObject<{
240
+ callerContext: z.ZodObject<{
241
+ callerContextId: z.ZodString;
242
+ }, z.core.$strict>;
243
+ correlation: z.ZodOptional<z.ZodObject<{
244
+ causationId: z.ZodOptional<z.ZodString>;
245
+ correlationId: z.ZodOptional<z.ZodString>;
246
+ requestId: z.ZodOptional<z.ZodString>;
247
+ runId: z.ZodOptional<z.ZodString>;
248
+ sessionKeyDigest: z.ZodOptional<z.ZodString>;
249
+ toolCallId: z.ZodOptional<z.ZodString>;
250
+ traceId: z.ZodOptional<z.ZodString>;
251
+ capability: z.ZodOptional<z.ZodObject<{
252
+ name: z.ZodString;
253
+ namespace: z.ZodString;
254
+ }, z.core.$strict>>;
255
+ }, z.core.$strict>>;
256
+ idleTtlHintMs: z.ZodOptional<z.ZodNumber>;
257
+ oldLeaseId: z.ZodString;
258
+ staleEvidence: z.ZodDiscriminatedUnion<[z.ZodObject<{
259
+ errorCode: z.ZodOptional<z.ZodString>;
260
+ kind: z.ZodLiteral<"tool-vm-ssh">;
261
+ observedAtMs: z.ZodNumber;
262
+ operation: z.ZodEnum<{
263
+ command: "command";
264
+ "file-bridge": "file-bridge";
265
+ finalize: "finalize";
266
+ probe: "probe";
267
+ }>;
268
+ }, z.core.$strict>, z.ZodObject<{
269
+ kind: z.ZodLiteral<"caller-context">;
270
+ observedAtMs: z.ZodNumber;
271
+ reason: z.ZodOptional<z.ZodEnum<{
272
+ absent: "absent";
273
+ stale: "stale";
274
+ session_mismatch: "session_mismatch";
275
+ lease_authority_absent: "lease_authority_absent";
276
+ }>>;
277
+ }, z.core.$strict>, z.ZodObject<{
278
+ kind: z.ZodLiteral<"lease-manager">;
279
+ observedAtMs: z.ZodNumber;
280
+ reason: z.ZodOptional<z.ZodEnum<{
281
+ expired: "expired";
282
+ released: "released";
283
+ force_released: "force_released";
284
+ generation_stale: "generation_stale";
285
+ }>>;
286
+ }, z.core.$strict>], "kind">;
287
+ }, z.core.$strict>;
209
288
  declare const GatewayControlHealthEventResultSchema: z.ZodEnum<{
210
289
  failed: "failed";
211
290
  ok: "ok";
@@ -218,6 +297,38 @@ declare const GatewayControlProviderRuntimeHealthSchema: z.ZodEnum<{
218
297
  unhealthy_recoverable: "unhealthy_recoverable";
219
298
  unhealthy_unrecoverable: "unhealthy_unrecoverable";
220
299
  }>;
300
+ declare const GatewayControlLeaseRejectionReasonSchema: z.ZodEnum<{
301
+ lease_authority_absent: "lease_authority_absent";
302
+ caller_context_absent: "caller_context_absent";
303
+ caller_context_session_mismatch: "caller_context_session_mismatch";
304
+ caller_context_stale: "caller_context_stale";
305
+ lease_absent: "lease_absent";
306
+ lease_force_released: "lease_force_released";
307
+ lease_generation_stale: "lease_generation_stale";
308
+ lease_reacquire_required: "lease_reacquire_required";
309
+ lease_releasing: "lease_releasing";
310
+ lease_retired: "lease_retired";
311
+ lease_use_tombstoned: "lease_use_tombstoned";
312
+ ownership_denied: "ownership_denied";
313
+ runtime_not_ready: "runtime_not_ready";
314
+ }>;
315
+ declare const GatewayControlToolVmLeaseLifecycleEventRoleSchema: z.ZodLiteral<"plugin_observation">;
316
+ declare const GatewayControlToolVmLeaseLifecycleTransitionSchema: z.ZodEnum<{
317
+ current_to_stale: "current_to_stale";
318
+ current_to_retired: "current_to_retired";
319
+ deprecated_to_reacquired: "deprecated_to_reacquired";
320
+ deprecated_to_retired: "deprecated_to_retired";
321
+ stale_to_reacquired: "stale_to_reacquired";
322
+ stale_to_retired: "stale_to_retired";
323
+ retired_rejected: "retired_rejected";
324
+ }>;
325
+ declare const GatewayControlToolVmLeaseCallerContextStateSchema: z.ZodEnum<{
326
+ ok: "ok";
327
+ absent: "absent";
328
+ stale: "stale";
329
+ session_mismatch: "session_mismatch";
330
+ not_applicable: "not_applicable";
331
+ }>;
221
332
  declare const GatewayControlControllerRequestHealthOperationSchema: z.ZodEnum<{
222
333
  "zone-git-push": "zone-git-push";
223
334
  "lease-create": "lease-create";
@@ -239,7 +350,7 @@ declare const GatewayControlToolVmSshHealthOperationSchema: z.ZodEnum<{
239
350
  finalize: "finalize";
240
351
  probe: "probe";
241
352
  }>;
242
- declare const GatewayControlHealthEventPayloadSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
353
+ declare const GatewayControlHealthEventPayloadSchema: z.ZodUnion<readonly [z.ZodObject<{
243
354
  correlation: z.ZodOptional<z.ZodObject<{
244
355
  causationId: z.ZodOptional<z.ZodString>;
245
356
  correlationId: z.ZodOptional<z.ZodString>;
@@ -363,15 +474,79 @@ declare const GatewayControlHealthEventPayloadSchema: z.ZodDiscriminatedUnion<[z
363
474
  agentId: z.ZodString;
364
475
  elapsedMs: z.ZodNumber;
365
476
  errorCode: z.ZodOptional<z.ZodString>;
477
+ eventKind: z.ZodLiteral<"tool-vm-ssh">;
366
478
  leaseId: z.ZodString;
479
+ operation: z.ZodEnum<{
480
+ command: "command";
481
+ "file-bridge": "file-bridge";
482
+ finalize: "finalize";
483
+ probe: "probe";
484
+ }>;
485
+ }, z.core.$strict>, z.ZodObject<{
486
+ correlation: z.ZodOptional<z.ZodObject<{
487
+ causationId: z.ZodOptional<z.ZodString>;
488
+ correlationId: z.ZodOptional<z.ZodString>;
489
+ requestId: z.ZodOptional<z.ZodString>;
490
+ runId: z.ZodOptional<z.ZodString>;
491
+ sessionKeyDigest: z.ZodOptional<z.ZodString>;
492
+ toolCallId: z.ZodOptional<z.ZodString>;
493
+ traceId: z.ZodOptional<z.ZodString>;
494
+ }, z.core.$strict>>;
495
+ observedAtMs: z.ZodNumber;
496
+ result: z.ZodEnum<{
497
+ failed: "failed";
498
+ ok: "ok";
499
+ timeout: "timeout";
500
+ degraded: "degraded";
501
+ }>;
502
+ agentId: z.ZodString;
503
+ elapsedMs: z.ZodNumber;
504
+ errorCode: z.ZodOptional<z.ZodString>;
367
505
  eventKind: z.ZodLiteral<"tool-vm-ssh">;
506
+ leaseId: z.ZodString;
368
507
  operation: z.ZodEnum<{
369
508
  command: "command";
370
509
  "file-bridge": "file-bridge";
371
510
  finalize: "finalize";
372
511
  probe: "probe";
373
512
  }>;
374
- }, z.core.$strict>], "eventKind">;
513
+ activeUseId: z.ZodOptional<z.ZodString>;
514
+ callerContextState: z.ZodOptional<z.ZodEnum<{
515
+ ok: "ok";
516
+ absent: "absent";
517
+ stale: "stale";
518
+ session_mismatch: "session_mismatch";
519
+ not_applicable: "not_applicable";
520
+ }>>;
521
+ leaseRejectionReason: z.ZodOptional<z.ZodEnum<{
522
+ lease_authority_absent: "lease_authority_absent";
523
+ caller_context_absent: "caller_context_absent";
524
+ caller_context_session_mismatch: "caller_context_session_mismatch";
525
+ caller_context_stale: "caller_context_stale";
526
+ lease_absent: "lease_absent";
527
+ lease_force_released: "lease_force_released";
528
+ lease_generation_stale: "lease_generation_stale";
529
+ lease_reacquire_required: "lease_reacquire_required";
530
+ lease_releasing: "lease_releasing";
531
+ lease_retired: "lease_retired";
532
+ lease_use_tombstoned: "lease_use_tombstoned";
533
+ ownership_denied: "ownership_denied";
534
+ runtime_not_ready: "runtime_not_ready";
535
+ }>>;
536
+ lifecycleEventRole: z.ZodLiteral<"plugin_observation">;
537
+ lifecycleTransition: z.ZodEnum<{
538
+ current_to_stale: "current_to_stale";
539
+ current_to_retired: "current_to_retired";
540
+ deprecated_to_reacquired: "deprecated_to_reacquired";
541
+ deprecated_to_retired: "deprecated_to_retired";
542
+ stale_to_reacquired: "stale_to_reacquired";
543
+ stale_to_retired: "stale_to_retired";
544
+ retired_rejected: "retired_rejected";
545
+ }>;
546
+ oldLeaseId: z.ZodString;
547
+ replacementLeaseId: z.ZodOptional<z.ZodString>;
548
+ transitionId: z.ZodString;
549
+ }, z.core.$strict>]>;
375
550
  declare const GatewayControlRuntimeFindingSchema: z.ZodObject<{
376
551
  id: z.ZodString;
377
552
  ok: z.ZodBoolean;
@@ -402,7 +577,7 @@ declare const GatewayControlRuntimeStatusPayloadSchema: z.ZodObject<{
402
577
  }>>;
403
578
  statusKind: z.ZodString;
404
579
  }, z.core.$strict>;
405
- declare const GatewayControlToolPortalControllerHostActionPayloadSchema: z.ZodObject<{
580
+ declare const GatewayControlZoneGitPushControllerHostActionPayloadSchema: z.ZodObject<{
406
581
  actionId: z.ZodLiteral<"zone_git_push">;
407
582
  callerContext: z.ZodObject<{
408
583
  callerContextId: z.ZodString;
@@ -422,6 +597,63 @@ declare const GatewayControlToolPortalControllerHostActionPayloadSchema: z.ZodOb
422
597
  }, z.core.$strict>;
423
598
  expectedHead: z.ZodString;
424
599
  }, z.core.$strict>;
600
+ declare const GatewayControlControllerHostProbePayloadSchema: z.ZodObject<{
601
+ actionId: z.ZodLiteral<"controller_host_probe">;
602
+ callerContext: z.ZodObject<{
603
+ callerContextId: z.ZodString;
604
+ }, z.core.$strict>;
605
+ correlation: z.ZodObject<{
606
+ causationId: z.ZodOptional<z.ZodString>;
607
+ correlationId: z.ZodOptional<z.ZodString>;
608
+ requestId: z.ZodOptional<z.ZodString>;
609
+ runId: z.ZodOptional<z.ZodString>;
610
+ sessionKeyDigest: z.ZodOptional<z.ZodString>;
611
+ toolCallId: z.ZodOptional<z.ZodString>;
612
+ traceId: z.ZodOptional<z.ZodString>;
613
+ capability: z.ZodOptional<z.ZodObject<{
614
+ name: z.ZodString;
615
+ namespace: z.ZodString;
616
+ }, z.core.$strict>>;
617
+ }, z.core.$strict>;
618
+ }, z.core.$strict>;
619
+ declare const GatewayControlToolPortalControllerHostActionPayloadSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
620
+ actionId: z.ZodLiteral<"zone_git_push">;
621
+ callerContext: z.ZodObject<{
622
+ callerContextId: z.ZodString;
623
+ }, z.core.$strict>;
624
+ correlation: z.ZodObject<{
625
+ causationId: z.ZodOptional<z.ZodString>;
626
+ correlationId: z.ZodOptional<z.ZodString>;
627
+ requestId: z.ZodOptional<z.ZodString>;
628
+ runId: z.ZodOptional<z.ZodString>;
629
+ sessionKeyDigest: z.ZodOptional<z.ZodString>;
630
+ toolCallId: z.ZodOptional<z.ZodString>;
631
+ traceId: z.ZodOptional<z.ZodString>;
632
+ capability: z.ZodOptional<z.ZodObject<{
633
+ name: z.ZodString;
634
+ namespace: z.ZodString;
635
+ }, z.core.$strict>>;
636
+ }, z.core.$strict>;
637
+ expectedHead: z.ZodString;
638
+ }, z.core.$strict>, z.ZodObject<{
639
+ actionId: z.ZodLiteral<"controller_host_probe">;
640
+ callerContext: z.ZodObject<{
641
+ callerContextId: z.ZodString;
642
+ }, z.core.$strict>;
643
+ correlation: z.ZodObject<{
644
+ causationId: z.ZodOptional<z.ZodString>;
645
+ correlationId: z.ZodOptional<z.ZodString>;
646
+ requestId: z.ZodOptional<z.ZodString>;
647
+ runId: z.ZodOptional<z.ZodString>;
648
+ sessionKeyDigest: z.ZodOptional<z.ZodString>;
649
+ toolCallId: z.ZodOptional<z.ZodString>;
650
+ traceId: z.ZodOptional<z.ZodString>;
651
+ capability: z.ZodOptional<z.ZodObject<{
652
+ name: z.ZodString;
653
+ namespace: z.ZodString;
654
+ }, z.core.$strict>>;
655
+ }, z.core.$strict>;
656
+ }, z.core.$strict>], "actionId">;
425
657
  declare const GatewayControlZoneGitCommitSummarySchema: z.ZodObject<{
426
658
  sha: z.ZodString;
427
659
  subject: z.ZodString;
@@ -435,7 +667,11 @@ declare const GatewayControlZoneGitPushResultSchema: z.ZodObject<{
435
667
  }, z.core.$strict>>;
436
668
  remoteHead: z.ZodString;
437
669
  }, z.core.$strict>;
438
- declare const GatewayControlToolPortalControllerHostActionResultSchema: z.ZodObject<{
670
+ declare const GatewayControlControllerHostProbeResultSchema: z.ZodObject<{
671
+ entryNames: z.ZodArray<z.ZodString>;
672
+ probeKind: z.ZodLiteral<"controller_cache_dir_listing">;
673
+ }, z.core.$strict>;
674
+ declare const GatewayControlZoneGitPushControllerHostActionResultSchema: z.ZodObject<{
439
675
  actionId: z.ZodLiteral<"zone_git_push">;
440
676
  result: z.ZodObject<{
441
677
  branch: z.ZodString;
@@ -447,6 +683,31 @@ declare const GatewayControlToolPortalControllerHostActionResultSchema: z.ZodObj
447
683
  remoteHead: z.ZodString;
448
684
  }, z.core.$strict>;
449
685
  }, z.core.$strict>;
686
+ declare const GatewayControlControllerHostProbeActionResultSchema: z.ZodObject<{
687
+ actionId: z.ZodLiteral<"controller_host_probe">;
688
+ result: z.ZodObject<{
689
+ entryNames: z.ZodArray<z.ZodString>;
690
+ probeKind: z.ZodLiteral<"controller_cache_dir_listing">;
691
+ }, z.core.$strict>;
692
+ }, z.core.$strict>;
693
+ declare const GatewayControlToolPortalControllerHostActionResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
694
+ actionId: z.ZodLiteral<"zone_git_push">;
695
+ result: z.ZodObject<{
696
+ branch: z.ZodString;
697
+ localHead: z.ZodString;
698
+ pushedCommits: z.ZodArray<z.ZodObject<{
699
+ sha: z.ZodString;
700
+ subject: z.ZodString;
701
+ }, z.core.$strict>>;
702
+ remoteHead: z.ZodString;
703
+ }, z.core.$strict>;
704
+ }, z.core.$strict>, z.ZodObject<{
705
+ actionId: z.ZodLiteral<"controller_host_probe">;
706
+ result: z.ZodObject<{
707
+ entryNames: z.ZodArray<z.ZodString>;
708
+ probeKind: z.ZodLiteral<"controller_cache_dir_listing">;
709
+ }, z.core.$strict>;
710
+ }, z.core.$strict>], "actionId">;
450
711
  declare const GatewayControlActiveOperationIdSchema: z.ZodString;
451
712
  declare const GatewayInitiatedOperationCancelPayloadSchema: z.ZodObject<{
452
713
  activeOperationId: z.ZodString;
@@ -533,10 +794,10 @@ declare const GatewayControlLeaseSnapshotSchema: z.ZodObject<{
533
794
  user: z.ZodString;
534
795
  }, z.core.$strict>>;
535
796
  state: z.ZodEnum<{
536
- idle: "idle";
537
- active: "active";
538
797
  expired: "expired";
539
798
  released: "released";
799
+ idle: "idle";
800
+ active: "active";
540
801
  }>;
541
802
  tcpSlot: z.ZodNumber;
542
803
  transport: z.ZodLiteral<"ssh-sandbox">;
@@ -548,20 +809,12 @@ declare const GatewayControlLeaseUseSnapshotSchema: z.ZodObject<{
548
809
  heartbeatAfterMs: z.ZodOptional<z.ZodNumber>;
549
810
  leaseId: z.ZodString;
550
811
  state: z.ZodEnum<{
551
- active: "active";
552
812
  expired: "expired";
813
+ active: "active";
553
814
  ended: "ended";
554
815
  }>;
555
816
  useId: z.ZodString;
556
817
  }, z.core.$strict>;
557
- declare const GatewayControlLeaseRejectionReasonSchema: z.ZodEnum<{
558
- absent: "absent";
559
- generation_stale: "generation_stale";
560
- force_released: "force_released";
561
- releasing: "releasing";
562
- use_tombstoned: "use_tombstoned";
563
- runtime_not_ready: "runtime_not_ready";
564
- }>;
565
818
  declare const GatewayControlRpcDomainCorrelationSchema: z.ZodObject<{
566
819
  causationId: z.ZodOptional<z.ZodString>;
567
820
  correlationId: z.ZodOptional<z.ZodString>;
@@ -680,10 +933,10 @@ declare const GatewayControlRpcLeaseResponsePayloadSchema: z.ZodDiscriminatedUni
680
933
  user: z.ZodString;
681
934
  }, z.core.$strict>>;
682
935
  state: z.ZodEnum<{
683
- idle: "idle";
684
- active: "active";
685
936
  expired: "expired";
686
937
  released: "released";
938
+ idle: "idle";
939
+ active: "active";
687
940
  }>;
688
941
  tcpSlot: z.ZodNumber;
689
942
  transport: z.ZodLiteral<"ssh-sandbox">;
@@ -706,11 +959,18 @@ declare const GatewayControlRpcLeaseResponsePayloadSchema: z.ZodDiscriminatedUni
706
959
  safeMessage: z.ZodOptional<z.ZodString>;
707
960
  }, z.core.$strict>>;
708
961
  leaseRejectionReason: z.ZodEnum<{
709
- absent: "absent";
710
- generation_stale: "generation_stale";
711
- force_released: "force_released";
712
- releasing: "releasing";
713
- use_tombstoned: "use_tombstoned";
962
+ lease_authority_absent: "lease_authority_absent";
963
+ caller_context_absent: "caller_context_absent";
964
+ caller_context_session_mismatch: "caller_context_session_mismatch";
965
+ caller_context_stale: "caller_context_stale";
966
+ lease_absent: "lease_absent";
967
+ lease_force_released: "lease_force_released";
968
+ lease_generation_stale: "lease_generation_stale";
969
+ lease_reacquire_required: "lease_reacquire_required";
970
+ lease_releasing: "lease_releasing";
971
+ lease_retired: "lease_retired";
972
+ lease_use_tombstoned: "lease_use_tombstoned";
973
+ ownership_denied: "ownership_denied";
714
974
  runtime_not_ready: "runtime_not_ready";
715
975
  }>;
716
976
  result: z.ZodLiteral<"rejected">;
@@ -728,11 +988,18 @@ declare const GatewayControlRpcLeaseResponsePayloadSchema: z.ZodDiscriminatedUni
728
988
  safeMessage: z.ZodOptional<z.ZodString>;
729
989
  }, z.core.$strict>;
730
990
  leaseRejectionReason: z.ZodOptional<z.ZodEnum<{
731
- absent: "absent";
732
- generation_stale: "generation_stale";
733
- force_released: "force_released";
734
- releasing: "releasing";
735
- use_tombstoned: "use_tombstoned";
991
+ lease_authority_absent: "lease_authority_absent";
992
+ caller_context_absent: "caller_context_absent";
993
+ caller_context_session_mismatch: "caller_context_session_mismatch";
994
+ caller_context_stale: "caller_context_stale";
995
+ lease_absent: "lease_absent";
996
+ lease_force_released: "lease_force_released";
997
+ lease_generation_stale: "lease_generation_stale";
998
+ lease_reacquire_required: "lease_reacquire_required";
999
+ lease_releasing: "lease_releasing";
1000
+ lease_retired: "lease_retired";
1001
+ lease_use_tombstoned: "lease_use_tombstoned";
1002
+ ownership_denied: "ownership_denied";
736
1003
  runtime_not_ready: "runtime_not_ready";
737
1004
  }>>;
738
1005
  result: z.ZodEnum<{
@@ -757,8 +1024,8 @@ declare const GatewayControlRpcLeaseUseResponsePayloadSchema: z.ZodDiscriminated
757
1024
  heartbeatAfterMs: z.ZodOptional<z.ZodNumber>;
758
1025
  leaseId: z.ZodString;
759
1026
  state: z.ZodEnum<{
760
- active: "active";
761
1027
  expired: "expired";
1028
+ active: "active";
762
1029
  ended: "ended";
763
1030
  }>;
764
1031
  useId: z.ZodString;
@@ -779,11 +1046,18 @@ declare const GatewayControlRpcLeaseUseResponsePayloadSchema: z.ZodDiscriminated
779
1046
  safeMessage: z.ZodOptional<z.ZodString>;
780
1047
  }, z.core.$strict>>;
781
1048
  leaseRejectionReason: z.ZodEnum<{
782
- absent: "absent";
783
- generation_stale: "generation_stale";
784
- force_released: "force_released";
785
- releasing: "releasing";
786
- use_tombstoned: "use_tombstoned";
1049
+ lease_authority_absent: "lease_authority_absent";
1050
+ caller_context_absent: "caller_context_absent";
1051
+ caller_context_session_mismatch: "caller_context_session_mismatch";
1052
+ caller_context_stale: "caller_context_stale";
1053
+ lease_absent: "lease_absent";
1054
+ lease_force_released: "lease_force_released";
1055
+ lease_generation_stale: "lease_generation_stale";
1056
+ lease_reacquire_required: "lease_reacquire_required";
1057
+ lease_releasing: "lease_releasing";
1058
+ lease_retired: "lease_retired";
1059
+ lease_use_tombstoned: "lease_use_tombstoned";
1060
+ ownership_denied: "ownership_denied";
787
1061
  runtime_not_ready: "runtime_not_ready";
788
1062
  }>;
789
1063
  result: z.ZodLiteral<"rejected">;
@@ -801,11 +1075,18 @@ declare const GatewayControlRpcLeaseUseResponsePayloadSchema: z.ZodDiscriminated
801
1075
  safeMessage: z.ZodOptional<z.ZodString>;
802
1076
  }, z.core.$strict>;
803
1077
  leaseRejectionReason: z.ZodOptional<z.ZodEnum<{
804
- absent: "absent";
805
- generation_stale: "generation_stale";
806
- force_released: "force_released";
807
- releasing: "releasing";
808
- use_tombstoned: "use_tombstoned";
1078
+ lease_authority_absent: "lease_authority_absent";
1079
+ caller_context_absent: "caller_context_absent";
1080
+ caller_context_session_mismatch: "caller_context_session_mismatch";
1081
+ caller_context_stale: "caller_context_stale";
1082
+ lease_absent: "lease_absent";
1083
+ lease_force_released: "lease_force_released";
1084
+ lease_generation_stale: "lease_generation_stale";
1085
+ lease_reacquire_required: "lease_reacquire_required";
1086
+ lease_releasing: "lease_releasing";
1087
+ lease_retired: "lease_retired";
1088
+ lease_use_tombstoned: "lease_use_tombstoned";
1089
+ ownership_denied: "ownership_denied";
809
1090
  runtime_not_ready: "runtime_not_ready";
810
1091
  }>>;
811
1092
  result: z.ZodEnum<{
@@ -825,7 +1106,7 @@ declare const GatewayControlRpcLeaseUseResponsePayloadSchema: z.ZodDiscriminated
825
1106
  }, z.core.$strict>], "result">;
826
1107
  declare const GatewayControlRpcControllerHostActionResponsePayloadSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
827
1108
  responseToMessageId: z.ZodString;
828
- controllerHostAction: z.ZodObject<{
1109
+ controllerHostAction: z.ZodDiscriminatedUnion<[z.ZodObject<{
829
1110
  actionId: z.ZodLiteral<"zone_git_push">;
830
1111
  result: z.ZodObject<{
831
1112
  branch: z.ZodString;
@@ -836,7 +1117,13 @@ declare const GatewayControlRpcControllerHostActionResponsePayloadSchema: z.ZodD
836
1117
  }, z.core.$strict>>;
837
1118
  remoteHead: z.ZodString;
838
1119
  }, z.core.$strict>;
839
- }, z.core.$strict>;
1120
+ }, z.core.$strict>, z.ZodObject<{
1121
+ actionId: z.ZodLiteral<"controller_host_probe">;
1122
+ result: z.ZodObject<{
1123
+ entryNames: z.ZodArray<z.ZodString>;
1124
+ probeKind: z.ZodLiteral<"controller_cache_dir_listing">;
1125
+ }, z.core.$strict>;
1126
+ }, z.core.$strict>], "actionId">;
840
1127
  result: z.ZodLiteral<"ok">;
841
1128
  activeOperationId: z.ZodOptional<z.ZodNever>;
842
1129
  approvalRequired: z.ZodOptional<z.ZodNever>;
@@ -990,10 +1277,10 @@ declare const GatewayControlRpcResponsePayloadSchema: z.ZodUnion<readonly [z.Zod
990
1277
  user: z.ZodString;
991
1278
  }, z.core.$strict>>;
992
1279
  state: z.ZodEnum<{
993
- idle: "idle";
994
- active: "active";
995
1280
  expired: "expired";
996
1281
  released: "released";
1282
+ idle: "idle";
1283
+ active: "active";
997
1284
  }>;
998
1285
  tcpSlot: z.ZodNumber;
999
1286
  transport: z.ZodLiteral<"ssh-sandbox">;
@@ -1016,11 +1303,18 @@ declare const GatewayControlRpcResponsePayloadSchema: z.ZodUnion<readonly [z.Zod
1016
1303
  safeMessage: z.ZodOptional<z.ZodString>;
1017
1304
  }, z.core.$strict>>;
1018
1305
  leaseRejectionReason: z.ZodEnum<{
1019
- absent: "absent";
1020
- generation_stale: "generation_stale";
1021
- force_released: "force_released";
1022
- releasing: "releasing";
1023
- use_tombstoned: "use_tombstoned";
1306
+ lease_authority_absent: "lease_authority_absent";
1307
+ caller_context_absent: "caller_context_absent";
1308
+ caller_context_session_mismatch: "caller_context_session_mismatch";
1309
+ caller_context_stale: "caller_context_stale";
1310
+ lease_absent: "lease_absent";
1311
+ lease_force_released: "lease_force_released";
1312
+ lease_generation_stale: "lease_generation_stale";
1313
+ lease_reacquire_required: "lease_reacquire_required";
1314
+ lease_releasing: "lease_releasing";
1315
+ lease_retired: "lease_retired";
1316
+ lease_use_tombstoned: "lease_use_tombstoned";
1317
+ ownership_denied: "ownership_denied";
1024
1318
  runtime_not_ready: "runtime_not_ready";
1025
1319
  }>;
1026
1320
  result: z.ZodLiteral<"rejected">;
@@ -1038,11 +1332,18 @@ declare const GatewayControlRpcResponsePayloadSchema: z.ZodUnion<readonly [z.Zod
1038
1332
  safeMessage: z.ZodOptional<z.ZodString>;
1039
1333
  }, z.core.$strict>;
1040
1334
  leaseRejectionReason: z.ZodOptional<z.ZodEnum<{
1041
- absent: "absent";
1042
- generation_stale: "generation_stale";
1043
- force_released: "force_released";
1044
- releasing: "releasing";
1045
- use_tombstoned: "use_tombstoned";
1335
+ lease_authority_absent: "lease_authority_absent";
1336
+ caller_context_absent: "caller_context_absent";
1337
+ caller_context_session_mismatch: "caller_context_session_mismatch";
1338
+ caller_context_stale: "caller_context_stale";
1339
+ lease_absent: "lease_absent";
1340
+ lease_force_released: "lease_force_released";
1341
+ lease_generation_stale: "lease_generation_stale";
1342
+ lease_reacquire_required: "lease_reacquire_required";
1343
+ lease_releasing: "lease_releasing";
1344
+ lease_retired: "lease_retired";
1345
+ lease_use_tombstoned: "lease_use_tombstoned";
1346
+ ownership_denied: "ownership_denied";
1046
1347
  runtime_not_ready: "runtime_not_ready";
1047
1348
  }>>;
1048
1349
  result: z.ZodEnum<{
@@ -1066,8 +1367,8 @@ declare const GatewayControlRpcResponsePayloadSchema: z.ZodUnion<readonly [z.Zod
1066
1367
  heartbeatAfterMs: z.ZodOptional<z.ZodNumber>;
1067
1368
  leaseId: z.ZodString;
1068
1369
  state: z.ZodEnum<{
1069
- active: "active";
1070
1370
  expired: "expired";
1371
+ active: "active";
1071
1372
  ended: "ended";
1072
1373
  }>;
1073
1374
  useId: z.ZodString;
@@ -1088,11 +1389,18 @@ declare const GatewayControlRpcResponsePayloadSchema: z.ZodUnion<readonly [z.Zod
1088
1389
  safeMessage: z.ZodOptional<z.ZodString>;
1089
1390
  }, z.core.$strict>>;
1090
1391
  leaseRejectionReason: z.ZodEnum<{
1091
- absent: "absent";
1092
- generation_stale: "generation_stale";
1093
- force_released: "force_released";
1094
- releasing: "releasing";
1095
- use_tombstoned: "use_tombstoned";
1392
+ lease_authority_absent: "lease_authority_absent";
1393
+ caller_context_absent: "caller_context_absent";
1394
+ caller_context_session_mismatch: "caller_context_session_mismatch";
1395
+ caller_context_stale: "caller_context_stale";
1396
+ lease_absent: "lease_absent";
1397
+ lease_force_released: "lease_force_released";
1398
+ lease_generation_stale: "lease_generation_stale";
1399
+ lease_reacquire_required: "lease_reacquire_required";
1400
+ lease_releasing: "lease_releasing";
1401
+ lease_retired: "lease_retired";
1402
+ lease_use_tombstoned: "lease_use_tombstoned";
1403
+ ownership_denied: "ownership_denied";
1096
1404
  runtime_not_ready: "runtime_not_ready";
1097
1405
  }>;
1098
1406
  result: z.ZodLiteral<"rejected">;
@@ -1110,11 +1418,18 @@ declare const GatewayControlRpcResponsePayloadSchema: z.ZodUnion<readonly [z.Zod
1110
1418
  safeMessage: z.ZodOptional<z.ZodString>;
1111
1419
  }, z.core.$strict>;
1112
1420
  leaseRejectionReason: z.ZodOptional<z.ZodEnum<{
1113
- absent: "absent";
1114
- generation_stale: "generation_stale";
1115
- force_released: "force_released";
1116
- releasing: "releasing";
1117
- use_tombstoned: "use_tombstoned";
1421
+ lease_authority_absent: "lease_authority_absent";
1422
+ caller_context_absent: "caller_context_absent";
1423
+ caller_context_session_mismatch: "caller_context_session_mismatch";
1424
+ caller_context_stale: "caller_context_stale";
1425
+ lease_absent: "lease_absent";
1426
+ lease_force_released: "lease_force_released";
1427
+ lease_generation_stale: "lease_generation_stale";
1428
+ lease_reacquire_required: "lease_reacquire_required";
1429
+ lease_releasing: "lease_releasing";
1430
+ lease_retired: "lease_retired";
1431
+ lease_use_tombstoned: "lease_use_tombstoned";
1432
+ ownership_denied: "ownership_denied";
1118
1433
  runtime_not_ready: "runtime_not_ready";
1119
1434
  }>>;
1120
1435
  result: z.ZodEnum<{
@@ -1133,7 +1448,7 @@ declare const GatewayControlRpcResponsePayloadSchema: z.ZodUnion<readonly [z.Zod
1133
1448
  leaseUse: z.ZodOptional<z.ZodNever>;
1134
1449
  }, z.core.$strict>], "result">, z.ZodDiscriminatedUnion<[z.ZodObject<{
1135
1450
  responseToMessageId: z.ZodString;
1136
- controllerHostAction: z.ZodObject<{
1451
+ controllerHostAction: z.ZodDiscriminatedUnion<[z.ZodObject<{
1137
1452
  actionId: z.ZodLiteral<"zone_git_push">;
1138
1453
  result: z.ZodObject<{
1139
1454
  branch: z.ZodString;
@@ -1144,7 +1459,13 @@ declare const GatewayControlRpcResponsePayloadSchema: z.ZodUnion<readonly [z.Zod
1144
1459
  }, z.core.$strict>>;
1145
1460
  remoteHead: z.ZodString;
1146
1461
  }, z.core.$strict>;
1147
- }, z.core.$strict>;
1462
+ }, z.core.$strict>, z.ZodObject<{
1463
+ actionId: z.ZodLiteral<"controller_host_probe">;
1464
+ result: z.ZodObject<{
1465
+ entryNames: z.ZodArray<z.ZodString>;
1466
+ probeKind: z.ZodLiteral<"controller_cache_dir_listing">;
1467
+ }, z.core.$strict>;
1468
+ }, z.core.$strict>], "actionId">;
1148
1469
  result: z.ZodLiteral<"ok">;
1149
1470
  activeOperationId: z.ZodOptional<z.ZodNever>;
1150
1471
  approvalRequired: z.ZodOptional<z.ZodNever>;
@@ -1316,6 +1637,7 @@ declare const GatewayControlRpcCommandResultMessageSchema: z.ZodDiscriminatedUni
1316
1637
  lease_create: "lease_create";
1317
1638
  lease_get: "lease_get";
1318
1639
  lease_peek: "lease_peek";
1640
+ lease_reacquire: "lease_reacquire";
1319
1641
  lease_renew: "lease_renew";
1320
1642
  lease_release: "lease_release";
1321
1643
  }>;
@@ -1335,10 +1657,10 @@ declare const GatewayControlRpcCommandResultMessageSchema: z.ZodDiscriminatedUni
1335
1657
  user: z.ZodString;
1336
1658
  }, z.core.$strict>>;
1337
1659
  state: z.ZodEnum<{
1338
- idle: "idle";
1339
- active: "active";
1340
1660
  expired: "expired";
1341
1661
  released: "released";
1662
+ idle: "idle";
1663
+ active: "active";
1342
1664
  }>;
1343
1665
  tcpSlot: z.ZodNumber;
1344
1666
  transport: z.ZodLiteral<"ssh-sandbox">;
@@ -1361,11 +1683,18 @@ declare const GatewayControlRpcCommandResultMessageSchema: z.ZodDiscriminatedUni
1361
1683
  safeMessage: z.ZodOptional<z.ZodString>;
1362
1684
  }, z.core.$strict>>;
1363
1685
  leaseRejectionReason: z.ZodEnum<{
1364
- absent: "absent";
1365
- generation_stale: "generation_stale";
1366
- force_released: "force_released";
1367
- releasing: "releasing";
1368
- use_tombstoned: "use_tombstoned";
1686
+ lease_authority_absent: "lease_authority_absent";
1687
+ caller_context_absent: "caller_context_absent";
1688
+ caller_context_session_mismatch: "caller_context_session_mismatch";
1689
+ caller_context_stale: "caller_context_stale";
1690
+ lease_absent: "lease_absent";
1691
+ lease_force_released: "lease_force_released";
1692
+ lease_generation_stale: "lease_generation_stale";
1693
+ lease_reacquire_required: "lease_reacquire_required";
1694
+ lease_releasing: "lease_releasing";
1695
+ lease_retired: "lease_retired";
1696
+ lease_use_tombstoned: "lease_use_tombstoned";
1697
+ ownership_denied: "ownership_denied";
1369
1698
  runtime_not_ready: "runtime_not_ready";
1370
1699
  }>;
1371
1700
  result: z.ZodLiteral<"rejected">;
@@ -1383,11 +1712,18 @@ declare const GatewayControlRpcCommandResultMessageSchema: z.ZodDiscriminatedUni
1383
1712
  safeMessage: z.ZodOptional<z.ZodString>;
1384
1713
  }, z.core.$strict>;
1385
1714
  leaseRejectionReason: z.ZodOptional<z.ZodEnum<{
1386
- absent: "absent";
1387
- generation_stale: "generation_stale";
1388
- force_released: "force_released";
1389
- releasing: "releasing";
1390
- use_tombstoned: "use_tombstoned";
1715
+ lease_authority_absent: "lease_authority_absent";
1716
+ caller_context_absent: "caller_context_absent";
1717
+ caller_context_session_mismatch: "caller_context_session_mismatch";
1718
+ caller_context_stale: "caller_context_stale";
1719
+ lease_absent: "lease_absent";
1720
+ lease_force_released: "lease_force_released";
1721
+ lease_generation_stale: "lease_generation_stale";
1722
+ lease_reacquire_required: "lease_reacquire_required";
1723
+ lease_releasing: "lease_releasing";
1724
+ lease_retired: "lease_retired";
1725
+ lease_use_tombstoned: "lease_use_tombstoned";
1726
+ ownership_denied: "ownership_denied";
1391
1727
  runtime_not_ready: "runtime_not_ready";
1392
1728
  }>>;
1393
1729
  result: z.ZodEnum<{
@@ -1426,8 +1762,8 @@ declare const GatewayControlRpcCommandResultMessageSchema: z.ZodDiscriminatedUni
1426
1762
  heartbeatAfterMs: z.ZodOptional<z.ZodNumber>;
1427
1763
  leaseId: z.ZodString;
1428
1764
  state: z.ZodEnum<{
1429
- active: "active";
1430
1765
  expired: "expired";
1766
+ active: "active";
1431
1767
  ended: "ended";
1432
1768
  }>;
1433
1769
  useId: z.ZodString;
@@ -1448,11 +1784,18 @@ declare const GatewayControlRpcCommandResultMessageSchema: z.ZodDiscriminatedUni
1448
1784
  safeMessage: z.ZodOptional<z.ZodString>;
1449
1785
  }, z.core.$strict>>;
1450
1786
  leaseRejectionReason: z.ZodEnum<{
1451
- absent: "absent";
1452
- generation_stale: "generation_stale";
1453
- force_released: "force_released";
1454
- releasing: "releasing";
1455
- use_tombstoned: "use_tombstoned";
1787
+ lease_authority_absent: "lease_authority_absent";
1788
+ caller_context_absent: "caller_context_absent";
1789
+ caller_context_session_mismatch: "caller_context_session_mismatch";
1790
+ caller_context_stale: "caller_context_stale";
1791
+ lease_absent: "lease_absent";
1792
+ lease_force_released: "lease_force_released";
1793
+ lease_generation_stale: "lease_generation_stale";
1794
+ lease_reacquire_required: "lease_reacquire_required";
1795
+ lease_releasing: "lease_releasing";
1796
+ lease_retired: "lease_retired";
1797
+ lease_use_tombstoned: "lease_use_tombstoned";
1798
+ ownership_denied: "ownership_denied";
1456
1799
  runtime_not_ready: "runtime_not_ready";
1457
1800
  }>;
1458
1801
  result: z.ZodLiteral<"rejected">;
@@ -1470,11 +1813,18 @@ declare const GatewayControlRpcCommandResultMessageSchema: z.ZodDiscriminatedUni
1470
1813
  safeMessage: z.ZodOptional<z.ZodString>;
1471
1814
  }, z.core.$strict>;
1472
1815
  leaseRejectionReason: z.ZodOptional<z.ZodEnum<{
1473
- absent: "absent";
1474
- generation_stale: "generation_stale";
1475
- force_released: "force_released";
1476
- releasing: "releasing";
1477
- use_tombstoned: "use_tombstoned";
1816
+ lease_authority_absent: "lease_authority_absent";
1817
+ caller_context_absent: "caller_context_absent";
1818
+ caller_context_session_mismatch: "caller_context_session_mismatch";
1819
+ caller_context_stale: "caller_context_stale";
1820
+ lease_absent: "lease_absent";
1821
+ lease_force_released: "lease_force_released";
1822
+ lease_generation_stale: "lease_generation_stale";
1823
+ lease_reacquire_required: "lease_reacquire_required";
1824
+ lease_releasing: "lease_releasing";
1825
+ lease_retired: "lease_retired";
1826
+ lease_use_tombstoned: "lease_use_tombstoned";
1827
+ ownership_denied: "ownership_denied";
1478
1828
  runtime_not_ready: "runtime_not_ready";
1479
1829
  }>>;
1480
1830
  result: z.ZodEnum<{
@@ -1504,7 +1854,7 @@ declare const GatewayControlRpcCommandResultMessageSchema: z.ZodDiscriminatedUni
1504
1854
  operation: z.ZodLiteral<"tool_portal_controller_host_action">;
1505
1855
  payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
1506
1856
  responseToMessageId: z.ZodString;
1507
- controllerHostAction: z.ZodObject<{
1857
+ controllerHostAction: z.ZodDiscriminatedUnion<[z.ZodObject<{
1508
1858
  actionId: z.ZodLiteral<"zone_git_push">;
1509
1859
  result: z.ZodObject<{
1510
1860
  branch: z.ZodString;
@@ -1515,7 +1865,13 @@ declare const GatewayControlRpcCommandResultMessageSchema: z.ZodDiscriminatedUni
1515
1865
  }, z.core.$strict>>;
1516
1866
  remoteHead: z.ZodString;
1517
1867
  }, z.core.$strict>;
1518
- }, z.core.$strict>;
1868
+ }, z.core.$strict>, z.ZodObject<{
1869
+ actionId: z.ZodLiteral<"controller_host_probe">;
1870
+ result: z.ZodObject<{
1871
+ entryNames: z.ZodArray<z.ZodString>;
1872
+ probeKind: z.ZodLiteral<"controller_cache_dir_listing">;
1873
+ }, z.core.$strict>;
1874
+ }, z.core.$strict>], "actionId">;
1519
1875
  result: z.ZodLiteral<"ok">;
1520
1876
  activeOperationId: z.ZodOptional<z.ZodNever>;
1521
1877
  approvalRequired: z.ZodOptional<z.ZodNever>;
@@ -1757,6 +2113,65 @@ declare const GatewayControlRpcCommandMessageSchema: z.ZodDiscriminatedUnion<[z.
1757
2113
  }, z.core.$strict>;
1758
2114
  leaseId: z.ZodString;
1759
2115
  }, z.core.$strict>;
2116
+ }, z.core.$strict>, z.ZodObject<{
2117
+ causationId: z.ZodOptional<z.ZodString>;
2118
+ correlationId: z.ZodOptional<z.ZodString>;
2119
+ requestId: z.ZodOptional<z.ZodString>;
2120
+ runId: z.ZodOptional<z.ZodString>;
2121
+ sessionKeyDigest: z.ZodOptional<z.ZodString>;
2122
+ toolCallId: z.ZodOptional<z.ZodString>;
2123
+ traceId: z.ZodOptional<z.ZodString>;
2124
+ kind: z.ZodLiteral<"command">;
2125
+ operation: z.ZodLiteral<"lease_reacquire">;
2126
+ payload: z.ZodObject<{
2127
+ callerContext: z.ZodObject<{
2128
+ callerContextId: z.ZodString;
2129
+ }, z.core.$strict>;
2130
+ correlation: z.ZodOptional<z.ZodObject<{
2131
+ causationId: z.ZodOptional<z.ZodString>;
2132
+ correlationId: z.ZodOptional<z.ZodString>;
2133
+ requestId: z.ZodOptional<z.ZodString>;
2134
+ runId: z.ZodOptional<z.ZodString>;
2135
+ sessionKeyDigest: z.ZodOptional<z.ZodString>;
2136
+ toolCallId: z.ZodOptional<z.ZodString>;
2137
+ traceId: z.ZodOptional<z.ZodString>;
2138
+ capability: z.ZodOptional<z.ZodObject<{
2139
+ name: z.ZodString;
2140
+ namespace: z.ZodString;
2141
+ }, z.core.$strict>>;
2142
+ }, z.core.$strict>>;
2143
+ idleTtlHintMs: z.ZodOptional<z.ZodNumber>;
2144
+ oldLeaseId: z.ZodString;
2145
+ staleEvidence: z.ZodDiscriminatedUnion<[z.ZodObject<{
2146
+ errorCode: z.ZodOptional<z.ZodString>;
2147
+ kind: z.ZodLiteral<"tool-vm-ssh">;
2148
+ observedAtMs: z.ZodNumber;
2149
+ operation: z.ZodEnum<{
2150
+ command: "command";
2151
+ "file-bridge": "file-bridge";
2152
+ finalize: "finalize";
2153
+ probe: "probe";
2154
+ }>;
2155
+ }, z.core.$strict>, z.ZodObject<{
2156
+ kind: z.ZodLiteral<"caller-context">;
2157
+ observedAtMs: z.ZodNumber;
2158
+ reason: z.ZodOptional<z.ZodEnum<{
2159
+ absent: "absent";
2160
+ stale: "stale";
2161
+ session_mismatch: "session_mismatch";
2162
+ lease_authority_absent: "lease_authority_absent";
2163
+ }>>;
2164
+ }, z.core.$strict>, z.ZodObject<{
2165
+ kind: z.ZodLiteral<"lease-manager">;
2166
+ observedAtMs: z.ZodNumber;
2167
+ reason: z.ZodOptional<z.ZodEnum<{
2168
+ expired: "expired";
2169
+ released: "released";
2170
+ force_released: "force_released";
2171
+ generation_stale: "generation_stale";
2172
+ }>>;
2173
+ }, z.core.$strict>], "kind">;
2174
+ }, z.core.$strict>;
1760
2175
  }, z.core.$strict>, z.ZodObject<{
1761
2176
  causationId: z.ZodOptional<z.ZodString>;
1762
2177
  correlationId: z.ZodOptional<z.ZodString>;
@@ -1870,7 +2285,7 @@ declare const GatewayControlRpcCommandMessageSchema: z.ZodDiscriminatedUnion<[z.
1870
2285
  traceId: z.ZodOptional<z.ZodString>;
1871
2286
  kind: z.ZodLiteral<"command">;
1872
2287
  operation: z.ZodLiteral<"tool_portal_controller_host_action">;
1873
- payload: z.ZodObject<{
2288
+ payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
1874
2289
  actionId: z.ZodLiteral<"zone_git_push">;
1875
2290
  callerContext: z.ZodObject<{
1876
2291
  callerContextId: z.ZodString;
@@ -1889,7 +2304,25 @@ declare const GatewayControlRpcCommandMessageSchema: z.ZodDiscriminatedUnion<[z.
1889
2304
  }, z.core.$strict>>;
1890
2305
  }, z.core.$strict>;
1891
2306
  expectedHead: z.ZodString;
1892
- }, z.core.$strict>;
2307
+ }, z.core.$strict>, z.ZodObject<{
2308
+ actionId: z.ZodLiteral<"controller_host_probe">;
2309
+ callerContext: z.ZodObject<{
2310
+ callerContextId: z.ZodString;
2311
+ }, z.core.$strict>;
2312
+ correlation: z.ZodObject<{
2313
+ causationId: z.ZodOptional<z.ZodString>;
2314
+ correlationId: z.ZodOptional<z.ZodString>;
2315
+ requestId: z.ZodOptional<z.ZodString>;
2316
+ runId: z.ZodOptional<z.ZodString>;
2317
+ sessionKeyDigest: z.ZodOptional<z.ZodString>;
2318
+ toolCallId: z.ZodOptional<z.ZodString>;
2319
+ traceId: z.ZodOptional<z.ZodString>;
2320
+ capability: z.ZodOptional<z.ZodObject<{
2321
+ name: z.ZodString;
2322
+ namespace: z.ZodString;
2323
+ }, z.core.$strict>>;
2324
+ }, z.core.$strict>;
2325
+ }, z.core.$strict>], "actionId">;
1893
2326
  }, z.core.$strict>, z.ZodObject<{
1894
2327
  causationId: z.ZodOptional<z.ZodString>;
1895
2328
  correlationId: z.ZodOptional<z.ZodString>;
@@ -1946,7 +2379,7 @@ declare const GatewayControlRpcEventMessageSchema: z.ZodDiscriminatedUnion<[z.Zo
1946
2379
  traceId: z.ZodOptional<z.ZodString>;
1947
2380
  kind: z.ZodLiteral<"event">;
1948
2381
  operation: z.ZodLiteral<"health_event">;
1949
- payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
2382
+ payload: z.ZodUnion<readonly [z.ZodObject<{
1950
2383
  correlation: z.ZodOptional<z.ZodObject<{
1951
2384
  causationId: z.ZodOptional<z.ZodString>;
1952
2385
  correlationId: z.ZodOptional<z.ZodString>;
@@ -2070,15 +2503,79 @@ declare const GatewayControlRpcEventMessageSchema: z.ZodDiscriminatedUnion<[z.Zo
2070
2503
  agentId: z.ZodString;
2071
2504
  elapsedMs: z.ZodNumber;
2072
2505
  errorCode: z.ZodOptional<z.ZodString>;
2506
+ eventKind: z.ZodLiteral<"tool-vm-ssh">;
2073
2507
  leaseId: z.ZodString;
2508
+ operation: z.ZodEnum<{
2509
+ command: "command";
2510
+ "file-bridge": "file-bridge";
2511
+ finalize: "finalize";
2512
+ probe: "probe";
2513
+ }>;
2514
+ }, z.core.$strict>, z.ZodObject<{
2515
+ correlation: z.ZodOptional<z.ZodObject<{
2516
+ causationId: z.ZodOptional<z.ZodString>;
2517
+ correlationId: z.ZodOptional<z.ZodString>;
2518
+ requestId: z.ZodOptional<z.ZodString>;
2519
+ runId: z.ZodOptional<z.ZodString>;
2520
+ sessionKeyDigest: z.ZodOptional<z.ZodString>;
2521
+ toolCallId: z.ZodOptional<z.ZodString>;
2522
+ traceId: z.ZodOptional<z.ZodString>;
2523
+ }, z.core.$strict>>;
2524
+ observedAtMs: z.ZodNumber;
2525
+ result: z.ZodEnum<{
2526
+ failed: "failed";
2527
+ ok: "ok";
2528
+ timeout: "timeout";
2529
+ degraded: "degraded";
2530
+ }>;
2531
+ agentId: z.ZodString;
2532
+ elapsedMs: z.ZodNumber;
2533
+ errorCode: z.ZodOptional<z.ZodString>;
2074
2534
  eventKind: z.ZodLiteral<"tool-vm-ssh">;
2535
+ leaseId: z.ZodString;
2075
2536
  operation: z.ZodEnum<{
2076
2537
  command: "command";
2077
2538
  "file-bridge": "file-bridge";
2078
2539
  finalize: "finalize";
2079
2540
  probe: "probe";
2080
2541
  }>;
2081
- }, z.core.$strict>], "eventKind">;
2542
+ activeUseId: z.ZodOptional<z.ZodString>;
2543
+ callerContextState: z.ZodOptional<z.ZodEnum<{
2544
+ ok: "ok";
2545
+ absent: "absent";
2546
+ stale: "stale";
2547
+ session_mismatch: "session_mismatch";
2548
+ not_applicable: "not_applicable";
2549
+ }>>;
2550
+ leaseRejectionReason: z.ZodOptional<z.ZodEnum<{
2551
+ lease_authority_absent: "lease_authority_absent";
2552
+ caller_context_absent: "caller_context_absent";
2553
+ caller_context_session_mismatch: "caller_context_session_mismatch";
2554
+ caller_context_stale: "caller_context_stale";
2555
+ lease_absent: "lease_absent";
2556
+ lease_force_released: "lease_force_released";
2557
+ lease_generation_stale: "lease_generation_stale";
2558
+ lease_reacquire_required: "lease_reacquire_required";
2559
+ lease_releasing: "lease_releasing";
2560
+ lease_retired: "lease_retired";
2561
+ lease_use_tombstoned: "lease_use_tombstoned";
2562
+ ownership_denied: "ownership_denied";
2563
+ runtime_not_ready: "runtime_not_ready";
2564
+ }>>;
2565
+ lifecycleEventRole: z.ZodLiteral<"plugin_observation">;
2566
+ lifecycleTransition: z.ZodEnum<{
2567
+ current_to_stale: "current_to_stale";
2568
+ current_to_retired: "current_to_retired";
2569
+ deprecated_to_reacquired: "deprecated_to_reacquired";
2570
+ deprecated_to_retired: "deprecated_to_retired";
2571
+ stale_to_reacquired: "stale_to_reacquired";
2572
+ stale_to_retired: "stale_to_retired";
2573
+ retired_rejected: "retired_rejected";
2574
+ }>;
2575
+ oldLeaseId: z.ZodString;
2576
+ replacementLeaseId: z.ZodOptional<z.ZodString>;
2577
+ transitionId: z.ZodString;
2578
+ }, z.core.$strict>]>;
2082
2579
  }, z.core.$strict>, z.ZodObject<{
2083
2580
  causationId: z.ZodOptional<z.ZodString>;
2084
2581
  correlationId: z.ZodOptional<z.ZodString>;
@@ -2120,6 +2617,7 @@ declare const GatewayControlRpcCommandResultOperationSchema: z.ZodEnum<{
2120
2617
  lease_create: "lease_create";
2121
2618
  lease_get: "lease_get";
2122
2619
  lease_peek: "lease_peek";
2620
+ lease_reacquire: "lease_reacquire";
2123
2621
  lease_renew: "lease_renew";
2124
2622
  lease_release: "lease_release";
2125
2623
  lease_use_start: "lease_use_start";
@@ -2254,6 +2752,65 @@ declare const GatewayControlRpcMessageSchema: z.ZodUnion<readonly [z.ZodObject<{
2254
2752
  }, z.core.$strict>;
2255
2753
  leaseId: z.ZodString;
2256
2754
  }, z.core.$strict>;
2755
+ }, z.core.$strict>, z.ZodObject<{
2756
+ causationId: z.ZodOptional<z.ZodString>;
2757
+ correlationId: z.ZodOptional<z.ZodString>;
2758
+ requestId: z.ZodOptional<z.ZodString>;
2759
+ runId: z.ZodOptional<z.ZodString>;
2760
+ sessionKeyDigest: z.ZodOptional<z.ZodString>;
2761
+ toolCallId: z.ZodOptional<z.ZodString>;
2762
+ traceId: z.ZodOptional<z.ZodString>;
2763
+ kind: z.ZodLiteral<"command">;
2764
+ operation: z.ZodLiteral<"lease_reacquire">;
2765
+ payload: z.ZodObject<{
2766
+ callerContext: z.ZodObject<{
2767
+ callerContextId: z.ZodString;
2768
+ }, z.core.$strict>;
2769
+ correlation: z.ZodOptional<z.ZodObject<{
2770
+ causationId: z.ZodOptional<z.ZodString>;
2771
+ correlationId: z.ZodOptional<z.ZodString>;
2772
+ requestId: z.ZodOptional<z.ZodString>;
2773
+ runId: z.ZodOptional<z.ZodString>;
2774
+ sessionKeyDigest: z.ZodOptional<z.ZodString>;
2775
+ toolCallId: z.ZodOptional<z.ZodString>;
2776
+ traceId: z.ZodOptional<z.ZodString>;
2777
+ capability: z.ZodOptional<z.ZodObject<{
2778
+ name: z.ZodString;
2779
+ namespace: z.ZodString;
2780
+ }, z.core.$strict>>;
2781
+ }, z.core.$strict>>;
2782
+ idleTtlHintMs: z.ZodOptional<z.ZodNumber>;
2783
+ oldLeaseId: z.ZodString;
2784
+ staleEvidence: z.ZodDiscriminatedUnion<[z.ZodObject<{
2785
+ errorCode: z.ZodOptional<z.ZodString>;
2786
+ kind: z.ZodLiteral<"tool-vm-ssh">;
2787
+ observedAtMs: z.ZodNumber;
2788
+ operation: z.ZodEnum<{
2789
+ command: "command";
2790
+ "file-bridge": "file-bridge";
2791
+ finalize: "finalize";
2792
+ probe: "probe";
2793
+ }>;
2794
+ }, z.core.$strict>, z.ZodObject<{
2795
+ kind: z.ZodLiteral<"caller-context">;
2796
+ observedAtMs: z.ZodNumber;
2797
+ reason: z.ZodOptional<z.ZodEnum<{
2798
+ absent: "absent";
2799
+ stale: "stale";
2800
+ session_mismatch: "session_mismatch";
2801
+ lease_authority_absent: "lease_authority_absent";
2802
+ }>>;
2803
+ }, z.core.$strict>, z.ZodObject<{
2804
+ kind: z.ZodLiteral<"lease-manager">;
2805
+ observedAtMs: z.ZodNumber;
2806
+ reason: z.ZodOptional<z.ZodEnum<{
2807
+ expired: "expired";
2808
+ released: "released";
2809
+ force_released: "force_released";
2810
+ generation_stale: "generation_stale";
2811
+ }>>;
2812
+ }, z.core.$strict>], "kind">;
2813
+ }, z.core.$strict>;
2257
2814
  }, z.core.$strict>, z.ZodObject<{
2258
2815
  causationId: z.ZodOptional<z.ZodString>;
2259
2816
  correlationId: z.ZodOptional<z.ZodString>;
@@ -2367,7 +2924,7 @@ declare const GatewayControlRpcMessageSchema: z.ZodUnion<readonly [z.ZodObject<{
2367
2924
  traceId: z.ZodOptional<z.ZodString>;
2368
2925
  kind: z.ZodLiteral<"command">;
2369
2926
  operation: z.ZodLiteral<"tool_portal_controller_host_action">;
2370
- payload: z.ZodObject<{
2927
+ payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
2371
2928
  actionId: z.ZodLiteral<"zone_git_push">;
2372
2929
  callerContext: z.ZodObject<{
2373
2930
  callerContextId: z.ZodString;
@@ -2386,7 +2943,25 @@ declare const GatewayControlRpcMessageSchema: z.ZodUnion<readonly [z.ZodObject<{
2386
2943
  }, z.core.$strict>>;
2387
2944
  }, z.core.$strict>;
2388
2945
  expectedHead: z.ZodString;
2389
- }, z.core.$strict>;
2946
+ }, z.core.$strict>, z.ZodObject<{
2947
+ actionId: z.ZodLiteral<"controller_host_probe">;
2948
+ callerContext: z.ZodObject<{
2949
+ callerContextId: z.ZodString;
2950
+ }, z.core.$strict>;
2951
+ correlation: z.ZodObject<{
2952
+ causationId: z.ZodOptional<z.ZodString>;
2953
+ correlationId: z.ZodOptional<z.ZodString>;
2954
+ requestId: z.ZodOptional<z.ZodString>;
2955
+ runId: z.ZodOptional<z.ZodString>;
2956
+ sessionKeyDigest: z.ZodOptional<z.ZodString>;
2957
+ toolCallId: z.ZodOptional<z.ZodString>;
2958
+ traceId: z.ZodOptional<z.ZodString>;
2959
+ capability: z.ZodOptional<z.ZodObject<{
2960
+ name: z.ZodString;
2961
+ namespace: z.ZodString;
2962
+ }, z.core.$strict>>;
2963
+ }, z.core.$strict>;
2964
+ }, z.core.$strict>], "actionId">;
2390
2965
  }, z.core.$strict>, z.ZodObject<{
2391
2966
  causationId: z.ZodOptional<z.ZodString>;
2392
2967
  correlationId: z.ZodOptional<z.ZodString>;
@@ -2442,7 +3017,7 @@ declare const GatewayControlRpcMessageSchema: z.ZodUnion<readonly [z.ZodObject<{
2442
3017
  traceId: z.ZodOptional<z.ZodString>;
2443
3018
  kind: z.ZodLiteral<"event">;
2444
3019
  operation: z.ZodLiteral<"health_event">;
2445
- payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
3020
+ payload: z.ZodUnion<readonly [z.ZodObject<{
2446
3021
  correlation: z.ZodOptional<z.ZodObject<{
2447
3022
  causationId: z.ZodOptional<z.ZodString>;
2448
3023
  correlationId: z.ZodOptional<z.ZodString>;
@@ -2566,15 +3141,79 @@ declare const GatewayControlRpcMessageSchema: z.ZodUnion<readonly [z.ZodObject<{
2566
3141
  agentId: z.ZodString;
2567
3142
  elapsedMs: z.ZodNumber;
2568
3143
  errorCode: z.ZodOptional<z.ZodString>;
3144
+ eventKind: z.ZodLiteral<"tool-vm-ssh">;
2569
3145
  leaseId: z.ZodString;
3146
+ operation: z.ZodEnum<{
3147
+ command: "command";
3148
+ "file-bridge": "file-bridge";
3149
+ finalize: "finalize";
3150
+ probe: "probe";
3151
+ }>;
3152
+ }, z.core.$strict>, z.ZodObject<{
3153
+ correlation: z.ZodOptional<z.ZodObject<{
3154
+ causationId: z.ZodOptional<z.ZodString>;
3155
+ correlationId: z.ZodOptional<z.ZodString>;
3156
+ requestId: z.ZodOptional<z.ZodString>;
3157
+ runId: z.ZodOptional<z.ZodString>;
3158
+ sessionKeyDigest: z.ZodOptional<z.ZodString>;
3159
+ toolCallId: z.ZodOptional<z.ZodString>;
3160
+ traceId: z.ZodOptional<z.ZodString>;
3161
+ }, z.core.$strict>>;
3162
+ observedAtMs: z.ZodNumber;
3163
+ result: z.ZodEnum<{
3164
+ failed: "failed";
3165
+ ok: "ok";
3166
+ timeout: "timeout";
3167
+ degraded: "degraded";
3168
+ }>;
3169
+ agentId: z.ZodString;
3170
+ elapsedMs: z.ZodNumber;
3171
+ errorCode: z.ZodOptional<z.ZodString>;
2570
3172
  eventKind: z.ZodLiteral<"tool-vm-ssh">;
3173
+ leaseId: z.ZodString;
2571
3174
  operation: z.ZodEnum<{
2572
3175
  command: "command";
2573
3176
  "file-bridge": "file-bridge";
2574
3177
  finalize: "finalize";
2575
3178
  probe: "probe";
2576
3179
  }>;
2577
- }, z.core.$strict>], "eventKind">;
3180
+ activeUseId: z.ZodOptional<z.ZodString>;
3181
+ callerContextState: z.ZodOptional<z.ZodEnum<{
3182
+ ok: "ok";
3183
+ absent: "absent";
3184
+ stale: "stale";
3185
+ session_mismatch: "session_mismatch";
3186
+ not_applicable: "not_applicable";
3187
+ }>>;
3188
+ leaseRejectionReason: z.ZodOptional<z.ZodEnum<{
3189
+ lease_authority_absent: "lease_authority_absent";
3190
+ caller_context_absent: "caller_context_absent";
3191
+ caller_context_session_mismatch: "caller_context_session_mismatch";
3192
+ caller_context_stale: "caller_context_stale";
3193
+ lease_absent: "lease_absent";
3194
+ lease_force_released: "lease_force_released";
3195
+ lease_generation_stale: "lease_generation_stale";
3196
+ lease_reacquire_required: "lease_reacquire_required";
3197
+ lease_releasing: "lease_releasing";
3198
+ lease_retired: "lease_retired";
3199
+ lease_use_tombstoned: "lease_use_tombstoned";
3200
+ ownership_denied: "ownership_denied";
3201
+ runtime_not_ready: "runtime_not_ready";
3202
+ }>>;
3203
+ lifecycleEventRole: z.ZodLiteral<"plugin_observation">;
3204
+ lifecycleTransition: z.ZodEnum<{
3205
+ current_to_stale: "current_to_stale";
3206
+ current_to_retired: "current_to_retired";
3207
+ deprecated_to_reacquired: "deprecated_to_reacquired";
3208
+ deprecated_to_retired: "deprecated_to_retired";
3209
+ stale_to_reacquired: "stale_to_reacquired";
3210
+ stale_to_retired: "stale_to_retired";
3211
+ retired_rejected: "retired_rejected";
3212
+ }>;
3213
+ oldLeaseId: z.ZodString;
3214
+ replacementLeaseId: z.ZodOptional<z.ZodString>;
3215
+ transitionId: z.ZodString;
3216
+ }, z.core.$strict>]>;
2578
3217
  }, z.core.$strict>, z.ZodObject<{
2579
3218
  causationId: z.ZodOptional<z.ZodString>;
2580
3219
  correlationId: z.ZodOptional<z.ZodString>;
@@ -2710,6 +3349,7 @@ declare const GatewayControlRpcMessageSchema: z.ZodUnion<readonly [z.ZodObject<{
2710
3349
  lease_create: "lease_create";
2711
3350
  lease_get: "lease_get";
2712
3351
  lease_peek: "lease_peek";
3352
+ lease_reacquire: "lease_reacquire";
2713
3353
  lease_renew: "lease_renew";
2714
3354
  lease_release: "lease_release";
2715
3355
  }>;
@@ -2729,10 +3369,10 @@ declare const GatewayControlRpcMessageSchema: z.ZodUnion<readonly [z.ZodObject<{
2729
3369
  user: z.ZodString;
2730
3370
  }, z.core.$strict>>;
2731
3371
  state: z.ZodEnum<{
2732
- idle: "idle";
2733
- active: "active";
2734
3372
  expired: "expired";
2735
3373
  released: "released";
3374
+ idle: "idle";
3375
+ active: "active";
2736
3376
  }>;
2737
3377
  tcpSlot: z.ZodNumber;
2738
3378
  transport: z.ZodLiteral<"ssh-sandbox">;
@@ -2755,11 +3395,18 @@ declare const GatewayControlRpcMessageSchema: z.ZodUnion<readonly [z.ZodObject<{
2755
3395
  safeMessage: z.ZodOptional<z.ZodString>;
2756
3396
  }, z.core.$strict>>;
2757
3397
  leaseRejectionReason: z.ZodEnum<{
2758
- absent: "absent";
2759
- generation_stale: "generation_stale";
2760
- force_released: "force_released";
2761
- releasing: "releasing";
2762
- use_tombstoned: "use_tombstoned";
3398
+ lease_authority_absent: "lease_authority_absent";
3399
+ caller_context_absent: "caller_context_absent";
3400
+ caller_context_session_mismatch: "caller_context_session_mismatch";
3401
+ caller_context_stale: "caller_context_stale";
3402
+ lease_absent: "lease_absent";
3403
+ lease_force_released: "lease_force_released";
3404
+ lease_generation_stale: "lease_generation_stale";
3405
+ lease_reacquire_required: "lease_reacquire_required";
3406
+ lease_releasing: "lease_releasing";
3407
+ lease_retired: "lease_retired";
3408
+ lease_use_tombstoned: "lease_use_tombstoned";
3409
+ ownership_denied: "ownership_denied";
2763
3410
  runtime_not_ready: "runtime_not_ready";
2764
3411
  }>;
2765
3412
  result: z.ZodLiteral<"rejected">;
@@ -2777,11 +3424,18 @@ declare const GatewayControlRpcMessageSchema: z.ZodUnion<readonly [z.ZodObject<{
2777
3424
  safeMessage: z.ZodOptional<z.ZodString>;
2778
3425
  }, z.core.$strict>;
2779
3426
  leaseRejectionReason: z.ZodOptional<z.ZodEnum<{
2780
- absent: "absent";
2781
- generation_stale: "generation_stale";
2782
- force_released: "force_released";
2783
- releasing: "releasing";
2784
- use_tombstoned: "use_tombstoned";
3427
+ lease_authority_absent: "lease_authority_absent";
3428
+ caller_context_absent: "caller_context_absent";
3429
+ caller_context_session_mismatch: "caller_context_session_mismatch";
3430
+ caller_context_stale: "caller_context_stale";
3431
+ lease_absent: "lease_absent";
3432
+ lease_force_released: "lease_force_released";
3433
+ lease_generation_stale: "lease_generation_stale";
3434
+ lease_reacquire_required: "lease_reacquire_required";
3435
+ lease_releasing: "lease_releasing";
3436
+ lease_retired: "lease_retired";
3437
+ lease_use_tombstoned: "lease_use_tombstoned";
3438
+ ownership_denied: "ownership_denied";
2785
3439
  runtime_not_ready: "runtime_not_ready";
2786
3440
  }>>;
2787
3441
  result: z.ZodEnum<{
@@ -2820,8 +3474,8 @@ declare const GatewayControlRpcMessageSchema: z.ZodUnion<readonly [z.ZodObject<{
2820
3474
  heartbeatAfterMs: z.ZodOptional<z.ZodNumber>;
2821
3475
  leaseId: z.ZodString;
2822
3476
  state: z.ZodEnum<{
2823
- active: "active";
2824
3477
  expired: "expired";
3478
+ active: "active";
2825
3479
  ended: "ended";
2826
3480
  }>;
2827
3481
  useId: z.ZodString;
@@ -2842,11 +3496,18 @@ declare const GatewayControlRpcMessageSchema: z.ZodUnion<readonly [z.ZodObject<{
2842
3496
  safeMessage: z.ZodOptional<z.ZodString>;
2843
3497
  }, z.core.$strict>>;
2844
3498
  leaseRejectionReason: z.ZodEnum<{
2845
- absent: "absent";
2846
- generation_stale: "generation_stale";
2847
- force_released: "force_released";
2848
- releasing: "releasing";
2849
- use_tombstoned: "use_tombstoned";
3499
+ lease_authority_absent: "lease_authority_absent";
3500
+ caller_context_absent: "caller_context_absent";
3501
+ caller_context_session_mismatch: "caller_context_session_mismatch";
3502
+ caller_context_stale: "caller_context_stale";
3503
+ lease_absent: "lease_absent";
3504
+ lease_force_released: "lease_force_released";
3505
+ lease_generation_stale: "lease_generation_stale";
3506
+ lease_reacquire_required: "lease_reacquire_required";
3507
+ lease_releasing: "lease_releasing";
3508
+ lease_retired: "lease_retired";
3509
+ lease_use_tombstoned: "lease_use_tombstoned";
3510
+ ownership_denied: "ownership_denied";
2850
3511
  runtime_not_ready: "runtime_not_ready";
2851
3512
  }>;
2852
3513
  result: z.ZodLiteral<"rejected">;
@@ -2864,11 +3525,18 @@ declare const GatewayControlRpcMessageSchema: z.ZodUnion<readonly [z.ZodObject<{
2864
3525
  safeMessage: z.ZodOptional<z.ZodString>;
2865
3526
  }, z.core.$strict>;
2866
3527
  leaseRejectionReason: z.ZodOptional<z.ZodEnum<{
2867
- absent: "absent";
2868
- generation_stale: "generation_stale";
2869
- force_released: "force_released";
2870
- releasing: "releasing";
2871
- use_tombstoned: "use_tombstoned";
3528
+ lease_authority_absent: "lease_authority_absent";
3529
+ caller_context_absent: "caller_context_absent";
3530
+ caller_context_session_mismatch: "caller_context_session_mismatch";
3531
+ caller_context_stale: "caller_context_stale";
3532
+ lease_absent: "lease_absent";
3533
+ lease_force_released: "lease_force_released";
3534
+ lease_generation_stale: "lease_generation_stale";
3535
+ lease_reacquire_required: "lease_reacquire_required";
3536
+ lease_releasing: "lease_releasing";
3537
+ lease_retired: "lease_retired";
3538
+ lease_use_tombstoned: "lease_use_tombstoned";
3539
+ ownership_denied: "ownership_denied";
2872
3540
  runtime_not_ready: "runtime_not_ready";
2873
3541
  }>>;
2874
3542
  result: z.ZodEnum<{
@@ -2898,7 +3566,7 @@ declare const GatewayControlRpcMessageSchema: z.ZodUnion<readonly [z.ZodObject<{
2898
3566
  operation: z.ZodLiteral<"tool_portal_controller_host_action">;
2899
3567
  payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
2900
3568
  responseToMessageId: z.ZodString;
2901
- controllerHostAction: z.ZodObject<{
3569
+ controllerHostAction: z.ZodDiscriminatedUnion<[z.ZodObject<{
2902
3570
  actionId: z.ZodLiteral<"zone_git_push">;
2903
3571
  result: z.ZodObject<{
2904
3572
  branch: z.ZodString;
@@ -2909,7 +3577,13 @@ declare const GatewayControlRpcMessageSchema: z.ZodUnion<readonly [z.ZodObject<{
2909
3577
  }, z.core.$strict>>;
2910
3578
  remoteHead: z.ZodString;
2911
3579
  }, z.core.$strict>;
2912
- }, z.core.$strict>;
3580
+ }, z.core.$strict>, z.ZodObject<{
3581
+ actionId: z.ZodLiteral<"controller_host_probe">;
3582
+ result: z.ZodObject<{
3583
+ entryNames: z.ZodArray<z.ZodString>;
3584
+ probeKind: z.ZodLiteral<"controller_cache_dir_listing">;
3585
+ }, z.core.$strict>;
3586
+ }, z.core.$strict>], "actionId">;
2913
3587
  result: z.ZodLiteral<"ok">;
2914
3588
  activeOperationId: z.ZodOptional<z.ZodNever>;
2915
3589
  approvalRequired: z.ZodOptional<z.ZodNever>;
@@ -3043,6 +3717,7 @@ declare const gatewayControlDeliveryPolicyByOperation: {
3043
3717
  readonly lease_create: "critical_idempotent";
3044
3718
  readonly lease_get: "acked_idempotent";
3045
3719
  readonly lease_peek: "acked_idempotent";
3720
+ readonly lease_reacquire: "critical_idempotent";
3046
3721
  readonly lease_release: "acked_idempotent";
3047
3722
  readonly lease_renew: "single_use_critical";
3048
3723
  readonly lease_use_end: "acked_idempotent";
@@ -3062,6 +3737,7 @@ declare const gatewayControlCommandExecutionTimeoutMsByOperation: {
3062
3737
  readonly lease_create: 180000;
3063
3738
  readonly lease_get: 5000;
3064
3739
  readonly lease_peek: 5000;
3740
+ readonly lease_reacquire: 180000;
3065
3741
  readonly lease_release: 5000;
3066
3742
  readonly lease_renew: 10000;
3067
3743
  readonly lease_use_end: 5000;
@@ -3082,6 +3758,9 @@ type GatewayControlCallerContextAgentAuthority = z.infer<typeof GatewayControlCa
3082
3758
  type GatewayControlCallerContextRegisterPayload = z.infer<typeof GatewayControlCallerContextRegisterPayloadSchema>;
3083
3759
  type GatewayControlLeaseCreateIntentPayload = z.infer<typeof GatewayControlLeaseCreateIntentPayloadSchema>;
3084
3760
  type GatewayControlLeaseIdPayload = z.infer<typeof GatewayControlLeaseIdPayloadSchema>;
3761
+ type GatewayControlLeaseReacquireIntentPayload = z.infer<typeof GatewayControlLeaseReacquireIntentPayloadSchema>;
3762
+ type GatewayControlLeaseRejectionReason = z.infer<typeof GatewayControlLeaseRejectionReasonSchema>;
3763
+ type GatewayControlLeaseStaleEvidence = z.infer<typeof GatewayControlLeaseStaleEvidenceSchema>;
3085
3764
  type GatewayControlLeaseSnapshot = z.infer<typeof GatewayControlLeaseSnapshotSchema>;
3086
3765
  type GatewayControlLeaseUseEndPayload = z.infer<typeof GatewayControlLeaseUseEndPayloadSchema>;
3087
3766
  type GatewayControlLeaseUseHeartbeatPayload = z.infer<typeof GatewayControlLeaseUseHeartbeatPayloadSchema>;
@@ -3091,11 +3770,12 @@ type GatewayControlProviderRuntimeHealth = z.infer<typeof GatewayControlProvider
3091
3770
  type GatewayControlHeartbeatPayload = z.infer<typeof GatewayControlHeartbeatPayloadSchema>;
3092
3771
  type GatewayControlHealthEventPayload = z.infer<typeof GatewayControlHealthEventPayloadSchema>;
3093
3772
  type GatewayControlRuntimeStatusPayload = z.infer<typeof GatewayControlRuntimeStatusPayloadSchema>;
3773
+ type GatewayControlControllerHostProbeResult = z.infer<typeof GatewayControlControllerHostProbeResultSchema>;
3094
3774
  type GatewayControlToolPortalControllerHostActionPayload = z.infer<typeof GatewayControlToolPortalControllerHostActionPayloadSchema>;
3095
3775
  type GatewayControlToolPortalControllerHostActionResult = z.infer<typeof GatewayControlToolPortalControllerHostActionResultSchema>;
3096
3776
  type GatewayControlZoneGitPushResult = z.infer<typeof GatewayControlZoneGitPushResultSchema>;
3097
3777
  declare function buildGatewayControlJsonSchemas(): Readonly<Record<string, unknown>>;
3098
3778
  declare function assertGatewayControlDomainRegistered(): 'gateway_control';
3099
3779
  //#endregion
3100
- export { ControllerInitiatedGatewayOperationCancelPayloadSchema, GatewayControlActiveOperationIdSchema, GatewayControlCallerContextAgentAuthority, GatewayControlCallerContextAgentAuthoritySchema, GatewayControlCallerContextProof, GatewayControlCallerContextProofAlgorithmSchema, GatewayControlCallerContextProofPayloadInput, GatewayControlCallerContextProofSchema, GatewayControlCallerContextRef, GatewayControlCallerContextRefSchema, GatewayControlCallerContextRegisterPayload, GatewayControlCallerContextRegisterPayloadSchema, GatewayControlCapabilityRefSchema, GatewayControlControllerRequestHealthOperationSchema, GatewayControlControllerToGatewayEvents, GatewayControlDomainSchema, GatewayControlEventOnlyOperationSchema, GatewayControlForbiddenPayloadFieldSchema, GatewayControlGatewayToControllerEvents, GatewayControlHealthEventPayload, GatewayControlHealthEventPayloadSchema, GatewayControlHealthEventResultSchema, GatewayControlHeartbeatPayload, GatewayControlHeartbeatPayloadSchema, GatewayControlLeaseCreateIntentPayload, GatewayControlLeaseCreateIntentPayloadSchema, GatewayControlLeaseIdPayload, GatewayControlLeaseIdPayloadSchema, GatewayControlLeaseRejectionReasonSchema, GatewayControlLeaseSnapshot, GatewayControlLeaseSnapshotSchema, GatewayControlLeaseUseEndPayload, GatewayControlLeaseUseEndPayloadSchema, GatewayControlLeaseUseHeartbeatPayload, GatewayControlLeaseUseHeartbeatPayloadSchema, GatewayControlLeaseUseSnapshot, GatewayControlLeaseUseSnapshotSchema, GatewayControlLeaseUseStartPayload, GatewayControlLeaseUseStartPayloadSchema, GatewayControlOperationCancelPayloadSchema, GatewayControlPingPayloadSchema, GatewayControlProviderRuntimeHealth, GatewayControlProviderRuntimeHealthSchema, GatewayControlRecoveryCommandPayloadSchema, GatewayControlRpcBareResponsePayloadSchema, GatewayControlRpcCallerContextResponsePayloadSchema, GatewayControlRpcCommandMessageSchema, GatewayControlRpcCommandResultMessageSchema, GatewayControlRpcCommandResultOperationSchema, GatewayControlRpcControllerHostActionResponsePayloadSchema, GatewayControlRpcDomainCorrelationSchema, GatewayControlRpcErrorSchema, GatewayControlRpcEventMessageSchema, GatewayControlRpcLeaseResponsePayloadSchema, GatewayControlRpcLeaseUseResponsePayloadSchema, GatewayControlRpcMessage, GatewayControlRpcMessageSchema, GatewayControlRpcOperation, GatewayControlRpcOperationCancelResponsePayloadSchema, GatewayControlRpcOperationSchema, GatewayControlRpcResponseBasePayloadSchema, GatewayControlRpcResponsePayloadSchema, GatewayControlRpcResultSchema, GatewayControlRuntimeFindingSchema, GatewayControlRuntimeStatusPayload, GatewayControlRuntimeStatusPayloadSchema, GatewayControlSessionHealthOperationSchema, GatewayControlSessionStateSchema, GatewayControlToolCallCorrelationSchema, GatewayControlToolPortalControllerHostActionPayload, GatewayControlToolPortalControllerHostActionPayloadSchema, GatewayControlToolPortalControllerHostActionResult, GatewayControlToolPortalControllerHostActionResultSchema, GatewayControlToolVmSshAccessSchema, GatewayControlToolVmSshHealthOperationSchema, GatewayControlTrustedCallerContextIdSchema, GatewayControlTrustedLeaseContextSchema, GatewayControlZoneGitCommitSummarySchema, GatewayControlZoneGitPushResult, GatewayControlZoneGitPushResultSchema, GatewayInitiatedOperationCancelPayloadSchema, assertGatewayControlDomainRegistered, assertGatewayControlEnvelopeDeliveryPolicy, buildGatewayControlCallerContextAgentAuthorityPayload, buildGatewayControlCallerContextProofPayload, buildGatewayControlJsonSchemas, deriveGatewayControlDeliveryPolicy, gatewayControlCommandExecutionTimeoutMsByOperation, gatewayControlDeliveryPolicyByKind, gatewayControlDeliveryPolicyByOperation };
3780
+ export { ControllerInitiatedGatewayOperationCancelPayloadSchema, GatewayControlActiveOperationIdSchema, GatewayControlCallerContextAgentAuthority, GatewayControlCallerContextAgentAuthoritySchema, GatewayControlCallerContextProof, GatewayControlCallerContextProofAlgorithmSchema, GatewayControlCallerContextProofPayloadInput, GatewayControlCallerContextProofSchema, GatewayControlCallerContextRef, GatewayControlCallerContextRefSchema, GatewayControlCallerContextRegisterPayload, GatewayControlCallerContextRegisterPayloadSchema, GatewayControlCapabilityRefSchema, GatewayControlControllerHostProbeActionResultSchema, GatewayControlControllerHostProbePayloadSchema, GatewayControlControllerHostProbeResult, GatewayControlControllerHostProbeResultSchema, GatewayControlControllerRequestHealthOperationSchema, GatewayControlControllerToGatewayEvents, GatewayControlDomainSchema, GatewayControlEventOnlyOperationSchema, GatewayControlForbiddenPayloadFieldSchema, GatewayControlGatewayToControllerEvents, GatewayControlHealthEventPayload, GatewayControlHealthEventPayloadSchema, GatewayControlHealthEventResultSchema, GatewayControlHeartbeatPayload, GatewayControlHeartbeatPayloadSchema, GatewayControlLeaseCreateIntentPayload, GatewayControlLeaseCreateIntentPayloadSchema, GatewayControlLeaseIdPayload, GatewayControlLeaseIdPayloadSchema, GatewayControlLeaseReacquireIntentPayload, GatewayControlLeaseReacquireIntentPayloadSchema, GatewayControlLeaseRejectionReason, GatewayControlLeaseRejectionReasonSchema, GatewayControlLeaseSnapshot, GatewayControlLeaseSnapshotSchema, GatewayControlLeaseStaleEvidence, GatewayControlLeaseStaleEvidenceSchema, GatewayControlLeaseUseEndPayload, GatewayControlLeaseUseEndPayloadSchema, GatewayControlLeaseUseHeartbeatPayload, GatewayControlLeaseUseHeartbeatPayloadSchema, GatewayControlLeaseUseSnapshot, GatewayControlLeaseUseSnapshotSchema, GatewayControlLeaseUseStartPayload, GatewayControlLeaseUseStartPayloadSchema, GatewayControlOperationCancelPayloadSchema, GatewayControlPingPayloadSchema, GatewayControlProviderRuntimeHealth, GatewayControlProviderRuntimeHealthSchema, GatewayControlRecoveryCommandPayloadSchema, GatewayControlRpcBareResponsePayloadSchema, GatewayControlRpcCallerContextResponsePayloadSchema, GatewayControlRpcCommandMessageSchema, GatewayControlRpcCommandResultMessageSchema, GatewayControlRpcCommandResultOperationSchema, GatewayControlRpcControllerHostActionResponsePayloadSchema, GatewayControlRpcDomainCorrelationSchema, GatewayControlRpcErrorSchema, GatewayControlRpcEventMessageSchema, GatewayControlRpcLeaseResponsePayloadSchema, GatewayControlRpcLeaseUseResponsePayloadSchema, GatewayControlRpcMessage, GatewayControlRpcMessageSchema, GatewayControlRpcOperation, GatewayControlRpcOperationCancelResponsePayloadSchema, GatewayControlRpcOperationSchema, GatewayControlRpcResponseBasePayloadSchema, GatewayControlRpcResponsePayloadSchema, GatewayControlRpcResultSchema, GatewayControlRuntimeFindingSchema, GatewayControlRuntimeStatusPayload, GatewayControlRuntimeStatusPayloadSchema, GatewayControlSessionHealthOperationSchema, GatewayControlSessionStateSchema, GatewayControlToolCallCorrelationSchema, GatewayControlToolPortalControllerHostActionPayload, GatewayControlToolPortalControllerHostActionPayloadSchema, GatewayControlToolPortalControllerHostActionResult, GatewayControlToolPortalControllerHostActionResultSchema, GatewayControlToolVmLeaseCallerContextStateSchema, GatewayControlToolVmLeaseLifecycleEventRoleSchema, GatewayControlToolVmLeaseLifecycleTransitionSchema, GatewayControlToolVmSshAccessSchema, GatewayControlToolVmSshHealthOperationSchema, GatewayControlTrustedCallerContextIdSchema, GatewayControlTrustedLeaseContextSchema, GatewayControlZoneGitCommitSummarySchema, GatewayControlZoneGitPushControllerHostActionPayloadSchema, GatewayControlZoneGitPushControllerHostActionResultSchema, GatewayControlZoneGitPushResult, GatewayControlZoneGitPushResultSchema, GatewayInitiatedOperationCancelPayloadSchema, assertGatewayControlDomainRegistered, assertGatewayControlEnvelopeDeliveryPolicy, buildGatewayControlCallerContextAgentAuthorityPayload, buildGatewayControlCallerContextProofPayload, buildGatewayControlJsonSchemas, deriveGatewayControlDeliveryPolicy, gatewayControlCommandExecutionTimeoutMsByOperation, gatewayControlDeliveryPolicyByKind, gatewayControlDeliveryPolicyByOperation };
3101
3781
  //# sourceMappingURL=index.d.ts.map