@gtrabanco/agentic-workflow-schema 3.3.0 → 3.4.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/README.es.md +255 -3
- package/README.md +249 -3
- package/dist/index.d.ts +253 -0
- package/dist/index.js +557 -16
- package/dist/verification-contract.d.ts +227 -0
- package/dist/verification-contract.js +1111 -0
- package/package.json +12 -3
- package/verification-plan.schema.json +197 -0
- package/verification-receipt.schema.json +309 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gtrabanco/agentic-workflow-schema",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.4.0",
|
|
4
4
|
"description": "Versioned machine contracts, JSON Schemas, parsers, and deterministic document snapshots for agentic-workflow orchestration.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agentic-workflow",
|
|
@@ -30,7 +30,9 @@
|
|
|
30
30
|
"./skill-outcome.schema.json": "./skill-outcome.schema.json",
|
|
31
31
|
"./workflow-snapshot.schema.json": "./workflow-snapshot.schema.json",
|
|
32
32
|
"./candidate-snapshot.schema.json": "./candidate-snapshot.schema.json",
|
|
33
|
-
"./review-receipt.schema.json": "./review-receipt.schema.json"
|
|
33
|
+
"./review-receipt.schema.json": "./review-receipt.schema.json",
|
|
34
|
+
"./verification-receipt.schema.json": "./verification-receipt.schema.json",
|
|
35
|
+
"./verification-plan.schema.json": "./verification-plan.schema.json"
|
|
34
36
|
},
|
|
35
37
|
"files": [
|
|
36
38
|
"dist",
|
|
@@ -39,6 +41,8 @@
|
|
|
39
41
|
"workflow-snapshot.schema.json",
|
|
40
42
|
"candidate-snapshot.schema.json",
|
|
41
43
|
"review-receipt.schema.json",
|
|
44
|
+
"verification-receipt.schema.json",
|
|
45
|
+
"verification-plan.schema.json",
|
|
42
46
|
"README.md",
|
|
43
47
|
"README.es.md",
|
|
44
48
|
"LICENSE"
|
|
@@ -52,7 +56,12 @@
|
|
|
52
56
|
"scripts": {
|
|
53
57
|
"build": "tsc",
|
|
54
58
|
"test": "tsc && tsc -p tsconfig.test.json && node --test test/*.test.mjs",
|
|
55
|
-
"prepublishOnly": "npm test"
|
|
59
|
+
"prepublishOnly": "npm test",
|
|
60
|
+
"check:verification-schemas": "tsc && node scripts/generate-verification-schemas.mjs --check",
|
|
61
|
+
"check:verification-package": "node scripts/check-verification-package.mjs",
|
|
62
|
+
"bench:verification": "node scripts/bench-verification.mjs",
|
|
63
|
+
"test:verification-docs": "node --test test/verification-docs.test.mjs",
|
|
64
|
+
"gate:verification": "npm test && npm run check:verification-schemas && npm run check:verification-package && npm run test:verification-docs && npm run bench:verification -- --commands 128"
|
|
56
65
|
},
|
|
57
66
|
"devDependencies": {
|
|
58
67
|
"ajv": "^8.20.0",
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$comment": "agentic-workflow generated file - DO NOT HAND-EDIT. | projection: structural-only | authoritative: false | authority: validateVerificationPlanV1 | semantic validation: required (a Draft-07 PASS is not contract validity) | runtime-only rules (not expressible in Draft-07): unique-command-ids, fast-stage-aggregate-budget, full-stage-aggregate-budget | payload budget: runtime-only (canonical plan <= 256 KiB) | diagnostics: runtime-only (at most 50 redacted code+path rows) | values: never returned (D16 — diagnostics carry a frozen code and an RFC 6901 pointer only) | regenerate with: node scripts/generate-verification-schemas.mjs",
|
|
4
|
+
"title": "VerificationPlan v1",
|
|
5
|
+
"description": "An ordered, non-empty command list for staged verification (fast/full). This document is a NON-AUTHORITATIVE Draft-07 structural projection generated from the package's canonical verification-contract definition. It is not a semantic authority: a Draft-07 match is not contract validity — use the authoritative runtime entry point named in $comment.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"required": [
|
|
9
|
+
"contract",
|
|
10
|
+
"commands"
|
|
11
|
+
],
|
|
12
|
+
"properties": {
|
|
13
|
+
"contract": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"const": "agentic-workflow/verification-plan@1",
|
|
16
|
+
"description": "Contract identifier."
|
|
17
|
+
},
|
|
18
|
+
"commands": {
|
|
19
|
+
"type": "array",
|
|
20
|
+
"items": {
|
|
21
|
+
"$ref": "#/$defs/VerificationCommandV1"
|
|
22
|
+
},
|
|
23
|
+
"minItems": 1,
|
|
24
|
+
"maxItems": 128,
|
|
25
|
+
"description": "Non-empty command list of at most 128 commands, in declared order."
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"$defs": {
|
|
29
|
+
"VerificationCommandV1": {
|
|
30
|
+
"type": "object",
|
|
31
|
+
"additionalProperties": false,
|
|
32
|
+
"required": [
|
|
33
|
+
"id",
|
|
34
|
+
"stage",
|
|
35
|
+
"executable",
|
|
36
|
+
"args",
|
|
37
|
+
"workingDirectoryPolicy",
|
|
38
|
+
"workingDirectory",
|
|
39
|
+
"timeoutMs",
|
|
40
|
+
"stopOnFailure",
|
|
41
|
+
"costClass"
|
|
42
|
+
],
|
|
43
|
+
"properties": {
|
|
44
|
+
"id": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"minLength": 1,
|
|
47
|
+
"maxLength": 128,
|
|
48
|
+
"pattern": "^[^\\0]*$",
|
|
49
|
+
"description": "Stable, non-empty, NUL-free, at most 128 chars, unique within the plan."
|
|
50
|
+
},
|
|
51
|
+
"stage": {
|
|
52
|
+
"type": "string",
|
|
53
|
+
"enum": [
|
|
54
|
+
"fast",
|
|
55
|
+
"full"
|
|
56
|
+
],
|
|
57
|
+
"description": "Verification stage."
|
|
58
|
+
},
|
|
59
|
+
"executable": {
|
|
60
|
+
"type": "string",
|
|
61
|
+
"minLength": 1,
|
|
62
|
+
"maxLength": 1024,
|
|
63
|
+
"pattern": "^[^\\0]*$",
|
|
64
|
+
"description": "Non-empty executable path; NUL-free, at most 1024 chars. Never a shell string."
|
|
65
|
+
},
|
|
66
|
+
"args": {
|
|
67
|
+
"type": "array",
|
|
68
|
+
"items": {
|
|
69
|
+
"type": "string",
|
|
70
|
+
"pattern": "^[^\\0]*$",
|
|
71
|
+
"maxLength": 4096
|
|
72
|
+
},
|
|
73
|
+
"maxItems": 64,
|
|
74
|
+
"description": "Ordered arguments; at most 64 items, each NUL-free and at most 4096 chars."
|
|
75
|
+
},
|
|
76
|
+
"workingDirectoryPolicy": {
|
|
77
|
+
"type": "string",
|
|
78
|
+
"enum": [
|
|
79
|
+
"candidate-root",
|
|
80
|
+
"relative-path"
|
|
81
|
+
],
|
|
82
|
+
"description": "Working directory policy."
|
|
83
|
+
},
|
|
84
|
+
"workingDirectory": {
|
|
85
|
+
"oneOf": [
|
|
86
|
+
{
|
|
87
|
+
"type": "string",
|
|
88
|
+
"minLength": 1,
|
|
89
|
+
"maxLength": 1024,
|
|
90
|
+
"allOf": [
|
|
91
|
+
{
|
|
92
|
+
"description": "[workingDirectory] must not contain NUL characters",
|
|
93
|
+
"pattern": "^[^\\0]*$"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"description": "[workingDirectory] must not be an absolute path (leading \"/\")",
|
|
97
|
+
"pattern": "^(?!/)"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"description": "[workingDirectory] must not be a Windows drive-letter path",
|
|
101
|
+
"pattern": "^(?![A-Za-z]:)"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"description": "[workingDirectory] must not contain backslashes",
|
|
105
|
+
"pattern": "^(?!.*\\\\)"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"description": "[workingDirectory] must not contain \"..\" segments (path traversal)",
|
|
109
|
+
"pattern": "^(?!.*(\\/|^)\\.\\.($|\\/))"
|
|
110
|
+
}
|
|
111
|
+
]
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"type": "null"
|
|
115
|
+
}
|
|
116
|
+
],
|
|
117
|
+
"description": "Null iff candidate-root; validated relative path iff relative-path."
|
|
118
|
+
},
|
|
119
|
+
"timeoutMs": {
|
|
120
|
+
"type": "integer",
|
|
121
|
+
"exclusiveMinimum": 0,
|
|
122
|
+
"maximum": 3600000,
|
|
123
|
+
"description": "Positive integer timeout in milliseconds; at most 3600000 (full stage) or 600000 (fast stage)."
|
|
124
|
+
},
|
|
125
|
+
"stopOnFailure": {
|
|
126
|
+
"type": "boolean",
|
|
127
|
+
"description": "Whether to stop executing subsequent commands on failure."
|
|
128
|
+
},
|
|
129
|
+
"costClass": {
|
|
130
|
+
"type": "string",
|
|
131
|
+
"enum": [
|
|
132
|
+
"cheap",
|
|
133
|
+
"moderate",
|
|
134
|
+
"expensive"
|
|
135
|
+
],
|
|
136
|
+
"description": "Project-declared cost class."
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
"allOf": [
|
|
140
|
+
{
|
|
141
|
+
"description": "[working-directory-null-at-root] workingDirectory is null when workingDirectoryPolicy is candidate-root.",
|
|
142
|
+
"if": {
|
|
143
|
+
"properties": {
|
|
144
|
+
"workingDirectoryPolicy": {
|
|
145
|
+
"const": "candidate-root"
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
"then": {
|
|
150
|
+
"properties": {
|
|
151
|
+
"workingDirectory": {
|
|
152
|
+
"type": "null"
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"description": "[fast-command-timeout] A fast-stage command times out within 600000 ms (D14).",
|
|
159
|
+
"if": {
|
|
160
|
+
"properties": {
|
|
161
|
+
"stage": {
|
|
162
|
+
"const": "fast"
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
"then": {
|
|
167
|
+
"properties": {
|
|
168
|
+
"timeoutMs": {
|
|
169
|
+
"type": "number",
|
|
170
|
+
"maximum": 600000
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"description": "[working-directory-set-for-relative-path] workingDirectory is a validated relative path when workingDirectoryPolicy is relative-path.",
|
|
177
|
+
"if": {
|
|
178
|
+
"properties": {
|
|
179
|
+
"workingDirectoryPolicy": {
|
|
180
|
+
"const": "relative-path"
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
"then": {
|
|
185
|
+
"properties": {
|
|
186
|
+
"workingDirectory": {
|
|
187
|
+
"not": {
|
|
188
|
+
"type": "null"
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
]
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
}
|
|
@@ -0,0 +1,309 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$comment": "agentic-workflow generated file - DO NOT HAND-EDIT. | projection: structural-only | authoritative: false | authority: validateVerificationReceiptAgainstPlan | semantic validation: required (a Draft-07 PASS is not contract validity) | runtime-only rules (not expressible in Draft-07): unique-result-command-ids, timestamp-order, timestamp-calendar-valid | payload budget: runtime-only (canonical receipt <= 512 KiB) | diagnostics: runtime-only (at most 50 redacted code+path rows) | values: never returned (D16 — diagnostics carry a frozen code and an RFC 6901 pointer only) | regenerate with: node scripts/generate-verification-schemas.mjs",
|
|
4
|
+
"title": "VerificationReceipt v1",
|
|
5
|
+
"description": "A verification receipt bound to a plan, candidate snapshot, and acceptance fingerprint. This document is a NON-AUTHORITATIVE Draft-07 structural projection generated from the package's canonical verification-contract definition. It is not a semantic authority: a Draft-07 match is not contract validity — use the authoritative runtime entry point named in $comment.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"required": [
|
|
9
|
+
"contract",
|
|
10
|
+
"planDigest",
|
|
11
|
+
"candidateSnapshotDigest",
|
|
12
|
+
"acceptanceFingerprint",
|
|
13
|
+
"stageRequested",
|
|
14
|
+
"results",
|
|
15
|
+
"verdict"
|
|
16
|
+
],
|
|
17
|
+
"properties": {
|
|
18
|
+
"contract": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"const": "agentic-workflow/verification-receipt@1",
|
|
21
|
+
"description": "Contract identifier."
|
|
22
|
+
},
|
|
23
|
+
"planDigest": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"pattern": "^[a-f0-9]{64}$",
|
|
26
|
+
"description": "Lowercase 64-hex SHA-256 digest of the bound plan."
|
|
27
|
+
},
|
|
28
|
+
"candidateSnapshotDigest": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"pattern": "^[a-f0-9]{64}$",
|
|
31
|
+
"description": "Lowercase 64-hex SHA-256 from #138's candidate-snapshot digest."
|
|
32
|
+
},
|
|
33
|
+
"acceptanceFingerprint": {
|
|
34
|
+
"type": "string",
|
|
35
|
+
"pattern": "^[a-f0-9]{64}$",
|
|
36
|
+
"description": "Lowercase 64-hex acceptance fingerprint from #138."
|
|
37
|
+
},
|
|
38
|
+
"stageRequested": {
|
|
39
|
+
"type": "string",
|
|
40
|
+
"enum": [
|
|
41
|
+
"fast",
|
|
42
|
+
"full"
|
|
43
|
+
],
|
|
44
|
+
"description": "Which stage was requested."
|
|
45
|
+
},
|
|
46
|
+
"results": {
|
|
47
|
+
"type": "array",
|
|
48
|
+
"items": {
|
|
49
|
+
"$ref": "#/$defs/VerificationResultV1"
|
|
50
|
+
},
|
|
51
|
+
"maxItems": 128,
|
|
52
|
+
"description": "Ordered per-command results; at most 128 rows in declared order."
|
|
53
|
+
},
|
|
54
|
+
"verdict": {
|
|
55
|
+
"type": "string",
|
|
56
|
+
"enum": [
|
|
57
|
+
"pass",
|
|
58
|
+
"fail",
|
|
59
|
+
"incomplete"
|
|
60
|
+
],
|
|
61
|
+
"description": "Must equal deriveVerificationVerdict."
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"$defs": {
|
|
65
|
+
"EvidenceReferenceV1": {
|
|
66
|
+
"type": "object",
|
|
67
|
+
"additionalProperties": false,
|
|
68
|
+
"required": [
|
|
69
|
+
"ref",
|
|
70
|
+
"bytes",
|
|
71
|
+
"sha256"
|
|
72
|
+
],
|
|
73
|
+
"properties": {
|
|
74
|
+
"ref": {
|
|
75
|
+
"type": "string",
|
|
76
|
+
"minLength": 1,
|
|
77
|
+
"maxLength": 1024,
|
|
78
|
+
"pattern": "^[^\\0]*$",
|
|
79
|
+
"description": "Non-empty opaque pointer to stored evidence; NUL-free."
|
|
80
|
+
},
|
|
81
|
+
"bytes": {
|
|
82
|
+
"type": "integer",
|
|
83
|
+
"minimum": 0,
|
|
84
|
+
"description": "Size of the captured evidence in bytes."
|
|
85
|
+
},
|
|
86
|
+
"sha256": {
|
|
87
|
+
"type": "string",
|
|
88
|
+
"pattern": "^[a-f0-9]{64}$",
|
|
89
|
+
"description": "Lowercase 64-hex SHA-256 digest of the captured evidence."
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
"VerificationResultV1": {
|
|
94
|
+
"type": "object",
|
|
95
|
+
"additionalProperties": false,
|
|
96
|
+
"required": [
|
|
97
|
+
"commandId",
|
|
98
|
+
"status",
|
|
99
|
+
"exitCode",
|
|
100
|
+
"signal",
|
|
101
|
+
"startedAt",
|
|
102
|
+
"endedAt",
|
|
103
|
+
"stdout",
|
|
104
|
+
"stderr",
|
|
105
|
+
"skipReason"
|
|
106
|
+
],
|
|
107
|
+
"properties": {
|
|
108
|
+
"commandId": {
|
|
109
|
+
"type": "string",
|
|
110
|
+
"minLength": 1,
|
|
111
|
+
"maxLength": 128,
|
|
112
|
+
"pattern": "^[^\\0]*$",
|
|
113
|
+
"description": "Must exist in the bound plan's commands; NUL-free, at most 128 chars."
|
|
114
|
+
},
|
|
115
|
+
"status": {
|
|
116
|
+
"type": "string",
|
|
117
|
+
"enum": [
|
|
118
|
+
"passed",
|
|
119
|
+
"failed",
|
|
120
|
+
"timed-out",
|
|
121
|
+
"skipped",
|
|
122
|
+
"infrastructure-error"
|
|
123
|
+
],
|
|
124
|
+
"description": "The terminal status of this command execution."
|
|
125
|
+
},
|
|
126
|
+
"exitCode": {
|
|
127
|
+
"oneOf": [
|
|
128
|
+
{
|
|
129
|
+
"type": "integer"
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"type": "null"
|
|
133
|
+
}
|
|
134
|
+
],
|
|
135
|
+
"description": "Per the D4 exit-code/signal matrix."
|
|
136
|
+
},
|
|
137
|
+
"signal": {
|
|
138
|
+
"oneOf": [
|
|
139
|
+
{
|
|
140
|
+
"type": "string",
|
|
141
|
+
"minLength": 1,
|
|
142
|
+
"maxLength": 1024,
|
|
143
|
+
"pattern": "^[^\\0]*$"
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"type": "null"
|
|
147
|
+
}
|
|
148
|
+
],
|
|
149
|
+
"description": "Per the D4 exit-code/signal matrix; NUL-free, at most 1024 chars."
|
|
150
|
+
},
|
|
151
|
+
"startedAt": {
|
|
152
|
+
"type": "string",
|
|
153
|
+
"pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$",
|
|
154
|
+
"description": "ISO-8601 UTC start timestamp."
|
|
155
|
+
},
|
|
156
|
+
"endedAt": {
|
|
157
|
+
"type": "string",
|
|
158
|
+
"pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$",
|
|
159
|
+
"description": "ISO-8601 UTC end timestamp, >= startedAt."
|
|
160
|
+
},
|
|
161
|
+
"stdout": {
|
|
162
|
+
"oneOf": [
|
|
163
|
+
{
|
|
164
|
+
"$ref": "#/$defs/EvidenceReferenceV1"
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"type": "null"
|
|
168
|
+
}
|
|
169
|
+
],
|
|
170
|
+
"description": "Bounded stdout evidence reference or null."
|
|
171
|
+
},
|
|
172
|
+
"stderr": {
|
|
173
|
+
"oneOf": [
|
|
174
|
+
{
|
|
175
|
+
"$ref": "#/$defs/EvidenceReferenceV1"
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"type": "null"
|
|
179
|
+
}
|
|
180
|
+
],
|
|
181
|
+
"description": "Bounded stderr evidence reference or null."
|
|
182
|
+
},
|
|
183
|
+
"skipReason": {
|
|
184
|
+
"oneOf": [
|
|
185
|
+
{
|
|
186
|
+
"type": "string",
|
|
187
|
+
"minLength": 1,
|
|
188
|
+
"maxLength": 1024,
|
|
189
|
+
"pattern": "^[^\\0]*$"
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"type": "null"
|
|
193
|
+
}
|
|
194
|
+
],
|
|
195
|
+
"description": "Null on non-skipped rows; non-empty NUL-free string ≤ 1024 chars on skipped."
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
"allOf": [
|
|
199
|
+
{
|
|
200
|
+
"description": "[d4-exactly-one-terminal-result] D4 exit-code/signal matrix: passed/failed carry exactly one of exitCode (integer) or signal (non-empty string).",
|
|
201
|
+
"if": {
|
|
202
|
+
"properties": {
|
|
203
|
+
"status": {
|
|
204
|
+
"enum": [
|
|
205
|
+
"passed",
|
|
206
|
+
"failed"
|
|
207
|
+
]
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
"then": {
|
|
212
|
+
"anyOf": [
|
|
213
|
+
{
|
|
214
|
+
"required": [
|
|
215
|
+
"exitCode",
|
|
216
|
+
"signal"
|
|
217
|
+
],
|
|
218
|
+
"properties": {
|
|
219
|
+
"exitCode": {
|
|
220
|
+
"type": "integer"
|
|
221
|
+
},
|
|
222
|
+
"signal": {
|
|
223
|
+
"type": "null"
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
"required": [
|
|
229
|
+
"exitCode",
|
|
230
|
+
"signal"
|
|
231
|
+
],
|
|
232
|
+
"properties": {
|
|
233
|
+
"exitCode": {
|
|
234
|
+
"type": "null"
|
|
235
|
+
},
|
|
236
|
+
"signal": {
|
|
237
|
+
"type": "string"
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
]
|
|
242
|
+
}
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
"description": "[d4-timed-out-has-no-exit-code] D4: timed-out carries exitCode null and an optional captured kill signal.",
|
|
246
|
+
"if": {
|
|
247
|
+
"properties": {
|
|
248
|
+
"status": {
|
|
249
|
+
"const": "timed-out"
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
},
|
|
253
|
+
"then": {
|
|
254
|
+
"properties": {
|
|
255
|
+
"exitCode": {
|
|
256
|
+
"type": "null"
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
"description": "[d4-no-terminal-result] D4: infrastructure-error and skipped carry neither exitCode nor signal.",
|
|
263
|
+
"if": {
|
|
264
|
+
"properties": {
|
|
265
|
+
"status": {
|
|
266
|
+
"enum": [
|
|
267
|
+
"infrastructure-error",
|
|
268
|
+
"skipped"
|
|
269
|
+
]
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
},
|
|
273
|
+
"then": {
|
|
274
|
+
"properties": {
|
|
275
|
+
"exitCode": {
|
|
276
|
+
"type": "null"
|
|
277
|
+
},
|
|
278
|
+
"signal": {
|
|
279
|
+
"type": "null"
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
"description": "[skip-reason-only-when-skipped] Non-skipped rows carry skipReason null.",
|
|
286
|
+
"if": {
|
|
287
|
+
"properties": {
|
|
288
|
+
"status": {
|
|
289
|
+
"enum": [
|
|
290
|
+
"passed",
|
|
291
|
+
"failed",
|
|
292
|
+
"timed-out",
|
|
293
|
+
"infrastructure-error"
|
|
294
|
+
]
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
},
|
|
298
|
+
"then": {
|
|
299
|
+
"properties": {
|
|
300
|
+
"skipReason": {
|
|
301
|
+
"type": "null"
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
]
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
}
|