@claudexor/schema 4.1.1 → 4.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/dist/account-routing-evidence.d.ts +5823 -0
  2. package/dist/account-routing-evidence.d.ts.map +1 -0
  3. package/dist/account-routing-evidence.js +49 -0
  4. package/dist/account-routing-evidence.js.map +1 -0
  5. package/dist/control-operation-responses.d.ts +271 -0
  6. package/dist/control-operation-responses.d.ts.map +1 -1
  7. package/dist/control-run-detail.d.ts +755 -0
  8. package/dist/control-run-detail.d.ts.map +1 -1
  9. package/dist/control-run-failure.d.ts +258 -0
  10. package/dist/control-run-failure.d.ts.map +1 -1
  11. package/dist/control-run-failure.js +55 -0
  12. package/dist/control-run-failure.js.map +1 -1
  13. package/dist/control.d.ts +213 -0
  14. package/dist/control.d.ts.map +1 -1
  15. package/dist/index.d.ts +1 -0
  16. package/dist/index.d.ts.map +1 -1
  17. package/dist/index.js +1 -0
  18. package/dist/index.js.map +1 -1
  19. package/dist/mcp-run-result.d.ts +426 -0
  20. package/dist/mcp-run-result.d.ts.map +1 -1
  21. package/dist/run-continuation.d.ts +3 -0
  22. package/dist/run-continuation.d.ts.map +1 -1
  23. package/dist/run-continuation.js +4 -0
  24. package/dist/run-continuation.js.map +1 -1
  25. package/generated/ControlAccountRoutingEvidenceResponse.schema.json +101 -0
  26. package/generated/ControlRunDetail.schema.json +162 -0
  27. package/generated/ControlRunListResponse.schema.json +162 -0
  28. package/generated/ControlRunSummary.schema.json +162 -0
  29. package/generated/EnvelopeCustody.schema.json +4 -0
  30. package/generated/McpAccountsToolResult.schema.json +2527 -0
  31. package/generated/McpRunHandleResult.schema.json +162 -0
  32. package/generated/McpRunToolResult.schema.json +162 -0
  33. package/generated/RunFailure.schema.json +162 -0
  34. package/package.json +2 -2
@@ -0,0 +1,101 @@
1
+ {
2
+ "$ref": "#/definitions/ControlAccountRoutingEvidenceResponse",
3
+ "definitions": {
4
+ "ControlAccountRoutingEvidenceResponse": {
5
+ "type": "object",
6
+ "properties": {
7
+ "refusals": {
8
+ "type": "array",
9
+ "items": {
10
+ "type": "object",
11
+ "properties": {
12
+ "harness_id": {
13
+ "type": "string",
14
+ "minLength": 1,
15
+ "description": "Harness family the observed account belongs to."
16
+ },
17
+ "profile_id": {
18
+ "type": "string",
19
+ "minLength": 1,
20
+ "description": "Account row whose started session was refused before progress."
21
+ },
22
+ "requested_model": {
23
+ "type": [
24
+ "string",
25
+ "null"
26
+ ],
27
+ "description": "Model the run asked this account for; null = the harness default model."
28
+ },
29
+ "observed_at": {
30
+ "type": "string",
31
+ "minLength": 1,
32
+ "description": "When the pre-progress refusal was observed."
33
+ },
34
+ "expires_at": {
35
+ "type": "string",
36
+ "minLength": 1,
37
+ "description": "Self-expiry instant (observation retention, not a vendor reset time); after this the observation is ignored."
38
+ }
39
+ },
40
+ "required": [
41
+ "harness_id",
42
+ "profile_id",
43
+ "requested_model",
44
+ "observed_at",
45
+ "expires_at"
46
+ ],
47
+ "additionalProperties": false,
48
+ "description": "A bounded, self-expiring typed observation that an account refused a started session before any progress; it orders the account pool and never excludes a row."
49
+ },
50
+ "description": "Live pre-progress refusal observations, each scoped to one requested model."
51
+ },
52
+ "lastService": {
53
+ "type": "array",
54
+ "items": {
55
+ "type": "object",
56
+ "properties": {
57
+ "harness_id": {
58
+ "type": "string",
59
+ "minLength": 1,
60
+ "description": "Harness family of the account."
61
+ },
62
+ "profile_id": {
63
+ "type": "string",
64
+ "minLength": 1,
65
+ "description": "Account row that served the request."
66
+ },
67
+ "requested_model": {
68
+ "type": [
69
+ "string",
70
+ "null"
71
+ ],
72
+ "description": "Model the run asked for; null = the harness default model."
73
+ },
74
+ "observed_at": {
75
+ "type": "string",
76
+ "minLength": 1,
77
+ "description": "When the account was observed serving that request."
78
+ }
79
+ },
80
+ "required": [
81
+ "harness_id",
82
+ "profile_id",
83
+ "requested_model",
84
+ "observed_at"
85
+ ],
86
+ "additionalProperties": false,
87
+ "description": "The latest observed service of one account for one requested model under its current credential binding."
88
+ },
89
+ "description": "Latest observed service per registered account and requested model, most recent service first."
90
+ }
91
+ },
92
+ "required": [
93
+ "refusals",
94
+ "lastService"
95
+ ],
96
+ "additionalProperties": false,
97
+ "description": "Model-scoped account routing evidence: live refusal marks and the durable last-served order."
98
+ }
99
+ },
100
+ "$schema": "http://json-schema.org/draft-07/schema#"
101
+ }
@@ -804,6 +804,65 @@
804
804
  ],
