@claudexor/schema 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +16 -0
- package/dist/agent-capabilities.d.ts +366 -0
- package/dist/agent-capabilities.d.ts.map +1 -0
- package/dist/agent-capabilities.js +125 -0
- package/dist/agent-capabilities.js.map +1 -0
- package/dist/apply-eligibility.d.ts +76 -0
- package/dist/apply-eligibility.d.ts.map +1 -0
- package/dist/apply-eligibility.js +37 -0
- package/dist/apply-eligibility.js.map +1 -0
- package/dist/attachment.d.ts +69 -0
- package/dist/attachment.d.ts.map +1 -0
- package/dist/attachment.js +54 -0
- package/dist/attachment.js.map +1 -0
- package/dist/budget.d.ts +75 -0
- package/dist/budget.d.ts.map +1 -0
- package/dist/budget.js +54 -0
- package/dist/budget.js.map +1 -0
- package/dist/config.d.ts +743 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +194 -0
- package/dist/config.js.map +1 -0
- package/dist/context.d.ts +222 -0
- package/dist/context.d.ts.map +1 -0
- package/dist/context.js +70 -0
- package/dist/context.js.map +1 -0
- package/dist/control-run-detail.d.ts +1686 -0
- package/dist/control-run-detail.d.ts.map +1 -0
- package/dist/control-run-detail.js +107 -0
- package/dist/control-run-detail.js.map +1 -0
- package/dist/control-trust.d.ts +79 -0
- package/dist/control-trust.d.ts.map +1 -0
- package/dist/control-trust.js +39 -0
- package/dist/control-trust.js.map +1 -0
- package/dist/control.d.ts +4226 -0
- package/dist/control.d.ts.map +1 -0
- package/dist/control.js +1022 -0
- package/dist/control.js.map +1 -0
- package/dist/decision.d.ts +208 -0
- package/dist/decision.d.ts.map +1 -0
- package/dist/decision.js +98 -0
- package/dist/decision.js.map +1 -0
- package/dist/events.d.ts +70 -0
- package/dist/events.d.ts.map +1 -0
- package/dist/events.js +105 -0
- package/dist/events.js.map +1 -0
- package/dist/gate.d.ts +37 -0
- package/dist/gate.d.ts.map +1 -0
- package/dist/gate.js +20 -0
- package/dist/gate.js.map +1 -0
- package/dist/harness.d.ts +1418 -0
- package/dist/harness.d.ts.map +1 -0
- package/dist/harness.js +552 -0
- package/dist/harness.js.map +1 -0
- package/dist/index.d.ts +32 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +32 -0
- package/dist/index.js.map +1 -0
- package/dist/orchestrate.d.ts +428 -0
- package/dist/orchestrate.d.ts.map +1 -0
- package/dist/orchestrate.js +246 -0
- package/dist/orchestrate.js.map +1 -0
- package/dist/primitives.d.ts +71 -0
- package/dist/primitives.d.ts.map +1 -0
- package/dist/primitives.js +114 -0
- package/dist/primitives.js.map +1 -0
- package/dist/review.d.ts +220 -0
- package/dist/review.d.ts.map +1 -0
- package/dist/review.js +91 -0
- package/dist/review.js.map +1 -0
- package/dist/route.d.ts +67 -0
- package/dist/route.d.ts.map +1 -0
- package/dist/route.js +33 -0
- package/dist/route.js.map +1 -0
- package/dist/spec.d.ts +561 -0
- package/dist/spec.d.ts.map +1 -0
- package/dist/spec.js +133 -0
- package/dist/spec.js.map +1 -0
- package/dist/surface-run-controls.d.ts +14 -0
- package/dist/surface-run-controls.d.ts.map +1 -0
- package/dist/surface-run-controls.js +142 -0
- package/dist/surface-run-controls.js.map +1 -0
- package/dist/task.d.ts +565 -0
- package/dist/task.d.ts.map +1 -0
- package/dist/task.js +186 -0
- package/dist/task.js.map +1 -0
- package/dist/telemetry.d.ts +660 -0
- package/dist/telemetry.d.ts.map +1 -0
- package/dist/telemetry.js +140 -0
- package/dist/telemetry.js.map +1 -0
- package/dist/thread.d.ts +348 -0
- package/dist/thread.d.ts.map +1 -0
- package/dist/thread.js +194 -0
- package/dist/thread.js.map +1 -0
- package/dist/workproduct.d.ts +31 -0
- package/dist/workproduct.d.ts.map +1 -0
- package/dist/workproduct.js +25 -0
- package/dist/workproduct.js.map +1 -0
- package/dist/workspace.d.ts +53 -0
- package/dist/workspace.d.ts.map +1 -0
- package/dist/workspace.js +30 -0
- package/dist/workspace.js.map +1 -0
- package/generated/AgentCapabilityCatalog.schema.json +389 -0
- package/generated/ApplyEligibility.schema.json +44 -0
- package/generated/BudgetLease.schema.json +95 -0
- package/generated/BudgetObservation.schema.json +76 -0
- package/generated/ConformanceReport.schema.json +107 -0
- package/generated/ContextPack.schema.json +186 -0
- package/generated/ControlApplyCheckRequest.schema.json +54 -0
- package/generated/ControlApplyRequest.schema.json +74 -0
- package/generated/ControlHarnessListResponse.schema.json +498 -0
- package/generated/ControlHarnessModelsResponse.schema.json +78 -0
- package/generated/ControlHarnessSettingsPatch.schema.json +130 -0
- package/generated/ControlInteractionAnswerRequest.schema.json +48 -0
- package/generated/ControlInteractionAnswerResponse.schema.json +35 -0
- package/generated/ControlPendingInteraction.schema.json +129 -0
- package/generated/ControlQueuedRunInfo.schema.json +44 -0
- package/generated/ControlRunControlRequest.schema.json +61 -0
- package/generated/ControlRunControlResponse.schema.json +40 -0
- package/generated/ControlRunDecisionRequest.schema.json +98 -0
- package/generated/ControlRunDecisionResponse.schema.json +40 -0
- package/generated/ControlRunDetail.schema.json +1925 -0
- package/generated/ControlRunStartInfo.schema.json +33 -0
- package/generated/ControlRunStartRequest.schema.json +429 -0
- package/generated/ControlRunSummary.schema.json +666 -0
- package/generated/ControlSecretListResponse.schema.json +57 -0
- package/generated/ControlSettingsSnapshot.schema.json +281 -0
- package/generated/ControlSettingsUpdateRequest.schema.json +212 -0
- package/generated/ControlSetupJob.schema.json +148 -0
- package/generated/ControlSetupJobConfirmRequest.schema.json +18 -0
- package/generated/ControlSetupJobCreateRequest.schema.json +38 -0
- package/generated/ControlSetupJobEvent.schema.json +58 -0
- package/generated/ControlSetupJobListResponse.schema.json +162 -0
- package/generated/ControlSpecFreezeRequest.schema.json +83 -0
- package/generated/ControlSpecQuestionsRequest.schema.json +80 -0
- package/generated/ControlThread.schema.json +129 -0
- package/generated/ControlThreadApplyRequest.schema.json +32 -0
- package/generated/ControlThreadApplyResponse.schema.json +47 -0
- package/generated/ControlThreadCreateRequest.schema.json +107 -0
- package/generated/ControlThreadDetail.schema.json +515 -0
- package/generated/ControlThreadListResponse.schema.json +141 -0
- package/generated/ControlThreadUpdateRequest.schema.json +46 -0
- package/generated/ControlTrustListResponse.schema.json +59 -0
- package/generated/ControlTrustState.schema.json +45 -0
- package/generated/ControlTrustUpdateRequest.schema.json +26 -0
- package/generated/DecisionRecord.schema.json +232 -0
- package/generated/GateResult.schema.json +81 -0
- package/generated/GlobalConfig.schema.json +313 -0
- package/generated/HarnessEvent.schema.json +360 -0
- package/generated/HarnessManifest.schema.json +350 -0
- package/generated/HarnessModel.schema.json +41 -0
- package/generated/HarnessStatusDto.schema.json +486 -0
- package/generated/McpRunToolResult.schema.json +91 -0
- package/generated/OrchestrateContract.schema.json +93 -0
- package/generated/OrchestratePlan.schema.json +244 -0
- package/generated/OrchestratePlanProgress.schema.json +103 -0
- package/generated/ProjectConfig.schema.json +95 -0
- package/generated/ReviewFinding.schema.json +226 -0
- package/generated/RouteFallbackPayload.schema.json +79 -0
- package/generated/RouteProof.schema.json +111 -0
- package/generated/RunControl.schema.json +51 -0
- package/generated/RunEvent.schema.json +103 -0
- package/generated/RunFailure.schema.json +98 -0
- package/generated/RunTelemetry.schema.json +433 -0
- package/generated/SecretMetadata.schema.json +34 -0
- package/generated/Session.schema.json +80 -0
- package/generated/SessionReboundLineage.schema.json +73 -0
- package/generated/SpecPack.schema.json +372 -0
- package/generated/TaskContract.schema.json +501 -0
- package/generated/Thread.schema.json +176 -0
- package/generated/ThreadTurn.schema.json +172 -0
- package/generated/TrustConfig.schema.json +44 -0
- package/generated/WorkProduct.schema.json +60 -0
- package/generated/WorkspaceEnvelope.schema.json +94 -0
- package/package.json +43 -0
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/RouteFallbackPayload",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"RouteFallbackPayload": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"from_harness": {
|
|
8
|
+
"type": [
|
|
9
|
+
"string",
|
|
10
|
+
"null"
|
|
11
|
+
],
|
|
12
|
+
"default": null,
|
|
13
|
+
"description": "Harness the route fell back from."
|
|
14
|
+
},
|
|
15
|
+
"to_harness": {
|
|
16
|
+
"type": [
|
|
17
|
+
"string",
|
|
18
|
+
"null"
|
|
19
|
+
],
|
|
20
|
+
"default": null,
|
|
21
|
+
"description": "Harness the route fell back to."
|
|
22
|
+
},
|
|
23
|
+
"from_auth_mode": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"enum": [
|
|
26
|
+
"local_session",
|
|
27
|
+
"api_key",
|
|
28
|
+
"unknown"
|
|
29
|
+
],
|
|
30
|
+
"description": "Auth mode before the switch.",
|
|
31
|
+
"default": "unknown"
|
|
32
|
+
},
|
|
33
|
+
"to_auth_mode": {
|
|
34
|
+
"$ref": "#/definitions/RouteFallbackPayload/properties/from_auth_mode",
|
|
35
|
+
"default": "unknown",
|
|
36
|
+
"description": "Auth mode after the switch."
|
|
37
|
+
},
|
|
38
|
+
"reason": {
|
|
39
|
+
"type": "string",
|
|
40
|
+
"enum": [
|
|
41
|
+
"quota_exhausted",
|
|
42
|
+
"money_exhausted",
|
|
43
|
+
"subscription_exhausted",
|
|
44
|
+
"rate_limited",
|
|
45
|
+
"harness_error",
|
|
46
|
+
"stall",
|
|
47
|
+
"web_evidence_unsatisfied",
|
|
48
|
+
"fallback_model",
|
|
49
|
+
"not_portable",
|
|
50
|
+
"auth_unavailable",
|
|
51
|
+
"readiness_preferred",
|
|
52
|
+
"manual"
|
|
53
|
+
],
|
|
54
|
+
"description": "Typed reason an auto-fallback (route/auth switch) or session re-host happened, driven by typed budget/quota signals and events, never by regex over prose.",
|
|
55
|
+
"default": "manual"
|
|
56
|
+
},
|
|
57
|
+
"attempt_id": {
|
|
58
|
+
"type": [
|
|
59
|
+
"string",
|
|
60
|
+
"null"
|
|
61
|
+
],
|
|
62
|
+
"default": null,
|
|
63
|
+
"description": "Attempt the fallback happened in, when known."
|
|
64
|
+
},
|
|
65
|
+
"error_summary": {
|
|
66
|
+
"type": [
|
|
67
|
+
"string",
|
|
68
|
+
"null"
|
|
69
|
+
],
|
|
70
|
+
"default": null,
|
|
71
|
+
"description": "Redacted error detail that triggered the fallback."
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"additionalProperties": false,
|
|
75
|
+
"description": "Typed payload for route.fallback.* events, validated before being stamped onto the RunEvent payload so a fallback/auth-switch is always evidence-backed."
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
79
|
+
}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/RouteProof",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"RouteProof": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"requested": {
|
|
8
|
+
"type": "object",
|
|
9
|
+
"properties": {
|
|
10
|
+
"harness_id": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"minLength": 1,
|
|
13
|
+
"description": "Harness the route was requested on."
|
|
14
|
+
},
|
|
15
|
+
"provider_family": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"enum": [
|
|
18
|
+
"openai",
|
|
19
|
+
"anthropic",
|
|
20
|
+
"google",
|
|
21
|
+
"cursor",
|
|
22
|
+
"opencode",
|
|
23
|
+
"xai",
|
|
24
|
+
"local",
|
|
25
|
+
"unknown"
|
|
26
|
+
],
|
|
27
|
+
"description": "Vendor/provider family a harness routes to, used for route-diversity reasoning; open-ended via \"unknown\"."
|
|
28
|
+
},
|
|
29
|
+
"model_hint": {
|
|
30
|
+
"type": [
|
|
31
|
+
"string",
|
|
32
|
+
"null"
|
|
33
|
+
],
|
|
34
|
+
"default": null,
|
|
35
|
+
"description": "Model requested for the route; null = harness default."
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"required": [
|
|
39
|
+
"harness_id",
|
|
40
|
+
"provider_family"
|
|
41
|
+
],
|
|
42
|
+
"additionalProperties": false,
|
|
43
|
+
"description": "What was requested."
|
|
44
|
+
},
|
|
45
|
+
"observed": {
|
|
46
|
+
"type": "object",
|
|
47
|
+
"properties": {
|
|
48
|
+
"provider": {
|
|
49
|
+
"type": [
|
|
50
|
+
"string",
|
|
51
|
+
"null"
|
|
52
|
+
],
|
|
53
|
+
"default": null,
|
|
54
|
+
"description": "Provider actually observed; null when no evidence."
|
|
55
|
+
},
|
|
56
|
+
"model_id": {
|
|
57
|
+
"type": [
|
|
58
|
+
"string",
|
|
59
|
+
"null"
|
|
60
|
+
],
|
|
61
|
+
"default": null,
|
|
62
|
+
"description": "Model actually observed; null when no evidence."
|
|
63
|
+
},
|
|
64
|
+
"evidence_source": {
|
|
65
|
+
"type": "string",
|
|
66
|
+
"enum": [
|
|
67
|
+
"stream_event",
|
|
68
|
+
"metadata",
|
|
69
|
+
"model_catalog",
|
|
70
|
+
"transcript",
|
|
71
|
+
"unavailable"
|
|
72
|
+
],
|
|
73
|
+
"description": "Where the observed model/provider evidence came from: a stream event, response metadata, the model catalog, the transcript, or nowhere.",
|
|
74
|
+
"default": "unavailable"
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
"additionalProperties": false,
|
|
78
|
+
"description": "What was actually observed."
|
|
79
|
+
},
|
|
80
|
+
"diversity_against": {
|
|
81
|
+
"type": "array",
|
|
82
|
+
"items": {
|
|
83
|
+
"type": "string",
|
|
84
|
+
"minLength": 1,
|
|
85
|
+
"description": "Non-empty identifier string."
|
|
86
|
+
},
|
|
87
|
+
"default": [],
|
|
88
|
+
"description": "Harness ids this route was required to be diverse against."
|
|
89
|
+
},
|
|
90
|
+
"status": {
|
|
91
|
+
"type": "string",
|
|
92
|
+
"enum": [
|
|
93
|
+
"verified",
|
|
94
|
+
"accepted_model_arg",
|
|
95
|
+
"unverified",
|
|
96
|
+
"same_model_fallback"
|
|
97
|
+
],
|
|
98
|
+
"description": "How strongly the executed route is proven: verified (observed evidence matches the request), accepted_model_arg (the requested model arg was accepted without stream evidence), unverified, or same_model_fallback (a fallback landed on the same model)."
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
"required": [
|
|
102
|
+
"requested",
|
|
103
|
+
"observed",
|
|
104
|
+
"status"
|
|
105
|
+
],
|
|
106
|
+
"additionalProperties": false,
|
|
107
|
+
"description": "Records requested vs observed harness/model routing, so multi-model claims cannot silently collapse onto one model."
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
111
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/RunControl",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"RunControl": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"kind": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"enum": [
|
|
10
|
+
"cancel"
|
|
11
|
+
],
|
|
12
|
+
"description": "Control verb: cancel the run."
|
|
13
|
+
},
|
|
14
|
+
"target": {
|
|
15
|
+
"type": "object",
|
|
16
|
+
"properties": {
|
|
17
|
+
"attemptId": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"description": "Attempt to target; omitted = the whole run."
|
|
20
|
+
},
|
|
21
|
+
"harnessId": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"description": "Harness to target."
|
|
24
|
+
},
|
|
25
|
+
"sessionId": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"description": "Session to target."
|
|
28
|
+
},
|
|
29
|
+
"requestId": {
|
|
30
|
+
"type": "string",
|
|
31
|
+
"description": "Specific request to target."
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"additionalProperties": false,
|
|
35
|
+
"description": "Optional narrowing of what a run control verb targets.",
|
|
36
|
+
"default": {}
|
|
37
|
+
},
|
|
38
|
+
"reason": {
|
|
39
|
+
"type": "string",
|
|
40
|
+
"description": "Human-readable reason for the control."
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"required": [
|
|
44
|
+
"kind"
|
|
45
|
+
],
|
|
46
|
+
"additionalProperties": false,
|
|
47
|
+
"description": "A control verb (cancel) aimed at a run or a narrower target inside it."
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
51
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/RunEvent",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"RunEvent": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"seq": {
|
|
8
|
+
"type": "integer",
|
|
9
|
+
"exclusiveMinimum": 0,
|
|
10
|
+
"description": "Monotonic per-run sequence stamped at emit time; the durable SSE cursor and snapshot fence. Optional only for pre-v0.8.0 artifacts."
|
|
11
|
+
},
|
|
12
|
+
"ts": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"description": "Event timestamp."
|
|
15
|
+
},
|
|
16
|
+
"run_id": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"minLength": 1,
|
|
19
|
+
"description": "Run the event belongs to."
|
|
20
|
+
},
|
|
21
|
+
"task_id": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"minLength": 1,
|
|
24
|
+
"description": "Task the run belongs to."
|
|
25
|
+
},
|
|
26
|
+
"thread_id": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"minLength": 1,
|
|
29
|
+
"description": "Thread this run is a turn of, when any."
|
|
30
|
+
},
|
|
31
|
+
"type": {
|
|
32
|
+
"type": "string",
|
|
33
|
+
"enum": [
|
|
34
|
+
"run.created",
|
|
35
|
+
"task.contract.created",
|
|
36
|
+
"context.pack.created",
|
|
37
|
+
"project.git.initialized",
|
|
38
|
+
"budget.lease.created",
|
|
39
|
+
"budget.observation",
|
|
40
|
+
"policy.web.upgraded",
|
|
41
|
+
"harness.started",
|
|
42
|
+
"harness.event",
|
|
43
|
+
"harness.completed",
|
|
44
|
+
"route.fallback.started",
|
|
45
|
+
"route.fallback.completed",
|
|
46
|
+
"route.fallback.exhausted",
|
|
47
|
+
"route.transient.detected",
|
|
48
|
+
"route.transient.retry_scheduled",
|
|
49
|
+
"route.transient.exhausted",
|
|
50
|
+
"route.fallback.auth_switched",
|
|
51
|
+
"session.rebound",
|
|
52
|
+
"interaction.requested",
|
|
53
|
+
"interaction.answered",
|
|
54
|
+
"interaction.timeout",
|
|
55
|
+
"interaction.answer_discarded",
|
|
56
|
+
"plan.progress",
|
|
57
|
+
"budget.quota_pressure",
|
|
58
|
+
"output.ready",
|
|
59
|
+
"gate.started",
|
|
60
|
+
"gate.completed",
|
|
61
|
+
"review.started",
|
|
62
|
+
"reviewer.started",
|
|
63
|
+
"reviewer.first_event",
|
|
64
|
+
"reviewer.auth_switched",
|
|
65
|
+
"reviewer.completed",
|
|
66
|
+
"reviewer.timed_out",
|
|
67
|
+
"reviewer.failed",
|
|
68
|
+
"finding.revalidated",
|
|
69
|
+
"synthesis.started",
|
|
70
|
+
"arbitration.completed",
|
|
71
|
+
"work_product.emitted",
|
|
72
|
+
"work_product.adopted",
|
|
73
|
+
"orchestrate.subrun.started",
|
|
74
|
+
"orchestrate.step.done",
|
|
75
|
+
"orchestrate.step.blocked",
|
|
76
|
+
"control.requested",
|
|
77
|
+
"control.applied",
|
|
78
|
+
"control.rejected",
|
|
79
|
+
"run.blocked",
|
|
80
|
+
"run.completed",
|
|
81
|
+
"run.failed"
|
|
82
|
+
],
|
|
83
|
+
"description": "Type of an append-only run event, covering run lifecycle, contract/context creation, budget, routing fallbacks, harness activity, interactions, gates, review, arbitration, work products, orchestrate steps, and control verbs."
|
|
84
|
+
},
|
|
85
|
+
"payload": {
|
|
86
|
+
"type": "object",
|
|
87
|
+
"additionalProperties": {},
|
|
88
|
+
"default": {},
|
|
89
|
+
"description": "Event-type-specific payload."
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
"required": [
|
|
93
|
+
"ts",
|
|
94
|
+
"run_id",
|
|
95
|
+
"task_id",
|
|
96
|
+
"type"
|
|
97
|
+
],
|
|
98
|
+
"additionalProperties": false,
|
|
99
|
+
"description": "Append-only run event record (one JSONL line in the run's event log)."
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
103
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/RunFailure",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"RunFailure": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"phase": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"default": "unknown",
|
|
10
|
+
"description": "Pipeline phase where the failure happened."
|
|
11
|
+
},
|
|
12
|
+
"category": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"enum": [
|
|
15
|
+
"validation",
|
|
16
|
+
"project",
|
|
17
|
+
"auth",
|
|
18
|
+
"harness_unavailable",
|
|
19
|
+
"harness_error",
|
|
20
|
+
"budget",
|
|
21
|
+
"policy",
|
|
22
|
+
"cancelled",
|
|
23
|
+
"internal",
|
|
24
|
+
"unknown"
|
|
25
|
+
],
|
|
26
|
+
"default": "unknown",
|
|
27
|
+
"description": "Typed failure category (validation, project, auth, harness, budget, policy, cancelled, internal, unknown)."
|
|
28
|
+
},
|
|
29
|
+
"harnessId": {
|
|
30
|
+
"type": [
|
|
31
|
+
"string",
|
|
32
|
+
"null"
|
|
33
|
+
],
|
|
34
|
+
"default": null,
|
|
35
|
+
"description": "Harness involved in the failure, when known."
|
|
36
|
+
},
|
|
37
|
+
"attemptId": {
|
|
38
|
+
"type": [
|
|
39
|
+
"string",
|
|
40
|
+
"null"
|
|
41
|
+
],
|
|
42
|
+
"default": null,
|
|
43
|
+
"description": "Attempt involved in the failure, when known."
|
|
44
|
+
},
|
|
45
|
+
"safeMessage": {
|
|
46
|
+
"type": "string",
|
|
47
|
+
"description": "Redacted human-readable failure message."
|
|
48
|
+
},
|
|
49
|
+
"rawDetailRef": {
|
|
50
|
+
"type": [
|
|
51
|
+
"string",
|
|
52
|
+
"null"
|
|
53
|
+
],
|
|
54
|
+
"default": null,
|
|
55
|
+
"description": "Artifact path holding the raw (redacted) failure detail."
|
|
56
|
+
},
|
|
57
|
+
"logRefs": {
|
|
58
|
+
"type": "array",
|
|
59
|
+
"items": {
|
|
60
|
+
"type": "string"
|
|
61
|
+
},
|
|
62
|
+
"default": [],
|
|
63
|
+
"description": "Log artifact paths relevant to the failure."
|
|
64
|
+
},
|
|
65
|
+
"eventRefs": {
|
|
66
|
+
"type": "array",
|
|
67
|
+
"items": {
|
|
68
|
+
"type": "string"
|
|
69
|
+
},
|
|
70
|
+
"default": [],
|
|
71
|
+
"description": "Event references relevant to the failure."
|
|
72
|
+
},
|
|
73
|
+
"runDir": {
|
|
74
|
+
"type": [
|
|
75
|
+
"string",
|
|
76
|
+
"null"
|
|
77
|
+
],
|
|
78
|
+
"default": null,
|
|
79
|
+
"description": "Run artifact directory."
|
|
80
|
+
},
|
|
81
|
+
"nextActions": {
|
|
82
|
+
"type": "array",
|
|
83
|
+
"items": {
|
|
84
|
+
"type": "string"
|
|
85
|
+
},
|
|
86
|
+
"default": [],
|
|
87
|
+
"description": "Suggested operator next actions."
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"required": [
|
|
91
|
+
"safeMessage"
|
|
92
|
+
],
|
|
93
|
+
"additionalProperties": false,
|
|
94
|
+
"description": "Typed failure record for a run: phase, category, evidence references, and suggested next actions."
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
98
|
+
}
|