@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,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/ControlThreadUpdateRequest",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"ControlThreadUpdateRequest": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"title": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"description": "New thread title."
|
|
10
|
+
},
|
|
11
|
+
"state": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"enum": [
|
|
14
|
+
"active",
|
|
15
|
+
"closed"
|
|
16
|
+
],
|
|
17
|
+
"description": "New thread state (active/closed)."
|
|
18
|
+
},
|
|
19
|
+
"primaryHarness": {
|
|
20
|
+
"anyOf": [
|
|
21
|
+
{
|
|
22
|
+
"type": "string",
|
|
23
|
+
"minLength": 1,
|
|
24
|
+
"pattern": "\\S",
|
|
25
|
+
"description": "User-supplied string that must contain visible content, not just whitespace."
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"type": "null"
|
|
29
|
+
}
|
|
30
|
+
],
|
|
31
|
+
"description": "New sticky primary harness; null clears back to engine routing."
|
|
32
|
+
},
|
|
33
|
+
"eligibleHarnesses": {
|
|
34
|
+
"type": "array",
|
|
35
|
+
"items": {
|
|
36
|
+
"$ref": "#/definitions/ControlThreadUpdateRequest/properties/primaryHarness/anyOf/0"
|
|
37
|
+
},
|
|
38
|
+
"description": "New sticky eligible harness pool."
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"additionalProperties": false,
|
|
42
|
+
"description": "Request body for PATCH /threads/:id: rename, archive, or switch sticky routing."
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
46
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/ControlTrustListResponse",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"ControlTrustListResponse": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"entries": {
|
|
8
|
+
"type": "array",
|
|
9
|
+
"items": {
|
|
10
|
+
"type": "object",
|
|
11
|
+
"properties": {
|
|
12
|
+
"repoRoot": {
|
|
13
|
+
"type": [
|
|
14
|
+
"string",
|
|
15
|
+
"null"
|
|
16
|
+
],
|
|
17
|
+
"description": "Repo root recorded in the trust file; null for legacy files written before provenance stamping."
|
|
18
|
+
},
|
|
19
|
+
"path": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"description": "The user-level trust file backing this state (path disclosure, no content)."
|
|
22
|
+
},
|
|
23
|
+
"allowFullAccess": {
|
|
24
|
+
"type": "boolean",
|
|
25
|
+
"description": "Whether unsandboxed full access is allowed for the repo."
|
|
26
|
+
},
|
|
27
|
+
"accessDefault": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"enum": [
|
|
30
|
+
"readonly",
|
|
31
|
+
"workspace_write",
|
|
32
|
+
"full",
|
|
33
|
+
"external_sandbox_full",
|
|
34
|
+
"inherit_native"
|
|
35
|
+
],
|
|
36
|
+
"description": "Default access profile for runs in the repo."
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"required": [
|
|
40
|
+
"repoRoot",
|
|
41
|
+
"path",
|
|
42
|
+
"allowFullAccess",
|
|
43
|
+
"accessDefault"
|
|
44
|
+
],
|
|
45
|
+
"additionalProperties": false,
|
|
46
|
+
"description": "Trust state of one repo from its user-level trust file."
|
|
47
|
+
},
|
|
48
|
+
"description": "Trust states for all known repos."
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"required": [
|
|
52
|
+
"entries"
|
|
53
|
+
],
|
|
54
|
+
"additionalProperties": false,
|
|
55
|
+
"description": "Response for listing per-repo trust states."
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
59
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/ControlTrustState",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"ControlTrustState": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"repoRoot": {
|
|
8
|
+
"type": [
|
|
9
|
+
"string",
|
|
10
|
+
"null"
|
|
11
|
+
],
|
|
12
|
+
"description": "Repo root recorded in the trust file; null for legacy files written before provenance stamping."
|
|
13
|
+
},
|
|
14
|
+
"path": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"description": "The user-level trust file backing this state (path disclosure, no content)."
|
|
17
|
+
},
|
|
18
|
+
"allowFullAccess": {
|
|
19
|
+
"type": "boolean",
|
|
20
|
+
"description": "Whether unsandboxed full access is allowed for the repo."
|
|
21
|
+
},
|
|
22
|
+
"accessDefault": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"enum": [
|
|
25
|
+
"readonly",
|
|
26
|
+
"workspace_write",
|
|
27
|
+
"full",
|
|
28
|
+
"external_sandbox_full",
|
|
29
|
+
"inherit_native"
|
|
30
|
+
],
|
|
31
|
+
"description": "Default access profile for runs in the repo."
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"required": [
|
|
35
|
+
"repoRoot",
|
|
36
|
+
"path",
|
|
37
|
+
"allowFullAccess",
|
|
38
|
+
"accessDefault"
|
|
39
|
+
],
|
|
40
|
+
"additionalProperties": false,
|
|
41
|
+
"description": "Trust state of one repo from its user-level trust file."
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
45
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/ControlTrustUpdateRequest",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"ControlTrustUpdateRequest": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"repoRoot": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"minLength": 1,
|
|
10
|
+
"description": "Absolute repo root the trust change applies to."
|
|
11
|
+
},
|
|
12
|
+
"allowFullAccess": {
|
|
13
|
+
"type": "boolean",
|
|
14
|
+
"description": "Grant (true) or revoke (false) unsandboxed full access for the repo."
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"required": [
|
|
18
|
+
"repoRoot",
|
|
19
|
+
"allowFullAccess"
|
|
20
|
+
],
|
|
21
|
+
"additionalProperties": false,
|
|
22
|
+
"description": "Narrow trust update — the only trust field the control API exposes: grant or revoke unsandboxed full access for one repo in the user-level trust file."
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
26
|
+
}
|
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/DecisionRecord",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"DecisionRecord": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"winner": {
|
|
8
|
+
"anyOf": [
|
|
9
|
+
{
|
|
10
|
+
"type": "string",
|
|
11
|
+
"minLength": 1,
|
|
12
|
+
"description": "Non-empty identifier string."
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"type": "null"
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"description": "Winning attempt/candidate id; null when nothing won."
|
|
19
|
+
},
|
|
20
|
+
"status": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"enum": [
|
|
23
|
+
"success",
|
|
24
|
+
"no_op",
|
|
25
|
+
"ungated",
|
|
26
|
+
"review_not_run",
|
|
27
|
+
"blocked",
|
|
28
|
+
"not_converged",
|
|
29
|
+
"stuck_no_progress",
|
|
30
|
+
"failed",
|
|
31
|
+
"exhausted",
|
|
32
|
+
"cancelled"
|
|
33
|
+
],
|
|
34
|
+
"description": "Terminal status of a run: success, no_op (nothing to change), ungated (no gates configured), review_not_run, blocked (accepted blocking findings), not_converged, stuck_no_progress, failed, exhausted (attempt/budget caps), or cancelled."
|
|
35
|
+
},
|
|
36
|
+
"outcome": {
|
|
37
|
+
"type": "string",
|
|
38
|
+
"enum": [
|
|
39
|
+
"ready",
|
|
40
|
+
"no_op",
|
|
41
|
+
"ungated",
|
|
42
|
+
"review_not_run",
|
|
43
|
+
"blocked"
|
|
44
|
+
],
|
|
45
|
+
"description": "Arbitration outcome for the winning candidate: ready (verified applyable), no_op (no changes), ungated (no gates configured), review_not_run, or blocked.",
|
|
46
|
+
"default": "blocked"
|
|
47
|
+
},
|
|
48
|
+
"why_winner": {
|
|
49
|
+
"type": "string",
|
|
50
|
+
"default": "",
|
|
51
|
+
"description": "Why the winner was chosen."
|
|
52
|
+
},
|
|
53
|
+
"why_not_others": {
|
|
54
|
+
"type": "object",
|
|
55
|
+
"additionalProperties": {
|
|
56
|
+
"type": "string"
|
|
57
|
+
},
|
|
58
|
+
"default": {},
|
|
59
|
+
"description": "Per-candidate reasons the others lost, keyed by candidate id."
|
|
60
|
+
},
|
|
61
|
+
"accepted_risks": {
|
|
62
|
+
"type": "array",
|
|
63
|
+
"items": {
|
|
64
|
+
"type": "string"
|
|
65
|
+
},
|
|
66
|
+
"default": [],
|
|
67
|
+
"description": "Risks explicitly accepted in the decision."
|
|
68
|
+
},
|
|
69
|
+
"final_checks": {
|
|
70
|
+
"type": "array",
|
|
71
|
+
"items": {
|
|
72
|
+
"type": "string"
|
|
73
|
+
},
|
|
74
|
+
"default": [],
|
|
75
|
+
"description": "Final checks performed before the decision."
|
|
76
|
+
},
|
|
77
|
+
"evidence_facts": {
|
|
78
|
+
"type": "array",
|
|
79
|
+
"items": {
|
|
80
|
+
"type": "string"
|
|
81
|
+
},
|
|
82
|
+
"default": [],
|
|
83
|
+
"description": "Evidence facts the decision rests on."
|
|
84
|
+
},
|
|
85
|
+
"budget_summary": {
|
|
86
|
+
"type": "object",
|
|
87
|
+
"properties": {
|
|
88
|
+
"spend_usd": {
|
|
89
|
+
"type": [
|
|
90
|
+
"number",
|
|
91
|
+
"null"
|
|
92
|
+
],
|
|
93
|
+
"default": null,
|
|
94
|
+
"description": "Total settled spend in USD; null when unknown."
|
|
95
|
+
},
|
|
96
|
+
"estimated": {
|
|
97
|
+
"type": "boolean",
|
|
98
|
+
"default": false,
|
|
99
|
+
"description": "True when any of the spend is token-derived rather than natively reported."
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
"additionalProperties": false,
|
|
103
|
+
"default": {
|
|
104
|
+
"spend_usd": null,
|
|
105
|
+
"estimated": false
|
|
106
|
+
},
|
|
107
|
+
"description": "Settled spend for the run; estimates are disclosed, never presented as exact."
|
|
108
|
+
},
|
|
109
|
+
"apply_recommendation": {
|
|
110
|
+
"type": "string",
|
|
111
|
+
"enum": [
|
|
112
|
+
"apply",
|
|
113
|
+
"inspect",
|
|
114
|
+
"continue",
|
|
115
|
+
"split_task",
|
|
116
|
+
"human_review"
|
|
117
|
+
],
|
|
118
|
+
"description": "Recommended next action for the run's work product: apply it, inspect first, continue working, split the task, or get human review.",
|
|
119
|
+
"default": "inspect"
|
|
120
|
+
},
|
|
121
|
+
"verification_basis": {
|
|
122
|
+
"type": "string",
|
|
123
|
+
"enum": [
|
|
124
|
+
"none",
|
|
125
|
+
"cross_family_review",
|
|
126
|
+
"both"
|
|
127
|
+
],
|
|
128
|
+
"description": "What backed an applyable outcome: none (non-applyable), cross_family_review (a clean cross-family verified review), or both (deterministic gates and that review).",
|
|
129
|
+
"default": "none"
|
|
130
|
+
},
|
|
131
|
+
"final_verify": {
|
|
132
|
+
"anyOf": [
|
|
133
|
+
{
|
|
134
|
+
"type": "object",
|
|
135
|
+
"properties": {
|
|
136
|
+
"attempted": {
|
|
137
|
+
"type": "boolean",
|
|
138
|
+
"description": "Whether the final verify was attempted."
|
|
139
|
+
},
|
|
140
|
+
"base_sha": {
|
|
141
|
+
"type": [
|
|
142
|
+
"string",
|
|
143
|
+
"null"
|
|
144
|
+
],
|
|
145
|
+
"default": null,
|
|
146
|
+
"description": "Base SHA the verify tree was created from (the winner envelope's base)."
|
|
147
|
+
},
|
|
148
|
+
"applied_cleanly": {
|
|
149
|
+
"type": [
|
|
150
|
+
"boolean",
|
|
151
|
+
"null"
|
|
152
|
+
],
|
|
153
|
+
"default": null,
|
|
154
|
+
"description": "Whether the patch applied cleanly onto the fresh tree; null when not attempted."
|
|
155
|
+
},
|
|
156
|
+
"gates_passed": {
|
|
157
|
+
"type": [
|
|
158
|
+
"boolean",
|
|
159
|
+
"null"
|
|
160
|
+
],
|
|
161
|
+
"default": null,
|
|
162
|
+
"description": "Whether the re-run deterministic gates passed; null when not attempted."
|
|
163
|
+
},
|
|
164
|
+
"gates": {
|
|
165
|
+
"type": "array",
|
|
166
|
+
"items": {
|
|
167
|
+
"type": "object",
|
|
168
|
+
"properties": {
|
|
169
|
+
"id": {
|
|
170
|
+
"type": "string",
|
|
171
|
+
"description": "Gate id."
|
|
172
|
+
},
|
|
173
|
+
"status": {
|
|
174
|
+
"type": "string",
|
|
175
|
+
"description": "Gate status."
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
"required": [
|
|
179
|
+
"id",
|
|
180
|
+
"status"
|
|
181
|
+
],
|
|
182
|
+
"additionalProperties": false
|
|
183
|
+
},
|
|
184
|
+
"default": [],
|
|
185
|
+
"description": "Per-gate re-run results."
|
|
186
|
+
},
|
|
187
|
+
"duration_ms": {
|
|
188
|
+
"anyOf": [
|
|
189
|
+
{
|
|
190
|
+
"type": "integer",
|
|
191
|
+
"minimum": 0
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
"type": "null"
|
|
195
|
+
}
|
|
196
|
+
],
|
|
197
|
+
"default": null,
|
|
198
|
+
"description": "How long the verify took, in milliseconds."
|
|
199
|
+
},
|
|
200
|
+
"reason": {
|
|
201
|
+
"type": [
|
|
202
|
+
"string",
|
|
203
|
+
"null"
|
|
204
|
+
],
|
|
205
|
+
"default": null,
|
|
206
|
+
"description": "Typed reason when attempted=false (e.g. no_patch, no_base_sha) or a failure detail."
|
|
207
|
+
}
|
|
208
|
+
},
|
|
209
|
+
"required": [
|
|
210
|
+
"attempted"
|
|
211
|
+
],
|
|
212
|
+
"additionalProperties": false,
|
|
213
|
+
"description": "FinalVerifier record: the winner's patch was applied onto a fresh worktree at the candidate's own base SHA and the deterministic gates were re-run there; no model involvement."
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
"type": "null"
|
|
217
|
+
}
|
|
218
|
+
],
|
|
219
|
+
"description": "Final verify record; present only for write runs with a patch (or a recorded reason why the verifier did not run).",
|
|
220
|
+
"default": null
|
|
221
|
+
}
|
|
222
|
+
},
|
|
223
|
+
"required": [
|
|
224
|
+
"winner",
|
|
225
|
+
"status"
|
|
226
|
+
],
|
|
227
|
+
"additionalProperties": false,
|
|
228
|
+
"description": "The arbitration decision for a run: winner, status/outcome, reasons, spend, and the verification that backs applyability."
|
|
229
|
+
}
|
|
230
|
+
},
|
|
231
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
232
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/GateResult",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"GateResult": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"id": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"minLength": 1,
|
|
10
|
+
"description": "Gate id."
|
|
11
|
+
},
|
|
12
|
+
"command": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"description": "Command the gate ran."
|
|
15
|
+
},
|
|
16
|
+
"exit_code": {
|
|
17
|
+
"anyOf": [
|
|
18
|
+
{
|
|
19
|
+
"type": "integer"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"type": "null"
|
|
23
|
+
}
|
|
24
|
+
],
|
|
25
|
+
"description": "Process exit code; null when the gate never ran to completion."
|
|
26
|
+
},
|
|
27
|
+
"status": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"enum": [
|
|
30
|
+
"passed",
|
|
31
|
+
"failed",
|
|
32
|
+
"skipped",
|
|
33
|
+
"timed_out"
|
|
34
|
+
],
|
|
35
|
+
"description": "Outcome of a deterministic gate: passed, failed, skipped, or timed_out."
|
|
36
|
+
},
|
|
37
|
+
"duration_ms": {
|
|
38
|
+
"type": "integer",
|
|
39
|
+
"minimum": 0,
|
|
40
|
+
"default": 0,
|
|
41
|
+
"description": "How long the gate took, in milliseconds."
|
|
42
|
+
},
|
|
43
|
+
"required": {
|
|
44
|
+
"type": "boolean",
|
|
45
|
+
"default": true,
|
|
46
|
+
"description": "Whether the gate must pass (vs advisory)."
|
|
47
|
+
},
|
|
48
|
+
"stdout_tail": {
|
|
49
|
+
"type": [
|
|
50
|
+
"string",
|
|
51
|
+
"null"
|
|
52
|
+
],
|
|
53
|
+
"default": null,
|
|
54
|
+
"description": "Tail of the gate's stdout, for diagnostics."
|
|
55
|
+
},
|
|
56
|
+
"stderr_tail": {
|
|
57
|
+
"type": [
|
|
58
|
+
"string",
|
|
59
|
+
"null"
|
|
60
|
+
],
|
|
61
|
+
"default": null,
|
|
62
|
+
"description": "Tail of the gate's stderr, for diagnostics."
|
|
63
|
+
},
|
|
64
|
+
"output_truncated": {
|
|
65
|
+
"type": "boolean",
|
|
66
|
+
"default": false,
|
|
67
|
+
"description": "True when the stored output tails were truncated."
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"required": [
|
|
71
|
+
"id",
|
|
72
|
+
"command",
|
|
73
|
+
"exit_code",
|
|
74
|
+
"status"
|
|
75
|
+
],
|
|
76
|
+
"additionalProperties": false,
|
|
77
|
+
"description": "Result of a deterministic gate (build/test/lint/etc), decided by exit code, not text."
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
81
|
+
}
|