@claudexor/schema 3.1.0 → 3.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent-capabilities.d.ts +97 -9
- package/dist/agent-capabilities.d.ts.map +1 -1
- package/dist/agent-capabilities.js +5 -0
- package/dist/agent-capabilities.js.map +1 -1
- package/dist/apply-eligibility.d.ts +102 -0
- package/dist/apply-eligibility.d.ts.map +1 -1
- package/dist/apply-eligibility.js +17 -0
- package/dist/apply-eligibility.js.map +1 -1
- package/dist/budget.d.ts +13 -13
- package/dist/budget.d.ts.map +1 -1
- package/dist/budget.js +2 -0
- package/dist/budget.js.map +1 -1
- package/dist/config.d.ts +70 -38
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +12 -1
- package/dist/config.js.map +1 -1
- package/dist/control-operation-responses.d.ts +160 -56
- package/dist/control-operation-responses.d.ts.map +1 -1
- package/dist/control-operation-responses.js +25 -0
- package/dist/control-operation-responses.js.map +1 -1
- package/dist/control-run-detail.d.ts +1413 -205
- package/dist/control-run-detail.d.ts.map +1 -1
- package/dist/control-run-detail.js +6 -0
- package/dist/control-run-detail.js.map +1 -1
- package/dist/control-run-retry.d.ts +2 -2
- package/dist/control.d.ts +486 -163
- package/dist/control.d.ts.map +1 -1
- package/dist/control.js +23 -28
- package/dist/control.js.map +1 -1
- package/dist/decision.d.ts +5 -0
- package/dist/decision.d.ts.map +1 -1
- package/dist/decision.js +7 -3
- package/dist/decision.js.map +1 -1
- package/dist/delegation.d.ts +73 -0
- package/dist/delegation.d.ts.map +1 -0
- package/dist/delegation.js +120 -0
- package/dist/delegation.js.map +1 -0
- package/dist/effort.d.ts +132 -0
- package/dist/effort.d.ts.map +1 -0
- package/dist/effort.js +167 -0
- package/dist/effort.js.map +1 -0
- package/dist/events.d.ts +4 -4
- package/dist/events.d.ts.map +1 -1
- package/dist/events.js +9 -0
- package/dist/events.js.map +1 -1
- package/dist/gate.d.ts +2 -2
- package/dist/harness.d.ts +113 -40
- package/dist/harness.d.ts.map +1 -1
- package/dist/harness.js +40 -27
- package/dist/harness.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/operation.d.ts +16 -16
- package/dist/readiness.d.ts +86 -7
- package/dist/readiness.d.ts.map +1 -1
- package/dist/readiness.js +4 -0
- package/dist/readiness.js.map +1 -1
- package/dist/request-requirements.d.ts +7 -7
- package/dist/request-requirements.d.ts.map +1 -1
- package/dist/request-requirements.js +2 -1
- package/dist/request-requirements.js.map +1 -1
- package/dist/task.d.ts +104 -59
- package/dist/task.d.ts.map +1 -1
- package/dist/task.js +20 -8
- package/dist/task.js.map +1 -1
- package/dist/telemetry.d.ts +103 -65
- package/dist/telemetry.d.ts.map +1 -1
- package/dist/telemetry.js +6 -9
- package/dist/telemetry.js.map +1 -1
- package/dist/workspace.d.ts +1 -1
- package/dist/workspace.js +7 -7
- package/dist/workspace.js.map +1 -1
- package/generated/AgentCapabilityCatalog.schema.json +43 -9
- package/generated/ControlHarnessListResponse.schema.json +93 -11
- package/generated/ControlHarnessSettingsPatch.schema.json +4 -8
- package/generated/ControlRunAgainDraft.schema.json +9 -9
- package/generated/ControlRunControlResponse.schema.json +8 -0
- package/generated/ControlRunDetail.schema.json +119 -21
- package/generated/ControlRunListResponse.schema.json +96 -16
- package/generated/ControlRunStartRequest.schema.json +9 -9
- package/generated/ControlRunSummary.schema.json +96 -16
- package/generated/ControlSettingsSnapshot.schema.json +4 -8
- package/generated/ControlSettingsUpdateRequest.schema.json +4 -8
- package/generated/ControlThreadDetail.schema.json +64 -0
- package/generated/ControlThreadTurnRequest.schema.json +4 -8
- package/generated/DecisionRecord.schema.json +10 -1
- package/generated/GlobalConfig.schema.json +4 -8
- package/generated/HarnessManifest.schema.json +47 -11
- package/generated/HarnessStatusDto.schema.json +93 -11
- package/generated/McpRunHandleResult.schema.json +72 -1
- package/generated/McpRunToolResult.schema.json +69 -0
- package/generated/ProjectConfig.schema.json +26 -0
- package/generated/RunEvent.schema.json +2 -0
- package/generated/RunFailure.schema.json +4 -3
- package/generated/RunTelemetry.schema.json +61 -2
- package/generated/TaskContract.schema.json +48 -12
- package/generated/WorkspaceEnvelope.schema.json +6 -6
- package/package.json +2 -2
package/dist/telemetry.d.ts
CHANGED
|
@@ -37,8 +37,8 @@ export declare const WebEvidenceRecord: z.ZodObject<{
|
|
|
37
37
|
verification: "none" | "verified" | "dispatched";
|
|
38
38
|
target: string | null;
|
|
39
39
|
error_summary: string | null;
|
|
40
|
-
tool: string | null;
|
|
41
40
|
required: boolean;
|
|
41
|
+
tool: string | null;
|
|
42
42
|
attempted: boolean;
|
|
43
43
|
policy: "off" | "auto" | "cached" | "live";
|
|
44
44
|
effective_mode: "off" | "auto" | "cached" | "live";
|
|
@@ -48,8 +48,8 @@ export declare const WebEvidenceRecord: z.ZodObject<{
|
|
|
48
48
|
verification?: "none" | "verified" | "dispatched" | undefined;
|
|
49
49
|
target?: string | null | undefined;
|
|
50
50
|
error_summary?: string | null | undefined;
|
|
51
|
-
tool?: string | null | undefined;
|
|
52
51
|
required?: boolean | undefined;
|
|
52
|
+
tool?: string | null | undefined;
|
|
53
53
|
attempted?: boolean | undefined;
|
|
54
54
|
policy?: "off" | "auto" | "cached" | "live" | undefined;
|
|
55
55
|
effective_mode?: "off" | "auto" | "cached" | "live" | undefined;
|
|
@@ -61,7 +61,7 @@ export declare const ToolErrorRecord: z.ZodObject<{
|
|
|
61
61
|
kind: z.ZodDefault<z.ZodEnum<["web", "file", "command", "mcp", "search", "other"]>>;
|
|
62
62
|
target: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
63
63
|
summary: z.ZodString;
|
|
64
|
-
/** True when a later successful result
|
|
64
|
+
/** True when a later successful result is attributable to this failed invocation. */
|
|
65
65
|
recovered: z.ZodDefault<z.ZodBoolean>;
|
|
66
66
|
tool_use_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
67
67
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -353,28 +353,28 @@ export declare const AttemptTelemetryRecord: z.ZodObject<{
|
|
|
353
353
|
* model x route truth; observed_model is the disclosed side). */
|
|
354
354
|
requested_model: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
355
355
|
request_requirements: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
356
|
-
capability: z.ZodEnum<["browser", "path_deny"]>;
|
|
356
|
+
capability: z.ZodEnum<["browser", "path_deny", "delegation"]>;
|
|
357
357
|
harness_id: z.ZodString;
|
|
358
358
|
eligible: z.ZodBoolean;
|
|
359
359
|
requested: z.ZodBoolean;
|
|
360
360
|
effective: z.ZodBoolean;
|
|
361
|
-
reason: z.ZodEnum<["not_requested", "effective", "manifest_unsupported", "web_policy_off", "access_profile_incompatible", "postdiff_only"]>;
|
|
361
|
+
reason: z.ZodEnum<["not_requested", "effective", "manifest_unsupported", "web_policy_off", "access_profile_incompatible", "runtime_unavailable", "postdiff_only"]>;
|
|
362
362
|
evidence_refs: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
363
363
|
}, "strip", z.ZodTypeAny, {
|
|
364
364
|
requested: boolean;
|
|
365
365
|
effective: boolean;
|
|
366
366
|
harness_id: string;
|
|
367
|
-
reason: "effective" | "
|
|
367
|
+
reason: "effective" | "runtime_unavailable" | "manifest_unsupported" | "not_requested" | "access_profile_incompatible" | "web_policy_off" | "postdiff_only";
|
|
368
368
|
evidence_refs: string[];
|
|
369
369
|
eligible: boolean;
|
|
370
|
-
capability: "browser" | "path_deny";
|
|
370
|
+
capability: "browser" | "delegation" | "path_deny";
|
|
371
371
|
}, {
|
|
372
372
|
requested: boolean;
|
|
373
373
|
effective: boolean;
|
|
374
374
|
harness_id: string;
|
|
375
|
-
reason: "effective" | "
|
|
375
|
+
reason: "effective" | "runtime_unavailable" | "manifest_unsupported" | "not_requested" | "access_profile_incompatible" | "web_policy_off" | "postdiff_only";
|
|
376
376
|
eligible: boolean;
|
|
377
|
-
capability: "browser" | "path_deny";
|
|
377
|
+
capability: "browser" | "delegation" | "path_deny";
|
|
378
378
|
evidence_refs?: string[] | undefined;
|
|
379
379
|
}>, "many">>;
|
|
380
380
|
web: z.ZodObject<{
|
|
@@ -405,8 +405,8 @@ export declare const AttemptTelemetryRecord: z.ZodObject<{
|
|
|
405
405
|
verification: "none" | "verified" | "dispatched";
|
|
406
406
|
target: string | null;
|
|
407
407
|
error_summary: string | null;
|
|
408
|
-
tool: string | null;
|
|
409
408
|
required: boolean;
|
|
409
|
+
tool: string | null;
|
|
410
410
|
attempted: boolean;
|
|
411
411
|
policy: "off" | "auto" | "cached" | "live";
|
|
412
412
|
effective_mode: "off" | "auto" | "cached" | "live";
|
|
@@ -416,8 +416,8 @@ export declare const AttemptTelemetryRecord: z.ZodObject<{
|
|
|
416
416
|
verification?: "none" | "verified" | "dispatched" | undefined;
|
|
417
417
|
target?: string | null | undefined;
|
|
418
418
|
error_summary?: string | null | undefined;
|
|
419
|
-
tool?: string | null | undefined;
|
|
420
419
|
required?: boolean | undefined;
|
|
420
|
+
tool?: string | null | undefined;
|
|
421
421
|
attempted?: boolean | undefined;
|
|
422
422
|
policy?: "off" | "auto" | "cached" | "live" | undefined;
|
|
423
423
|
effective_mode?: "off" | "auto" | "cached" | "live" | undefined;
|
|
@@ -429,7 +429,7 @@ export declare const AttemptTelemetryRecord: z.ZodObject<{
|
|
|
429
429
|
kind: z.ZodDefault<z.ZodEnum<["web", "file", "command", "mcp", "search", "other"]>>;
|
|
430
430
|
target: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
431
431
|
summary: z.ZodString;
|
|
432
|
-
/** True when a later successful result
|
|
432
|
+
/** True when a later successful result is attributable to this failed invocation. */
|
|
433
433
|
recovered: z.ZodDefault<z.ZodBoolean>;
|
|
434
434
|
tool_use_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
435
435
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -639,8 +639,8 @@ export declare const AttemptTelemetryRecord: z.ZodObject<{
|
|
|
639
639
|
verification: "none" | "verified" | "dispatched";
|
|
640
640
|
target: string | null;
|
|
641
641
|
error_summary: string | null;
|
|
642
|
-
tool: string | null;
|
|
643
642
|
required: boolean;
|
|
643
|
+
tool: string | null;
|
|
644
644
|
attempted: boolean;
|
|
645
645
|
policy: "off" | "auto" | "cached" | "live";
|
|
646
646
|
effective_mode: "off" | "auto" | "cached" | "live";
|
|
@@ -660,10 +660,10 @@ export declare const AttemptTelemetryRecord: z.ZodObject<{
|
|
|
660
660
|
requested: boolean;
|
|
661
661
|
effective: boolean;
|
|
662
662
|
harness_id: string;
|
|
663
|
-
reason: "effective" | "
|
|
663
|
+
reason: "effective" | "runtime_unavailable" | "manifest_unsupported" | "not_requested" | "access_profile_incompatible" | "web_policy_off" | "postdiff_only";
|
|
664
664
|
evidence_refs: string[];
|
|
665
665
|
eligible: boolean;
|
|
666
|
-
capability: "browser" | "path_deny";
|
|
666
|
+
capability: "browser" | "delegation" | "path_deny";
|
|
667
667
|
}[];
|
|
668
668
|
tool_errors: {
|
|
669
669
|
kind: "web" | "file" | "command" | "mcp" | "search" | "other";
|
|
@@ -726,8 +726,8 @@ export declare const AttemptTelemetryRecord: z.ZodObject<{
|
|
|
726
726
|
verification?: "none" | "verified" | "dispatched" | undefined;
|
|
727
727
|
target?: string | null | undefined;
|
|
728
728
|
error_summary?: string | null | undefined;
|
|
729
|
-
tool?: string | null | undefined;
|
|
730
729
|
required?: boolean | undefined;
|
|
730
|
+
tool?: string | null | undefined;
|
|
731
731
|
attempted?: boolean | undefined;
|
|
732
732
|
policy?: "off" | "auto" | "cached" | "live" | undefined;
|
|
733
733
|
effective_mode?: "off" | "auto" | "cached" | "live" | undefined;
|
|
@@ -756,9 +756,9 @@ export declare const AttemptTelemetryRecord: z.ZodObject<{
|
|
|
756
756
|
requested: boolean;
|
|
757
757
|
effective: boolean;
|
|
758
758
|
harness_id: string;
|
|
759
|
-
reason: "effective" | "
|
|
759
|
+
reason: "effective" | "runtime_unavailable" | "manifest_unsupported" | "not_requested" | "access_profile_incompatible" | "web_policy_off" | "postdiff_only";
|
|
760
760
|
eligible: boolean;
|
|
761
|
-
capability: "browser" | "path_deny";
|
|
761
|
+
capability: "browser" | "delegation" | "path_deny";
|
|
762
762
|
evidence_refs?: string[] | undefined;
|
|
763
763
|
}[] | undefined;
|
|
764
764
|
tool_errors?: {
|
|
@@ -819,9 +819,7 @@ export declare const RunTelemetry: z.ZodObject<{
|
|
|
819
819
|
external_context_policy: z.ZodEnum<["off", "auto", "cached", "live"]>;
|
|
820
820
|
effective_web_mode: z.ZodEnum<["off", "auto", "cached", "live"]>;
|
|
821
821
|
web_required: z.ZodDefault<z.ZodBoolean>;
|
|
822
|
-
/** Attempt whose output became the final answer/patch; null when no attempt succeeded. */
|
|
823
822
|
final_attempt_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
824
|
-
/** Run-level web evidence: the final attempt's evidence, else the most severe attempt evidence. */
|
|
825
823
|
web: z.ZodObject<{
|
|
826
824
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
827
825
|
/** Requested policy for the run. */
|
|
@@ -850,8 +848,8 @@ export declare const RunTelemetry: z.ZodObject<{
|
|
|
850
848
|
verification: "none" | "verified" | "dispatched";
|
|
851
849
|
target: string | null;
|
|
852
850
|
error_summary: string | null;
|
|
853
|
-
tool: string | null;
|
|
854
851
|
required: boolean;
|
|
852
|
+
tool: string | null;
|
|
855
853
|
attempted: boolean;
|
|
856
854
|
policy: "off" | "auto" | "cached" | "live";
|
|
857
855
|
effective_mode: "off" | "auto" | "cached" | "live";
|
|
@@ -861,8 +859,8 @@ export declare const RunTelemetry: z.ZodObject<{
|
|
|
861
859
|
verification?: "none" | "verified" | "dispatched" | undefined;
|
|
862
860
|
target?: string | null | undefined;
|
|
863
861
|
error_summary?: string | null | undefined;
|
|
864
|
-
tool?: string | null | undefined;
|
|
865
862
|
required?: boolean | undefined;
|
|
863
|
+
tool?: string | null | undefined;
|
|
866
864
|
attempted?: boolean | undefined;
|
|
867
865
|
policy?: "off" | "auto" | "cached" | "live" | undefined;
|
|
868
866
|
effective_mode?: "off" | "auto" | "cached" | "live" | undefined;
|
|
@@ -898,28 +896,28 @@ export declare const RunTelemetry: z.ZodObject<{
|
|
|
898
896
|
* model x route truth; observed_model is the disclosed side). */
|
|
899
897
|
requested_model: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
900
898
|
request_requirements: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
901
|
-
capability: z.ZodEnum<["browser", "path_deny"]>;
|
|
899
|
+
capability: z.ZodEnum<["browser", "path_deny", "delegation"]>;
|
|
902
900
|
harness_id: z.ZodString;
|
|
903
901
|
eligible: z.ZodBoolean;
|
|
904
902
|
requested: z.ZodBoolean;
|
|
905
903
|
effective: z.ZodBoolean;
|
|
906
|
-
reason: z.ZodEnum<["not_requested", "effective", "manifest_unsupported", "web_policy_off", "access_profile_incompatible", "postdiff_only"]>;
|
|
904
|
+
reason: z.ZodEnum<["not_requested", "effective", "manifest_unsupported", "web_policy_off", "access_profile_incompatible", "runtime_unavailable", "postdiff_only"]>;
|
|
907
905
|
evidence_refs: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
908
906
|
}, "strip", z.ZodTypeAny, {
|
|
909
907
|
requested: boolean;
|
|
910
908
|
effective: boolean;
|
|
911
909
|
harness_id: string;
|
|
912
|
-
reason: "effective" | "
|
|
910
|
+
reason: "effective" | "runtime_unavailable" | "manifest_unsupported" | "not_requested" | "access_profile_incompatible" | "web_policy_off" | "postdiff_only";
|
|
913
911
|
evidence_refs: string[];
|
|
914
912
|
eligible: boolean;
|
|
915
|
-
capability: "browser" | "path_deny";
|
|
913
|
+
capability: "browser" | "delegation" | "path_deny";
|
|
916
914
|
}, {
|
|
917
915
|
requested: boolean;
|
|
918
916
|
effective: boolean;
|
|
919
917
|
harness_id: string;
|
|
920
|
-
reason: "effective" | "
|
|
918
|
+
reason: "effective" | "runtime_unavailable" | "manifest_unsupported" | "not_requested" | "access_profile_incompatible" | "web_policy_off" | "postdiff_only";
|
|
921
919
|
eligible: boolean;
|
|
922
|
-
capability: "browser" | "path_deny";
|
|
920
|
+
capability: "browser" | "delegation" | "path_deny";
|
|
923
921
|
evidence_refs?: string[] | undefined;
|
|
924
922
|
}>, "many">>;
|
|
925
923
|
web: z.ZodObject<{
|
|
@@ -950,8 +948,8 @@ export declare const RunTelemetry: z.ZodObject<{
|
|
|
950
948
|
verification: "none" | "verified" | "dispatched";
|
|
951
949
|
target: string | null;
|
|
952
950
|
error_summary: string | null;
|
|
953
|
-
tool: string | null;
|
|
954
951
|
required: boolean;
|
|
952
|
+
tool: string | null;
|
|
955
953
|
attempted: boolean;
|
|
956
954
|
policy: "off" | "auto" | "cached" | "live";
|
|
957
955
|
effective_mode: "off" | "auto" | "cached" | "live";
|
|
@@ -961,8 +959,8 @@ export declare const RunTelemetry: z.ZodObject<{
|
|
|
961
959
|
verification?: "none" | "verified" | "dispatched" | undefined;
|
|
962
960
|
target?: string | null | undefined;
|
|
963
961
|
error_summary?: string | null | undefined;
|
|
964
|
-
tool?: string | null | undefined;
|
|
965
962
|
required?: boolean | undefined;
|
|
963
|
+
tool?: string | null | undefined;
|
|
966
964
|
attempted?: boolean | undefined;
|
|
967
965
|
policy?: "off" | "auto" | "cached" | "live" | undefined;
|
|
968
966
|
effective_mode?: "off" | "auto" | "cached" | "live" | undefined;
|
|
@@ -974,7 +972,7 @@ export declare const RunTelemetry: z.ZodObject<{
|
|
|
974
972
|
kind: z.ZodDefault<z.ZodEnum<["web", "file", "command", "mcp", "search", "other"]>>;
|
|
975
973
|
target: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
976
974
|
summary: z.ZodString;
|
|
977
|
-
/** True when a later successful result
|
|
975
|
+
/** True when a later successful result is attributable to this failed invocation. */
|
|
978
976
|
recovered: z.ZodDefault<z.ZodBoolean>;
|
|
979
977
|
tool_use_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
980
978
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1184,8 +1182,8 @@ export declare const RunTelemetry: z.ZodObject<{
|
|
|
1184
1182
|
verification: "none" | "verified" | "dispatched";
|
|
1185
1183
|
target: string | null;
|
|
1186
1184
|
error_summary: string | null;
|
|
1187
|
-
tool: string | null;
|
|
1188
1185
|
required: boolean;
|
|
1186
|
+
tool: string | null;
|
|
1189
1187
|
attempted: boolean;
|
|
1190
1188
|
policy: "off" | "auto" | "cached" | "live";
|
|
1191
1189
|
effective_mode: "off" | "auto" | "cached" | "live";
|
|
@@ -1205,10 +1203,10 @@ export declare const RunTelemetry: z.ZodObject<{
|
|
|
1205
1203
|
requested: boolean;
|
|
1206
1204
|
effective: boolean;
|
|
1207
1205
|
harness_id: string;
|
|
1208
|
-
reason: "effective" | "
|
|
1206
|
+
reason: "effective" | "runtime_unavailable" | "manifest_unsupported" | "not_requested" | "access_profile_incompatible" | "web_policy_off" | "postdiff_only";
|
|
1209
1207
|
evidence_refs: string[];
|
|
1210
1208
|
eligible: boolean;
|
|
1211
|
-
capability: "browser" | "path_deny";
|
|
1209
|
+
capability: "browser" | "delegation" | "path_deny";
|
|
1212
1210
|
}[];
|
|
1213
1211
|
tool_errors: {
|
|
1214
1212
|
kind: "web" | "file" | "command" | "mcp" | "search" | "other";
|
|
@@ -1271,8 +1269,8 @@ export declare const RunTelemetry: z.ZodObject<{
|
|
|
1271
1269
|
verification?: "none" | "verified" | "dispatched" | undefined;
|
|
1272
1270
|
target?: string | null | undefined;
|
|
1273
1271
|
error_summary?: string | null | undefined;
|
|
1274
|
-
tool?: string | null | undefined;
|
|
1275
1272
|
required?: boolean | undefined;
|
|
1273
|
+
tool?: string | null | undefined;
|
|
1276
1274
|
attempted?: boolean | undefined;
|
|
1277
1275
|
policy?: "off" | "auto" | "cached" | "live" | undefined;
|
|
1278
1276
|
effective_mode?: "off" | "auto" | "cached" | "live" | undefined;
|
|
@@ -1301,9 +1299,9 @@ export declare const RunTelemetry: z.ZodObject<{
|
|
|
1301
1299
|
requested: boolean;
|
|
1302
1300
|
effective: boolean;
|
|
1303
1301
|
harness_id: string;
|
|
1304
|
-
reason: "effective" | "
|
|
1302
|
+
reason: "effective" | "runtime_unavailable" | "manifest_unsupported" | "not_requested" | "access_profile_incompatible" | "web_policy_off" | "postdiff_only";
|
|
1305
1303
|
eligible: boolean;
|
|
1306
|
-
capability: "browser" | "path_deny";
|
|
1304
|
+
capability: "browser" | "delegation" | "path_deny";
|
|
1307
1305
|
evidence_refs?: string[] | undefined;
|
|
1308
1306
|
}[] | undefined;
|
|
1309
1307
|
tool_errors?: {
|
|
@@ -1354,35 +1352,62 @@ export declare const RunTelemetry: z.ZodObject<{
|
|
|
1354
1352
|
} | undefined;
|
|
1355
1353
|
}>, "many">>;
|
|
1356
1354
|
request_requirements: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1357
|
-
capability: z.ZodEnum<["browser", "path_deny"]>;
|
|
1355
|
+
capability: z.ZodEnum<["browser", "path_deny", "delegation"]>;
|
|
1358
1356
|
harness_id: z.ZodString;
|
|
1359
1357
|
eligible: z.ZodBoolean;
|
|
1360
1358
|
requested: z.ZodBoolean;
|
|
1361
1359
|
effective: z.ZodBoolean;
|
|
1362
|
-
reason: z.ZodEnum<["not_requested", "effective", "manifest_unsupported", "web_policy_off", "access_profile_incompatible", "postdiff_only"]>;
|
|
1360
|
+
reason: z.ZodEnum<["not_requested", "effective", "manifest_unsupported", "web_policy_off", "access_profile_incompatible", "runtime_unavailable", "postdiff_only"]>;
|
|
1363
1361
|
evidence_refs: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1364
1362
|
}, "strip", z.ZodTypeAny, {
|
|
1365
1363
|
requested: boolean;
|
|
1366
1364
|
effective: boolean;
|
|
1367
1365
|
harness_id: string;
|
|
1368
|
-
reason: "effective" | "
|
|
1366
|
+
reason: "effective" | "runtime_unavailable" | "manifest_unsupported" | "not_requested" | "access_profile_incompatible" | "web_policy_off" | "postdiff_only";
|
|
1369
1367
|
evidence_refs: string[];
|
|
1370
1368
|
eligible: boolean;
|
|
1371
|
-
capability: "browser" | "path_deny";
|
|
1369
|
+
capability: "browser" | "delegation" | "path_deny";
|
|
1372
1370
|
}, {
|
|
1373
1371
|
requested: boolean;
|
|
1374
1372
|
effective: boolean;
|
|
1375
1373
|
harness_id: string;
|
|
1376
|
-
reason: "effective" | "
|
|
1374
|
+
reason: "effective" | "runtime_unavailable" | "manifest_unsupported" | "not_requested" | "access_profile_incompatible" | "web_policy_off" | "postdiff_only";
|
|
1377
1375
|
eligible: boolean;
|
|
1378
|
-
capability: "browser" | "path_deny";
|
|
1376
|
+
capability: "browser" | "delegation" | "path_deny";
|
|
1379
1377
|
evidence_refs?: string[] | undefined;
|
|
1380
1378
|
}>, "many">>;
|
|
1381
|
-
|
|
1379
|
+
delegation: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodObject<{
|
|
1380
|
+
requested: z.ZodDefault<z.ZodBoolean>;
|
|
1381
|
+
effective: z.ZodDefault<z.ZodBoolean>;
|
|
1382
|
+
used: z.ZodDefault<z.ZodBoolean>;
|
|
1383
|
+
reason: z.ZodDefault<z.ZodEnum<["pending", "not_requested", "injected_unused", "used", "runtime_unavailable", "manifest_unsupported", "access_profile_incompatible", "partially_degraded", "startup_failed"]>>;
|
|
1384
|
+
remediation: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1385
|
+
}, "strict", z.ZodTypeAny, {
|
|
1386
|
+
requested: boolean;
|
|
1387
|
+
effective: boolean;
|
|
1388
|
+
reason: "pending" | "runtime_unavailable" | "manifest_unsupported" | "not_requested" | "injected_unused" | "used" | "access_profile_incompatible" | "partially_degraded" | "startup_failed";
|
|
1389
|
+
remediation: string | null;
|
|
1390
|
+
used: boolean;
|
|
1391
|
+
}, {
|
|
1392
|
+
requested?: boolean | undefined;
|
|
1393
|
+
effective?: boolean | undefined;
|
|
1394
|
+
reason?: "pending" | "runtime_unavailable" | "manifest_unsupported" | "not_requested" | "injected_unused" | "used" | "access_profile_incompatible" | "partially_degraded" | "startup_failed" | undefined;
|
|
1395
|
+
remediation?: string | null | undefined;
|
|
1396
|
+
used?: boolean | undefined;
|
|
1397
|
+
}>, {
|
|
1398
|
+
requested: boolean;
|
|
1399
|
+
effective: boolean;
|
|
1400
|
+
reason: "pending" | "runtime_unavailable" | "manifest_unsupported" | "not_requested" | "injected_unused" | "used" | "access_profile_incompatible" | "partially_degraded" | "startup_failed";
|
|
1401
|
+
remediation: string | null;
|
|
1402
|
+
used: boolean;
|
|
1403
|
+
}, {
|
|
1404
|
+
requested?: boolean | undefined;
|
|
1405
|
+
effective?: boolean | undefined;
|
|
1406
|
+
reason?: "pending" | "runtime_unavailable" | "manifest_unsupported" | "not_requested" | "injected_unused" | "used" | "access_profile_incompatible" | "partially_degraded" | "startup_failed" | undefined;
|
|
1407
|
+
remediation?: string | null | undefined;
|
|
1408
|
+
used?: boolean | undefined;
|
|
1409
|
+
}>>>;
|
|
1382
1410
|
tool_warnings_total: z.ZodDefault<z.ZodNumber>;
|
|
1383
|
-
/** Token usage summed across every attempt (candidates + synthesis), the
|
|
1384
|
-
* same accounting scope as spendUsd. Each field null until some attempt
|
|
1385
|
-
* reports it. Not a grand total (see TokenUsage). */
|
|
1386
1411
|
usage_totals: z.ZodDefault<z.ZodObject<{
|
|
1387
1412
|
input_tokens: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
1388
1413
|
output_tokens: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -1458,7 +1483,7 @@ export declare const RunTelemetry: z.ZodObject<{
|
|
|
1458
1483
|
paid_fallback: z.ZodEnum<["never", "when_unavailable", "allowed_within_cap"]>;
|
|
1459
1484
|
order: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1460
1485
|
dropped: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1461
|
-
reason: z.ZodEnum<["subscription_entitlement_first", "lowest_incremental_cash", "quality_tier", "expiring_quota_slack", "all_incremental_cash_unknown", "declared_order"]>;
|
|
1486
|
+
reason: z.ZodEnum<["subscription_entitlement_first", "lowest_incremental_cash", "quality_tier", "expiring_quota_slack", "all_incremental_cash_unknown", "delegate_effective_first", "explicit_primary", "declared_order"]>;
|
|
1462
1487
|
entries: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1463
1488
|
harness_id: z.ZodString;
|
|
1464
1489
|
billing_knowledge: z.ZodEnum<["proven_zero", "subscription_entitlement", "metered", "unknown"]>;
|
|
@@ -1482,13 +1507,13 @@ export declare const RunTelemetry: z.ZodObject<{
|
|
|
1482
1507
|
incremental_cost_usd: number | null;
|
|
1483
1508
|
eligible: boolean;
|
|
1484
1509
|
}[];
|
|
1485
|
-
reason: "subscription_entitlement_first" | "lowest_incremental_cash" | "quality_tier" | "expiring_quota_slack" | "all_incremental_cash_unknown" | "declared_order";
|
|
1510
|
+
reason: "subscription_entitlement_first" | "lowest_incremental_cash" | "quality_tier" | "expiring_quota_slack" | "all_incremental_cash_unknown" | "delegate_effective_first" | "explicit_primary" | "declared_order";
|
|
1486
1511
|
goal: "auto" | "quality" | "economy";
|
|
1487
1512
|
paid_fallback: "never" | "when_unavailable" | "allowed_within_cap";
|
|
1488
1513
|
order: string[];
|
|
1489
1514
|
dropped: string[];
|
|
1490
1515
|
}, {
|
|
1491
|
-
reason: "subscription_entitlement_first" | "lowest_incremental_cash" | "quality_tier" | "expiring_quota_slack" | "all_incremental_cash_unknown" | "declared_order";
|
|
1516
|
+
reason: "subscription_entitlement_first" | "lowest_incremental_cash" | "quality_tier" | "expiring_quota_slack" | "all_incremental_cash_unknown" | "delegate_effective_first" | "explicit_primary" | "declared_order";
|
|
1492
1517
|
goal: "auto" | "quality" | "economy";
|
|
1493
1518
|
paid_fallback: "never" | "when_unavailable" | "allowed_within_cap";
|
|
1494
1519
|
entries?: {
|
|
@@ -1500,7 +1525,6 @@ export declare const RunTelemetry: z.ZodObject<{
|
|
|
1500
1525
|
order?: string[] | undefined;
|
|
1501
1526
|
dropped?: string[] | undefined;
|
|
1502
1527
|
}>>>;
|
|
1503
|
-
/** Deep-scan reducer outcome (#27 / D-6); null on non-deep-scan/legacy runs. */
|
|
1504
1528
|
deep_scan_synthesis: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
1505
1529
|
status: z.ZodEnum<["succeeded", "failed", "skipped"]>;
|
|
1506
1530
|
reducer_attempt_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
@@ -1521,8 +1545,8 @@ export declare const RunTelemetry: z.ZodObject<{
|
|
|
1521
1545
|
verification: "none" | "verified" | "dispatched";
|
|
1522
1546
|
target: string | null;
|
|
1523
1547
|
error_summary: string | null;
|
|
1524
|
-
tool: string | null;
|
|
1525
1548
|
required: boolean;
|
|
1549
|
+
tool: string | null;
|
|
1526
1550
|
attempted: boolean;
|
|
1527
1551
|
policy: "off" | "auto" | "cached" | "live";
|
|
1528
1552
|
effective_mode: "off" | "auto" | "cached" | "live";
|
|
@@ -1532,6 +1556,13 @@ export declare const RunTelemetry: z.ZodObject<{
|
|
|
1532
1556
|
schema_version: 2;
|
|
1533
1557
|
external_context_policy: "off" | "auto" | "cached" | "live";
|
|
1534
1558
|
run_id: string;
|
|
1559
|
+
delegation: {
|
|
1560
|
+
requested: boolean;
|
|
1561
|
+
effective: boolean;
|
|
1562
|
+
reason: "pending" | "runtime_unavailable" | "manifest_unsupported" | "not_requested" | "injected_unused" | "used" | "access_profile_incompatible" | "partially_degraded" | "startup_failed";
|
|
1563
|
+
remediation: string | null;
|
|
1564
|
+
used: boolean;
|
|
1565
|
+
} | null;
|
|
1535
1566
|
task_id: string;
|
|
1536
1567
|
web_required: boolean;
|
|
1537
1568
|
attempts: {
|
|
@@ -1542,8 +1573,8 @@ export declare const RunTelemetry: z.ZodObject<{
|
|
|
1542
1573
|
verification: "none" | "verified" | "dispatched";
|
|
1543
1574
|
target: string | null;
|
|
1544
1575
|
error_summary: string | null;
|
|
1545
|
-
tool: string | null;
|
|
1546
1576
|
required: boolean;
|
|
1577
|
+
tool: string | null;
|
|
1547
1578
|
attempted: boolean;
|
|
1548
1579
|
policy: "off" | "auto" | "cached" | "live";
|
|
1549
1580
|
effective_mode: "off" | "auto" | "cached" | "live";
|
|
@@ -1563,10 +1594,10 @@ export declare const RunTelemetry: z.ZodObject<{
|
|
|
1563
1594
|
requested: boolean;
|
|
1564
1595
|
effective: boolean;
|
|
1565
1596
|
harness_id: string;
|
|
1566
|
-
reason: "effective" | "
|
|
1597
|
+
reason: "effective" | "runtime_unavailable" | "manifest_unsupported" | "not_requested" | "access_profile_incompatible" | "web_policy_off" | "postdiff_only";
|
|
1567
1598
|
evidence_refs: string[];
|
|
1568
1599
|
eligible: boolean;
|
|
1569
|
-
capability: "browser" | "path_deny";
|
|
1600
|
+
capability: "browser" | "delegation" | "path_deny";
|
|
1570
1601
|
}[];
|
|
1571
1602
|
tool_errors: {
|
|
1572
1603
|
kind: "web" | "file" | "command" | "mcp" | "search" | "other";
|
|
@@ -1628,10 +1659,10 @@ export declare const RunTelemetry: z.ZodObject<{
|
|
|
1628
1659
|
requested: boolean;
|
|
1629
1660
|
effective: boolean;
|
|
1630
1661
|
harness_id: string;
|
|
1631
|
-
reason: "effective" | "
|
|
1662
|
+
reason: "effective" | "runtime_unavailable" | "manifest_unsupported" | "not_requested" | "access_profile_incompatible" | "web_policy_off" | "postdiff_only";
|
|
1632
1663
|
evidence_refs: string[];
|
|
1633
1664
|
eligible: boolean;
|
|
1634
|
-
capability: "browser" | "path_deny";
|
|
1665
|
+
capability: "browser" | "delegation" | "path_deny";
|
|
1635
1666
|
}[];
|
|
1636
1667
|
requested_access: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
|
|
1637
1668
|
effective_access: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
|
|
@@ -1663,7 +1694,7 @@ export declare const RunTelemetry: z.ZodObject<{
|
|
|
1663
1694
|
incremental_cost_usd: number | null;
|
|
1664
1695
|
eligible: boolean;
|
|
1665
1696
|
}[];
|
|
1666
|
-
reason: "subscription_entitlement_first" | "lowest_incremental_cash" | "quality_tier" | "expiring_quota_slack" | "all_incremental_cash_unknown" | "declared_order";
|
|
1697
|
+
reason: "subscription_entitlement_first" | "lowest_incremental_cash" | "quality_tier" | "expiring_quota_slack" | "all_incremental_cash_unknown" | "delegate_effective_first" | "explicit_primary" | "declared_order";
|
|
1667
1698
|
goal: "auto" | "quality" | "economy";
|
|
1668
1699
|
paid_fallback: "never" | "when_unavailable" | "allowed_within_cap";
|
|
1669
1700
|
order: string[];
|
|
@@ -1680,8 +1711,8 @@ export declare const RunTelemetry: z.ZodObject<{
|
|
|
1680
1711
|
verification?: "none" | "verified" | "dispatched" | undefined;
|
|
1681
1712
|
target?: string | null | undefined;
|
|
1682
1713
|
error_summary?: string | null | undefined;
|
|
1683
|
-
tool?: string | null | undefined;
|
|
1684
1714
|
required?: boolean | undefined;
|
|
1715
|
+
tool?: string | null | undefined;
|
|
1685
1716
|
attempted?: boolean | undefined;
|
|
1686
1717
|
policy?: "off" | "auto" | "cached" | "live" | undefined;
|
|
1687
1718
|
effective_mode?: "off" | "auto" | "cached" | "live" | undefined;
|
|
@@ -1696,6 +1727,13 @@ export declare const RunTelemetry: z.ZodObject<{
|
|
|
1696
1727
|
requested_access: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
|
|
1697
1728
|
effective_access: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
|
|
1698
1729
|
effective_web_mode: "off" | "auto" | "cached" | "live";
|
|
1730
|
+
delegation?: {
|
|
1731
|
+
requested?: boolean | undefined;
|
|
1732
|
+
effective?: boolean | undefined;
|
|
1733
|
+
reason?: "pending" | "runtime_unavailable" | "manifest_unsupported" | "not_requested" | "injected_unused" | "used" | "access_profile_incompatible" | "partially_degraded" | "startup_failed" | undefined;
|
|
1734
|
+
remediation?: string | null | undefined;
|
|
1735
|
+
used?: boolean | undefined;
|
|
1736
|
+
} | null | undefined;
|
|
1699
1737
|
web_required?: boolean | undefined;
|
|
1700
1738
|
attempts?: {
|
|
1701
1739
|
harness_id: string;
|
|
@@ -1704,8 +1742,8 @@ export declare const RunTelemetry: z.ZodObject<{
|
|
|
1704
1742
|
verification?: "none" | "verified" | "dispatched" | undefined;
|
|
1705
1743
|
target?: string | null | undefined;
|
|
1706
1744
|
error_summary?: string | null | undefined;
|
|
1707
|
-
tool?: string | null | undefined;
|
|
1708
1745
|
required?: boolean | undefined;
|
|
1746
|
+
tool?: string | null | undefined;
|
|
1709
1747
|
attempted?: boolean | undefined;
|
|
1710
1748
|
policy?: "off" | "auto" | "cached" | "live" | undefined;
|
|
1711
1749
|
effective_mode?: "off" | "auto" | "cached" | "live" | undefined;
|
|
@@ -1734,9 +1772,9 @@ export declare const RunTelemetry: z.ZodObject<{
|
|
|
1734
1772
|
requested: boolean;
|
|
1735
1773
|
effective: boolean;
|
|
1736
1774
|
harness_id: string;
|
|
1737
|
-
reason: "effective" | "
|
|
1775
|
+
reason: "effective" | "runtime_unavailable" | "manifest_unsupported" | "not_requested" | "access_profile_incompatible" | "web_policy_off" | "postdiff_only";
|
|
1738
1776
|
eligible: boolean;
|
|
1739
|
-
capability: "browser" | "path_deny";
|
|
1777
|
+
capability: "browser" | "delegation" | "path_deny";
|
|
1740
1778
|
evidence_refs?: string[] | undefined;
|
|
1741
1779
|
}[] | undefined;
|
|
1742
1780
|
tool_errors?: {
|
|
@@ -1790,9 +1828,9 @@ export declare const RunTelemetry: z.ZodObject<{
|
|
|
1790
1828
|
requested: boolean;
|
|
1791
1829
|
effective: boolean;
|
|
1792
1830
|
harness_id: string;
|
|
1793
|
-
reason: "effective" | "
|
|
1831
|
+
reason: "effective" | "runtime_unavailable" | "manifest_unsupported" | "not_requested" | "access_profile_incompatible" | "web_policy_off" | "postdiff_only";
|
|
1794
1832
|
eligible: boolean;
|
|
1795
|
-
capability: "browser" | "path_deny";
|
|
1833
|
+
capability: "browser" | "delegation" | "path_deny";
|
|
1796
1834
|
evidence_refs?: string[] | undefined;
|
|
1797
1835
|
}[] | undefined;
|
|
1798
1836
|
final_attempt_id?: string | null | undefined;
|
|
@@ -1816,7 +1854,7 @@ export declare const RunTelemetry: z.ZodObject<{
|
|
|
1816
1854
|
} | null | undefined;
|
|
1817
1855
|
} | null | undefined;
|
|
1818
1856
|
routing_rationale?: {
|
|
1819
|
-
reason: "subscription_entitlement_first" | "lowest_incremental_cash" | "quality_tier" | "expiring_quota_slack" | "all_incremental_cash_unknown" | "declared_order";
|
|
1857
|
+
reason: "subscription_entitlement_first" | "lowest_incremental_cash" | "quality_tier" | "expiring_quota_slack" | "all_incremental_cash_unknown" | "delegate_effective_first" | "explicit_primary" | "declared_order";
|
|
1820
1858
|
goal: "auto" | "quality" | "economy";
|
|
1821
1859
|
paid_fallback: "never" | "when_unavailable" | "allowed_within_cap";
|
|
1822
1860
|
entries?: {
|
package/dist/telemetry.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"telemetry.d.ts","sourceRoot":"","sources":["../src/telemetry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"telemetry.d.ts","sourceRoot":"","sources":["../src/telemetry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAoBxB;;;;;;;GAOG;AAEH,eAAO,MAAM,iBAAiB,uEAI3B,CAAC;AACJ,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAElE,eAAO,MAAM,iBAAiB;;IAG1B,oCAAoC;;IAEpC,wGAAwG;;;;;IAUxG;;;;;;;;;OASG;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyBJ,CAAC;AACJ,MAAM,MAAM,iBAAiB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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAiD7D;;;4EAGwE;;;;;;;;QASpE;gDACwC;;QAQxC;;;6DAGqD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAiBzD;;;6EAGyE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAe1E,CAAC;AACJ,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC"}
|
package/dist/telemetry.js
CHANGED
|
@@ -8,6 +8,7 @@ import { AuthPreference } from "./primitives.js";
|
|
|
8
8
|
import { AuthRouteReason, AuthSourceKind } from "./auth.js";
|
|
9
9
|
import { RequestRequirementResolution } from "./request-requirements.js";
|
|
10
10
|
import { WorkState } from "./work-report.js";
|
|
11
|
+
import { RunDelegationInfo } from "./delegation.js";
|
|
11
12
|
/**
|
|
12
13
|
* Run telemetry artifact (`final/telemetry.yaml`).
|
|
13
14
|
*
|
|
@@ -73,11 +74,11 @@ export const ToolErrorRecord = z
|
|
|
73
74
|
.default(null)
|
|
74
75
|
.describe("Redacted target of the tool use, when known."),
|
|
75
76
|
summary: z.string().describe("Redacted error summary."),
|
|
76
|
-
/** True when a later successful result
|
|
77
|
+
/** True when a later successful result is attributable to this failed invocation. */
|
|
77
78
|
recovered: z
|
|
78
79
|
.boolean()
|
|
79
80
|
.default(false)
|
|
80
|
-
.describe("True when a later successful result
|
|
81
|
+
.describe("True when a later successful result matches this failed invocation."),
|
|
81
82
|
tool_use_id: z
|
|
82
83
|
.string()
|
|
83
84
|
.nullable()
|
|
@@ -414,11 +415,9 @@ export const RunTelemetry = z
|
|
|
414
415
|
external_context_policy: ExternalContextPolicy.describe("Requested web policy for the run."),
|
|
415
416
|
effective_web_mode: ExternalContextPolicy.describe("Web policy actually executed by the selected route."),
|
|
416
417
|
web_required: z.boolean().default(false).describe("Whether the run required web evidence."),
|
|
417
|
-
/** Attempt whose output became the final answer/patch; null when no attempt succeeded. */
|
|
418
418
|
final_attempt_id: Id.nullable()
|
|
419
419
|
.default(null)
|
|
420
420
|
.describe("Attempt whose output became the final answer/patch; null when no attempt succeeded."),
|
|
421
|
-
/** Run-level web evidence: the final attempt's evidence, else the most severe attempt evidence. */
|
|
422
421
|
web: WebEvidenceRecord.describe("Run-level web evidence: the final attempt's evidence, else the most severe attempt evidence."),
|
|
423
422
|
attempts: z
|
|
424
423
|
.array(AttemptTelemetryRecord)
|
|
@@ -428,16 +427,15 @@ export const RunTelemetry = z
|
|
|
428
427
|
.array(RequestRequirementResolution)
|
|
429
428
|
.default([])
|
|
430
429
|
.describe("All selected-lane capability receipts for this run."),
|
|
431
|
-
|
|
430
|
+
delegation: RunDelegationInfo.nullable()
|
|
431
|
+
.default(null)
|
|
432
|
+
.describe("Run-level Delegate receipt aggregated from engine injection and typed tool evidence; null on legacy artifacts that did not record it."),
|
|
432
433
|
tool_warnings_total: z
|
|
433
434
|
.number()
|
|
434
435
|
.int()
|
|
435
436
|
.nonnegative()
|
|
436
437
|
.default(0)
|
|
437
438
|
.describe("Sum of attempt tool warnings; rendered separately from terminal state."),
|
|
438
|
-
/** Token usage summed across every attempt (candidates + synthesis), the
|
|
439
|
-
* same accounting scope as spendUsd. Each field null until some attempt
|
|
440
|
-
* reports it. Not a grand total (see TokenUsage). */
|
|
441
439
|
usage_totals: TokenUsage.default({}),
|
|
442
440
|
/** The run's auth ROUTE RECEIPT (INV-061 disclosure): requested preference,
|
|
443
441
|
* the effective route/source the deciding attempt disclosed, and a
|
|
@@ -481,7 +479,6 @@ export const RunTelemetry = z
|
|
|
481
479
|
routing_rationale: RouteRankingRationale.nullable()
|
|
482
480
|
.default(null)
|
|
483
481
|
.describe("Typed routing rationale recorded once at pool ordering (QA-034); null on legacy artifacts or when no ranking was computed."),
|
|
484
|
-
/** Deep-scan reducer outcome (#27 / D-6); null on non-deep-scan/legacy runs. */
|
|
485
482
|
deep_scan_synthesis: DeepScanSynthesis.nullable()
|
|
486
483
|
.default(null)
|
|
487
484
|
.describe("Deep-scan reducer outcome (#27); null on non-deep-scan runs and legacy artifacts."),
|