@nylorun/core 0.22.0-beta → 0.24.0-beta

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.
Files changed (82) hide show
  1. package/CHANGELOG.md +126 -0
  2. package/README.md +1 -1
  3. package/dist/compatibility.d.ts +120 -47
  4. package/dist/compatibility.js +122 -49
  5. package/dist/contracts.d.ts +2824 -907
  6. package/dist/contracts.js +1286 -585
  7. package/dist/define.d.ts +9 -12
  8. package/dist/define.js +8 -11
  9. package/dist/definition/assemble.d.ts +1 -3
  10. package/dist/definition/assemble.js +4 -8
  11. package/dist/definition/bound.d.ts +1 -1
  12. package/dist/definition/delegate.d.ts +5 -0
  13. package/dist/definition/delegate.js +6 -1
  14. package/dist/definition/from.d.ts +4 -2
  15. package/dist/definition/from.js +11 -29
  16. package/dist/definition/http-tool.d.ts +5 -3
  17. package/dist/definition/http-tool.js +8 -5
  18. package/dist/definition/manifest.d.ts +7 -6
  19. package/dist/definition/manifest.js +7 -6
  20. package/dist/definition/mcp.d.ts +1 -1
  21. package/dist/definition/media-reference.d.ts +2 -11
  22. package/dist/definition/media-reference.js +0 -12
  23. package/dist/definition/model-failure.js +1 -0
  24. package/dist/definition/removed.d.ts +7 -0
  25. package/dist/definition/removed.js +21 -0
  26. package/dist/definition/sections.d.ts +63 -0
  27. package/dist/definition/sections.js +204 -0
  28. package/dist/definition/trace.d.ts +0 -7
  29. package/dist/definition/trace.js +0 -34
  30. package/dist/definition/variant.d.ts +1 -1
  31. package/dist/definition/variant.js +1 -3
  32. package/dist/harness-api/artifacts.d.ts +84 -0
  33. package/dist/harness-api/artifacts.js +128 -0
  34. package/dist/harness-api/gates.d.ts +0 -4
  35. package/dist/harness-api/gates.js +0 -4
  36. package/dist/harness-api/harness-api.schema.json +2798 -1124
  37. package/dist/harness-api/index.d.ts +9 -6
  38. package/dist/harness-api/index.js +9 -6
  39. package/dist/harness-api/json-schema.js +5 -2
  40. package/dist/harness-api/mcp.d.ts +77 -30
  41. package/dist/harness-api/mcp.js +42 -25
  42. package/dist/harness-api/messages.d.ts +47 -17
  43. package/dist/harness-api/messages.js +20 -5
  44. package/dist/harness-api/schema.d.ts +609 -200
  45. package/dist/harness-api/schema.js +345 -62
  46. package/dist/harness-api/transcript.d.ts +8 -10
  47. package/dist/harness-api/transcript.js +27 -11
  48. package/dist/harness-api/transport.d.ts +7 -1
  49. package/dist/harness-api/transport.js +10 -7
  50. package/dist/manifest-schemas.d.ts +9 -5
  51. package/dist/manifest-schemas.js +23 -27
  52. package/dist/schemas/agent-manifest.schema.json +1508 -365
  53. package/dist/schemas/harness-manifest.schema.json +1273 -0
  54. package/dist/schemas/{environment-manifest.schema.json → runtime-manifest.schema.json} +165 -84
  55. package/dist/types/manifest.d.ts +72 -14
  56. package/dist/types/manifest.js +4 -0
  57. package/dist/types/model.d.ts +15 -5
  58. package/dist/utils/definition-files.d.ts +20 -6
  59. package/dist/utils/definition-files.js +31 -17
  60. package/dist/utils/file-systems.d.ts +20 -0
  61. package/dist/utils/file-systems.js +20 -0
  62. package/dist/utils/harness-id.d.ts +4 -1
  63. package/dist/utils/harness-id.js +4 -1
  64. package/dist/utils/media-types.d.ts +30 -0
  65. package/dist/utils/media-types.js +128 -0
  66. package/dist/utils/memory.d.ts +64 -0
  67. package/dist/utils/memory.js +139 -0
  68. package/dist/utils/runtime-limits.d.ts +280 -0
  69. package/dist/utils/runtime-limits.js +585 -0
  70. package/dist/utils/runtime-tools.d.ts +8 -16
  71. package/dist/utils/runtime-tools.js +8 -27
  72. package/dist/utils/sandbox.d.ts +4 -1
  73. package/dist/utils/sandbox.js +4 -1
  74. package/package.json +6 -5
  75. package/dist/definition/deferred-tools.d.ts +0 -27
  76. package/dist/definition/deferred-tools.js +0 -82
  77. package/dist/definition/runtime-manifest.d.ts +0 -30
  78. package/dist/definition/runtime-manifest.js +0 -132
  79. package/dist/definition/sandbox-tools.d.ts +0 -5
  80. package/dist/definition/sandbox-tools.js +0 -109
  81. package/dist/definition/skill-tools.d.ts +0 -23
  82. package/dist/definition/skill-tools.js +0 -76
@@ -1,8 +1,59 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "https://docs.nylorun.com/schemas/harness-api/v3.json",
4
- "title": "Nylorun Harness API 3",
3
+ "$id": "https://docs.nylorun.com/schemas/harness-api/v5.json",
4
+ "title": "Nylorun Harness API 5",
5
5
  "$defs": {
6
+ "ArtifactMeta": {
7
+ "type": "object",
8
+ "properties": {
9
+ "artifactId": {
10
+ "type": "string",
11
+ "minLength": 1,
12
+ "maxLength": 512
13
+ },
14
+ "kind": {
15
+ "type": "string",
16
+ "enum": [
17
+ "file",
18
+ "folder"
19
+ ]
20
+ },
21
+ "name": {
22
+ "type": "string"
23
+ },
24
+ "version": {
25
+ "type": "integer",
26
+ "minimum": 1,
27
+ "maximum": 9007199254740991
28
+ },
29
+ "contentType": {
30
+ "type": "string"
31
+ },
32
+ "size": {
33
+ "type": "integer",
34
+ "minimum": 0,
35
+ "maximum": 9007199254740991
36
+ },
37
+ "sha256": {
38
+ "type": "string",
39
+ "pattern": "^[0-9a-f]{64}$"
40
+ },
41
+ "tenantWide": {
42
+ "type": "boolean"
43
+ }
44
+ },
45
+ "required": [
46
+ "artifactId",
47
+ "kind",
48
+ "name",
49
+ "version",
50
+ "contentType",
51
+ "size",
52
+ "sha256",
53
+ "tenantWide"
54
+ ],
55
+ "additionalProperties": false
56
+ },
6
57
  "EffectIntent": {
7
58
  "type": "object",
8
59
  "properties": {
@@ -60,6 +111,106 @@
60
111
  "toolName": {
61
112
  "type": "string"
62
113
  },
114
+ "target": {
115
+ "oneOf": [
116
+ {
117
+ "type": "object",
118
+ "properties": {
119
+ "kind": {
120
+ "type": "string",
121
+ "const": "mcp"
122
+ },
123
+ "server": {
124
+ "type": "string",
125
+ "minLength": 1
126
+ },
127
+ "tool": {
128
+ "type": "string",
129
+ "minLength": 1
130
+ }
131
+ },
132
+ "required": [
133
+ "kind",
134
+ "server",
135
+ "tool"
136
+ ],
137
+ "additionalProperties": false
138
+ },
139
+ {
140
+ "type": "object",
141
+ "properties": {
142
+ "kind": {
143
+ "type": "string",
144
+ "const": "http"
145
+ },
146
+ "tool": {
147
+ "type": "string",
148
+ "minLength": 1
149
+ }
150
+ },
151
+ "required": [
152
+ "kind",
153
+ "tool"
154
+ ],
155
+ "additionalProperties": false
156
+ },
157
+ {
158
+ "type": "object",
159
+ "properties": {
160
+ "kind": {
161
+ "type": "string",
162
+ "const": "sandbox"
163
+ }
164
+ },
165
+ "required": [
166
+ "kind"
167
+ ],
168
+ "additionalProperties": false
169
+ },
170
+ {
171
+ "type": "object",
172
+ "properties": {
173
+ "kind": {
174
+ "type": "string",
175
+ "const": "harness"
176
+ }
177
+ },
178
+ "required": [
179
+ "kind"
180
+ ],
181
+ "additionalProperties": false
182
+ },
183
+ {
184
+ "type": "object",
185
+ "properties": {
186
+ "kind": {
187
+ "type": "string",
188
+ "const": "runtime"
189
+ },
190
+ "operation": {
191
+ "type": "string",
192
+ "enum": [
193
+ "schedule_wake",
194
+ "memory"
195
+ ]
196
+ }
197
+ },
198
+ "required": [
199
+ "kind",
200
+ "operation"
201
+ ],
202
+ "additionalProperties": false
203
+ }
204
+ ]
205
+ },
206
+ "skill": {
207
+ "type": "string",
208
+ "minLength": 1
209
+ },
210
+ "purpose": {
211
+ "type": "string",
212
+ "const": "summary"
213
+ },
63
214
  "path": {
64
215
  "type": "string"
65
216
  },
@@ -171,7 +322,9 @@
171
322
  "effect_drift",
172
323
  "invalid",
173
324
  "unavailable",
174
- "internal"
325
+ "internal",
326
+ "not_found",
327
+ "limit_exceeded"
175
328
  ]
176
329
  },
177
330
  "message": {
@@ -351,28 +504,183 @@
351
504
  }
352
505
  ]
353
506
  },