805
805
  "description": "Vendor-attested request refusal that another account cannot repair; input and executable causes carry their own evidence."
806
806
  },
807
+ "captureFailure": {
808
+ "type": "object",
809
+ "properties": {
810
+ "code": {
811
+ "type": "string",
812
+ "enum": [
813
+ "capture_output_exceeded",
814
+ "capture_output_incomplete",
815
+ "capture_preview_truncated",
816
+ "capture_failed"
817
+ ]
818
+ },
819
+ "message": {
820
+ "type": "string"
821
+ },
822
+ "causeCode": {
823
+ "type": "string"
824
+ },
825
+ "bufferBudgetBytes": {
826
+ "type": "integer",
827
+ "minimum": 0
828
+ },
829
+ "stream": {
830
+ "type": "string",
831
+ "enum": [
832
+ "stdout",
833
+ "stderr"
834
+ ]
835
+ },
836
+ "drain": {
837
+ "type": "string",
838
+ "const": "truncated"
839
+ },
840
+ "cleanup": {
841
+ "type": "object",
842
+ "properties": {
843
+ "code": {
844
+ "type": [
845
+ "string",
846
+ "null"
847
+ ]
848
+ },
849
+ "message": {
850
+ "type": "string"
851
+ }
852
+ },
853
+ "required": [
854
+ "code",
855
+ "message"
856
+ ],
857
+ "additionalProperties": false
858
+ }
859
+ },
860
+ "required": [
861
+ "code",
862
+ "message"
863
+ ],
864
+ "additionalProperties": false
865
+ },
807
866
  "phase": {
808
867
  "type": "string",
809
868
  "default": "unknown",
@@ -975,6 +1034,109 @@
975
1034
  "description": "The vendor's own typed failure for the attempt this record speaks for, or null when no vendor-typed evidence exists (every harness without such a channel, and any unreadable record). Facts only: carries no remedy.",
976
1035
  "default": null
977
1036
  },
