@taifoon/jev 0.2.5 → 0.2.7
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.md +11 -1
- package/docs/WORKFLOWS.md +9 -7
- package/package.json +1 -1
- package/workflows/0.2.7/README.md +107 -0
- package/workflows/0.2.7/batch-judge.json +341 -0
- package/workflows/0.2.7/hire-judge-settle.json +819 -0
- package/workflows/0.2.7/jev-grader.json +433 -0
- package/workflows/0.2.7/manifest.json +151 -0
- package/workflows/0.2.7/schemas/answers.json +230 -0
- package/workflows/0.2.7/schemas/common.json +394 -0
- package/workflows/0.2.7/schemas/delivery.json +217 -0
- package/workflows/0.2.7/schemas/facts.json +209 -0
- package/workflows/0.2.7/schemas/hire.json +314 -0
- package/workflows/0.2.7/schemas/job.json +88 -0
- package/workflows/0.2.7/schemas/settlement.json +209 -0
- package/workflows/0.2.7/schemas/verdict.json +296 -0
- package/workflows/0.2.7/stamp-grade.json +175 -0
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://www.taifoon.io/schemas/coordination/v1/delivery.json",
|
|
4
|
+
"title": "DELIVERY — what came back, and the digest that seals it",
|
|
5
|
+
"description": "The work product: the reply held off-chain (handshake dispatch) or the digest / memo the seller submitted on chain. digest.value is the evidenceDigest submit(jobId, evidenceDigest) seals — the reply the buyer read and the digest on chain are one thing.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"schema": {
|
|
9
|
+
"const": "taifoon.delivery.v1",
|
|
10
|
+
"x-stage": "L",
|
|
11
|
+
"description": "which canonical entity this record is; fixed per schema"
|
|
12
|
+
},
|
|
13
|
+
"job": {
|
|
14
|
+
"$ref": "common.json#/$defs/job_ref",
|
|
15
|
+
"x-stage": "S1"
|
|
16
|
+
},
|
|
17
|
+
"handshake_id": {
|
|
18
|
+
"type": [
|
|
19
|
+
"string",
|
|
20
|
+
"null"
|
|
21
|
+
],
|
|
22
|
+
"pattern": "^hs_[0-9a-f]{24}$",
|
|
23
|
+
"x-stage": "L"
|
|
24
|
+
},
|
|
25
|
+
"delivered": {
|
|
26
|
+
"type": "boolean",
|
|
27
|
+
"x-stage": "S1"
|
|
28
|
+
},
|
|
29
|
+
"transport": {
|
|
30
|
+
"enum": [
|
|
31
|
+
"mcp.tools/call",
|
|
32
|
+
"mcp.initialize",
|
|
33
|
+
"a2a.message/send",
|
|
34
|
+
"a2a.tasks/send",
|
|
35
|
+
"x402.wall",
|
|
36
|
+
"webhook",
|
|
37
|
+
"erc8183.submit",
|
|
38
|
+
"hook.submit",
|
|
39
|
+
"memo-acp.memo",
|
|
40
|
+
"olas.subgraph",
|
|
41
|
+
"grid.probe",
|
|
42
|
+
"none"
|
|
43
|
+
],
|
|
44
|
+
"x-stage": "L"
|
|
45
|
+
},
|
|
46
|
+
"status": {
|
|
47
|
+
"enum": [
|
|
48
|
+
"ready",
|
|
49
|
+
"x402",
|
|
50
|
+
"silent",
|
|
51
|
+
"unreachable",
|
|
52
|
+
"submitted",
|
|
53
|
+
"none"
|
|
54
|
+
],
|
|
55
|
+
"x-stage": "L"
|
|
56
|
+
},
|
|
57
|
+
"digest": {
|
|
58
|
+
"type": "object",
|
|
59
|
+
"properties": {
|
|
60
|
+
"value": {
|
|
61
|
+
"anyOf": [
|
|
62
|
+
{
|
|
63
|
+
"$ref": "common.json#/$defs/bytes32"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"type": "null"
|
|
67
|
+
}
|
|
68
|
+
]
|
|
69
|
+
},
|
|
70
|
+
"algo": {
|
|
71
|
+
"enum": [
|
|
72
|
+
"keccak256-utf8",
|
|
73
|
+
"bytes32-onchain",
|
|
74
|
+
"none"
|
|
75
|
+
]
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
"required": [
|
|
79
|
+
"value",
|
|
80
|
+
"algo"
|
|
81
|
+
],
|
|
82
|
+
"additionalProperties": false,
|
|
83
|
+
"x-stage": "S1"
|
|
84
|
+
},
|
|
85
|
+
"content": {
|
|
86
|
+
"type": "object",
|
|
87
|
+
"properties": {
|
|
88
|
+
"head": {
|
|
89
|
+
"type": [
|
|
90
|
+
"string",
|
|
91
|
+
"null"
|
|
92
|
+
]
|
|
93
|
+
},
|
|
94
|
+
"chars": {
|
|
95
|
+
"type": [
|
|
96
|
+
"integer",
|
|
97
|
+
"null"
|
|
98
|
+
]
|
|
99
|
+
},
|
|
100
|
+
"url": {
|
|
101
|
+
"type": [
|
|
102
|
+
"string",
|
|
103
|
+
"null"
|
|
104
|
+
]
|
|
105
|
+
},
|
|
106
|
+
"full_available": {
|
|
107
|
+
"type": "boolean"
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
"required": [
|
|
111
|
+
"head",
|
|
112
|
+
"chars",
|
|
113
|
+
"url",
|
|
114
|
+
"full_available"
|
|
115
|
+
],
|
|
116
|
+
"additionalProperties": false,
|
|
117
|
+
"x-stage": "L"
|
|
118
|
+
},
|
|
119
|
+
"tool": {
|
|
120
|
+
"type": [
|
|
121
|
+
"string",
|
|
122
|
+
"null"
|
|
123
|
+
],
|
|
124
|
+
"x-stage": "L"
|
|
125
|
+
},
|
|
126
|
+
"reason": {
|
|
127
|
+
"type": [
|
|
128
|
+
"string",
|
|
129
|
+
"null"
|
|
130
|
+
],
|
|
131
|
+
"x-stage": "L"
|
|
132
|
+
},
|
|
133
|
+
"request": {
|
|
134
|
+
"type": [
|
|
135
|
+
"object",
|
|
136
|
+
"null"
|
|
137
|
+
],
|
|
138
|
+
"x-stage": "L"
|
|
139
|
+
},
|
|
140
|
+
"submitted_at": {
|
|
141
|
+
"anyOf": [
|
|
142
|
+
{
|
|
143
|
+
"$ref": "common.json#/$defs/unix_s"
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"type": "null"
|
|
147
|
+
}
|
|
148
|
+
],
|
|
149
|
+
"x-stage": "S1"
|
|
150
|
+
},
|
|
151
|
+
"latency_ms": {
|
|
152
|
+
"type": [
|
|
153
|
+
"integer",
|
|
154
|
+
"null"
|
|
155
|
+
],
|
|
156
|
+
"x-stage": "L"
|
|
157
|
+
},
|
|
158
|
+
"attestation": {
|
|
159
|
+
"type": [
|
|
160
|
+
"object",
|
|
161
|
+
"null"
|
|
162
|
+
],
|
|
163
|
+
"properties": {
|
|
164
|
+
"required": {
|
|
165
|
+
"type": "boolean"
|
|
166
|
+
},
|
|
167
|
+
"served": {
|
|
168
|
+
"type": "boolean"
|
|
169
|
+
},
|
|
170
|
+
"verified": {
|
|
171
|
+
"type": "boolean"
|
|
172
|
+
},
|
|
173
|
+
"source": {
|
|
174
|
+
"type": "string"
|
|
175
|
+
}
|
|
176
|
+
},
|
|
177
|
+
"required": [
|
|
178
|
+
"required",
|
|
179
|
+
"served",
|
|
180
|
+
"verified",
|
|
181
|
+
"source"
|
|
182
|
+
],
|
|
183
|
+
"additionalProperties": false,
|
|
184
|
+
"x-stage": "S8"
|
|
185
|
+
},
|
|
186
|
+
"anchors": {
|
|
187
|
+
"type": "array",
|
|
188
|
+
"items": {
|
|
189
|
+
"$ref": "common.json#/$defs/anchor"
|
|
190
|
+
},
|
|
191
|
+
"x-stage": "S1"
|
|
192
|
+
},
|
|
193
|
+
"source": {
|
|
194
|
+
"$ref": "common.json#/$defs/source",
|
|
195
|
+
"x-stage": "L"
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
"required": [
|
|
199
|
+
"schema",
|
|
200
|
+
"job",
|
|
201
|
+
"handshake_id",
|
|
202
|
+
"delivered",
|
|
203
|
+
"transport",
|
|
204
|
+
"status",
|
|
205
|
+
"digest",
|
|
206
|
+
"content",
|
|
207
|
+
"tool",
|
|
208
|
+
"reason",
|
|
209
|
+
"request",
|
|
210
|
+
"submitted_at",
|
|
211
|
+
"latency_ms",
|
|
212
|
+
"attestation",
|
|
213
|
+
"anchors",
|
|
214
|
+
"source"
|
|
215
|
+
],
|
|
216
|
+
"additionalProperties": false
|
|
217
|
+
}
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://www.taifoon.io/schemas/coordination/v1/facts.json",
|
|
4
|
+
"title": "FACTS — what code establishes before anyone is asked",
|
|
5
|
+
"description": "Deterministic: delivered or not, every check that could be made, the ending the events already decide, and the labelled facts + gaps of the evidence pack. A failed check is a hard fail — reject, and Jev is never asked (judge-compose.compose). GRADEABLE.md is the rule that turns HIRE + DELIVERY + FACTS into what Jev reads.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"schema": {
|
|
9
|
+
"const": "taifoon.facts.v1",
|
|
10
|
+
"x-stage": "L",
|
|
11
|
+
"description": "which canonical entity this record is; fixed per schema"
|
|
12
|
+
},
|
|
13
|
+
"subject": {
|
|
14
|
+
"$ref": "common.json#/$defs/job_key",
|
|
15
|
+
"x-stage": "L"
|
|
16
|
+
},
|
|
17
|
+
"job": {
|
|
18
|
+
"$ref": "common.json#/$defs/job_ref",
|
|
19
|
+
"x-stage": "S1"
|
|
20
|
+
},
|
|
21
|
+
"delivered": {
|
|
22
|
+
"type": "boolean",
|
|
23
|
+
"x-stage": "S4"
|
|
24
|
+
},
|
|
25
|
+
"checks": {
|
|
26
|
+
"type": "object",
|
|
27
|
+
"additionalProperties": {
|
|
28
|
+
"type": [
|
|
29
|
+
"boolean",
|
|
30
|
+
"null"
|
|
31
|
+
]
|
|
32
|
+
},
|
|
33
|
+
"x-stage": "S4"
|
|
34
|
+
},
|
|
35
|
+
"checks_ok": {
|
|
36
|
+
"type": [
|
|
37
|
+
"boolean",
|
|
38
|
+
"null"
|
|
39
|
+
],
|
|
40
|
+
"x-stage": "S4"
|
|
41
|
+
},
|
|
42
|
+
"det": {
|
|
43
|
+
"type": [
|
|
44
|
+
"object",
|
|
45
|
+
"null"
|
|
46
|
+
],
|
|
47
|
+
"properties": {
|
|
48
|
+
"class": {
|
|
49
|
+
"type": "string"
|
|
50
|
+
},
|
|
51
|
+
"why": {
|
|
52
|
+
"type": "string"
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"required": [
|
|
56
|
+
"class",
|
|
57
|
+
"why"
|
|
58
|
+
],
|
|
59
|
+
"additionalProperties": false,
|
|
60
|
+
"x-stage": "S4"
|
|
61
|
+
},
|
|
62
|
+
"ending": {
|
|
63
|
+
"anyOf": [
|
|
64
|
+
{
|
|
65
|
+
"$ref": "common.json#/$defs/ending"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"type": "null"
|
|
69
|
+
}
|
|
70
|
+
],
|
|
71
|
+
"x-stage": "S2"
|
|
72
|
+
},
|
|
73
|
+
"det_value": {
|
|
74
|
+
"anyOf": [
|
|
75
|
+
{
|
|
76
|
+
"$ref": "common.json#/$defs/ref_value"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"type": "null"
|
|
80
|
+
}
|
|
81
|
+
],
|
|
82
|
+
"x-stage": "S4"
|
|
83
|
+
},
|
|
84
|
+
"verdict_class": {
|
|
85
|
+
"anyOf": [
|
|
86
|
+
{
|
|
87
|
+
"$ref": "common.json#/$defs/verdict_class"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"type": "null"
|
|
91
|
+
}
|
|
92
|
+
],
|
|
93
|
+
"x-stage": "S2"
|
|
94
|
+
},
|
|
95
|
+
"reason_on_chain": {
|
|
96
|
+
"type": [
|
|
97
|
+
"string",
|
|
98
|
+
"null"
|
|
99
|
+
],
|
|
100
|
+
"x-stage": "S1"
|
|
101
|
+
},
|
|
102
|
+
"pair": {
|
|
103
|
+
"type": [
|
|
104
|
+
"object",
|
|
105
|
+
"null"
|
|
106
|
+
],
|
|
107
|
+
"properties": {
|
|
108
|
+
"jobs": {
|
|
109
|
+
"type": "integer"
|
|
110
|
+
},
|
|
111
|
+
"endings": {
|
|
112
|
+
"type": "object",
|
|
113
|
+
"additionalProperties": {
|
|
114
|
+
"type": "integer"
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
"required": [
|
|
119
|
+
"jobs",
|
|
120
|
+
"endings"
|
|
121
|
+
],
|
|
122
|
+
"additionalProperties": false,
|
|
123
|
+
"x-stage": "S2"
|
|
124
|
+
},
|
|
125
|
+
"price_usdc": {
|
|
126
|
+
"type": [
|
|
127
|
+
"number",
|
|
128
|
+
"null"
|
|
129
|
+
],
|
|
130
|
+
"x-stage": "S4"
|
|
131
|
+
},
|
|
132
|
+
"pack": {
|
|
133
|
+
"type": [
|
|
134
|
+
"object",
|
|
135
|
+
"null"
|
|
136
|
+
],
|
|
137
|
+
"properties": {
|
|
138
|
+
"facts": {
|
|
139
|
+
"type": "array",
|
|
140
|
+
"items": {
|
|
141
|
+
"type": "array",
|
|
142
|
+
"prefixItems": [
|
|
143
|
+
{
|
|
144
|
+
"type": "string"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"type": "string"
|
|
148
|
+
}
|
|
149
|
+
],
|
|
150
|
+
"minItems": 2,
|
|
151
|
+
"maxItems": 2,
|
|
152
|
+
"items": {
|
|
153
|
+
"type": "string"
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
},
|
|
157
|
+
"gaps": {
|
|
158
|
+
"type": "array",
|
|
159
|
+
"items": {
|
|
160
|
+
"type": "string"
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
"state": {
|
|
164
|
+
"type": [
|
|
165
|
+
"string",
|
|
166
|
+
"null"
|
|
167
|
+
]
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
"required": [
|
|
171
|
+
"facts",
|
|
172
|
+
"gaps",
|
|
173
|
+
"state"
|
|
174
|
+
],
|
|
175
|
+
"additionalProperties": false,
|
|
176
|
+
"x-stage": "S4"
|
|
177
|
+
},
|
|
178
|
+
"anchors": {
|
|
179
|
+
"type": "array",
|
|
180
|
+
"items": {
|
|
181
|
+
"$ref": "common.json#/$defs/anchor"
|
|
182
|
+
},
|
|
183
|
+
"x-stage": "S4"
|
|
184
|
+
},
|
|
185
|
+
"source": {
|
|
186
|
+
"$ref": "common.json#/$defs/source",
|
|
187
|
+
"x-stage": "L"
|
|
188
|
+
}
|
|
189
|
+
},
|
|
190
|
+
"required": [
|
|
191
|
+
"schema",
|
|
192
|
+
"subject",
|
|
193
|
+
"job",
|
|
194
|
+
"delivered",
|
|
195
|
+
"checks",
|
|
196
|
+
"checks_ok",
|
|
197
|
+
"det",
|
|
198
|
+
"ending",
|
|
199
|
+
"det_value",
|
|
200
|
+
"verdict_class",
|
|
201
|
+
"reason_on_chain",
|
|
202
|
+
"pair",
|
|
203
|
+
"price_usdc",
|
|
204
|
+
"pack",
|
|
205
|
+
"anchors",
|
|
206
|
+
"source"
|
|
207
|
+
],
|
|
208
|
+
"additionalProperties": false
|
|
209
|
+
}
|