@taifoon/jev 0.2.14 → 0.2.16
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 +7 -6
- package/dist/verify.d.ts +14 -0
- package/dist/verify.js +46 -5
- package/docs/ON_CHAIN.md +2 -2
- package/docs/PIPELINE.md +1 -1
- package/docs/SELLERS.md +374 -0
- package/docs/WORKFLOWS.md +4 -3
- package/package.json +1 -1
- package/workflows/0.2.15/README.md +109 -0
- package/workflows/0.2.15/batch-judge.json +341 -0
- package/workflows/0.2.15/hire-judge-settle.json +920 -0
- package/workflows/0.2.15/jev-grader.json +433 -0
- package/workflows/0.2.15/manifest.json +152 -0
- package/workflows/0.2.15/schemas/answers.json +230 -0
- package/workflows/0.2.15/schemas/common.json +397 -0
- package/workflows/0.2.15/schemas/delivery.json +217 -0
- package/workflows/0.2.15/schemas/facts.json +209 -0
- package/workflows/0.2.15/schemas/hire.json +314 -0
- package/workflows/0.2.15/schemas/job.json +88 -0
- package/workflows/0.2.15/schemas/settlement.json +243 -0
- package/workflows/0.2.15/schemas/verdict.json +296 -0
- package/workflows/0.2.15/stamp-grade.json +175 -0
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://www.taifoon.io/schemas/coordination/v1/answers.json",
|
|
4
|
+
"title": "ANSWERS — what Jev answered (jev.answer.v1)",
|
|
5
|
+
"description": "Every question and every answer with its whole distribution, the model and who paid, exactly the jev.answer.v1 record: answers_digest = sha256(canonical JSON of the record fields) recomputes from this entity alone.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"schema": {
|
|
9
|
+
"const": "taifoon.answers.v1",
|
|
10
|
+
"x-stage": "L",
|
|
11
|
+
"description": "which canonical entity this record is; fixed per schema"
|
|
12
|
+
},
|
|
13
|
+
"answers_digest": {
|
|
14
|
+
"$ref": "common.json#/$defs/bytes32",
|
|
15
|
+
"x-stage": "S5"
|
|
16
|
+
},
|
|
17
|
+
"v": {
|
|
18
|
+
"const": "jev.answer.v1",
|
|
19
|
+
"x-stage": "S5"
|
|
20
|
+
},
|
|
21
|
+
"use_case": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"pattern": "^[a-z0-9][a-z0-9._/-]{0,63}$",
|
|
24
|
+
"x-stage": "S5"
|
|
25
|
+
},
|
|
26
|
+
"subject": {
|
|
27
|
+
"$ref": "common.json#/$defs/bytes32",
|
|
28
|
+
"x-stage": "S5"
|
|
29
|
+
},
|
|
30
|
+
"input_digest": {
|
|
31
|
+
"anyOf": [
|
|
32
|
+
{
|
|
33
|
+
"$ref": "common.json#/$defs/bytes32"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"type": "null"
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
"x-stage": "S5"
|
|
40
|
+
},
|
|
41
|
+
"questions": {
|
|
42
|
+
"type": "array",
|
|
43
|
+
"items": {
|
|
44
|
+
"type": "object",
|
|
45
|
+
"properties": {
|
|
46
|
+
"id": {
|
|
47
|
+
"type": "string"
|
|
48
|
+
},
|
|
49
|
+
"kind": {
|
|
50
|
+
"enum": [
|
|
51
|
+
"choice",
|
|
52
|
+
"noul",
|
|
53
|
+
"score"
|
|
54
|
+
]
|
|
55
|
+
},
|
|
56
|
+
"text": {
|
|
57
|
+
"type": [
|
|
58
|
+
"string",
|
|
59
|
+
"null"
|
|
60
|
+
]
|
|
61
|
+
},
|
|
62
|
+
"options": {
|
|
63
|
+
"anyOf": [
|
|
64
|
+
{
|
|
65
|
+
"type": "array",
|
|
66
|
+
"items": {
|
|
67
|
+
"type": "string"
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"type": "object",
|
|
72
|
+
"additionalProperties": {
|
|
73
|
+
"type": "string"
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"type": "null"
|
|
78
|
+
}
|
|
79
|
+
]
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
"required": [
|
|
83
|
+
"id",
|
|
84
|
+
"kind",
|
|
85
|
+
"text",
|
|
86
|
+
"options"
|
|
87
|
+
],
|
|
88
|
+
"additionalProperties": false
|
|
89
|
+
},
|
|
90
|
+
"x-stage": "S5"
|
|
91
|
+
},
|
|
92
|
+
"answers": {
|
|
93
|
+
"type": "array",
|
|
94
|
+
"items": {
|
|
95
|
+
"type": "object",
|
|
96
|
+
"properties": {
|
|
97
|
+
"id": {
|
|
98
|
+
"type": "string"
|
|
99
|
+
},
|
|
100
|
+
"value": {
|
|
101
|
+
"type": [
|
|
102
|
+
"string",
|
|
103
|
+
"boolean",
|
|
104
|
+
"number",
|
|
105
|
+
"null"
|
|
106
|
+
]
|
|
107
|
+
},
|
|
108
|
+
"distribution": {
|
|
109
|
+
"type": "object",
|
|
110
|
+
"additionalProperties": {
|
|
111
|
+
"type": "number",
|
|
112
|
+
"minimum": 0,
|
|
113
|
+
"maximum": 1
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
"confidence": {
|
|
117
|
+
"type": [
|
|
118
|
+
"number",
|
|
119
|
+
"null"
|
|
120
|
+
]
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
"required": [
|
|
124
|
+
"id",
|
|
125
|
+
"value",
|
|
126
|
+
"distribution",
|
|
127
|
+
"confidence"
|
|
128
|
+
],
|
|
129
|
+
"additionalProperties": false
|
|
130
|
+
},
|
|
131
|
+
"minItems": 1,
|
|
132
|
+
"x-stage": "S5"
|
|
133
|
+
},
|
|
134
|
+
"model": {
|
|
135
|
+
"type": [
|
|
136
|
+
"string",
|
|
137
|
+
"null"
|
|
138
|
+
],
|
|
139
|
+
"x-stage": "S5"
|
|
140
|
+
},
|
|
141
|
+
"upstream_model": {
|
|
142
|
+
"type": [
|
|
143
|
+
"string",
|
|
144
|
+
"null"
|
|
145
|
+
],
|
|
146
|
+
"x-stage": "S5"
|
|
147
|
+
},
|
|
148
|
+
"latency_ms": {
|
|
149
|
+
"type": [
|
|
150
|
+
"integer",
|
|
151
|
+
"null"
|
|
152
|
+
],
|
|
153
|
+
"x-stage": "S5"
|
|
154
|
+
},
|
|
155
|
+
"credential_path": {
|
|
156
|
+
"enum": [
|
|
157
|
+
"trial",
|
|
158
|
+
"layer",
|
|
159
|
+
"caller-credential",
|
|
160
|
+
"registry"
|
|
161
|
+
],
|
|
162
|
+
"x-stage": "S5"
|
|
163
|
+
},
|
|
164
|
+
"caller": {
|
|
165
|
+
"enum": [
|
|
166
|
+
"site",
|
|
167
|
+
"mcp",
|
|
168
|
+
"n8n",
|
|
169
|
+
"registry",
|
|
170
|
+
"moonbeam",
|
|
171
|
+
"runner"
|
|
172
|
+
],
|
|
173
|
+
"x-stage": "S5"
|
|
174
|
+
},
|
|
175
|
+
"at": {
|
|
176
|
+
"$ref": "common.json#/$defs/unix_ms",
|
|
177
|
+
"x-stage": "S5"
|
|
178
|
+
},
|
|
179
|
+
"decision_id": {
|
|
180
|
+
"type": [
|
|
181
|
+
"string",
|
|
182
|
+
"null"
|
|
183
|
+
],
|
|
184
|
+
"x-stage": "S5"
|
|
185
|
+
},
|
|
186
|
+
"decision_digest": {
|
|
187
|
+
"anyOf": [
|
|
188
|
+
{
|
|
189
|
+
"$ref": "common.json#/$defs/bytes32"
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"type": "null"
|
|
193
|
+
}
|
|
194
|
+
],
|
|
195
|
+
"x-stage": "S5"
|
|
196
|
+
},
|
|
197
|
+
"anchors": {
|
|
198
|
+
"type": "array",
|
|
199
|
+
"items": {
|
|
200
|
+
"$ref": "common.json#/$defs/anchor"
|
|
201
|
+
},
|
|
202
|
+
"x-stage": "S6"
|
|
203
|
+
},
|
|
204
|
+
"source": {
|
|
205
|
+
"$ref": "common.json#/$defs/source",
|
|
206
|
+
"x-stage": "L"
|
|
207
|
+
}
|
|
208
|
+
},
|
|
209
|
+
"required": [
|
|
210
|
+
"schema",
|
|
211
|
+
"answers_digest",
|
|
212
|
+
"v",
|
|
213
|
+
"use_case",
|
|
214
|
+
"subject",
|
|
215
|
+
"input_digest",
|
|
216
|
+
"questions",
|
|
217
|
+
"answers",
|
|
218
|
+
"model",
|
|
219
|
+
"upstream_model",
|
|
220
|
+
"latency_ms",
|
|
221
|
+
"credential_path",
|
|
222
|
+
"caller",
|
|
223
|
+
"at",
|
|
224
|
+
"decision_id",
|
|
225
|
+
"decision_digest",
|
|
226
|
+
"anchors",
|
|
227
|
+
"source"
|
|
228
|
+
],
|
|
229
|
+
"additionalProperties": false
|
|
230
|
+
}
|
|
@@ -0,0 +1,397 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://www.taifoon.io/schemas/coordination/v1/common.json",
|
|
4
|
+
"title": "common definitions",
|
|
5
|
+
"description": "Shared value shapes: addresses, hashes, amounts, the identity keys (job_key, agent_key), anchors and the source stamp every entity carries.",
|
|
6
|
+
"$defs": {
|
|
7
|
+
"address": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"pattern": "^0x[0-9a-f]{40}$",
|
|
10
|
+
"description": "20-byte EVM address, lower-case (mappers lower-case every address they read)"
|
|
11
|
+
},
|
|
12
|
+
"bytes32": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"pattern": "^0x[0-9a-f]{64}$",
|
|
15
|
+
"description": "32-byte hex, lower-case: a transaction hash, a digest, a bytes32 job id"
|
|
16
|
+
},
|
|
17
|
+
"uint_string": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"pattern": "^[0-9]{1,78}$",
|
|
20
|
+
"description": "an unsigned integer in the token’s smallest unit, as a decimal string (never a float)"
|
|
21
|
+
},
|
|
22
|
+
"chain_id": {
|
|
23
|
+
"type": "integer",
|
|
24
|
+
"minimum": 1
|
|
25
|
+
},
|
|
26
|
+
"unix_s": {
|
|
27
|
+
"type": "integer",
|
|
28
|
+
"minimum": 0,
|
|
29
|
+
"description": "unix seconds (block time when read from a chain)"
|
|
30
|
+
},
|
|
31
|
+
"unix_ms": {
|
|
32
|
+
"type": "integer",
|
|
33
|
+
"minimum": 0
|
|
34
|
+
},
|
|
35
|
+
"lane": {
|
|
36
|
+
"enum": [
|
|
37
|
+
"erc8183",
|
|
38
|
+
"erc8183-extra",
|
|
39
|
+
"memo-acp",
|
|
40
|
+
"hook",
|
|
41
|
+
"handshake",
|
|
42
|
+
"olas-mech",
|
|
43
|
+
"grid"
|
|
44
|
+
],
|
|
45
|
+
"description": "which ledger or rail a job lives on: erc8183 (Virtuals ACP v3 on Base) · erc8183-extra (another ERC-8183 deployment, e.g. BitAgent) · memo-acp (Virtuals JobManager) · hook (assurance hook: layer or Moonbeam) · handshake (the layer’s offer, before any job) · olas-mech · grid"
|
|
46
|
+
},
|
|
47
|
+
"protocol": {
|
|
48
|
+
"enum": [
|
|
49
|
+
"erc8004",
|
|
50
|
+
"erc8183",
|
|
51
|
+
"memo-acp",
|
|
52
|
+
"bitagent",
|
|
53
|
+
"mcp",
|
|
54
|
+
"a2a",
|
|
55
|
+
"a2a-legacy",
|
|
56
|
+
"x402",
|
|
57
|
+
"n8n",
|
|
58
|
+
"webhook",
|
|
59
|
+
"olas-mech",
|
|
60
|
+
"phala-tee",
|
|
61
|
+
"grid",
|
|
62
|
+
"rest"
|
|
63
|
+
]
|
|
64
|
+
},
|
|
65
|
+
"lifecycle_state": {
|
|
66
|
+
"enum": [
|
|
67
|
+
"Open",
|
|
68
|
+
"Delivered",
|
|
69
|
+
"Created",
|
|
70
|
+
"Opened",
|
|
71
|
+
"Funded",
|
|
72
|
+
"Submitted",
|
|
73
|
+
"Graded",
|
|
74
|
+
"Held",
|
|
75
|
+
"RejectPending",
|
|
76
|
+
"Disputed",
|
|
77
|
+
"Settled",
|
|
78
|
+
"Rejected",
|
|
79
|
+
"Expired",
|
|
80
|
+
"Cheat",
|
|
81
|
+
"Cancelled"
|
|
82
|
+
],
|
|
83
|
+
"description": "a state of transitions.json (src/machine.ts)"
|
|
84
|
+
},
|
|
85
|
+
"ending": {
|
|
86
|
+
"enum": [
|
|
87
|
+
"open",
|
|
88
|
+
"lapsed_unfunded",
|
|
89
|
+
"completed",
|
|
90
|
+
"rejected_delivered",
|
|
91
|
+
"rejected_undelivered",
|
|
92
|
+
"expired_delivered",
|
|
93
|
+
"expired_undelivered",
|
|
94
|
+
"cheated"
|
|
95
|
+
],
|
|
96
|
+
"description": "the observatory’s ending (trails.mjs endingOf, plus the lapsed_unfunded override)"
|
|
97
|
+
},
|
|
98
|
+
"verdict_class": {
|
|
99
|
+
"type": "string",
|
|
100
|
+
"pattern": "^(correct|incorrect|undecided|excluded:[a-z_]+)$",
|
|
101
|
+
"description": "the seller-verdict rule (trails.mjs verdictOf): correct · incorrect · undecided · excluded:<reason>"
|
|
102
|
+
},
|
|
103
|
+
"ref_value": {
|
|
104
|
+
"enum": [
|
|
105
|
+
"delivered_as_specified",
|
|
106
|
+
"delivered_with_defects",
|
|
107
|
+
"not_delivered",
|
|
108
|
+
"cannot_determine"
|
|
109
|
+
],
|
|
110
|
+
"description": "the REF vocabulary (judge-client REF_OPTIONS; DET from events uses the same four)"
|
|
111
|
+
},
|
|
112
|
+
"job_key": {
|
|
113
|
+
"type": "string",
|
|
114
|
+
"pattern": "^(hs:hs_[0-9a-f]{24}|[a-z][a-z0-9-]{0,31}:[1-9][0-9]{0,9}:(0x[0-9a-f]{64}|[0-9]{1,78}))$",
|
|
115
|
+
"description": "THE job identity: <label>:<chainId>:<id>. erc8183:8453:81067 (Virtuals ACP v3) · memo-acp:8453:1003562337 · bitagent:8453:8941 (extra deployment: exactly the observatory’s key) · hook:8453:0x5bf2… (assurance hook, bytes32) · hs:hs_… (a handshake before any job). src/ids.ts parses and formats it."
|
|
116
|
+
},
|
|
117
|
+
"agent_key": {
|
|
118
|
+
"type": "string",
|
|
119
|
+
"pattern": "^(erc8004:[1-9][0-9]{0,9}:[0-9]{1,78}|evm:[1-9][0-9]{0,9}:0x[0-9a-f]{40}|url:https?://[^\\s]+)$",
|
|
120
|
+
"description": "THE agent identity: erc8004:<chainId>:<agentId> when an ERC-8004 identity is known · evm:<chainId>:<address> for a party known only by its address (an ERC-8183 provider, a memo-ACP seller) · url:<card url> for a card with neither"
|
|
121
|
+
},
|
|
122
|
+
"token": {
|
|
123
|
+
"type": "object",
|
|
124
|
+
"properties": {
|
|
125
|
+
"address": {
|
|
126
|
+
"anyOf": [
|
|
127
|
+
{
|
|
128
|
+
"$ref": "common.json#/$defs/address"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"type": "null"
|
|
132
|
+
}
|
|
133
|
+
]
|
|
134
|
+
},
|
|
135
|
+
"symbol": {
|
|
136
|
+
"type": [
|
|
137
|
+
"string",
|
|
138
|
+
"null"
|
|
139
|
+
]
|
|
140
|
+
},
|
|
141
|
+
"decimals": {
|
|
142
|
+
"type": [
|
|
143
|
+
"integer",
|
|
144
|
+
"null"
|
|
145
|
+
]
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
"required": [
|
|
149
|
+
"address",
|
|
150
|
+
"symbol",
|
|
151
|
+
"decimals"
|
|
152
|
+
],
|
|
153
|
+
"additionalProperties": false
|
|
154
|
+
},
|
|
155
|
+
"amount": {
|
|
156
|
+
"type": "object",
|
|
157
|
+
"additionalProperties": false,
|
|
158
|
+
"required": [
|
|
159
|
+
"raw",
|
|
160
|
+
"value",
|
|
161
|
+
"token"
|
|
162
|
+
],
|
|
163
|
+
"properties": {
|
|
164
|
+
"raw": {
|
|
165
|
+
"anyOf": [
|
|
166
|
+
{
|
|
167
|
+
"$ref": "common.json#/$defs/uint_string"
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"type": "null"
|
|
171
|
+
}
|
|
172
|
+
]
|
|
173
|
+
},
|
|
174
|
+
"value": {
|
|
175
|
+
"type": [
|
|
176
|
+
"number",
|
|
177
|
+
"null"
|
|
178
|
+
],
|
|
179
|
+
"description": "raw / 10^decimals, for reading; the raw value is authoritative"
|
|
180
|
+
},
|
|
181
|
+
"token": {
|
|
182
|
+
"anyOf": [
|
|
183
|
+
{
|
|
184
|
+
"$ref": "common.json#/$defs/token"
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"type": "null"
|
|
188
|
+
}
|
|
189
|
+
]
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
"job_ref": {
|
|
194
|
+
"type": "object",
|
|
195
|
+
"properties": {
|
|
196
|
+
"key": {
|
|
197
|
+
"$ref": "common.json#/$defs/job_key"
|
|
198
|
+
},
|
|
199
|
+
"lane": {
|
|
200
|
+
"$ref": "common.json#/$defs/lane"
|
|
201
|
+
},
|
|
202
|
+
"chain_id": {
|
|
203
|
+
"anyOf": [
|
|
204
|
+
{
|
|
205
|
+
"$ref": "common.json#/$defs/chain_id"
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"type": "null"
|
|
209
|
+
}
|
|
210
|
+
]
|
|
211
|
+
},
|
|
212
|
+
"id": {
|
|
213
|
+
"type": "string",
|
|
214
|
+
"description": "the id as its own ledger writes it (bytes32 hex, decimal, or hs_…)"
|
|
215
|
+
},
|
|
216
|
+
"contract": {
|
|
217
|
+
"anyOf": [
|
|
218
|
+
{
|
|
219
|
+
"$ref": "common.json#/$defs/address"
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
"type": "null"
|
|
223
|
+
}
|
|
224
|
+
]
|
|
225
|
+
}
|
|
226
|
+
},
|
|
227
|
+
"required": [
|
|
228
|
+
"key",
|
|
229
|
+
"lane",
|
|
230
|
+
"chain_id",
|
|
231
|
+
"id",
|
|
232
|
+
"contract"
|
|
233
|
+
],
|
|
234
|
+
"additionalProperties": false
|
|
235
|
+
},
|
|
236
|
+
"chain_anchor": {
|
|
237
|
+
"type": "object",
|
|
238
|
+
"properties": {
|
|
239
|
+
"kind": {
|
|
240
|
+
"const": "chain"
|
|
241
|
+
},
|
|
242
|
+
"chain_id": {
|
|
243
|
+
"$ref": "common.json#/$defs/chain_id"
|
|
244
|
+
},
|
|
245
|
+
"tx": {
|
|
246
|
+
"$ref": "common.json#/$defs/bytes32"
|
|
247
|
+
},
|
|
248
|
+
"block": {
|
|
249
|
+
"type": [
|
|
250
|
+
"integer",
|
|
251
|
+
"null"
|
|
252
|
+
]
|
|
253
|
+
},
|
|
254
|
+
"ts": {
|
|
255
|
+
"type": [
|
|
256
|
+
"integer",
|
|
257
|
+
"null"
|
|
258
|
+
],
|
|
259
|
+
"description": "block time (unix s) when the source carried it"
|
|
260
|
+
},
|
|
261
|
+
"log_index": {
|
|
262
|
+
"type": [
|
|
263
|
+
"integer",
|
|
264
|
+
"null"
|
|
265
|
+
]
|
|
266
|
+
},
|
|
267
|
+
"contract": {
|
|
268
|
+
"anyOf": [
|
|
269
|
+
{
|
|
270
|
+
"$ref": "common.json#/$defs/address"
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
"type": "null"
|
|
274
|
+
}
|
|
275
|
+
]
|
|
276
|
+
},
|
|
277
|
+
"what": {
|
|
278
|
+
"type": "string",
|
|
279
|
+
"description": "what this transaction did, in words (event or call)"
|
|
280
|
+
}
|
|
281
|
+
},
|
|
282
|
+
"required": [
|
|
283
|
+
"kind",
|
|
284
|
+
"chain_id",
|
|
285
|
+
"tx",
|
|
286
|
+
"block",
|
|
287
|
+
"ts",
|
|
288
|
+
"log_index",
|
|
289
|
+
"contract",
|
|
290
|
+
"what"
|
|
291
|
+
],
|
|
292
|
+
"additionalProperties": false
|
|
293
|
+
},
|
|
294
|
+
"offchain_anchor": {
|
|
295
|
+
"type": "object",
|
|
296
|
+
"properties": {
|
|
297
|
+
"kind": {
|
|
298
|
+
"const": "offchain"
|
|
299
|
+
},
|
|
300
|
+
"store": {
|
|
301
|
+
"type": "string",
|
|
302
|
+
"description": "where the record lives: observatory, coordd:<prefix>, registry, card-url, n8n"
|
|
303
|
+
},
|
|
304
|
+
"key": {
|
|
305
|
+
"type": "string"
|
|
306
|
+
},
|
|
307
|
+
"digest": {
|
|
308
|
+
"anyOf": [
|
|
309
|
+
{
|
|
310
|
+
"$ref": "common.json#/$defs/bytes32"
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
"type": "null"
|
|
314
|
+
}
|
|
315
|
+
]
|
|
316
|
+
},
|
|
317
|
+
"anchored_by": {
|
|
318
|
+
"anyOf": [
|
|
319
|
+
{
|
|
320
|
+
"$ref": "#/$defs/chain_anchor"
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
"type": "null"
|
|
324
|
+
}
|
|
325
|
+
],
|
|
326
|
+
"description": "the transaction that pins this off-chain record, when one does"
|
|
327
|
+
},
|
|
328
|
+
"what": {
|
|
329
|
+
"type": "string"
|
|
330
|
+
}
|
|
331
|
+
},
|
|
332
|
+
"required": [
|
|
333
|
+
"kind",
|
|
334
|
+
"store",
|
|
335
|
+
"key",
|
|
336
|
+
"digest",
|
|
337
|
+
"anchored_by",
|
|
338
|
+
"what"
|
|
339
|
+
],
|
|
340
|
+
"additionalProperties": false
|
|
341
|
+
},
|
|
342
|
+
"anchor": {
|
|
343
|
+
"oneOf": [
|
|
344
|
+
{
|
|
345
|
+
"$ref": "#/$defs/chain_anchor"
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
"$ref": "#/$defs/offchain_anchor"
|
|
349
|
+
}
|
|
350
|
+
]
|
|
351
|
+
},
|
|
352
|
+
"source": {
|
|
353
|
+
"type": "object",
|
|
354
|
+
"properties": {
|
|
355
|
+
"kind": {
|
|
356
|
+
"enum": [
|
|
357
|
+
"observatory-job",
|
|
358
|
+
"handshake",
|
|
359
|
+
"n8n-hire-item",
|
|
360
|
+
"registry-agent",
|
|
361
|
+
"harvester-row",
|
|
362
|
+
"erc8004-registration",
|
|
363
|
+
"a2a-card",
|
|
364
|
+
"mcp-server",
|
|
365
|
+
"decision",
|
|
366
|
+
"jev-answer",
|
|
367
|
+
"settle-record",
|
|
368
|
+
"pool-quote",
|
|
369
|
+
"hire-lifecycle",
|
|
370
|
+
"evidence-pack",
|
|
371
|
+
"job-classes"
|
|
372
|
+
],
|
|
373
|
+
"description": "which real source this record was mapped from"
|
|
374
|
+
},
|
|
375
|
+
"url": {
|
|
376
|
+
"type": [
|
|
377
|
+
"string",
|
|
378
|
+
"null"
|
|
379
|
+
]
|
|
380
|
+
},
|
|
381
|
+
"read_at": {
|
|
382
|
+
"type": [
|
|
383
|
+
"integer",
|
|
384
|
+
"null"
|
|
385
|
+
],
|
|
386
|
+
"description": "unix seconds when the source was read, when known"
|
|
387
|
+
}
|
|
388
|
+
},
|
|
389
|
+
"required": [
|
|
390
|
+
"kind",
|
|
391
|
+
"url",
|
|
392
|
+
"read_at"
|
|
393
|
+
],
|
|
394
|
+
"additionalProperties": false
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
}
|