1037
+ "poolAttempts": {
1038
+ "type": "array",
1039
+ "items": {
1040
+ "type": "object",
1041
+ "properties": {
1042
+ "harnessId": {
1043
+ "type": "string",
1044
+ "minLength": 1,
1045
+ "description": "Harness the try ran on."
1046
+ },
1047
+ "profileId": {
1048
+ "type": [
1049
+ "string",
1050
+ "null"
1051
+ ],
1052
+ "description": "Account row the try ran on; null = the harness default route."
1053
+ },
1054
+ "profileDisplayName": {
1055
+ "type": [
1056
+ "string",
1057
+ "null"
1058
+ ],
1059
+ "description": "The row's display name at try time (redacted); null for the default route."
1060
+ },
1061
+ "requestedModel": {
1062
+ "type": [
1063
+ "string",
1064
+ "null"
1065
+ ],
1066
+ "description": "Model the try asked for; null = the harness default model."
1067
+ },
1068
+ "attemptId": {
1069
+ "type": "string",
1070
+ "minLength": 1,
1071
+ "description": "Attempt the try belongs to."
1072
+ },
1073
+ "tryIndex": {
1074
+ "type": "integer",
1075
+ "minimum": 0,
1076
+ "description": "Zero-based try index within the attempt."
1077
+ },
1078
+ "observedAt": {
1079
+ "type": "string",
1080
+ "format": "date-time",
1081
+ "description": "When the try's first error was observed."
1082
+ },
1083
+ "phase": {
1084
+ "type": "string",
1085
+ "enum": [
1086
+ "pre_start",
1087
+ "pre_progress",
1088
+ "after_progress"
1089
+ ],
1090
+ "description": "How far the try got: before a typed session start, after start but before agent progress, or after progress."
1091
+ },
1092
+ "category": {
1093
+ "type": "string",
1094
+ "enum": [
1095
+ "timeout",
1096
+ "rate_limited",
1097
+ "auth_failed",
1098
+ "capability_refused",
1099
+ "process_crash",
1100
+ "config_error",
1101
+ "unknown_harness_error"
1102
+ ],
1103
+ "description": "Typed failure category of the try; untyped errors are unknown_harness_error."
1104
+ },
1105
+ "error": {
1106
+ "type": "string",
1107
+ "description": "The try's own error text with its original wording and whitespace, redacted."
1108
+ },
1109
+ "vendorFailure": {
1110
+ "anyOf": [
1111
+ {
1112
+ "$ref": "#/definitions/ControlRunDetail/properties/summary/properties/failure/anyOf/0/properties/vendorFailure/anyOf/0"
1113
+ },
1114
+ {
1115
+ "type": "null"
1116
+ }
1117
+ ],
1118
+ "description": "The vendor's own typed failure for this try, when the adapter attached one."
1119
+ }
1120
+ },
1121
+ "required": [
1122
+ "harnessId",
1123
+ "profileId",
1124
+ "profileDisplayName",
1125
+ "requestedModel",
1126
+ "attemptId",
1127
+ "tryIndex",
1128
+ "observedAt",
1129
+ "phase",
1130
+ "category",
1131
+ "error",
1132
+ "vendorFailure"
1133
+ ],
1134
+ "additionalProperties": false,
1135
+ "description": "Per-try account attribution of a failed execution try (diagnostic evidence only)."
1136
+ },
1137
+ "default": [],
1138
+ "description": "Every failed execution try in order, each with its own account and error text; empty when no try failed (and for records written before this field existed)."
1139
+ },
978
1140
  "nextActions": {
979
1141
  "type": "array",
980
1142
  "items": {
@@ -624,6 +624,65 @@
624
624
  ],
625
625
  "description": "Vendor-attested request refusal that another account cannot repair; input and executable causes carry their own evidence."
626
626
  },
627
+ "captureFailure": {
628
+ "type": "object",
629
+ "properties": {
630
+ "code": {
631
+ "type": "string",
632
+ "enum": [
633
+ "capture_output_exceeded",
634
+ "capture_output_incomplete",
635
+ "capture_preview_truncated",
636
+ "capture_failed"
637
+ ]
638
+ },
639
+ "message": {
640
+ "type": "string"
641
+ },
642
+ "causeCode": {
643
+ "type": "string"
644
+ },
645
+ "bufferBudgetBytes": {
646
+ "type": "integer",
647
+ "minimum": 0
648
+ },
649
+ "stream": {
650
+ "type": "string",
651
+ "enum": [
652
+ "stdout",
653
+ "stderr"
654
+ ]
655
+ },
656
+ "drain": {
657
+ "type": "string",
658
+ "const": "truncated"
659
+ },
660
+ "cleanup": {
661
+ "type": "object",
662
+ "properties": {
663
+ "code": {
664
+ "type": [
665
+ "string",
666
+ "null"
667
+ ]
668
+ },
669
+ "message": {
670
+ "type": "string"
671
+ }
672
+ },
673
+ "required": [
674
+ "code",
675
+ "message"
676
+ ],
677
+ "additionalProperties": false
678
+ }
679
+ },
680
+ "required": [
681
+ "code",
682
+ "message"
683
+ ],
684
+ "additionalProperties": false
685
+ },
627
686
  "phase": {
628
687
  "type": "string",
629
688
  "default": "unknown",
@@ -795,6 +854,109 @@
795
854
  "description": "The vendor's own typed failure for the attempt this record speaks for, or null when no vendor-typed evidence exists (every harness without such a channel, and any unreadable record). Facts only: carries no remedy.",
796
855
  "default": null
797
856
  },