354
- "NativeTool": {
507
+ "ModelDescriptor": {
355
508
  "type": "object",
356
509
  "properties": {
357
- "name": {
510
+ "provider": {
358
511
  "type": "string",
359
- "pattern": "^[A-Za-z_][A-Za-z0-9_-]{0,63}$"
512
+ "minLength": 1
360
513
  },
361
- "description": {
514
+ "id": {
362
515
  "type": "string",
363
- "maxLength": 4096
516
+ "minLength": 1
364
517
  },
365
- "inputSchema": {
518
+ "inputs": {
519
+ "minItems": 1,
520
+ "type": "array",
521
+ "items": {
522
+ "type": "string",
523
+ "enum": [
524
+ "text",
525
+ "image",
526
+ "pdf",
527
+ "office",
528
+ "audio",
529
+ "video"
530
+ ]
531
+ }
532
+ },
533
+ "contextWindow": {
534
+ "type": "integer",
535
+ "exclusiveMinimum": 0,
536
+ "maximum": 9007199254740991
537
+ },
538
+ "maxOutputTokens": {
539
+ "type": "integer",
540
+ "exclusiveMinimum": 0,
541
+ "maximum": 9007199254740991
542
+ },
543
+ "reasoning": {
544
+ "type": "boolean"
545
+ }
546
+ },
547
+ "required": [
548
+ "provider",
549
+ "id",
550
+ "inputs",
551
+ "contextWindow",
552
+ "maxOutputTokens"
553
+ ],
554
+ "additionalProperties": false
555
+ },
556
+ "EffectTarget": {
557
+ "oneOf": [
558
+ {
366
559
  "type": "object",
367
- "propertyNames": {
368
- "type": "string"
560
+ "properties": {
561
+ "kind": {
562
+ "type": "string",
563
+ "const": "mcp"
564
+ },
565
+ "server": {
566
+ "type": "string",
567
+ "minLength": 1
568
+ },
569
+ "tool": {
570
+ "type": "string",
571
+ "minLength": 1
572
+ }
369
573
  },
370
- "additionalProperties": {}
574
+ "required": [
575
+ "kind",
576
+ "server",
577
+ "tool"
578
+ ],
579
+ "additionalProperties": false
580
+ },
581
+ {
582
+ "type": "object",
583
+ "properties": {
584
+ "kind": {
585
+ "type": "string",
586
+ "const": "http"
587
+ },
588
+ "tool": {
589
+ "type": "string",
590
+ "minLength": 1
591
+ }
592
+ },
593
+ "required": [
594
+ "kind",
595
+ "tool"
596
+ ],
597
+ "additionalProperties": false
598
+ },
599
+ {
600
+ "type": "object",
601
+ "properties": {
602
+ "kind": {
603
+ "type": "string",
604
+ "const": "sandbox"
605
+ }
606
+ },
607
+ "required": [
608
+ "kind"
609
+ ],
610
+ "additionalProperties": false
611
+ },
612
+ {
613
+ "type": "object",
614
+ "properties": {
615
+ "kind": {
616
+ "type": "string",
617
+ "const": "harness"
618
+ }
619
+ },
620
+ "required": [
621
+ "kind"
622
+ ],
623
+ "additionalProperties": false
624
+ },
625
+ {
626
+ "type": "object",
627
+ "properties": {
628
+ "kind": {
629
+ "type": "string",
630
+ "const": "runtime"
631
+ },
632
+ "operation": {
633
+ "type": "string",
634
+ "enum": [
635
+ "schedule_wake",
636
+ "memory"
637
+ ]
638
+ }
639
+ },
640
+ "required": [
641
+ "kind",
642
+ "operation"
643
+ ],
644
+ "additionalProperties": false
645
+ }
646
+ ]
647
+ },
648
+ "TurnAgent": {
649
+ "type": "object",
650
+ "properties": {
651
+ "id": {
652
+ "type": "string",
653
+ "minLength": 1,
654
+ "maxLength": 512
655
+ },
656
+ "kind": {
657
+ "type": "string",
658
+ "enum": [
659
+ "virtual",
660
+ "pod",
661
+ "none"
662
+ ]
663
+ },
664
+ "sandbox": {
665
+ "type": "object",
666
+ "properties": {
667
+ "workspace": {
668
+ "type": "string",
669
+ "pattern": "^\\/"
670
+ }
671
+ },
672
+ "required": [
673
+ "workspace"
674
+ ],
675
+ "additionalProperties": false
676
+ },
677
+ "selfWake": {
678
+ "type": "boolean"
371
679
  }
372
680
  },
373
681
  "required": [
374
- "name",
375
- "inputSchema"
682
+ "id",
683
+ "kind"
376
684
  ],
377
685
  "additionalProperties": false
378
686
  },
@@ -508,116 +816,18 @@
508
816
  },
509
817
  "additionalProperties": {}
510
818
  },
511
- "mcpSnapshot": {
819
+ "sandbox": {
512
820
  "type": "object",
513
821
  "properties": {
514
- "snapshotSchemaVersion": {
515
- "type": "number",
516
- "const": 1
822
+ "ownerId": {
823
+ "type": "string",
824
+ "minLength": 1,
825
+ "maxLength": 512
517
826
  },
518
- "manifestHash": {
519
- "type": "string"
520
- },
521
- "mcpTools": {
522
- "readOnly": true,
523
- "type": "array",
524
- "items": {
525
- "type": "object",
526
- "properties": {
527
- "agentId": {
528
- "type": "string"
529
- },
530
- "serverName": {
531
- "type": "string"
532
- },
533
- "serverToolName": {
534
- "type": "string"
535
- },
536
- "name": {
537
- "type": "string"
538
- },
539
- "description": {
540
- "type": "string"
541
- },
542
- "inputSchema": {
543
- "type": "object",
544
- "propertyNames": {
545
- "type": "string"
546
- },
547
- "additionalProperties": {}
548
- },
549
- "outputSchema": {
550
- "type": "object",
551
- "propertyNames": {
552
- "type": "string"
553
- },
554
- "additionalProperties": {}
555
- },
556
- "annotations": {
557
- "type": "object",
558
- "properties": {
559
- "readOnlyHint": {
560
- "type": "boolean"
561
- },
562
- "idempotentHint": {
563
- "type": "boolean"
564
- }
565
- }
566
- },
567
- "deferred": {
568
- "type": "boolean",
569
- "const": true
570
- }
571
- },
572
- "required": [
573
- "serverName",
574
- "serverToolName",
575
- "name",
576
- "inputSchema"
577
- ]
578
- }
579
- },
580
- "servers": {
581
- "readOnly": true,
582
- "type": "array",
583
- "items": {
584
- "type": "object",
585
- "properties": {
586
- "agentId": {
587
- "type": "string"
588
- },
589
- "serverName": {
590
- "type": "string"
591
- },
592
- "instructions": {
593
- "type": "string"
594
- }
595
- },
596
- "required": [
597
- "serverName",
598
- "instructions"
599
- ]
600
- }
601
- }
602
- },
603
- "required": [
604
- "snapshotSchemaVersion",
605
- "manifestHash",
606
- "mcpTools"
607
- ]
608
- },
609
- "sandbox": {
610
- "type": "object",
611
- "properties": {
612
- "ownerId": {
613
- "type": "string",
614
- "minLength": 1,
615
- "maxLength": 512
616
- },
617
- "environmentId": {
618
- "type": "string",
619
- "minLength": 1,
620
- "maxLength": 512
827
+ "environmentId": {
828
+ "type": "string",
829
+ "minLength": 1,
830
+ "maxLength": 512
621
831
  },
622
832
  "spec": {},
623
833
  "environment": {
@@ -659,29 +869,102 @@
659
869
  "additionalProperties": false
660
870
  },
661
871
  "TranscriptUpdate": {
662
- "type": "object",
663
- "properties": {
664
- "keep": {
665
- "type": "integer",
666
- "minimum": 0,
667
- "maximum": 9007199254740991
668
- },
669
- "entries": {
670
- "type": "array",
671
- "items": {}
872
+ "anyOf": [
873
+ {
874
+ "type": "object",
875
+ "properties": {
876
+ "keep": {
877
+ "type": "integer",
878
+ "minimum": 0,
879
+ "maximum": 9007199254740991
880
+ },
881
+ "entries": {
882
+ "type": "array",
883
+ "items": {}
884
+ },
885
+ "length": {
886
+ "type": "integer",
887
+ "minimum": 0,
888
+ "maximum": 9007199254740991
889
+ }
890
+ },
891
+ "required": [
892
+ "keep",
893
+ "entries",
894
+ "length"
895
+ ],
896
+ "additionalProperties": false
672
897
  },
673
- "length": {
674
- "type": "integer",
675
- "minimum": 0,
676
- "maximum": 9007199254740991
898
+ {
899
+ "type": "object",
900
+ "properties": {
901
+ "kind": {
902
+ "type": "string",
903
+ "const": "compaction"
904
+ },
905
+ "keep": {
906
+ "type": "integer",
907
+ "minimum": 0,
908
+ "maximum": 9007199254740991
909
+ },
910
+ "entries": {
911
+ "type": "array",
912
+ "items": {}
913
+ },
914
+ "length": {
915
+ "type": "integer",
916
+ "minimum": 0,
917
+ "maximum": 9007199254740991
918
+ },
919
+ "compaction": {
920
+ "type": "object",
921
+ "properties": {
922
+ "trigger": {
923
+ "type": "string",
924
+ "enum": [
925
+ "threshold",
926
+ "overflow"
927
+ ]
928
+ },
929
+ "tokensBefore": {
930
+ "type": "integer",
931
+ "minimum": 0,
932
+ "maximum": 9007199254740991
933
+ },
934
+ "tokensAfter": {
935
+ "type": "integer",
936
+ "minimum": 0,
937
+ "maximum": 9007199254740991
938
+ },
939
+ "summaryEffectIds": {
940
+ "minItems": 1,
941
+ "type": "array",
942
+ "items": {
943
+ "type": "string",
944
+ "minLength": 1,
945
+ "maxLength": 512
946
+ }
947
+ }
948
+ },
949
+ "required": [
950
+ "trigger",
951
+ "tokensBefore",
952
+ "tokensAfter",
953
+ "summaryEffectIds"
954
+ ],
955
+ "additionalProperties": false
956
+ }
957
+ },
958
+ "required": [
959
+ "kind",
960
+ "keep",
961
+ "entries",
962
+ "length",
963
+ "compaction"
964
+ ],
965
+ "additionalProperties": false
677
966
  }
678
- },
679
- "required": [
680
- "keep",
681
- "entries",
682
- "length"
683
- ],
684
- "additionalProperties": false
967
+ ]
685
968
  },
686
969
  "TurnOutput": {
687
970
  "type": "object",
@@ -725,29 +1008,102 @@
725
1008
  "readOnly": true,
726
1009
  "type": "array",
727
1010
  "items": {
728
- "type": "object",
729
- "properties": {
730
- "keep": {
731
- "type": "integer",
732
- "minimum": 0,
733
- "maximum": 9007199254740991
734
- },
735
- "entries": {
736
- "type": "array",
737
- "items": {}
1011
+ "anyOf": [
1012
+ {
1013
+ "type": "object",
1014
+ "properties": {
1015
+ "keep": {
1016
+ "type": "integer",
1017
+ "minimum": 0,
1018
+ "maximum": 9007199254740991
1019
+ },
1020
+ "entries": {
1021
+ "type": "array",
1022
+ "items": {}
1023
+ },
1024
+ "length": {
1025
+ "type": "integer",
1026
+ "minimum": 0,
1027
+ "maximum": 9007199254740991
1028
+ }
1029
+ },
1030
+ "required": [
1031
+ "keep",
1032
+ "entries",
1033
+ "length"
1034
+ ],
1035
+ "additionalProperties": false
738
1036
  },
739
- "length": {
740
- "type": "integer",
741
- "minimum": 0,
742
- "maximum": 9007199254740991
1037
+ {
1038
+ "type": "object",
1039
+ "properties": {
1040
+ "kind": {
1041
+ "type": "string",
1042
+ "const": "compaction"
1043
+ },
1044
+ "keep": {
1045
+ "type": "integer",
1046
+ "minimum": 0,
1047
+ "maximum": 9007199254740991
1048
+ },
1049
+ "entries": {
1050
+ "type": "array",
1051
+ "items": {}
1052
+ },
1053
+ "length": {
1054
+ "type": "integer",
1055
+ "minimum": 0,
1056
+ "maximum": 9007199254740991
1057
+ },
1058
+ "compaction": {
1059
+ "type": "object",
1060
+ "properties": {
1061
+ "trigger": {
1062
+ "type": "string",
1063
+ "enum": [
1064
+ "threshold",
1065
+ "overflow"
1066
+ ]
1067
+ },
1068
+ "tokensBefore": {
1069
+ "type": "integer",
1070
+ "minimum": 0,
1071
+ "maximum": 9007199254740991
1072
+ },
1073
+ "tokensAfter": {
1074
+ "type": "integer",
1075
+ "minimum": 0,
1076
+ "maximum": 9007199254740991
1077
+ },
1078
+ "summaryEffectIds": {
1079
+ "minItems": 1,
1080
+ "type": "array",
1081
+ "items": {
1082
+ "type": "string",
1083
+ "minLength": 1,
1084
+ "maxLength": 512
1085
+ }
1086
+ }
1087
+ },
1088
+ "required": [
1089
+ "trigger",
1090
+ "tokensBefore",
1091
+ "tokensAfter",
1092
+ "summaryEffectIds"
1093
+ ],
1094
+ "additionalProperties": false
1095
+ }
1096
+ },
1097
+ "required": [
1098
+ "kind",
1099
+ "keep",
1100
+ "entries",
1101
+ "length",
1102
+ "compaction"
1103
+ ],
1104
+ "additionalProperties": false
743
1105
  }
744
- },
745
- "required": [
746
- "keep",
747
- "entries",
748
- "length"
749
- ],
750
- "additionalProperties": false
1106
+ ]
751
1107
  }
752
1108
  },
753
1109
  "thrown": {
@@ -795,49 +1151,175 @@
795
1151
  },
796
1152
  "additionalProperties": {}
797
1153
  },
798
- "checkpoint": {
1154
+ "definition": {
1155
+ "type": "object",
1156
+ "properties": {
1157
+ "name": {
1158
+ "type": "string"
1159
+ },
1160
+ "version": {
1161
+ "type": "integer",
1162
+ "exclusiveMinimum": 0,
1163
+ "maximum": 9007199254740991
1164
+ }
1165
+ },
1166
+ "required": [
1167
+ "name",
1168
+ "version"
1169
+ ],
1170
+ "additionalProperties": false
1171
+ },
1172
+ "loop": {
799
1173
  "type": "object",
800
1174
  "propertyNames": {
801
1175
  "type": "string"
802
1176
  },
803
1177
  "additionalProperties": {}
804
1178
  },
805
- "sessionTools": {
806
- "readOnly": true,
807
- "type": "array",
808
- "items": {}
809
- },
810
- "outcomes": {
811
- "readOnly": true,
812
- "type": "array",
813
- "items": {
814
- "type": "object",
815
- "properties": {
816
- "effectId": {
817
- "type": "string",
818
- "minLength": 1,
819
- "maxLength": 512
820
- },
821
- "requestHash": {
822
- "type": "string"
823
- },
824
- "outcome": {
825
- "type": "object",
826
- "properties": {
827
- "value": {},
828
- "statePatch": {
829
- "type": "object",
830
- "propertyNames": {
831
- "type": "string"
832
- },
833
- "additionalProperties": {}
834
- }
835
- },
836
- "required": [
837
- "value"
838
- ],
839
- "additionalProperties": false
840
- }
1179
+ "memory": {
1180
+ "type": "object",
1181
+ "properties": {
1182
+ "access": {
1183
+ "type": "string",
1184
+ "enum": [
1185
+ "read_write",
1186
+ "read_only"
1187
+ ]
1188
+ },
1189
+ "instructions": {
1190
+ "type": "string"
1191
+ },
1192
+ "index": {
1193
+ "type": "string"
1194
+ },
1195
+ "truncated": {
1196
+ "type": "boolean"
1197
+ }
1198
+ },
1199
+ "required": [
1200
+ "access",
1201
+ "index",
1202
+ "truncated"
1203
+ ],
1204
+ "additionalProperties": false
1205
+ },
1206
+ "checkpoint": {
1207
+ "type": "object",
1208
+ "propertyNames": {
1209
+ "type": "string"
1210
+ },
1211
+ "additionalProperties": {}
1212
+ },
1213
+ "mcp": {
1214
+ "type": "object",
1215
+ "properties": {
1216
+ "servers": {
1217
+ "readOnly": true,
1218
+ "type": "array",
1219
+ "items": {
1220
+ "type": "object",
1221
+ "properties": {
1222
+ "agentId": {
1223
+ "type": "string"
1224
+ },
1225
+ "name": {
1226
+ "type": "string",
1227
+ "minLength": 1
1228
+ },
1229
+ "instructions": {
1230
+ "type": "string"
1231
+ },
1232
+ "tools": {
1233
+ "readOnly": true,
1234
+ "type": "array",
1235
+ "items": {
1236
+ "type": "object",
1237
+ "properties": {
1238
+ "name": {
1239
+ "type": "string",
1240
+ "minLength": 1
1241
+ },
1242
+ "description": {
1243
+ "type": "string"
1244
+ },
1245
+ "inputSchema": {
1246
+ "type": "object",
1247
+ "propertyNames": {
1248
+ "type": "string"
1249
+ },
1250
+ "additionalProperties": {}
1251
+ },
1252
+ "outputSchema": {
1253
+ "type": "object",
1254
+ "propertyNames": {
1255
+ "type": "string"
1256
+ },
1257
+ "additionalProperties": {}
1258
+ },
1259
+ "annotations": {
1260
+ "type": "object",
1261
+ "propertyNames": {
1262
+ "type": "string"
1263
+ },
1264
+ "additionalProperties": {}
1265
+ },
1266
+ "enabled": {
1267
+ "type": "boolean"
1268
+ },
1269
+ "deferred": {
1270
+ "type": "boolean"
1271
+ }
1272
+ },
1273
+ "required": [
1274
+ "name",
1275
+ "inputSchema",
1276
+ "enabled"
1277
+ ]
1278
+ }
1279
+ }
1280
+ },
1281
+ "required": [
1282
+ "name",
1283
+ "tools"
1284
+ ]
1285
+ }
1286
+ }
1287
+ },
1288
+ "required": [
1289
+ "servers"
1290
+ ]
1291
+ },
1292
+ "outcomes": {
1293
+ "readOnly": true,
1294
+ "type": "array",
1295
+ "items": {
1296
+ "type": "object",
1297
+ "properties": {
1298
+ "effectId": {
1299
+ "type": "string",
1300
+ "minLength": 1,
1301
+ "maxLength": 512
1302
+ },
1303
+ "requestHash": {
1304
+ "type": "string"
1305
+ },
1306
+ "outcome": {
1307
+ "type": "object",
1308
+ "properties": {
1309
+ "value": {},
1310
+ "statePatch": {
1311
+ "type": "object",
1312
+ "propertyNames": {
1313
+ "type": "string"
1314
+ },
1315
+ "additionalProperties": {}
1316
+ }
1317
+ },
1318
+ "required": [
1319
+ "value"
1320
+ ],
1321
+ "additionalProperties": false
1322
+ }
841
1323
  },
842
1324
  "required": [
843
1325
  "effectId",
@@ -896,104 +1378,6 @@
896
1378
  },
897
1379
  "additionalProperties": {}
898
1380
  },
899
- "mcpSnapshot": {
900
- "type": "object",
901
- "properties": {
902
- "snapshotSchemaVersion": {
903
- "type": "number",
904
- "const": 1
905
- },
906
- "manifestHash": {
907
- "type": "string"
908
- },
909
- "mcpTools": {
910
- "readOnly": true,
911
- "type": "array",
912
- "items": {
913
- "type": "object",
914
- "properties": {
915
- "agentId": {
916
- "type": "string"
917
- },
918
- "serverName": {
919
- "type": "string"
920
- },
921
- "serverToolName": {
922
- "type": "string"
923
- },
924
- "name": {
925
- "type": "string"
926
- },
927
- "description": {
928
- "type": "string"
929
- },
930
- "inputSchema": {
931
- "type": "object",
932
- "propertyNames": {
933
- "type": "string"
934
- },
935
- "additionalProperties": {}
936
- },
937
- "outputSchema": {
938
- "type": "object",
939
- "propertyNames": {
940
- "type": "string"
941
- },
942
- "additionalProperties": {}
943
- },
944
- "annotations": {
945
- "type": "object",
946
- "properties": {
947
- "readOnlyHint": {
948
- "type": "boolean"
949
- },
950
- "idempotentHint": {
951
- "type": "boolean"
952
- }
953
- }
954
- },
955
- "deferred": {
956
- "type": "boolean",
957
- "const": true
958
- }
959
- },
960
- "required": [
961
- "serverName",
962
- "serverToolName",
963
- "name",
964
- "inputSchema"
965
- ]
966
- }
967
- },
968
- "servers": {
969
- "readOnly": true,
970
- "type": "array",
971
- "items": {
972
- "type": "object",
973
- "properties": {
974
- "agentId": {
975
- "type": "string"
976
- },
977
- "serverName": {
978
- "type": "string"
979
- },
980
- "instructions": {
981
- "type": "string"
982
- }
983
- },
984
- "required": [
985
- "serverName",
986
- "instructions"
987
- ]
988
- }
989
- }
990
- },
991
- "required": [
992
- "snapshotSchemaVersion",
993
- "manifestHash",
994
- "mcpTools"
995
- ]
996
- },
997
1381
  "sandbox": {
998
1382
  "type": "object",
999
1383
  "properties": {
@@ -1045,70 +1429,208 @@
1045
1429
  "traceparent"
1046
1430
  ],
1047
1431
  "additionalProperties": false
1048
- }
1049
- },
1050
- "required": [
1051
- "type",
1052
- "engine",
1053
- "manifest",
1054
- "checkpoint",
1055
- "outcomes",
1056
- "transcript",
1057
- "options",
1058
- "routing"
1059
- ],
1060
- "additionalProperties": false
1061
- },
1062
- "GateErrorBody": {
1063
- "type": "object",
1064
- "properties": {
1065
- "error": {
1432
+ },
1433
+ "limits": {
1066
1434
  "type": "object",
1067
1435
  "properties": {
1068
- "code": {
1069
- "type": "string",
1070
- "enum": [
1071
- "gate_unauthorized",
1072
- "gate_forbidden",
1073
- "run_stale",
1074
- "invalid_request",
1075
- "gate_conflict",
1076
- "key_required",
1077
- "effect_not_journaled"
1078
- ]
1436
+ "recordEntryBytes": {
1437
+ "type": "integer",
1438
+ "exclusiveMinimum": 0,
1439
+ "maximum": 9007199254740991
1079
1440
  },
1080
- "message": {
1081
- "type": "string"
1441
+ "modelCallBytes": {
1442
+ "type": "integer",
1443
+ "exclusiveMinimum": 0,
1444
+ "maximum": 9007199254740991
1445
+ },
1446
+ "modelFileBytes": {
1447
+ "type": "integer",
1448
+ "exclusiveMinimum": 0,
1449
+ "maximum": 9007199254740991
1450
+ },
1451
+ "toolAnswerBytes": {
1452
+ "type": "integer",
1453
+ "exclusiveMinimum": 0,
1454
+ "maximum": 9007199254740991
1455
+ },
1456
+ "harnessStateBytes": {
1457
+ "type": "integer",
1458
+ "exclusiveMinimum": 0,
1459
+ "maximum": 9007199254740991
1460
+ },
1461
+ "chunkBytes": {
1462
+ "type": "integer",
1463
+ "exclusiveMinimum": 0,
1464
+ "maximum": 9007199254740991
1465
+ },
1466
+ "folderEntries": {
1467
+ "type": "integer",
1468
+ "exclusiveMinimum": 0,
1469
+ "maximum": 9007199254740991
1082
1470
  }
1083
1471
  },
1084
1472
  "required": [
1085
- "code",
1086
- "message"
1087
- ],
1088
- "additionalProperties": false
1089
- }
1090
- },
1091
- "required": [
1092
- "error"
1093
- ],
1094
- "additionalProperties": false
1095
- },
1096
- "HttpCallBody": {
1097
- "type": "object",
1098
- "properties": {
1099
- "tool": {
1100
- "anyOf": [
1101
- {
1102
- "type": "object",
1103
- "properties": {
1104
- "sessionId": {
1105
- "type": "string",
1106
- "minLength": 1
1107
- },
1108
- "agentId": {
1109
- "type": "string",
1110
- "minLength": 1
1111
- },
1473
+ "recordEntryBytes",
1474
+ "modelCallBytes",
1475
+ "modelFileBytes",
1476
+ "toolAnswerBytes",
1477
+ "harnessStateBytes",
1478
+ "chunkBytes",
1479
+ "folderEntries"
1480
+ ]
1481
+ },
1482
+ "model": {
1483
+ "type": "object",
1484
+ "properties": {
1485
+ "provider": {
1486
+ "type": "string",
1487
+ "minLength": 1
1488
+ },
1489
+ "id": {
1490
+ "type": "string",
1491
+ "minLength": 1
1492
+ },
1493
+ "inputs": {
1494
+ "minItems": 1,
1495
+ "type": "array",
1496
+ "items": {
1497
+ "type": "string",
1498
+ "enum": [
1499
+ "text",
1500
+ "image",
1501
+ "pdf",
1502
+ "office",
1503
+ "audio",
1504
+ "video"
1505
+ ]
1506
+ }
1507
+ },
1508
+ "contextWindow": {
1509
+ "type": "integer",
1510
+ "exclusiveMinimum": 0,
1511
+ "maximum": 9007199254740991
1512
+ },
1513
+ "maxOutputTokens": {
1514
+ "type": "integer",
1515
+ "exclusiveMinimum": 0,
1516
+ "maximum": 9007199254740991
1517
+ },
1518
+ "reasoning": {
1519
+ "type": "boolean"
1520
+ }
1521
+ },
1522
+ "required": [
1523
+ "provider",
1524
+ "id",
1525
+ "inputs",
1526
+ "contextWindow",
1527
+ "maxOutputTokens"
1528
+ ],
1529
+ "additionalProperties": false
1530
+ },
1531
+ "agent": {
1532
+ "type": "object",
1533
+ "properties": {
1534
+ "id": {
1535
+ "type": "string",
1536
+ "minLength": 1,
1537
+ "maxLength": 512
1538
+ },
1539
+ "kind": {
1540
+ "type": "string",
1541
+ "enum": [
1542
+ "virtual",
1543
+ "pod",
1544
+ "none"
1545
+ ]
1546
+ },
1547
+ "sandbox": {
1548
+ "type": "object",
1549
+ "properties": {
1550
+ "workspace": {
1551
+ "type": "string",
1552
+ "pattern": "^\\/"
1553
+ }
1554
+ },
1555
+ "required": [
1556
+ "workspace"
1557
+ ],
1558
+ "additionalProperties": false
1559
+ },
1560
+ "selfWake": {
1561
+ "type": "boolean"
1562
+ }
1563
+ },
1564
+ "required": [
1565
+ "id",
1566
+ "kind"
1567
+ ],
1568
+ "additionalProperties": false
1569
+ }
1570
+ },
1571
+ "required": [
1572
+ "type",
1573
+ "engine",
1574
+ "manifest",
1575
+ "checkpoint",
1576
+ "outcomes",
1577
+ "transcript",
1578
+ "options",
1579
+ "routing",
1580
+ "limits"
1581
+ ],
1582
+ "additionalProperties": false
1583
+ },
1584
+ "GateErrorBody": {
1585
+ "type": "object",
1586
+ "properties": {
1587
+ "error": {
1588
+ "type": "object",
1589
+ "properties": {
1590
+ "code": {
1591
+ "type": "string",
1592
+ "enum": [
1593
+ "gate_unauthorized",
1594
+ "gate_forbidden",
1595
+ "run_stale",
1596
+ "invalid_request",
1597
+ "gate_conflict",
1598
+ "key_required",
1599
+ "effect_not_journaled"
1600
+ ]
1601
+ },
1602
+ "message": {
1603
+ "type": "string"
1604
+ }
1605
+ },
1606
+ "required": [
1607
+ "code",
1608
+ "message"
1609
+ ],
1610
+ "additionalProperties": false
1611
+ }
1612
+ },
1613
+ "required": [
1614
+ "error"
1615
+ ],
1616
+ "additionalProperties": false
1617
+ },
1618
+ "HttpCallBody": {
1619
+ "type": "object",
1620
+ "properties": {
1621
+ "tool": {
1622
+ "anyOf": [
1623
+ {
1624
+ "type": "object",
1625
+ "properties": {
1626
+ "sessionId": {
1627
+ "type": "string",
1628
+ "minLength": 1
1629
+ },
1630
+ "agentId": {
1631
+ "type": "string",
1632
+ "minLength": 1
1633
+ },
1112
1634
  "toolName": {
1113
1635
  "type": "string",
1114
1636
  "minLength": 1
@@ -1326,51 +1848,107 @@
1326
1848
  "arguments"
1327
1849
  ]
1328
1850
  },
1329
- "McpServerNote": {
1851
+ "McpFacts": {
1330
1852
  "type": "object",
1331
1853
  "properties": {
1332
- "agentId": {
1333
- "type": "string"
1334
- },
1335
- "serverName": {
1336
- "type": "string"
1337
- },
1338
- "instructions": {
1339
- "type": "string"
1854
+ "servers": {
1855
+ "readOnly": true,
1856
+ "type": "array",
1857
+ "items": {
1858
+ "type": "object",
1859
+ "properties": {
1860
+ "agentId": {
1861
+ "type": "string"
1862
+ },
1863
+ "name": {
1864
+ "type": "string",
1865
+ "minLength": 1
1866
+ },
1867
+ "instructions": {
1868
+ "type": "string"
1869
+ },
1870
+ "tools": {
1871
+ "readOnly": true,
1872
+ "type": "array",
1873
+ "items": {
1874
+ "type": "object",
1875
+ "properties": {
1876
+ "name": {
1877
+ "type": "string",
1878
+ "minLength": 1
1879
+ },
1880
+ "description": {
1881
+ "type": "string"
1882
+ },
1883
+ "inputSchema": {
1884
+ "type": "object",
1885
+ "propertyNames": {
1886
+ "type": "string"
1887
+ },
1888
+ "additionalProperties": {}
1889
+ },
1890
+ "outputSchema": {
1891
+ "type": "object",
1892
+ "propertyNames": {
1893
+ "type": "string"
1894
+ },
1895
+ "additionalProperties": {}
1896
+ },
1897
+ "annotations": {
1898
+ "type": "object",
1899
+ "propertyNames": {
1900
+ "type": "string"
1901
+ },
1902
+ "additionalProperties": {}
1903
+ },
1904
+ "enabled": {
1905
+ "type": "boolean"
1906
+ },
1907
+ "deferred": {
1908
+ "type": "boolean"
1909
+ }
1910
+ },
1911
+ "required": [
1912
+ "name",
1913
+ "inputSchema",
1914
+ "enabled"
1915
+ ]
1916
+ }
1917
+ }
1918
+ },
1919
+ "required": [
1920
+ "name",
1921
+ "tools"
1922
+ ]
1923
+ }
1340
1924
  }
1341
1925
  },
1342
1926
  "required": [
1343
- "serverName",
1344
- "instructions"
1927
+ "servers"
1345
1928
  ]
1346
1929
  },
1347
- "McpSnapshot": {
1930
+ "McpServerFact": {
1348
1931
  "type": "object",
1349
1932
  "properties": {
1350
- "snapshotSchemaVersion": {
1351
- "type": "number",
1352
- "const": 1
1933
+ "agentId": {
1934
+ "type": "string"
1353
1935
  },
1354
- "manifestHash": {
1936
+ "name": {
1937
+ "type": "string",
1938
+ "minLength": 1
1939
+ },
1940
+ "instructions": {
1355
1941
  "type": "string"
1356
1942
  },
1357
- "mcpTools": {
1943
+ "tools": {
1358
1944
  "readOnly": true,
1359
1945
  "type": "array",
1360
1946
  "items": {
1361
1947
  "type": "object",
1362
1948
  "properties": {
1363
- "agentId": {
1364
- "type": "string"
1365
- },
1366
- "serverName": {
1367
- "type": "string"
1368
- },
1369
- "serverToolName": {
1370
- "type": "string"
1371
- },
1372
1949
  "name": {
1373
- "type": "string"
1950
+ "type": "string",
1951
+ "minLength": 1
1374
1952
  },
1375
1953
  "description": {
1376
1954
  "type": "string"
@@ -1391,79 +1969,186 @@
1391
1969
  },
1392
1970
  "annotations": {
1393
1971
  "type": "object",
1394
- "properties": {
1395
- "readOnlyHint": {
1396
- "type": "boolean"
1397
- },
1398
- "idempotentHint": {
1399
- "type": "boolean"
1400
- }
1401
- }
1972
+ "propertyNames": {
1973
+ "type": "string"
1974
+ },
1975
+ "additionalProperties": {}
1976
+ },
1977
+ "enabled": {
1978
+ "type": "boolean"
1402
1979
  },
1403
1980
  "deferred": {
1404
- "type": "boolean",
1405
- "const": true
1981
+ "type": "boolean"
1406
1982
  }
1407
1983
  },
1408
1984
  "required": [
1409
- "serverName",
1410
- "serverToolName",
1411
1985
  "name",
1412
- "inputSchema"
1413
- ]
1414
- }
1415
- },
1416
- "servers": {
1417
- "readOnly": true,
1418
- "type": "array",
1419
- "items": {
1420
- "type": "object",
1421
- "properties": {
1422
- "agentId": {
1423
- "type": "string"
1424
- },
1425
- "serverName": {
1426
- "type": "string"
1427
- },
1428
- "instructions": {
1429
- "type": "string"
1430
- }
1431
- },
1432
- "required": [
1433
- "serverName",
1434
- "instructions"
1986
+ "inputSchema",
1987
+ "enabled"
1435
1988
  ]
1436
1989
  }
1437
1990
  }
1438
1991
  },
1439
1992
  "required": [
1440
- "snapshotSchemaVersion",
1441
- "manifestHash",
1442
- "mcpTools"
1993
+ "name",
1994
+ "tools"
1443
1995
  ]
1444
1996
  },
1445
- "McpToolRecord": {
1997
+ "McpServerRecord": {
1446
1998
  "type": "object",
1447
1999
  "properties": {
1448
2000
  "agentId": {
1449
2001
  "type": "string"
1450
2002
  },
1451
- "serverName": {
1452
- "type": "string"
1453
- },
1454
- "serverToolName": {
1455
- "type": "string"
1456
- },
1457
2003
  "name": {
1458
- "type": "string"
2004
+ "type": "string",
2005
+ "minLength": 1
1459
2006
  },
1460
- "description": {
2007
+ "instructions": {
1461
2008
  "type": "string"
1462
2009
  },
1463
- "inputSchema": {
1464
- "type": "object",
1465
- "propertyNames": {
1466
- "type": "string"
2010
+ "tools": {
2011
+ "readOnly": true,
2012
+ "type": "array",
2013
+ "items": {
2014
+ "type": "object",
2015
+ "properties": {
2016
+ "name": {
2017
+ "type": "string",
2018
+ "minLength": 1
2019
+ },
2020
+ "description": {
2021
+ "type": "string"
2022
+ },
2023
+ "inputSchema": {
2024
+ "type": "object",
2025
+ "propertyNames": {
2026
+ "type": "string"
2027
+ },
2028
+ "additionalProperties": {}
2029
+ },
2030
+ "outputSchema": {
2031
+ "type": "object",
2032
+ "propertyNames": {
2033
+ "type": "string"
2034
+ },
2035
+ "additionalProperties": {}
2036
+ },
2037
+ "annotations": {
2038
+ "type": "object",
2039
+ "propertyNames": {
2040
+ "type": "string"
2041
+ },
2042
+ "additionalProperties": {}
2043
+ }
2044
+ },
2045
+ "required": [
2046
+ "name",
2047
+ "inputSchema"
2048
+ ]
2049
+ }
2050
+ }
2051
+ },
2052
+ "required": [
2053
+ "name",
2054
+ "tools"
2055
+ ]
2056
+ },
2057
+ "McpSnapshot": {
2058
+ "type": "object",
2059
+ "properties": {
2060
+ "snapshotSchemaVersion": {
2061
+ "type": "number",
2062
+ "const": 2
2063
+ },
2064
+ "manifestHash": {
2065
+ "type": "string"
2066
+ },
2067
+ "servers": {
2068
+ "readOnly": true,
2069
+ "type": "array",
2070
+ "items": {
2071
+ "type": "object",
2072
+ "properties": {
2073
+ "agentId": {
2074
+ "type": "string"
2075
+ },
2076
+ "name": {
2077
+ "type": "string",
2078
+ "minLength": 1
2079
+ },
2080
+ "instructions": {
2081
+ "type": "string"
2082
+ },
2083
+ "tools": {
2084
+ "readOnly": true,
2085
+ "type": "array",
2086
+ "items": {
2087
+ "type": "object",
2088
+ "properties": {
2089
+ "name": {
2090
+ "type": "string",
2091
+ "minLength": 1
2092
+ },
2093
+ "description": {
2094
+ "type": "string"
2095
+ },
2096
+ "inputSchema": {
2097
+ "type": "object",
2098
+ "propertyNames": {
2099
+ "type": "string"
2100
+ },
2101
+ "additionalProperties": {}
2102
+ },
2103
+ "outputSchema": {
2104
+ "type": "object",
2105
+ "propertyNames": {
2106
+ "type": "string"
2107
+ },
2108
+ "additionalProperties": {}
2109
+ },
2110
+ "annotations": {
2111
+ "type": "object",
2112
+ "propertyNames": {
2113
+ "type": "string"
2114
+ },
2115
+ "additionalProperties": {}
2116
+ }
2117
+ },
2118
+ "required": [
2119
+ "name",
2120
+ "inputSchema"
2121
+ ]
2122
+ }
2123
+ }
2124
+ },
2125
+ "required": [
2126
+ "name",
2127
+ "tools"
2128
+ ]
2129
+ }
2130
+ }
2131
+ },
2132
+ "required": [
2133
+ "snapshotSchemaVersion",
2134
+ "manifestHash",
2135
+ "servers"
2136
+ ]
2137
+ },
2138
+ "McpToolFact": {
2139
+ "type": "object",
2140
+ "properties": {
2141
+ "name": {
2142
+ "type": "string",
2143
+ "minLength": 1
2144
+ },
2145
+ "description": {
2146
+ "type": "string"
2147
+ },
2148
+ "inputSchema": {
2149
+ "type": "object",
2150
+ "propertyNames": {
2151
+ "type": "string"
1467
2152
  },
1468
2153
  "additionalProperties": {}
1469
2154
  },
@@ -1476,23 +2161,57 @@
1476
2161
  },
1477
2162
  "annotations": {
1478
2163
  "type": "object",
1479
- "properties": {
1480
- "readOnlyHint": {
1481
- "type": "boolean"
1482
- },
1483
- "idempotentHint": {
1484
- "type": "boolean"
1485
- }
1486
- }
2164
+ "propertyNames": {
2165
+ "type": "string"
2166
+ },
2167
+ "additionalProperties": {}
2168
+ },
2169
+ "enabled": {
2170
+ "type": "boolean"
1487
2171
  },
1488
2172
  "deferred": {
1489
- "type": "boolean",
1490
- "const": true
2173
+ "type": "boolean"
2174
+ }
2175
+ },
2176
+ "required": [
2177
+ "name",
2178
+ "inputSchema",
2179
+ "enabled"
2180
+ ]
2181
+ },
2182
+ "McpToolRecord": {
2183
+ "type": "object",
2184
+ "properties": {
2185
+ "name": {
2186
+ "type": "string",
2187
+ "minLength": 1
2188
+ },
2189
+ "description": {
2190
+ "type": "string"
2191
+ },
2192
+ "inputSchema": {
2193
+ "type": "object",
2194
+ "propertyNames": {
2195
+ "type": "string"
2196
+ },
2197
+ "additionalProperties": {}
2198
+ },
2199
+ "outputSchema": {
2200
+ "type": "object",
2201
+ "propertyNames": {
2202
+ "type": "string"
2203
+ },
2204
+ "additionalProperties": {}
2205
+ },
2206
+ "annotations": {
2207
+ "type": "object",
2208
+ "propertyNames": {
2209
+ "type": "string"
2210
+ },
2211
+ "additionalProperties": {}
1491
2212
  }
1492
2213
  },
1493
2214
  "required": [
1494
- "serverName",
1495
- "serverToolName",
1496
2215
  "name",
1497
2216
  "inputSchema"
1498
2217
  ]
@@ -2497,36 +3216,7 @@
2497
3216
  "features": {
2498
3217
  "type": "object",
2499
3218
  "properties": {
2500
- "workspace": {},
2501
- "tools": {
2502
- "maxItems": 64,
2503
- "type": "array",
2504
- "items": {
2505
- "type": "object",
2506
- "properties": {
2507
- "name": {
2508
- "type": "string",
2509
- "pattern": "^[A-Za-z_][A-Za-z0-9_-]{0,63}$"
2510
- },
2511
- "description": {
2512
- "type": "string",
2513
- "maxLength": 4096
2514
- },
2515
- "inputSchema": {
2516
- "type": "object",
2517
- "propertyNames": {
2518
- "type": "string"
2519
- },
2520
- "additionalProperties": {}
2521
- }
2522
- },
2523
- "required": [
2524
- "name",
2525
- "inputSchema"
2526
- ],
2527
- "additionalProperties": false
2528
- }
2529
- }
3219
+ "workspace": {}
2530
3220
  },
2531
3221
  "additionalProperties": false
2532
3222
  }
@@ -2544,7 +3234,7 @@
2544
3234
  "properties": {
2545
3235
  "api": {
2546
3236
  "type": "number",
2547
- "const": 3
3237
+ "const": 5
2548
3238
  },
2549
3239
  "tenantId": {
2550
3240
  "type": "string",
@@ -2656,76 +3346,202 @@
2656
3346
  },
2657
3347
  "additionalProperties": {}
2658
3348
  },
2659
- "checkpoint": {
2660
- "type": "object",
2661
- "propertyNames": {
2662
- "type": "string"
2663
- },
2664
- "additionalProperties": {}
2665
- },
2666
- "sessionTools": {
2667
- "readOnly": true,
2668
- "type": "array",
2669
- "items": {}
2670
- },
2671
- "outcomes": {
2672
- "readOnly": true,
2673
- "type": "array",
2674
- "items": {
2675
- "type": "object",
2676
- "properties": {
2677
- "effectId": {
2678
- "type": "string",
2679
- "minLength": 1,
2680
- "maxLength": 512
2681
- },
2682
- "requestHash": {
2683
- "type": "string"
2684
- },
2685
- "outcome": {
2686
- "type": "object",
2687
- "properties": {
2688
- "value": {},
2689
- "statePatch": {
2690
- "type": "object",
2691
- "propertyNames": {
2692
- "type": "string"
2693
- },
2694
- "additionalProperties": {}
2695
- }
2696
- },
2697
- "required": [
2698
- "value"
2699
- ],
2700
- "additionalProperties": false
2701
- }
2702
- },
2703
- "required": [
2704
- "effectId",
2705
- "requestHash",
2706
- "outcome"
2707
- ],
2708
- "additionalProperties": false
2709
- }
2710
- },
2711
- "transcript": {
3349
+ "definition": {
2712
3350
  "type": "object",
2713
3351
  "properties": {
2714
- "cursor": {
3352
+ "name": {
3353
+ "type": "string"
3354
+ },
3355
+ "version": {
2715
3356
  "type": "integer",
2716
- "minimum": -9007199254740991,
3357
+ "exclusiveMinimum": 0,
2717
3358
  "maximum": 9007199254740991
2718
3359
  }
2719
3360
  },
2720
3361
  "required": [
2721
- "cursor"
3362
+ "name",
3363
+ "version"
2722
3364
  ],
2723
3365
  "additionalProperties": false
2724
3366
  },
2725
- "options": {
3367
+ "loop": {
2726
3368
  "type": "object",
2727
- "properties": {
2728
- "yieldAfter": {
3369
+ "propertyNames": {
3370
+ "type": "string"
3371
+ },
3372
+ "additionalProperties": {}
3373
+ },
3374
+ "memory": {
3375
+ "type": "object",
3376
+ "properties": {
3377
+ "access": {
3378
+ "type": "string",
3379
+ "enum": [
3380
+ "read_write",
3381
+ "read_only"
3382
+ ]
3383
+ },
3384
+ "instructions": {
3385
+ "type": "string"
3386
+ },
3387
+ "index": {
3388
+ "type": "string"
3389
+ },
3390
+ "truncated": {
3391
+ "type": "boolean"
3392
+ }
3393
+ },
3394
+ "required": [
3395
+ "access",
3396
+ "index",
3397
+ "truncated"
3398
+ ],
3399
+ "additionalProperties": false
3400
+ },
3401
+ "checkpoint": {
3402
+ "type": "object",
3403
+ "propertyNames": {
3404
+ "type": "string"
3405
+ },
3406
+ "additionalProperties": {}
3407
+ },
3408
+ "mcp": {
3409
+ "type": "object",
3410
+ "properties": {
3411
+ "servers": {
3412
+ "readOnly": true,
3413
+ "type": "array",
3414
+ "items": {
3415
+ "type": "object",
3416
+ "properties": {
3417
+ "agentId": {
3418
+ "type": "string"
3419
+ },
3420
+ "name": {
3421
+ "type": "string",
3422
+ "minLength": 1
3423
+ },
3424
+ "instructions": {
3425
+ "type": "string"
3426
+ },
3427
+ "tools": {
3428
+ "readOnly": true,
3429
+ "type": "array",
3430
+ "items": {
3431
+ "type": "object",
3432
+ "properties": {
3433
+ "name": {
3434
+ "type": "string",
3435
+ "minLength": 1
3436
+ },
3437
+ "description": {
3438
+ "type": "string"
3439
+ },
3440
+ "inputSchema": {
3441
+ "type": "object",
3442
+ "propertyNames": {
3443
+ "type": "string"
3444
+ },
3445
+ "additionalProperties": {}
3446
+ },
3447
+ "outputSchema": {
3448
+ "type": "object",
3449
+ "propertyNames": {
3450
+ "type": "string"
3451
+ },
3452
+ "additionalProperties": {}
3453
+ },
3454
+ "annotations": {
3455
+ "type": "object",
3456
+ "propertyNames": {
3457
+ "type": "string"
3458
+ },
3459
+ "additionalProperties": {}
3460
+ },
3461
+ "enabled": {
3462
+ "type": "boolean"
3463
+ },
3464
+ "deferred": {
3465
+ "type": "boolean"
3466
+ }
3467
+ },
3468
+ "required": [
3469
+ "name",
3470
+ "inputSchema",
3471
+ "enabled"
3472
+ ]
3473
+ }
3474
+ }
3475
+ },
3476
+ "required": [
3477
+ "name",
3478
+ "tools"
3479
+ ]
3480
+ }
3481
+ }
3482
+ },
3483
+ "required": [
3484
+ "servers"
3485
+ ]
3486
+ },
3487
+ "outcomes": {
3488
+ "readOnly": true,
3489
+ "type": "array",
3490
+ "items": {
3491
+ "type": "object",
3492
+ "properties": {
3493
+ "effectId": {
3494
+ "type": "string",
3495
+ "minLength": 1,
3496
+ "maxLength": 512
3497
+ },
3498
+ "requestHash": {
3499
+ "type": "string"
3500
+ },
3501
+ "outcome": {
3502
+ "type": "object",
3503
+ "properties": {
3504
+ "value": {},
3505
+ "statePatch": {
3506
+ "type": "object",
3507
+ "propertyNames": {
3508
+ "type": "string"
3509
+ },
3510
+ "additionalProperties": {}
3511
+ }
3512
+ },
3513
+ "required": [
3514
+ "value"
3515
+ ],
3516
+ "additionalProperties": false
3517
+ }
3518
+ },
3519
+ "required": [
3520
+ "effectId",
3521
+ "requestHash",
3522
+ "outcome"
3523
+ ],
3524
+ "additionalProperties": false
3525
+ }
3526
+ },
3527
+ "transcript": {
3528
+ "type": "object",
3529
+ "properties": {
3530
+ "cursor": {
3531
+ "type": "integer",
3532
+ "minimum": -9007199254740991,
3533
+ "maximum": 9007199254740991
3534
+ }
3535
+ },
3536
+ "required": [
3537
+ "cursor"
3538
+ ],
3539
+ "additionalProperties": false
3540
+ },
3541
+ "options": {
3542
+ "type": "object",
3543
+ "properties": {
3544
+ "yieldAfter": {
2729
3545
  "type": "object",
2730
3546
  "properties": {
2731
3547
  "steps": {
@@ -2757,104 +3573,6 @@
2757
3573
  },
2758
3574
  "additionalProperties": {}
2759
3575
  },
2760
- "mcpSnapshot": {
2761
- "type": "object",
2762
- "properties": {
2763
- "snapshotSchemaVersion": {
2764
- "type": "number",
2765
- "const": 1
2766
- },
2767
- "manifestHash": {
2768
- "type": "string"
2769
- },
2770
- "mcpTools": {
2771
- "readOnly": true,
2772
- "type": "array",
2773
- "items": {
2774
- "type": "object",
2775
- "properties": {
2776
- "agentId": {
2777
- "type": "string"
2778
- },
2779
- "serverName": {
2780
- "type": "string"
2781
- },
2782
- "serverToolName": {
2783
- "type": "string"
2784
- },
2785
- "name": {
2786
- "type": "string"
2787
- },
2788
- "description": {
2789
- "type": "string"
2790
- },
2791
- "inputSchema": {
2792
- "type": "object",
2793
- "propertyNames": {
2794
- "type": "string"
2795
- },
2796
- "additionalProperties": {}
2797
- },
2798
- "outputSchema": {
2799
- "type": "object",
2800
- "propertyNames": {
2801
- "type": "string"
2802
- },
2803
- "additionalProperties": {}
2804
- },
2805
- "annotations": {
2806
- "type": "object",
2807
- "properties": {
2808
- "readOnlyHint": {
2809
- "type": "boolean"
2810
- },
2811
- "idempotentHint": {
2812
- "type": "boolean"
2813
- }
2814
- }
2815
- },
2816
- "deferred": {
2817
- "type": "boolean",
2818
- "const": true
2819
- }
2820
- },
2821
- "required": [
2822
- "serverName",
2823
- "serverToolName",
2824
- "name",
2825
- "inputSchema"
2826
- ]
2827
- }
2828
- },
2829
- "servers": {
2830
- "readOnly": true,
2831
- "type": "array",
2832
- "items": {
2833
- "type": "object",
2834
- "properties": {
2835
- "agentId": {
2836
- "type": "string"
2837
- },
2838
- "serverName": {
2839
- "type": "string"
2840
- },
2841
- "instructions": {
2842
- "type": "string"
2843
- }
2844
- },
2845
- "required": [
2846
- "serverName",
2847
- "instructions"
2848
- ]
2849
- }
2850
- }
2851
- },
2852
- "required": [
2853
- "snapshotSchemaVersion",
2854
- "manifestHash",
2855
- "mcpTools"
2856
- ]
2857
- },
2858
3576
  "sandbox": {
2859
3577
  "type": "object",
2860
3578
  "properties": {
@@ -2906,73 +3624,211 @@
2906
3624
  "traceparent"
2907
3625
  ],
2908
3626
  "additionalProperties": false
2909
- }
2910
- },
2911
- "required": [
2912
- "type",
2913
- "engine",
2914
- "manifest",
2915
- "checkpoint",
2916
- "outcomes",
2917
- "transcript",
2918
- "options",
2919
- "routing"
2920
- ],
2921
- "additionalProperties": false
2922
- }
2923
- },
2924
- "required": [
2925
- "run",
2926
- "input"
2927
- ],
2928
- "additionalProperties": false
2929
- },
2930
- "lease.renew.params": {
2931
- "type": "object",
2932
- "properties": {
2933
- "runId": {
2934
- "type": "string",
2935
- "minLength": 1,
2936
- "maxLength": 512
2937
- }
2938
- },
2939
- "required": [
2940
- "runId"
2941
- ],
2942
- "additionalProperties": false
2943
- },
2944
- "lease.renew.result": {
2945
- "anyOf": [
2946
- {
2947
- "type": "object",
2948
- "properties": {
2949
- "ok": {
2950
- "type": "boolean",
2951
- "const": true
2952
- },
2953
- "token": {
2954
- "type": "string"
2955
3627
  },
2956
- "tokenExpiresAt": {
2957
- "type": "string"
2958
- }
2959
- },
2960
- "required": [
2961
- "ok"
2962
- ],
2963
- "additionalProperties": false
2964
- },
2965
- {
2966
- "type": "object",
2967
- "properties": {
2968
- "ok": {
2969
- "type": "boolean",
2970
- "const": false
2971
- }
2972
- },
2973
- "required": [
2974
- "ok"
2975
- ],
3628
+ "limits": {
3629
+ "type": "object",
3630
+ "properties": {
3631
+ "recordEntryBytes": {
3632
+ "type": "integer",
3633
+ "exclusiveMinimum": 0,
3634
+ "maximum": 9007199254740991
3635
+ },
3636
+ "modelCallBytes": {
3637
+ "type": "integer",
3638
+ "exclusiveMinimum": 0,
3639
+ "maximum": 9007199254740991
3640
+ },
3641
+ "modelFileBytes": {
3642
+ "type": "integer",
3643
+ "exclusiveMinimum": 0,
3644
+ "maximum": 9007199254740991
3645
+ },
3646
+ "toolAnswerBytes": {
3647
+ "type": "integer",
3648
+ "exclusiveMinimum": 0,
3649
+ "maximum": 9007199254740991
3650
+ },
3651
+ "harnessStateBytes": {
3652
+ "type": "integer",
3653
+ "exclusiveMinimum": 0,
3654
+ "maximum": 9007199254740991
3655
+ },
3656
+ "chunkBytes": {
3657
+ "type": "integer",
3658
+ "exclusiveMinimum": 0,
3659
+ "maximum": 9007199254740991
3660
+ },
3661
+ "folderEntries": {
3662
+ "type": "integer",
3663
+ "exclusiveMinimum": 0,
3664
+ "maximum": 9007199254740991
3665
+ }
3666
+ },
3667
+ "required": [
3668
+ "recordEntryBytes",
3669
+ "modelCallBytes",
3670
+ "modelFileBytes",
3671
+ "toolAnswerBytes",
3672
+ "harnessStateBytes",
3673
+ "chunkBytes",
3674
+ "folderEntries"
3675
+ ]
3676
+ },
3677
+ "model": {
3678
+ "type": "object",
3679
+ "properties": {
3680
+ "provider": {
3681
+ "type": "string",
3682
+ "minLength": 1
3683
+ },
3684
+ "id": {
3685
+ "type": "string",
3686
+ "minLength": 1
3687
+ },
3688
+ "inputs": {
3689
+ "minItems": 1,
3690
+ "type": "array",
3691
+ "items": {
3692
+ "type": "string",
3693
+ "enum": [
3694
+ "text",
3695
+ "image",
3696
+ "pdf",
3697
+ "office",
3698
+ "audio",
3699
+ "video"
3700
+ ]
3701
+ }
3702
+ },
3703
+ "contextWindow": {
3704
+ "type": "integer",
3705
+ "exclusiveMinimum": 0,
3706
+ "maximum": 9007199254740991
3707
+ },
3708
+ "maxOutputTokens": {
3709
+ "type": "integer",
3710
+ "exclusiveMinimum": 0,
3711
+ "maximum": 9007199254740991
3712
+ },
3713
+ "reasoning": {
3714
+ "type": "boolean"
3715
+ }
3716
+ },
3717
+ "required": [
3718
+ "provider",
3719
+ "id",
3720
+ "inputs",
3721
+ "contextWindow",
3722
+ "maxOutputTokens"
3723
+ ],
3724
+ "additionalProperties": false
3725
+ },
3726
+ "agent": {
3727
+ "type": "object",
3728
+ "properties": {
3729
+ "id": {
3730
+ "type": "string",
3731
+ "minLength": 1,
3732
+ "maxLength": 512
3733
+ },
3734
+ "kind": {
3735
+ "type": "string",
3736
+ "enum": [
3737
+ "virtual",
3738
+ "pod",
3739
+ "none"
3740
+ ]
3741
+ },
3742
+ "sandbox": {
3743
+ "type": "object",
3744
+ "properties": {
3745
+ "workspace": {
3746
+ "type": "string",
3747
+ "pattern": "^\\/"
3748
+ }
3749
+ },
3750
+ "required": [
3751
+ "workspace"
3752
+ ],
3753
+ "additionalProperties": false
3754
+ },
3755
+ "selfWake": {
3756
+ "type": "boolean"
3757
+ }
3758
+ },
3759
+ "required": [
3760
+ "id",
3761
+ "kind"
3762
+ ],
3763
+ "additionalProperties": false
3764
+ }
3765
+ },
3766
+ "required": [
3767
+ "type",
3768
+ "engine",
3769
+ "manifest",
3770
+ "checkpoint",
3771
+ "outcomes",
3772
+ "transcript",
3773
+ "options",
3774
+ "routing",
3775
+ "limits"
3776
+ ],
3777
+ "additionalProperties": false
3778
+ }
3779
+ },
3780
+ "required": [
3781
+ "run",
3782
+ "input"
3783
+ ],
3784
+ "additionalProperties": false
3785
+ },
3786
+ "lease.renew.params": {
3787
+ "type": "object",
3788
+ "properties": {
3789
+ "runId": {
3790
+ "type": "string",
3791
+ "minLength": 1,
3792
+ "maxLength": 512
3793
+ }
3794
+ },
3795
+ "required": [
3796
+ "runId"
3797
+ ],
3798
+ "additionalProperties": false
3799
+ },
3800
+ "lease.renew.result": {
3801
+ "anyOf": [
3802
+ {
3803
+ "type": "object",
3804
+ "properties": {
3805
+ "ok": {
3806
+ "type": "boolean",
3807
+ "const": true
3808
+ },
3809
+ "token": {
3810
+ "type": "string"
3811
+ },
3812
+ "tokenExpiresAt": {
3813
+ "type": "string"
3814
+ }
3815
+ },
3816
+ "required": [
3817
+ "ok"
3818
+ ],
3819
+ "additionalProperties": false
3820
+ },
3821
+ {
3822
+ "type": "object",
3823
+ "properties": {
3824
+ "ok": {
3825
+ "type": "boolean",
3826
+ "const": false
3827
+ }
3828
+ },
3829
+ "required": [
3830
+ "ok"
3831
+ ],
2976
3832
  "additionalProperties": false
2977
3833
  }
2978
3834
  ]
@@ -3070,6 +3926,106 @@
3070
3926
  "toolName": {
3071
3927
  "type": "string"
3072
3928
  },
3929
+ "target": {
3930
+ "oneOf": [
3931
+ {
3932
+ "type": "object",
3933
+ "properties": {
3934
+ "kind": {
3935
+ "type": "string",
3936
+ "const": "mcp"
3937
+ },
3938
+ "server": {
3939
+ "type": "string",
3940
+ "minLength": 1
3941
+ },
3942
+ "tool": {
3943
+ "type": "string",
3944
+ "minLength": 1
3945
+ }
3946
+ },
3947
+ "required": [
3948
+ "kind",
3949
+ "server",
3950
+ "tool"
3951
+ ],
3952
+ "additionalProperties": false
3953
+ },
3954
+ {
3955
+ "type": "object",
3956
+ "properties": {
3957
+ "kind": {
3958
+ "type": "string",
3959
+ "const": "http"
3960
+ },
3961
+ "tool": {
3962
+ "type": "string",
3963
+ "minLength": 1
3964
+ }
3965
+ },
3966
+ "required": [
3967
+ "kind",
3968
+ "tool"
3969
+ ],
3970
+ "additionalProperties": false
3971
+ },
3972
+ {
3973
+ "type": "object",
3974
+ "properties": {
3975
+ "kind": {
3976
+ "type": "string",
3977
+ "const": "sandbox"
3978
+ }
3979
+ },
3980
+ "required": [
3981
+ "kind"
3982
+ ],
3983
+ "additionalProperties": false
3984
+ },
3985
+ {
3986
+ "type": "object",
3987
+ "properties": {
3988
+ "kind": {
3989
+ "type": "string",
3990
+ "const": "harness"
3991
+ }
3992
+ },
3993
+ "required": [
3994
+ "kind"
3995
+ ],
3996
+ "additionalProperties": false
3997
+ },
3998
+ {
3999
+ "type": "object",
4000
+ "properties": {
4001
+ "kind": {
4002
+ "type": "string",
4003
+ "const": "runtime"
4004
+ },
4005
+ "operation": {
4006
+ "type": "string",
4007
+ "enum": [
4008
+ "schedule_wake",
4009
+ "memory"
4010
+ ]
4011
+ }
4012
+ },
4013
+ "required": [
4014
+ "kind",
4015
+ "operation"
4016
+ ],
4017
+ "additionalProperties": false
4018
+ }
4019
+ ]
4020
+ },
4021
+ "skill": {
4022
+ "type": "string",
4023
+ "minLength": 1
4024
+ },
4025
+ "purpose": {
4026
+ "type": "string",
4027
+ "const": "summary"
4028
+ },
3073
4029
  "path": {
3074
4030
  "type": "string"
3075
4031
  },
@@ -3343,7 +4299,9 @@
3343
4299
  "type": "string",
3344
4300
  "enum": [
3345
4301
  "environment.state",
3346
- "environment.exec"
4302
+ "environment.exec",
4303
+ "artifact.export.skipped",
4304
+ "artifact.export.failed"
3347
4305
  ]
3348
4306
  },
3349
4307
  "payload": {},
@@ -3424,12 +4382,12 @@
3424
4382
  "properties": {
3425
4383
  "snapshotSchemaVersion": {
3426
4384
  "type": "number",
3427
- "const": 1
4385
+ "const": 2
3428
4386
  },
3429
4387
  "manifestHash": {
3430
4388
  "type": "string"
3431
4389
  },
3432
- "mcpTools": {
4390
+ "servers": {
3433
4391
  "readOnly": true,
3434
4392
  "type": "array",
3435
4393
  "items": {
@@ -3438,56 +4396,85 @@
3438
4396
  "agentId": {
3439
4397
  "type": "string"
3440
4398
  },
3441
- "serverName": {
3442
- "type": "string"
3443
- },
3444
- "serverToolName": {
3445
- "type": "string"
3446
- },
3447
4399
  "name": {
3448
- "type": "string"
4400
+ "type": "string",
4401
+ "minLength": 1
3449
4402
  },
3450
- "description": {
4403
+ "instructions": {
3451
4404
  "type": "string"
3452
4405
  },
3453
- "inputSchema": {
3454
- "type": "object",
3455
- "propertyNames": {
3456
- "type": "string"
3457
- },
3458
- "additionalProperties": {}
3459
- },
3460
- "outputSchema": {
3461
- "type": "object",
3462
- "propertyNames": {
3463
- "type": "string"
3464
- },
3465
- "additionalProperties": {}
3466
- },
3467
- "annotations": {
3468
- "type": "object",
3469
- "properties": {
3470
- "readOnlyHint": {
3471
- "type": "boolean"
4406
+ "tools": {
4407
+ "readOnly": true,
4408
+ "type": "array",
4409
+ "items": {
4410
+ "type": "object",
4411
+ "properties": {
4412
+ "name": {
4413
+ "type": "string",
4414
+ "minLength": 1
4415
+ },
4416
+ "description": {
4417
+ "type": "string"
4418
+ },
4419
+ "inputSchema": {
4420
+ "type": "object",
4421
+ "propertyNames": {
4422
+ "type": "string"
4423
+ },
4424
+ "additionalProperties": {}
4425
+ },
4426
+ "outputSchema": {
4427
+ "type": "object",
4428
+ "propertyNames": {
4429
+ "type": "string"
4430
+ },
4431
+ "additionalProperties": {}
4432
+ },
4433
+ "annotations": {
4434
+ "type": "object",
4435
+ "propertyNames": {
4436
+ "type": "string"
4437
+ },
4438
+ "additionalProperties": {}
4439
+ }
3472
4440
  },
3473
- "idempotentHint": {
3474
- "type": "boolean"
3475
- }
4441
+ "required": [
4442
+ "name",
4443
+ "inputSchema"
4444
+ ]
3476
4445
  }
3477
- },
3478
- "deferred": {
3479
- "type": "boolean",
3480
- "const": true
3481
4446
  }
3482
4447
  },
3483
4448
  "required": [
3484
- "serverName",
3485
- "serverToolName",
3486
4449
  "name",
3487
- "inputSchema"
4450
+ "tools"
3488
4451
  ]
3489
4452
  }
3490
- },
4453
+ }
4454
+ },
4455
+ "required": [
4456
+ "snapshotSchemaVersion",
4457
+ "manifestHash",
4458
+ "servers"
4459
+ ]
4460
+ },
4461
+ "diagnostics": {
4462
+ "type": "array",
4463
+ "items": {}
4464
+ }
4465
+ },
4466
+ "required": [
4467
+ "runId",
4468
+ "diagnostics"
4469
+ ],
4470
+ "additionalProperties": false
4471
+ },
4472
+ "session.mcp.result": {
4473
+ "type": "object",
4474
+ "properties": {
4475
+ "mcp": {
4476
+ "type": "object",
4477
+ "properties": {
3491
4478
  "servers": {
3492
4479
  "readOnly": true,
3493
4480
  "type": "array",
@@ -3497,178 +4484,626 @@
3497
4484
  "agentId": {
3498
4485
  "type": "string"
3499
4486
  },
3500
- "serverName": {
3501
- "type": "string"
4487
+ "name": {
4488
+ "type": "string",
4489
+ "minLength": 1
3502
4490
  },
3503
4491
  "instructions": {
3504
4492
  "type": "string"
4493
+ },
4494
+ "tools": {
4495
+ "readOnly": true,
4496
+ "type": "array",
4497
+ "items": {
4498
+ "type": "object",
4499
+ "properties": {
4500
+ "name": {
4501
+ "type": "string",
4502
+ "minLength": 1
4503
+ },
4504
+ "description": {
4505
+ "type": "string"
4506
+ },
4507
+ "inputSchema": {
4508
+ "type": "object",
4509
+ "propertyNames": {
4510
+ "type": "string"
4511
+ },
4512
+ "additionalProperties": {}
4513
+ },
4514
+ "outputSchema": {
4515
+ "type": "object",
4516
+ "propertyNames": {
4517
+ "type": "string"
4518
+ },
4519
+ "additionalProperties": {}
4520
+ },
4521
+ "annotations": {
4522
+ "type": "object",
4523
+ "propertyNames": {
4524
+ "type": "string"
4525
+ },
4526
+ "additionalProperties": {}
4527
+ },
4528
+ "enabled": {
4529
+ "type": "boolean"
4530
+ },
4531
+ "deferred": {
4532
+ "type": "boolean"
4533
+ }
4534
+ },
4535
+ "required": [
4536
+ "name",
4537
+ "inputSchema",
4538
+ "enabled"
4539
+ ]
4540
+ }
3505
4541
  }
3506
4542
  },
3507
4543
  "required": [
3508
- "serverName",
3509
- "instructions"
4544
+ "name",
4545
+ "tools"
3510
4546
  ]
3511
4547
  }
3512
4548
  }
3513
4549
  },
3514
4550
  "required": [
3515
- "snapshotSchemaVersion",
3516
- "manifestHash",
3517
- "mcpTools"
3518
- ]
4551
+ "servers"
4552
+ ]
4553
+ }
4554
+ },
4555
+ "additionalProperties": false
4556
+ },
4557
+ "definition.file.params": {
4558
+ "type": "object",
4559
+ "properties": {
4560
+ "runId": {
4561
+ "type": "string",
4562
+ "minLength": 1,
4563
+ "maxLength": 512
4564
+ },
4565
+ "sha256": {
4566
+ "type": "string",
4567
+ "pattern": "^sha256:[0-9a-f]{64}$"
4568
+ },
4569
+ "offset": {
4570
+ "type": "integer",
4571
+ "minimum": 0,
4572
+ "maximum": 9007199254740991
4573
+ },
4574
+ "length": {
4575
+ "type": "integer",
4576
+ "exclusiveMinimum": 0,
4577
+ "maximum": 50266112
4578
+ }
4579
+ },
4580
+ "required": [
4581
+ "runId",
4582
+ "sha256"
4583
+ ],
4584
+ "additionalProperties": false
4585
+ },
4586
+ "definition.file.result": {
4587
+ "type": "object",
4588
+ "properties": {
4589
+ "base64": {
4590
+ "type": "string"
4591
+ }
4592
+ },
4593
+ "required": [
4594
+ "base64"
4595
+ ],
4596
+ "additionalProperties": false
4597
+ },
4598
+ "artifact.read.params": {
4599
+ "type": "object",
4600
+ "properties": {
4601
+ "runId": {
4602
+ "type": "string",
4603
+ "minLength": 1,
4604
+ "maxLength": 512
4605
+ },
4606
+ "artifactId": {
4607
+ "type": "string",
4608
+ "minLength": 1,
4609
+ "maxLength": 512
4610
+ },
4611
+ "version": {
4612
+ "type": "integer",
4613
+ "minimum": 1,
4614
+ "maximum": 9007199254740991
4615
+ },
4616
+ "offset": {
4617
+ "type": "integer",
4618
+ "minimum": 0,
4619
+ "maximum": 9007199254740991
4620
+ },
4621
+ "length": {
4622
+ "type": "integer",
4623
+ "minimum": 0,
4624
+ "maximum": 9007199254740991
4625
+ }
4626
+ },
4627
+ "required": [
4628
+ "runId",
4629
+ "artifactId"
4630
+ ],
4631
+ "additionalProperties": false
4632
+ },
4633
+ "artifact.read.result": {
4634
+ "type": "object",
4635
+ "properties": {
4636
+ "artifact": {
4637
+ "type": "object",
4638
+ "properties": {
4639
+ "artifactId": {
4640
+ "type": "string",
4641
+ "minLength": 1,
4642
+ "maxLength": 512
4643
+ },
4644
+ "kind": {
4645
+ "type": "string",
4646
+ "enum": [
4647
+ "file",
4648
+ "folder"
4649
+ ]
4650
+ },
4651
+ "name": {
4652
+ "type": "string"
4653
+ },
4654
+ "version": {
4655
+ "type": "integer",
4656
+ "minimum": 1,
4657
+ "maximum": 9007199254740991
4658
+ },
4659
+ "contentType": {
4660
+ "type": "string"
4661
+ },
4662
+ "size": {
4663
+ "type": "integer",
4664
+ "minimum": 0,
4665
+ "maximum": 9007199254740991
4666
+ },
4667
+ "sha256": {
4668
+ "type": "string",
4669
+ "pattern": "^[0-9a-f]{64}$"
4670
+ },
4671
+ "tenantWide": {
4672
+ "type": "boolean"
4673
+ }
4674
+ },
4675
+ "required": [
4676
+ "artifactId",
4677
+ "kind",
4678
+ "name",
4679
+ "version",
4680
+ "contentType",
4681
+ "size",
4682
+ "sha256",
4683
+ "tenantWide"
4684
+ ],
4685
+ "additionalProperties": false
4686
+ },
4687
+ "offset": {
4688
+ "type": "integer",
4689
+ "minimum": 0,
4690
+ "maximum": 9007199254740991
4691
+ },
4692
+ "base64": {
4693
+ "type": "string"
4694
+ },
4695
+ "eof": {
4696
+ "type": "boolean"
4697
+ }
4698
+ },
4699
+ "required": [
4700
+ "artifact",
4701
+ "offset",
4702
+ "base64",
4703
+ "eof"
4704
+ ],
4705
+ "additionalProperties": false
4706
+ },
4707
+ "artifact.write.params": {
4708
+ "anyOf": [
4709
+ {
4710
+ "type": "object",
4711
+ "properties": {
4712
+ "runId": {
4713
+ "type": "string",
4714
+ "minLength": 1,
4715
+ "maxLength": 512
4716
+ },
4717
+ "op": {
4718
+ "type": "string",
4719
+ "const": "begin"
4720
+ },
4721
+ "key": {
4722
+ "type": "string",
4723
+ "minLength": 1,
4724
+ "maxLength": 512
4725
+ },
4726
+ "artifactId": {
4727
+ "type": "string",
4728
+ "minLength": 1,
4729
+ "maxLength": 512
4730
+ },
4731
+ "name": {
4732
+ "type": "string",
4733
+ "minLength": 1,
4734
+ "maxLength": 255
4735
+ },
4736
+ "contentType": {
4737
+ "type": "string",
4738
+ "minLength": 1
4739
+ },
4740
+ "size": {
4741
+ "type": "integer",
4742
+ "minimum": 0,
4743
+ "maximum": 9007199254740991
4744
+ },
4745
+ "effectId": {
4746
+ "type": "string",
4747
+ "minLength": 1,
4748
+ "maxLength": 512
4749
+ },
4750
+ "base64": {
4751
+ "type": "string"
4752
+ }
4753
+ },
4754
+ "required": [
4755
+ "runId",
4756
+ "op",
4757
+ "key"
4758
+ ],
4759
+ "additionalProperties": false
4760
+ },
4761
+ {
4762
+ "type": "object",
4763
+ "properties": {
4764
+ "runId": {
4765
+ "type": "string",
4766
+ "minLength": 1,
4767
+ "maxLength": 512
4768
+ },
4769
+ "op": {
4770
+ "type": "string",
4771
+ "const": "begin"
4772
+ },
4773
+ "kind": {
4774
+ "type": "string",
4775
+ "const": "folder"
4776
+ },
4777
+ "key": {
4778
+ "type": "string",
4779
+ "minLength": 1,
4780
+ "maxLength": 512
4781
+ },
4782
+ "name": {
4783
+ "type": "string",
4784
+ "minLength": 1,
4785
+ "maxLength": 255
4786
+ },
4787
+ "artifactId": {
4788
+ "type": "string",
4789
+ "minLength": 1,
4790
+ "maxLength": 512
4791
+ },
4792
+ "sameName": {
4793
+ "type": "boolean",
4794
+ "const": true
4795
+ }
4796
+ },
4797
+ "required": [
4798
+ "runId",
4799
+ "op",
4800
+ "kind",
4801
+ "key",
4802
+ "name"
4803
+ ],
4804
+ "additionalProperties": false
4805
+ },
4806
+ {
4807
+ "type": "object",
4808
+ "properties": {
4809
+ "runId": {
4810
+ "type": "string",
4811
+ "minLength": 1,
4812
+ "maxLength": 512
4813
+ },
4814
+ "op": {
4815
+ "type": "string",
4816
+ "const": "file"
4817
+ },
4818
+ "uploadId": {
4819
+ "type": "string",
4820
+ "minLength": 1,
4821
+ "maxLength": 512
4822
+ },
4823
+ "path": {
4824
+ "type": "string",
4825
+ "minLength": 1
4826
+ },
4827
+ "size": {
4828
+ "type": "integer",
4829
+ "minimum": 0,
4830
+ "maximum": 9007199254740991
4831
+ },
4832
+ "sha256": {
4833
+ "type": "string",
4834
+ "pattern": "^[0-9a-f]{64}$"
4835
+ },
4836
+ "contentType": {
4837
+ "type": "string",
4838
+ "minLength": 1
4839
+ },
4840
+ "base64": {
4841
+ "type": "string"
4842
+ }
4843
+ },
4844
+ "required": [
4845
+ "runId",
4846
+ "op",
4847
+ "uploadId",
4848
+ "path",
4849
+ "size",
4850
+ "sha256"
4851
+ ],
4852
+ "additionalProperties": false
4853
+ },
4854
+ {
4855
+ "type": "object",
4856
+ "properties": {
4857
+ "runId": {
4858
+ "type": "string",
4859
+ "minLength": 1,
4860
+ "maxLength": 512
4861
+ },
4862
+ "op": {
4863
+ "type": "string",
4864
+ "const": "chunk"
4865
+ },
4866
+ "uploadId": {
4867
+ "type": "string",
4868
+ "minLength": 1,
4869
+ "maxLength": 512
4870
+ },
4871
+ "sha256": {
4872
+ "type": "string",
4873
+ "pattern": "^[0-9a-f]{64}$"
4874
+ },
4875
+ "offset": {
4876
+ "type": "integer",
4877
+ "minimum": 0,
4878
+ "maximum": 9007199254740991
4879
+ },
4880
+ "base64": {
4881
+ "type": "string",
4882
+ "minLength": 1
4883
+ }
4884
+ },
4885
+ "required": [
4886
+ "runId",
4887
+ "op",
4888
+ "uploadId",
4889
+ "offset",
4890
+ "base64"
4891
+ ],
4892
+ "additionalProperties": false
4893
+ },
4894
+ {
4895
+ "type": "object",
4896
+ "properties": {
4897
+ "runId": {
4898
+ "type": "string",
4899
+ "minLength": 1,
4900
+ "maxLength": 512
4901
+ },
4902
+ "op": {
4903
+ "type": "string",
4904
+ "const": "commit"
4905
+ },
4906
+ "uploadId": {
4907
+ "type": "string",
4908
+ "minLength": 1,
4909
+ "maxLength": 512
4910
+ }
4911
+ },
4912
+ "required": [
4913
+ "runId",
4914
+ "op",
4915
+ "uploadId"
4916
+ ],
4917
+ "additionalProperties": false
4918
+ },
4919
+ {
4920
+ "type": "object",
4921
+ "properties": {
4922
+ "runId": {
4923
+ "type": "string",
4924
+ "minLength": 1,
4925
+ "maxLength": 512
4926
+ },
4927
+ "op": {
4928
+ "type": "string",
4929
+ "const": "abort"
4930
+ },
4931
+ "uploadId": {
4932
+ "type": "string",
4933
+ "minLength": 1,
4934
+ "maxLength": 512
4935
+ }
4936
+ },
4937
+ "required": [
4938
+ "runId",
4939
+ "op",
4940
+ "uploadId"
4941
+ ],
4942
+ "additionalProperties": false
4943
+ }
4944
+ ]
4945
+ },
4946
+ "artifact.write.result": {
4947
+ "anyOf": [
4948
+ {
4949
+ "type": "object",
4950
+ "properties": {
4951
+ "status": {
4952
+ "type": "string",
4953
+ "const": "open"
4954
+ },
4955
+ "uploadId": {
4956
+ "type": "string",
4957
+ "minLength": 1,
4958
+ "maxLength": 512
4959
+ },
4960
+ "maxBytes": {
4961
+ "type": "integer",
4962
+ "minimum": 0,
4963
+ "maximum": 9007199254740991
4964
+ },
4965
+ "maxFileBytes": {
4966
+ "type": "integer",
4967
+ "minimum": 0,
4968
+ "maximum": 9007199254740991
4969
+ },
4970
+ "maxEntries": {
4971
+ "type": "integer",
4972
+ "exclusiveMinimum": 0,
4973
+ "maximum": 9007199254740991
4974
+ },
4975
+ "received": {
4976
+ "type": "integer",
4977
+ "minimum": 0,
4978
+ "maximum": 9007199254740991
4979
+ }
4980
+ },
4981
+ "required": [
4982
+ "status",
4983
+ "uploadId",
4984
+ "maxBytes",
4985
+ "received"
4986
+ ],
4987
+ "additionalProperties": false
4988
+ },
4989
+ {
4990
+ "type": "object",
4991
+ "properties": {
4992
+ "status": {
4993
+ "type": "string",
4994
+ "const": "written"
4995
+ },
4996
+ "artifact": {
4997
+ "type": "object",
4998
+ "properties": {
4999
+ "artifactId": {
5000
+ "type": "string",
5001
+ "minLength": 1,
5002
+ "maxLength": 512
5003
+ },
5004
+ "kind": {
5005
+ "type": "string",
5006
+ "enum": [
5007
+ "file",
5008
+ "folder"
5009
+ ]
5010
+ },
5011
+ "name": {
5012
+ "type": "string"
5013
+ },
5014
+ "version": {
5015
+ "type": "integer",
5016
+ "minimum": 1,
5017
+ "maximum": 9007199254740991
5018
+ },
5019
+ "contentType": {
5020
+ "type": "string"
5021
+ },
5022
+ "size": {
5023
+ "type": "integer",
5024
+ "minimum": 0,
5025
+ "maximum": 9007199254740991
5026
+ },
5027
+ "sha256": {
5028
+ "type": "string",
5029
+ "pattern": "^[0-9a-f]{64}$"
5030
+ },
5031
+ "tenantWide": {
5032
+ "type": "boolean"
5033
+ }
5034
+ },
5035
+ "required": [
5036
+ "artifactId",
5037
+ "kind",
5038
+ "name",
5039
+ "version",
5040
+ "contentType",
5041
+ "size",
5042
+ "sha256",
5043
+ "tenantWide"
5044
+ ],
5045
+ "additionalProperties": false
5046
+ },
5047
+ "created": {
5048
+ "type": "boolean"
5049
+ },
5050
+ "unchanged": {
5051
+ "type": "boolean",
5052
+ "const": true
5053
+ }
5054
+ },
5055
+ "required": [
5056
+ "status",
5057
+ "artifact",
5058
+ "created"
5059
+ ],
5060
+ "additionalProperties": false
3519
5061
  },
3520
- "diagnostics": {
3521
- "type": "array",
3522
- "items": {}
3523
- }
3524
- },
3525
- "required": [
3526
- "runId",
3527
- "diagnostics"
3528
- ],
3529
- "additionalProperties": false
3530
- },
3531
- "session.mcp.result": {
3532
- "type": "object",
3533
- "properties": {
3534
- "snapshot": {
5062
+ {
3535
5063
  "type": "object",
3536
5064
  "properties": {
3537
- "snapshotSchemaVersion": {
3538
- "type": "number",
3539
- "const": 1
5065
+ "status": {
5066
+ "type": "string",
5067
+ "const": "refused"
3540
5068
  },
3541
- "manifestHash": {
3542
- "type": "string"
5069
+ "reason": {
5070
+ "type": "string",
5071
+ "enum": [
5072
+ "tenant_total",
5073
+ "environment_total"
5074
+ ]
3543
5075
  },
3544
- "mcpTools": {
3545
- "readOnly": true,
3546
- "type": "array",
3547
- "items": {
3548
- "type": "object",
3549
- "properties": {
3550
- "agentId": {
3551
- "type": "string"
3552
- },
3553
- "serverName": {
3554
- "type": "string"
3555
- },
3556
- "serverToolName": {
3557
- "type": "string"
3558
- },
3559
- "name": {
3560
- "type": "string"
3561
- },
3562
- "description": {
3563
- "type": "string"
3564
- },
3565
- "inputSchema": {
3566
- "type": "object",
3567
- "propertyNames": {
3568
- "type": "string"
3569
- },
3570
- "additionalProperties": {}
3571
- },
3572
- "outputSchema": {
3573
- "type": "object",
3574
- "propertyNames": {
3575
- "type": "string"
3576
- },
3577
- "additionalProperties": {}
3578
- },
3579
- "annotations": {
3580
- "type": "object",
3581
- "properties": {
3582
- "readOnlyHint": {
3583
- "type": "boolean"
3584
- },
3585
- "idempotentHint": {
3586
- "type": "boolean"
3587
- }
3588
- }
3589
- },
3590
- "deferred": {
3591
- "type": "boolean",
3592
- "const": true
3593
- }
3594
- },
3595
- "required": [
3596
- "serverName",
3597
- "serverToolName",
3598
- "name",
3599
- "inputSchema"
3600
- ]
3601
- }
5076
+ "message": {
5077
+ "type": "string"
3602
5078
  },
3603
- "servers": {
3604
- "readOnly": true,
3605
- "type": "array",
3606
- "items": {
3607
- "type": "object",
3608
- "properties": {
3609
- "agentId": {
3610
- "type": "string"
3611
- },
3612
- "serverName": {
3613
- "type": "string"
3614
- },
3615
- "instructions": {
3616
- "type": "string"
3617
- }
3618
- },
3619
- "required": [
3620
- "serverName",
3621
- "instructions"
3622
- ]
3623
- }
5079
+ "limit": {
5080
+ "type": "integer",
5081
+ "minimum": 0,
5082
+ "maximum": 9007199254740991
3624
5083
  }
3625
5084
  },
3626
5085
  "required": [
3627
- "snapshotSchemaVersion",
3628
- "manifestHash",
3629
- "mcpTools"
3630
- ]
3631
- },
3632
- "sessionTools": {
3633
- "type": "array",
3634
- "items": {}
3635
- }
3636
- },
3637
- "required": [
3638
- "sessionTools"
3639
- ],
3640
- "additionalProperties": false
3641
- },
3642
- "definition.file.params": {
3643
- "type": "object",
3644
- "properties": {
3645
- "runId": {
3646
- "type": "string",
3647
- "minLength": 1,
3648
- "maxLength": 512
5086
+ "status",
5087
+ "reason",
5088
+ "message",
5089
+ "limit"
5090
+ ],
5091
+ "additionalProperties": false
3649
5092
  },
3650
- "sha256": {
3651
- "type": "string",
3652
- "pattern": "^sha256:[0-9a-f]{64}$"
3653
- }
3654
- },
3655
- "required": [
3656
- "runId",
3657
- "sha256"
3658
- ],
3659
- "additionalProperties": false
3660
- },
3661
- "definition.file.result": {
3662
- "type": "object",
3663
- "properties": {
3664
- "base64": {
3665
- "type": "string"
5093
+ {
5094
+ "type": "object",
5095
+ "properties": {
5096
+ "status": {
5097
+ "type": "string",
5098
+ "const": "aborted"
5099
+ }
5100
+ },
5101
+ "required": [
5102
+ "status"
5103
+ ],
5104
+ "additionalProperties": false
3666
5105
  }
3667
- },
3668
- "required": [
3669
- "base64"
3670
- ],
3671
- "additionalProperties": false
5106
+ ]
3672
5107
  },
3673
5108
  "turn.completed.params": {
3674
5109
  "type": "object",
@@ -3712,29 +5147,102 @@
3712
5147
  "readOnly": true,
3713
5148
  "type": "array",
3714
5149
  "items": {
3715
- "type": "object",
3716
- "properties": {
3717
- "keep": {
3718
- "type": "integer",
3719
- "minimum": 0,
3720
- "maximum": 9007199254740991
3721
- },
3722
- "entries": {
3723
- "type": "array",
3724
- "items": {}
5150
+ "anyOf": [
5151
+ {
5152
+ "type": "object",
5153
+ "properties": {
5154
+ "keep": {
5155
+ "type": "integer",
5156
+ "minimum": 0,
5157
+ "maximum": 9007199254740991
5158
+ },
5159
+ "entries": {
5160
+ "type": "array",
5161
+ "items": {}
5162
+ },
5163
+ "length": {
5164
+ "type": "integer",
5165
+ "minimum": 0,
5166
+ "maximum": 9007199254740991
5167
+ }
5168
+ },
5169
+ "required": [
5170
+ "keep",
5171
+ "entries",
5172
+ "length"
5173
+ ],
5174
+ "additionalProperties": false
3725
5175
  },
3726
- "length": {
3727
- "type": "integer",
3728
- "minimum": 0,
3729
- "maximum": 9007199254740991
5176
+ {
5177
+ "type": "object",
5178
+ "properties": {
5179
+ "kind": {
5180
+ "type": "string",
5181
+ "const": "compaction"
5182
+ },
5183
+ "keep": {
5184
+ "type": "integer",
5185
+ "minimum": 0,
5186
+ "maximum": 9007199254740991
5187
+ },
5188
+ "entries": {
5189
+ "type": "array",
5190
+ "items": {}
5191
+ },
5192
+ "length": {
5193
+ "type": "integer",
5194
+ "minimum": 0,
5195
+ "maximum": 9007199254740991
5196
+ },
5197
+ "compaction": {
5198
+ "type": "object",
5199
+ "properties": {
5200
+ "trigger": {
5201
+ "type": "string",
5202
+ "enum": [
5203
+ "threshold",
5204
+ "overflow"
5205
+ ]
5206
+ },
5207
+ "tokensBefore": {
5208
+ "type": "integer",
5209
+ "minimum": 0,
5210
+ "maximum": 9007199254740991
5211
+ },
5212
+ "tokensAfter": {
5213
+ "type": "integer",
5214
+ "minimum": 0,
5215
+ "maximum": 9007199254740991
5216
+ },
5217
+ "summaryEffectIds": {
5218
+ "minItems": 1,
5219
+ "type": "array",
5220
+ "items": {
5221
+ "type": "string",
5222
+ "minLength": 1,
5223
+ "maxLength": 512
5224
+ }
5225
+ }
5226
+ },
5227
+ "required": [
5228
+ "trigger",
5229
+ "tokensBefore",
5230
+ "tokensAfter",
5231
+ "summaryEffectIds"
5232
+ ],
5233
+ "additionalProperties": false
5234
+ }
5235
+ },
5236
+ "required": [
5237
+ "kind",
5238
+ "keep",
5239
+ "entries",
5240
+ "length",
5241
+ "compaction"
5242
+ ],
5243
+ "additionalProperties": false
3730
5244
  }
3731
- },
3732
- "required": [
3733
- "keep",
3734
- "entries",
3735
- "length"
3736
- ],
3737
- "additionalProperties": false
5245
+ ]
3738
5246
  }
3739
5247
  },
3740
5248
  "thrown": {
@@ -3811,29 +5319,102 @@
3811
5319
  "readOnly": true,
3812
5320
  "type": "array",
3813
5321
  "items": {
3814
- "type": "object",
3815
- "properties": {
3816
- "keep": {
3817
- "type": "integer",
3818
- "minimum": 0,
3819
- "maximum": 9007199254740991
3820
- },
3821
- "entries": {
3822
- "type": "array",
3823
- "items": {}
5322
+ "anyOf": [
5323
+ {
5324
+ "type": "object",
5325
+ "properties": {
5326
+ "keep": {
5327
+ "type": "integer",
5328
+ "minimum": 0,
5329
+ "maximum": 9007199254740991
5330
+ },
5331
+ "entries": {
5332
+ "type": "array",
5333
+ "items": {}
5334
+ },
5335
+ "length": {
5336
+ "type": "integer",
5337
+ "minimum": 0,
5338
+ "maximum": 9007199254740991
5339
+ }
5340
+ },
5341
+ "required": [
5342
+ "keep",
5343
+ "entries",
5344
+ "length"
5345
+ ],
5346
+ "additionalProperties": false
3824
5347
  },
3825
- "length": {
3826
- "type": "integer",
3827
- "minimum": 0,
3828
- "maximum": 9007199254740991
5348
+ {
5349
+ "type": "object",
5350
+ "properties": {
5351
+ "kind": {
5352
+ "type": "string",
5353
+ "const": "compaction"
5354
+ },
5355
+ "keep": {
5356
+ "type": "integer",
5357
+ "minimum": 0,
5358
+ "maximum": 9007199254740991
5359
+ },
5360
+ "entries": {
5361
+ "type": "array",
5362
+ "items": {}
5363
+ },
5364
+ "length": {
5365
+ "type": "integer",
5366
+ "minimum": 0,
5367
+ "maximum": 9007199254740991
5368
+ },
5369
+ "compaction": {
5370
+ "type": "object",
5371
+ "properties": {
5372
+ "trigger": {
5373
+ "type": "string",
5374
+ "enum": [
5375
+ "threshold",
5376
+ "overflow"
5377
+ ]
5378
+ },
5379
+ "tokensBefore": {
5380
+ "type": "integer",
5381
+ "minimum": 0,
5382
+ "maximum": 9007199254740991
5383
+ },
5384
+ "tokensAfter": {
5385
+ "type": "integer",
5386
+ "minimum": 0,
5387
+ "maximum": 9007199254740991
5388
+ },
5389
+ "summaryEffectIds": {
5390
+ "minItems": 1,
5391
+ "type": "array",
5392
+ "items": {
5393
+ "type": "string",
5394
+ "minLength": 1,
5395
+ "maxLength": 512
5396
+ }
5397
+ }
5398
+ },
5399
+ "required": [
5400
+ "trigger",
5401
+ "tokensBefore",
5402
+ "tokensAfter",
5403
+ "summaryEffectIds"
5404
+ ],
5405
+ "additionalProperties": false
5406
+ }
5407
+ },
5408
+ "required": [
5409
+ "kind",
5410
+ "keep",
5411
+ "entries",
5412
+ "length",
5413
+ "compaction"
5414
+ ],
5415
+ "additionalProperties": false
3829
5416
  }
3830
- },
3831
- "required": [
3832
- "keep",
3833
- "entries",
3834
- "length"
3835
- ],
3836
- "additionalProperties": false
5417
+ ]
3837
5418
  }
3838
5419
  },
3839
5420
  "thrown": {
@@ -3910,29 +5491,102 @@
3910
5491
  "readOnly": true,
3911
5492
  "type": "array",
3912
5493
  "items": {
3913
- "type": "object",
3914
- "properties": {
3915
- "keep": {
3916
- "type": "integer",
3917
- "minimum": 0,
3918
- "maximum": 9007199254740991
3919
- },
3920
- "entries": {
3921
- "type": "array",
3922
- "items": {}
5494
+ "anyOf": [
5495
+ {
5496
+ "type": "object",
5497
+ "properties": {
5498
+ "keep": {
5499
+ "type": "integer",
5500
+ "minimum": 0,
5501
+ "maximum": 9007199254740991
5502
+ },
5503
+ "entries": {
5504
+ "type": "array",
5505
+ "items": {}
5506
+ },
5507
+ "length": {
5508
+ "type": "integer",
5509
+ "minimum": 0,
5510
+ "maximum": 9007199254740991
5511
+ }
5512
+ },
5513
+ "required": [
5514
+ "keep",
5515
+ "entries",
5516
+ "length"
5517
+ ],
5518
+ "additionalProperties": false
3923
5519
  },
3924
- "length": {
3925
- "type": "integer",
3926
- "minimum": 0,
3927
- "maximum": 9007199254740991
5520
+ {
5521
+ "type": "object",
5522
+ "properties": {
5523
+ "kind": {
5524
+ "type": "string",
5525
+ "const": "compaction"
5526
+ },
5527
+ "keep": {
5528
+ "type": "integer",
5529
+ "minimum": 0,
5530
+ "maximum": 9007199254740991
5531
+ },
5532
+ "entries": {
5533
+ "type": "array",
5534
+ "items": {}
5535
+ },
5536
+ "length": {
5537
+ "type": "integer",
5538
+ "minimum": 0,
5539
+ "maximum": 9007199254740991
5540
+ },
5541
+ "compaction": {
5542
+ "type": "object",
5543
+ "properties": {
5544
+ "trigger": {
5545
+ "type": "string",
5546
+ "enum": [
5547
+ "threshold",
5548
+ "overflow"
5549
+ ]
5550
+ },
5551
+ "tokensBefore": {
5552
+ "type": "integer",
5553
+ "minimum": 0,
5554
+ "maximum": 9007199254740991
5555
+ },
5556
+ "tokensAfter": {
5557
+ "type": "integer",
5558
+ "minimum": 0,
5559
+ "maximum": 9007199254740991
5560
+ },
5561
+ "summaryEffectIds": {
5562
+ "minItems": 1,
5563
+ "type": "array",
5564
+ "items": {
5565
+ "type": "string",
5566
+ "minLength": 1,
5567
+ "maxLength": 512
5568
+ }
5569
+ }
5570
+ },
5571
+ "required": [
5572
+ "trigger",
5573
+ "tokensBefore",
5574
+ "tokensAfter",
5575
+ "summaryEffectIds"
5576
+ ],
5577
+ "additionalProperties": false
5578
+ }
5579
+ },
5580
+ "required": [
5581
+ "kind",
5582
+ "keep",
5583
+ "entries",
5584
+ "length",
5585
+ "compaction"
5586
+ ],
5587
+ "additionalProperties": false
3928
5588
  }
3929
- },
3930
- "required": [
3931
- "keep",
3932
- "entries",
3933
- "length"
3934
- ],
3935
- "additionalProperties": false
5589
+ ]
3936
5590
  }
3937
5591
  },
3938
5592
  "thrown": {
@@ -4009,29 +5663,102 @@
4009
5663
  "readOnly": true,
4010
5664
  "type": "array",
4011
5665
  "items": {
4012
- "type": "object",
4013
- "properties": {
4014
- "keep": {
4015
- "type": "integer",
4016
- "minimum": 0,
4017
- "maximum": 9007199254740991
4018
- },
4019
- "entries": {
4020
- "type": "array",
4021
- "items": {}
5666
+ "anyOf": [
5667
+ {
5668
+ "type": "object",
5669
+ "properties": {
5670
+ "keep": {
5671
+ "type": "integer",
5672
+ "minimum": 0,
5673
+ "maximum": 9007199254740991
5674
+ },
5675
+ "entries": {
5676
+ "type": "array",
5677
+ "items": {}
5678
+ },
5679
+ "length": {
5680
+ "type": "integer",
5681
+ "minimum": 0,
5682
+ "maximum": 9007199254740991
5683
+ }
5684
+ },
5685
+ "required": [
5686
+ "keep",
5687
+ "entries",
5688
+ "length"
5689
+ ],
5690
+ "additionalProperties": false
4022
5691
  },
4023
- "length": {
4024
- "type": "integer",
4025
- "minimum": 0,
4026
- "maximum": 9007199254740991
5692
+ {
5693
+ "type": "object",
5694
+ "properties": {
5695
+ "kind": {
5696
+ "type": "string",
5697
+ "const": "compaction"
5698
+ },
5699
+ "keep": {
5700
+ "type": "integer",
5701
+ "minimum": 0,
5702
+ "maximum": 9007199254740991
5703
+ },
5704
+ "entries": {
5705
+ "type": "array",
5706
+ "items": {}
5707
+ },
5708
+ "length": {
5709
+ "type": "integer",
5710
+ "minimum": 0,
5711
+ "maximum": 9007199254740991
5712
+ },
5713
+ "compaction": {
5714
+ "type": "object",
5715
+ "properties": {
5716
+ "trigger": {
5717
+ "type": "string",
5718
+ "enum": [
5719
+ "threshold",
5720
+ "overflow"
5721
+ ]
5722
+ },
5723
+ "tokensBefore": {
5724
+ "type": "integer",
5725
+ "minimum": 0,
5726
+ "maximum": 9007199254740991
5727
+ },
5728
+ "tokensAfter": {
5729
+ "type": "integer",
5730
+ "minimum": 0,
5731
+ "maximum": 9007199254740991
5732
+ },
5733
+ "summaryEffectIds": {
5734
+ "minItems": 1,
5735
+ "type": "array",
5736
+ "items": {
5737
+ "type": "string",
5738
+ "minLength": 1,
5739
+ "maxLength": 512
5740
+ }
5741
+ }
5742
+ },
5743
+ "required": [
5744
+ "trigger",
5745
+ "tokensBefore",
5746
+ "tokensAfter",
5747
+ "summaryEffectIds"
5748
+ ],
5749
+ "additionalProperties": false
5750
+ }
5751
+ },
5752
+ "required": [
5753
+ "kind",
5754
+ "keep",
5755
+ "entries",
5756
+ "length",
5757
+ "compaction"
5758
+ ],
5759
+ "additionalProperties": false
4027
5760
  }
4028
- },
4029
- "required": [
4030
- "keep",
4031
- "entries",
4032
- "length"
4033
- ],
4034
- "additionalProperties": false
5761
+ ]
4035
5762
  }
4036
5763
  },
4037
5764
  "thrown": {
@@ -4108,29 +5835,102 @@
4108
5835
  "readOnly": true,
4109
5836
  "type": "array",
4110
5837
  "items": {
4111
- "type": "object",
4112
- "properties": {
4113
- "keep": {
4114
- "type": "integer",
4115
- "minimum": 0,
4116
- "maximum": 9007199254740991
4117
- },
4118
- "entries": {
4119
- "type": "array",
4120
- "items": {}
5838
+ "anyOf": [
5839
+ {
5840
+ "type": "object",
5841
+ "properties": {
5842
+ "keep": {
5843
+ "type": "integer",
5844
+ "minimum": 0,
5845
+ "maximum": 9007199254740991
5846
+ },
5847
+ "entries": {
5848
+ "type": "array",
5849
+ "items": {}
5850
+ },
5851
+ "length": {
5852
+ "type": "integer",
5853
+ "minimum": 0,
5854
+ "maximum": 9007199254740991
5855
+ }
5856
+ },
5857
+ "required": [
5858
+ "keep",
5859
+ "entries",
5860
+ "length"
5861
+ ],
5862
+ "additionalProperties": false
4121
5863
  },
4122
- "length": {
4123
- "type": "integer",
4124
- "minimum": 0,
4125
- "maximum": 9007199254740991
5864
+ {
5865
+ "type": "object",
5866
+ "properties": {
5867
+ "kind": {
5868
+ "type": "string",
5869
+ "const": "compaction"
5870
+ },
5871
+ "keep": {
5872
+ "type": "integer",
5873
+ "minimum": 0,
5874
+ "maximum": 9007199254740991
5875
+ },
5876
+ "entries": {
5877
+ "type": "array",
5878
+ "items": {}
5879
+ },
5880
+ "length": {
5881
+ "type": "integer",
5882
+ "minimum": 0,
5883
+ "maximum": 9007199254740991
5884
+ },
5885
+ "compaction": {
5886
+ "type": "object",
5887
+ "properties": {
5888
+ "trigger": {
5889
+ "type": "string",
5890
+ "enum": [
5891
+ "threshold",
5892
+ "overflow"
5893
+ ]
5894
+ },
5895
+ "tokensBefore": {
5896
+ "type": "integer",
5897
+ "minimum": 0,
5898
+ "maximum": 9007199254740991
5899
+ },
5900
+ "tokensAfter": {
5901
+ "type": "integer",
5902
+ "minimum": 0,
5903
+ "maximum": 9007199254740991
5904
+ },
5905
+ "summaryEffectIds": {
5906
+ "minItems": 1,
5907
+ "type": "array",
5908
+ "items": {
5909
+ "type": "string",
5910
+ "minLength": 1,
5911
+ "maxLength": 512
5912
+ }
5913
+ }
5914
+ },
5915
+ "required": [
5916
+ "trigger",
5917
+ "tokensBefore",
5918
+ "tokensAfter",
5919
+ "summaryEffectIds"
5920
+ ],
5921
+ "additionalProperties": false
5922
+ }
5923
+ },
5924
+ "required": [
5925
+ "kind",
5926
+ "keep",
5927
+ "entries",
5928
+ "length",
5929
+ "compaction"
5930
+ ],
5931
+ "additionalProperties": false
4126
5932
  }
4127
- },
4128
- "required": [
4129
- "keep",
4130
- "entries",
4131
- "length"
4132
- ],
4133
- "additionalProperties": false
5933
+ ]
4134
5934
  }
4135
5935
  },
4136
5936
  "thrown": {
@@ -4224,132 +6024,6 @@
4224
6024
  ],
4225
6025
  "additionalProperties": false
4226
6026
  },
4227
- {
4228
- "type": "object",
4229
- "properties": {
4230
- "session": {
4231
- "type": "object",
4232
- "properties": {
4233
- "ownerId": {
4234
- "type": "string",
4235
- "minLength": 1,
4236
- "maxLength": 512
4237
- },
4238
- "environmentId": {
4239
- "type": "string",
4240
- "minLength": 1,
4241
- "maxLength": 512
4242
- },
4243
- "activeTurnId": {
4244
- "anyOf": [
4245
- {
4246
- "type": "string",
4247
- "minLength": 1,
4248
- "maxLength": 512
4249
- },
4250
- {
4251
- "type": "null"
4252
- }
4253
- ]
4254
- }
4255
- },
4256
- "required": [
4257
- "ownerId",
4258
- "activeTurnId"
4259
- ],
4260
- "additionalProperties": false
4261
- },
4262
- "spec": {},
4263
- "bytes": {
4264
- "type": "object",
4265
- "properties": {
4266
- "path": {
4267
- "type": "string",
4268
- "minLength": 1
4269
- },
4270
- "maxBytes": {
4271
- "type": "integer",
4272
- "exclusiveMinimum": 0,
4273
- "maximum": 9007199254740991
4274
- }
4275
- },
4276
- "required": [
4277
- "path",
4278
- "maxBytes"
4279
- ],
4280
- "additionalProperties": false
4281
- }
4282
- },
4283
- "required": [
4284
- "session",
4285
- "spec",
4286
- "bytes"
4287
- ],
4288
- "additionalProperties": false
4289
- },
4290
- {
4291
- "type": "object",
4292
- "properties": {
4293
- "session": {
4294
- "type": "object",
4295
- "properties": {
4296
- "ownerId": {
4297
- "type": "string",
4298
- "minLength": 1,
4299
- "maxLength": 512
4300
- },
4301
- "environmentId": {
4302
- "type": "string",
4303
- "minLength": 1,
4304
- "maxLength": 512
4305
- },
4306
- "activeTurnId": {
4307
- "anyOf": [
4308
- {
4309
- "type": "string",
4310
- "minLength": 1,
4311
- "maxLength": 512
4312
- },
4313
- {
4314
- "type": "null"
4315
- }
4316
- ]
4317
- }
4318
- },
4319
- "required": [
4320
- "ownerId",
4321
- "activeTurnId"
4322
- ],
4323
- "additionalProperties": false
4324
- },
4325
- "spec": {},
4326
- "list": {
4327
- "type": "object",
4328
- "properties": {
4329
- "dir": {
4330
- "type": "string",
4331
- "minLength": 1
4332
- },
4333
- "maxEntries": {
4334
- "type": "integer",
4335
- "exclusiveMinimum": 0,
4336
- "maximum": 9007199254740991
4337
- }
4338
- },
4339
- "required": [
4340
- "dir",
4341
- "maxEntries"
4342
- ],
4343
- "additionalProperties": false
4344
- }
4345
- },
4346
- "required": [
4347
- "session",
4348
- "spec",
4349
- "list"
4350
- ],
4351
- "additionalProperties": false
4352
- },
4353
6027
  {
4354
6028
  "type": "object",
4355
6029
  "properties": {
@@ -4429,7 +6103,7 @@
4429
6103
  "length": {
4430
6104
  "type": "integer",
4431
6105
  "exclusiveMinimum": 0,
4432
- "maximum": 16777216
6106
+ "maximum": 50266112
4433
6107
  }
4434
6108
  },
4435
6109
  "required": [
@@ -4667,7 +6341,7 @@
4667
6341
  "length": {
4668
6342
  "type": "integer",
4669
6343
  "exclusiveMinimum": 0,
4670
- "maximum": 16777216
6344
+ "maximum": 50266112
4671
6345
  }
4672
6346
  },
4673
6347
  "required": [