857
+ "poolAttempts": {
858
+ "type": "array",
859
+ "items": {
860
+ "type": "object",
861
+ "properties": {
862
+ "harnessId": {
863
+ "type": "string",
864
+ "minLength": 1,
865
+ "description": "Harness the try ran on."
866
+ },
867
+ "profileId": {
868
+ "type": [
869
+ "string",
870
+ "null"
871
+ ],
872
+ "description": "Account row the try ran on; null = the harness default route."
873
+ },
874
+ "profileDisplayName": {
875
+ "type": [
876
+ "string",
877
+ "null"
878
+ ],
879
+ "description": "The row's display name at try time (redacted); null for the default route."
880
+ },
881
+ "requestedModel": {
882
+ "type": [
883
+ "string",
884
+ "null"
885
+ ],
886
+ "description": "Model the try asked for; null = the harness default model."
887
+ },
888
+ "attemptId": {
889
+ "type": "string",
890
+ "minLength": 1,
891
+ "description": "Attempt the try belongs to."
892
+ },
893
+ "tryIndex": {
894
+ "type": "integer",
895
+ "minimum": 0,
896
+ "description": "Zero-based try index within the attempt."
897
+ },
898
+ "observedAt": {
899
+ "type": "string",
900
+ "format": "date-time",
901
+ "description": "When the try's first error was observed."
902
+ },
903
+ "phase": {
904
+ "type": "string",
905
+ "enum": [
906
+ "pre_start",
907
+ "pre_progress",
908
+ "after_progress"
909
+ ],
910
+ "description": "How far the try got: before a typed session start, after start but before agent progress, or after progress."
911
+ },
912
+ "category": {
913
+ "type": "string",
914
+ "enum": [
915
+ "timeout",
916
+ "rate_limited",
917
+ "auth_failed",
918
+ "capability_refused",
919
+ "process_crash",
920
+ "config_error",
921
+ "unknown_harness_error"
922
+ ],
923
+ "description": "Typed failure category of the try; untyped errors are unknown_harness_error."
924
+ },
925
+ "error": {
926
+ "type": "string",
927
+ "description": "The try's own error text with its original wording and whitespace, redacted."
928
+ },
929
+ "vendorFailure": {
930
+ "anyOf": [
931
+ {
932
+ "$ref": "#/definitions/ControlRunListResponse/properties/runs/items/properties/failure/anyOf/0/properties/vendorFailure/anyOf/0"
933
+ },
934
+ {
935
+ "type": "null"
936
+ }
937
+ ],
938
+ "description": "The vendor's own typed failure for this try, when the adapter attached one."
939
+ }
940
+ },
941
+ "required": [
942
+ "harnessId",
943
+ "profileId",
944
+ "profileDisplayName",
945
+ "requestedModel",
946
+ "attemptId",
947
+ "tryIndex",
948
+ "observedAt",
949
+ "phase",
950
+ "category",
951
+ "error",
952
+ "vendorFailure"
953
+ ],
954
+ "additionalProperties": false,
955
+ "description": "Per-try account attribution of a failed execution try (diagnostic evidence only)."
956
+ },
957
+ "default": [],
958
+ "description": "Every failed execution try in order, each with its own account and error text; empty when no try failed (and for records written before this field existed)."
959
+ },
798
960
  "nextActions": {
799
961
  "type": "array",
800
962
  "items": {
@@ -619,6 +619,65 @@
619
619
  ],
620
620
  "description": "Vendor-attested request refusal that another account cannot repair; input and executable causes carry their own evidence."
621
621
  },
622
+ "captureFailure": {
623
+ "type": "object",
624
+ "properties": {
625
+ "code": {
626
+ "type": "string",
627
+ "enum": [
628
+ "capture_output_exceeded",
629
+ "capture_output_incomplete",
630
+ "capture_preview_truncated",
631
+ "capture_failed"
632
+ ]
633
+ },
634
+ "message": {
635
+ "type": "string"
636
+ },
637
+ "causeCode": {
638
+ "type": "string"
639
+ },
640
+ "bufferBudgetBytes": {
641
+ "type": "integer",
642
+ "minimum": 0
643
+ },
644
+ "stream": {
645
+ "type": "string",
646
+ "enum": [
647
+ "stdout",
648
+ "stderr"
649
+ ]
650
+ },
651
+ "drain": {
652
+ "type": "string",
653
+ "const": "truncated"
654
+ },
655
+ "cleanup": {
656
+ "type": "object",
657
+ "properties": {
658
+ "code": {
659
+ "type": [
660
+ "string",
661
+ "null"
662
+ ]
663
+ },
664
+ "message": {
665
+ "type": "string"
666
+ }
667
+ },
668
+ "required": [
669
+ "code",
670
+ "message"
671
+ ],
672
+ "additionalProperties": false
673
+ }
674
+ },
675
+ "required": [
676
+ "code",
677
+ "message"
678
+ ],
679
+ "additionalProperties": false
680
+ },
622
681
  "phase": {
623
682
  "type": "string",
624
683
  "default": "unknown",
@@ -790,6 +849,109 @@
790
849
  "description": "The vendor's own typed failure for the attempt this record speaks for, or null when no vendor-typed evidence exists (every harness without such a channel, and any unreadable record). Facts only: carries no remedy.",
791
850
  "default": null
792
851
  },
852
+ "poolAttempts": {
853
+ "type": "array",
854
+ "items": {
855
+ "type": "object",
856
+ "properties": {
857
+ "harnessId": {
858
+ "type": "string",
859
+ "minLength": 1,
860
+ "description": "Harness the try ran on."
861
+ },
862
+ "profileId": {
863
+ "type": [
864
+ "string",
865
+ "null"
866
+ ],
867
+ "description": "Account row the try ran on; null = the harness default route."
868
+ },
869
+ "profileDisplayName": {
870
+ "type": [
871
+ "string",
872
+ "null"
873
+ ],
874
+ "description": "The row's display name at try time (redacted); null for the default route."
875
+ },
876
+ "requestedModel": {
877
+ "type": [
878
+ "string",
879
+ "null"
880
+ ],
881
+ "description": "Model the try asked for; null = the harness default model."
882
+ },
883
+ "attemptId": {
884
+ "type": "string",
885
+ "minLength": 1,
886
+ "description": "Attempt the try belongs to."
887
+ },
888
+ "tryIndex": {
889
+ "type": "integer",
890
+ "minimum": 0,
891
+ "description": "Zero-based try index within the attempt."
892
+ },
893
+ "observedAt": {
894
+ "type": "string",
895
+ "format": "date-time",
896
+ "description": "When the try's first error was observed."
897
+ },
898
+ "phase": {
899
+ "type": "string",
900
+ "enum": [
901
+ "pre_start",
902
+ "pre_progress",
903
+ "after_progress"
904
+ ],
905
+ "description": "How far the try got: before a typed session start, after start but before agent progress, or after progress."
906
+ },
907
+ "category": {
908
+ "type": "string",
909
+ "enum": [
910
+ "timeout",
911
+ "rate_limited",
912
+ "auth_failed",
913
+ "capability_refused",
914
+ "process_crash",
915
+ "config_error",
916
+ "unknown_harness_error"
917
+ ],
918
+ "description": "Typed failure category of the try; untyped errors are unknown_harness_error."
919
+ },
920
+ "error": {
921
+ "type": "string",
922
+ "description": "The try's own error text with its original wording and whitespace, redacted."
923
+ },
924
+ "vendorFailure": {
925
+ "anyOf": [
926
+ {
927
+ "$ref": "#/definitions/ControlRunSummary/properties/failure/anyOf/0/properties/vendorFailure/anyOf/0"
928
+ },
929
+ {
930
+ "type": "null"
931
+ }
932
+ ],
933
+ "description": "The vendor's own typed failure for this try, when the adapter attached one."
934
+ }
935
+ },
936
+ "required": [
937
+ "harnessId",
938
+ "profileId",
939
+ "profileDisplayName",
940
+ "requestedModel",
941
+ "attemptId",
942
+ "tryIndex",
943
+ "observedAt",
944
+ "phase",
945
+ "category",
946
+ "error",
947
+ "vendorFailure"
948
+ ],
949
+ "additionalProperties": false,
950
+ "description": "Per-try account attribution of a failed execution try (diagnostic evidence only)."
951
+ },
952
+ "default": [],
953
+ "description": "Every failed execution try in order, each with its own account and error text; empty when no try failed (and for records written before this field existed)."
954
+ },
793
955
  "nextActions": {
794
956
  "type": "array",
795
957
  "items": {
@@ -25,6 +25,10 @@
25
25
  "minLength": 1,
26
26
  "description": "Absolute run directory of the holder."
27
27
  },
28
+ "continuation_eligible": {
29
+ "type": "boolean",
30
+ "description": "False for diagnostic source retention addressed by attempt, without a run continuation pointer. Absent retains the historical singleton continuation contract."
31
+ },
28
32
  "envelope": {
29
33
  "type": "object",
30
34
  "properties": {