@cultured_computer/sight 0.4.3 → 0.4.4
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/dist/index.cjs +16 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +16 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/schema/sight-record-v1.schema.json +520 -101
|
@@ -1,45 +1,132 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"$id": "https://sight.cultured.computer/schema/sight-record-v1.schema.json",
|
|
4
|
-
"title": "Sight record v1
|
|
4
|
+
"title": "Sight record v1 \u2014 one exported session (RLDS-shaped episode)",
|
|
5
5
|
"$comment": "The exact shape the self-serve export streams (application/x-ndjson: one episode per line). Source of truth is the export mapper (apps/dashboard/src/lib/rlds.ts); a lockstep test keeps this file and the mapper's output keys identical. Text fields carry the redacted record only (personal data is stripped at ingest, before storage); raw payloads never enter this shape. Envelope keys are fixed and strict; the four state payloads are deployment-specific and stay open. Nulls are honest absences, never zeros.",
|
|
6
6
|
"type": "object",
|
|
7
7
|
"additionalProperties": false,
|
|
8
8
|
"required": [
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"external_user_id",
|
|
9
|
+
"agent_id",
|
|
10
|
+
"capture_profile",
|
|
12
11
|
"deployment",
|
|
13
|
-
"
|
|
12
|
+
"duration_ms",
|
|
14
13
|
"ended_at",
|
|
15
14
|
"ended_reason",
|
|
16
|
-
"turns_count",
|
|
17
|
-
"duration_ms",
|
|
18
|
-
"agent_id",
|
|
19
|
-
"experiment_id",
|
|
20
15
|
"environment_config_hash",
|
|
21
16
|
"environment_config_label",
|
|
17
|
+
"episode_id",
|
|
18
|
+
"experiment_id",
|
|
19
|
+
"external_session_id",
|
|
20
|
+
"external_user_id",
|
|
22
21
|
"invalid",
|
|
23
22
|
"invalid_reason",
|
|
24
|
-
"
|
|
23
|
+
"started_at",
|
|
24
|
+
"steps",
|
|
25
|
+
"turns_count"
|
|
25
26
|
],
|
|
26
27
|
"properties": {
|
|
27
|
-
"episode_id": {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
"
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
"
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
28
|
+
"episode_id": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"description": "Sight's session id."
|
|
31
|
+
},
|
|
32
|
+
"external_session_id": {
|
|
33
|
+
"type": [
|
|
34
|
+
"string",
|
|
35
|
+
"null"
|
|
36
|
+
],
|
|
37
|
+
"description": "The caller's own session id, when supplied at capture."
|
|
38
|
+
},
|
|
39
|
+
"external_user_id": {
|
|
40
|
+
"type": [
|
|
41
|
+
"string",
|
|
42
|
+
"null"
|
|
43
|
+
],
|
|
44
|
+
"description": "The caller's stable user id \u2014 the key return behavior joins on."
|
|
45
|
+
},
|
|
46
|
+
"deployment": {
|
|
47
|
+
"type": "string",
|
|
48
|
+
"description": "Deployment slug."
|
|
49
|
+
},
|
|
50
|
+
"started_at": {
|
|
51
|
+
"$ref": "#/$defs/timestamp"
|
|
52
|
+
},
|
|
53
|
+
"ended_at": {
|
|
54
|
+
"oneOf": [
|
|
55
|
+
{
|
|
56
|
+
"$ref": "#/$defs/timestamp"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"type": "null"
|
|
60
|
+
}
|
|
61
|
+
]
|
|
62
|
+
},
|
|
63
|
+
"ended_reason": {
|
|
64
|
+
"type": [
|
|
65
|
+
"string",
|
|
66
|
+
"null"
|
|
67
|
+
],
|
|
68
|
+
"description": "Why the session ended (SDK-supplied wins; sweep fallback). Null while still open."
|
|
69
|
+
},
|
|
70
|
+
"turns_count": {
|
|
71
|
+
"type": "integer",
|
|
72
|
+
"minimum": 0
|
|
73
|
+
},
|
|
74
|
+
"duration_ms": {
|
|
75
|
+
"type": [
|
|
76
|
+
"integer",
|
|
77
|
+
"null"
|
|
78
|
+
]
|
|
79
|
+
},
|
|
80
|
+
"agent_id": {
|
|
81
|
+
"type": [
|
|
82
|
+
"string",
|
|
83
|
+
"null"
|
|
84
|
+
],
|
|
85
|
+
"description": "Provenance: which agent served this session."
|
|
86
|
+
},
|
|
87
|
+
"experiment_id": {
|
|
88
|
+
"type": [
|
|
89
|
+
"string",
|
|
90
|
+
"null"
|
|
91
|
+
],
|
|
92
|
+
"description": "Provenance: designed-traffic tag; live aggregates exclude designed runs."
|
|
93
|
+
},
|
|
94
|
+
"environment_config_hash": {
|
|
95
|
+
"type": [
|
|
96
|
+
"string",
|
|
97
|
+
"null"
|
|
98
|
+
],
|
|
99
|
+
"description": "Provenance: hash of the serving configuration in force."
|
|
100
|
+
},
|
|
101
|
+
"environment_config_label": {
|
|
102
|
+
"type": [
|
|
103
|
+
"string",
|
|
104
|
+
"null"
|
|
105
|
+
]
|
|
106
|
+
},
|
|
107
|
+
"invalid": {
|
|
108
|
+
"type": "boolean",
|
|
109
|
+
"description": "Flag-don't-delete: questionable episodes export marked, never silently dropped."
|
|
110
|
+
},
|
|
111
|
+
"invalid_reason": {
|
|
112
|
+
"type": [
|
|
113
|
+
"string",
|
|
114
|
+
"null"
|
|
115
|
+
]
|
|
116
|
+
},
|
|
117
|
+
"steps": {
|
|
118
|
+
"type": "array",
|
|
119
|
+
"items": {
|
|
120
|
+
"$ref": "#/$defs/step"
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
"capture_profile": {
|
|
124
|
+
"description": "Lane fidelity declaration (collection-start integrity E3): what this deployment's capture lane CAN and CANNOT see, so a null field is never ambiguous between 'did not happen' and 'not capturable on this lane'. Null = undeclared (pre-E3 deployments; the SDK default lane until it stamps). Shape: { connector, rule_version, channels: { <channel>: true|false|string }, session_shape? }.",
|
|
125
|
+
"type": [
|
|
126
|
+
"object",
|
|
127
|
+
"null"
|
|
128
|
+
]
|
|
129
|
+
}
|
|
43
130
|
},
|
|
44
131
|
"$defs": {
|
|
45
132
|
"timestamp": {
|
|
@@ -65,33 +152,114 @@
|
|
|
65
152
|
"reward"
|
|
66
153
|
],
|
|
67
154
|
"properties": {
|
|
68
|
-
"turn_index": {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
"
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
"
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
155
|
+
"turn_index": {
|
|
156
|
+
"type": "integer",
|
|
157
|
+
"minimum": 0
|
|
158
|
+
},
|
|
159
|
+
"started_at": {
|
|
160
|
+
"$ref": "#/$defs/timestamp"
|
|
161
|
+
},
|
|
162
|
+
"persona": {
|
|
163
|
+
"type": [
|
|
164
|
+
"string",
|
|
165
|
+
"null"
|
|
166
|
+
]
|
|
167
|
+
},
|
|
168
|
+
"is_first": {
|
|
169
|
+
"type": "boolean"
|
|
170
|
+
},
|
|
171
|
+
"is_terminal": {
|
|
172
|
+
"type": "boolean",
|
|
173
|
+
"description": "Last step of a session that genuinely ended (natural close)."
|
|
174
|
+
},
|
|
175
|
+
"truncated": {
|
|
176
|
+
"type": "boolean",
|
|
177
|
+
"description": "Last step of a session that stopped without ending (abandoned / timeout / crash). Distinct from is_terminal on purpose."
|
|
178
|
+
},
|
|
179
|
+
"discount": {
|
|
180
|
+
"type": "number"
|
|
181
|
+
},
|
|
182
|
+
"state": {
|
|
183
|
+
"$ref": "#/$defs/state"
|
|
184
|
+
},
|
|
185
|
+
"action": {
|
|
186
|
+
"$ref": "#/$defs/action"
|
|
187
|
+
},
|
|
188
|
+
"uptake": {
|
|
189
|
+
"$ref": "#/$defs/uptake"
|
|
190
|
+
},
|
|
191
|
+
"reward": {
|
|
192
|
+
"$ref": "#/$defs/reward"
|
|
193
|
+
}
|
|
79
194
|
}
|
|
80
195
|
},
|
|
81
196
|
"state": {
|
|
82
197
|
"type": "object",
|
|
83
198
|
"description": "The situation the turn happened in. The three *_situation_state payloads are deployment-specific and machine-read; they stay open objects.",
|
|
84
199
|
"additionalProperties": false,
|
|
85
|
-
"required": [
|
|
200
|
+
"required": [
|
|
201
|
+
"situation_state",
|
|
202
|
+
"agent_situation_state",
|
|
203
|
+
"user_situation_state",
|
|
204
|
+
"situation_type"
|
|
205
|
+
],
|
|
86
206
|
"properties": {
|
|
87
|
-
"situation_state": {
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
207
|
+
"situation_state": {
|
|
208
|
+
"type": [
|
|
209
|
+
"object",
|
|
210
|
+
"null"
|
|
211
|
+
],
|
|
212
|
+
"additionalProperties": true
|
|
213
|
+
},
|
|
214
|
+
"agent_situation_state": {
|
|
215
|
+
"type": [
|
|
216
|
+
"object",
|
|
217
|
+
"null"
|
|
218
|
+
],
|
|
219
|
+
"additionalProperties": true
|
|
220
|
+
},
|
|
221
|
+
"user_situation_state": {
|
|
222
|
+
"type": [
|
|
223
|
+
"object",
|
|
224
|
+
"null"
|
|
225
|
+
],
|
|
226
|
+
"additionalProperties": true
|
|
227
|
+
},
|
|
228
|
+
"situation_type": {
|
|
229
|
+
"oneOf": [
|
|
230
|
+
{
|
|
231
|
+
"type": "array",
|
|
232
|
+
"items": {
|
|
233
|
+
"type": "string"
|
|
234
|
+
}
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
"type": "null"
|
|
238
|
+
}
|
|
239
|
+
]
|
|
240
|
+
}
|
|
91
241
|
}
|
|
92
242
|
},
|
|
93
|
-
"dimension_value": {
|
|
94
|
-
|
|
243
|
+
"dimension_value": {
|
|
244
|
+
"type": [
|
|
245
|
+
"string",
|
|
246
|
+
"null"
|
|
247
|
+
],
|
|
248
|
+
"description": "Machine-read dimension label. Null = not read on this turn, never a claim of absence."
|
|
249
|
+
},
|
|
250
|
+
"dimension_list": {
|
|
251
|
+
"oneOf": [
|
|
252
|
+
{
|
|
253
|
+
"type": "array",
|
|
254
|
+
"items": {
|
|
255
|
+
"type": "string"
|
|
256
|
+
}
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
"type": "null"
|
|
260
|
+
}
|
|
261
|
+
]
|
|
262
|
+
},
|
|
95
263
|
"action": {
|
|
96
264
|
"type": "object",
|
|
97
265
|
"description": "The assistant's turn: redacted text, machine-read dimensions, selection propensities when logged, and the serving plumbing.",
|
|
@@ -107,22 +275,52 @@
|
|
|
107
275
|
"plumbing"
|
|
108
276
|
],
|
|
109
277
|
"properties": {
|
|
110
|
-
"text": {
|
|
278
|
+
"text": {
|
|
279
|
+
"type": [
|
|
280
|
+
"string",
|
|
281
|
+
"null"
|
|
282
|
+
],
|
|
283
|
+
"description": "Redacted assistant text (Tier 2). Null when not captured."
|
|
284
|
+
},
|
|
111
285
|
"dimensions": {
|
|
112
286
|
"type": "object",
|
|
113
287
|
"additionalProperties": false,
|
|
114
|
-
"required": [
|
|
288
|
+
"required": [
|
|
289
|
+
"speech_act",
|
|
290
|
+
"stance_epistemic",
|
|
291
|
+
"stance_affective",
|
|
292
|
+
"stance_alignment",
|
|
293
|
+
"discourse_relation",
|
|
294
|
+
"grounding_move",
|
|
295
|
+
"face_work"
|
|
296
|
+
],
|
|
115
297
|
"properties": {
|
|
116
|
-
"speech_act": {
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
"
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
"
|
|
298
|
+
"speech_act": {
|
|
299
|
+
"$ref": "#/$defs/dimension_value"
|
|
300
|
+
},
|
|
301
|
+
"stance_epistemic": {
|
|
302
|
+
"$ref": "#/$defs/dimension_value"
|
|
303
|
+
},
|
|
304
|
+
"stance_affective": {
|
|
305
|
+
"$ref": "#/$defs/dimension_value"
|
|
306
|
+
},
|
|
307
|
+
"stance_alignment": {
|
|
308
|
+
"$ref": "#/$defs/dimension_value"
|
|
309
|
+
},
|
|
310
|
+
"discourse_relation": {
|
|
311
|
+
"$ref": "#/$defs/dimension_value"
|
|
312
|
+
},
|
|
313
|
+
"grounding_move": {
|
|
314
|
+
"$ref": "#/$defs/dimension_list"
|
|
315
|
+
},
|
|
316
|
+
"face_work": {
|
|
317
|
+
"$ref": "#/$defs/dimension_list"
|
|
318
|
+
}
|
|
123
319
|
}
|
|
124
320
|
},
|
|
125
|
-
"signature_phrase_matches": {
|
|
321
|
+
"signature_phrase_matches": {
|
|
322
|
+
"$ref": "#/$defs/dimension_list"
|
|
323
|
+
},
|
|
126
324
|
"read_candidates": {
|
|
127
325
|
"oneOf": [
|
|
128
326
|
{
|
|
@@ -130,97 +328,318 @@
|
|
|
130
328
|
"items": {
|
|
131
329
|
"type": "object",
|
|
132
330
|
"additionalProperties": false,
|
|
133
|
-
"required": [
|
|
134
|
-
|
|
331
|
+
"required": [
|
|
332
|
+
"label"
|
|
333
|
+
],
|
|
334
|
+
"properties": {
|
|
335
|
+
"label": {
|
|
336
|
+
"type": "string"
|
|
337
|
+
},
|
|
338
|
+
"text": {
|
|
339
|
+
"type": "string"
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
"type": "null"
|
|
346
|
+
}
|
|
347
|
+
]
|
|
348
|
+
},
|
|
349
|
+
"read_scores": {
|
|
350
|
+
"oneOf": [
|
|
351
|
+
{
|
|
352
|
+
"type": "array",
|
|
353
|
+
"items": {
|
|
354
|
+
"type": "number"
|
|
135
355
|
}
|
|
136
356
|
},
|
|
137
|
-
{
|
|
357
|
+
{
|
|
358
|
+
"type": "null"
|
|
359
|
+
}
|
|
360
|
+
]
|
|
361
|
+
},
|
|
362
|
+
"read_propensities": {
|
|
363
|
+
"oneOf": [
|
|
364
|
+
{
|
|
365
|
+
"type": "array",
|
|
366
|
+
"items": {
|
|
367
|
+
"type": "number"
|
|
368
|
+
}
|
|
369
|
+
},
|
|
370
|
+
{
|
|
371
|
+
"type": "null"
|
|
372
|
+
}
|
|
373
|
+
]
|
|
374
|
+
},
|
|
375
|
+
"selected_index": {
|
|
376
|
+
"type": [
|
|
377
|
+
"integer",
|
|
378
|
+
"null"
|
|
138
379
|
]
|
|
139
380
|
},
|
|
140
|
-
"read_scores": { "oneOf": [{ "type": "array", "items": { "type": "number" } }, { "type": "null" }] },
|
|
141
|
-
"read_propensities": { "oneOf": [{ "type": "array", "items": { "type": "number" } }, { "type": "null" }] },
|
|
142
|
-
"selected_index": { "type": ["integer", "null"] },
|
|
143
381
|
"plumbing": {
|
|
144
382
|
"type": "object",
|
|
145
383
|
"additionalProperties": false,
|
|
146
|
-
"required": [
|
|
384
|
+
"required": [
|
|
385
|
+
"model",
|
|
386
|
+
"provider",
|
|
387
|
+
"finish_reason",
|
|
388
|
+
"error",
|
|
389
|
+
"latency_ms",
|
|
390
|
+
"first_token_ms",
|
|
391
|
+
"tokens_input",
|
|
392
|
+
"tokens_output",
|
|
393
|
+
"cost_usd",
|
|
394
|
+
"tool_calls",
|
|
395
|
+
"tool_names"
|
|
396
|
+
],
|
|
147
397
|
"properties": {
|
|
148
|
-
"model": {
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
"
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
398
|
+
"model": {
|
|
399
|
+
"type": [
|
|
400
|
+
"string",
|
|
401
|
+
"null"
|
|
402
|
+
]
|
|
403
|
+
},
|
|
404
|
+
"provider": {
|
|
405
|
+
"type": [
|
|
406
|
+
"string",
|
|
407
|
+
"null"
|
|
408
|
+
]
|
|
409
|
+
},
|
|
410
|
+
"finish_reason": {
|
|
411
|
+
"type": [
|
|
412
|
+
"string",
|
|
413
|
+
"null"
|
|
414
|
+
]
|
|
415
|
+
},
|
|
416
|
+
"error": {
|
|
417
|
+
"type": [
|
|
418
|
+
"string",
|
|
419
|
+
"null"
|
|
420
|
+
]
|
|
421
|
+
},
|
|
422
|
+
"latency_ms": {
|
|
423
|
+
"type": [
|
|
424
|
+
"integer",
|
|
425
|
+
"null"
|
|
426
|
+
]
|
|
427
|
+
},
|
|
428
|
+
"first_token_ms": {
|
|
429
|
+
"type": [
|
|
430
|
+
"integer",
|
|
431
|
+
"null"
|
|
432
|
+
]
|
|
433
|
+
},
|
|
434
|
+
"tokens_input": {
|
|
435
|
+
"type": [
|
|
436
|
+
"integer",
|
|
437
|
+
"null"
|
|
438
|
+
]
|
|
439
|
+
},
|
|
440
|
+
"tokens_output": {
|
|
441
|
+
"type": [
|
|
442
|
+
"integer",
|
|
443
|
+
"null"
|
|
444
|
+
]
|
|
445
|
+
},
|
|
446
|
+
"cost_usd": {
|
|
447
|
+
"type": [
|
|
448
|
+
"string",
|
|
449
|
+
"null"
|
|
450
|
+
],
|
|
451
|
+
"description": "Decimal as a string (exact, never floated)."
|
|
452
|
+
},
|
|
453
|
+
"tool_calls": {
|
|
454
|
+
"type": [
|
|
455
|
+
"integer",
|
|
456
|
+
"null"
|
|
457
|
+
]
|
|
458
|
+
},
|
|
459
|
+
"tool_names": {
|
|
460
|
+
"$ref": "#/$defs/dimension_list"
|
|
461
|
+
}
|
|
159
462
|
}
|
|
160
463
|
}
|
|
161
464
|
}
|
|
162
465
|
},
|
|
163
466
|
"uptake": {
|
|
164
467
|
"type": "object",
|
|
165
|
-
"description": "The human's next turn
|
|
468
|
+
"description": "The human's next turn \u2014 how the assistant's move landed. The pair block is the exchange-level read.",
|
|
166
469
|
"additionalProperties": false,
|
|
167
|
-
"required": [
|
|
470
|
+
"required": [
|
|
471
|
+
"text",
|
|
472
|
+
"dimensions",
|
|
473
|
+
"pair",
|
|
474
|
+
"transition_time_ms",
|
|
475
|
+
"transition_length_delta",
|
|
476
|
+
"interrupted_stream",
|
|
477
|
+
"cancelled_response"
|
|
478
|
+
],
|
|
168
479
|
"properties": {
|
|
169
|
-
"text": {
|
|
480
|
+
"text": {
|
|
481
|
+
"type": [
|
|
482
|
+
"string",
|
|
483
|
+
"null"
|
|
484
|
+
],
|
|
485
|
+
"description": "Redacted user text (Tier 2). Null when not captured."
|
|
486
|
+
},
|
|
170
487
|
"dimensions": {
|
|
171
488
|
"type": "object",
|
|
172
489
|
"additionalProperties": false,
|
|
173
|
-
"required": [
|
|
490
|
+
"required": [
|
|
491
|
+
"speech_act",
|
|
492
|
+
"stance_epistemic",
|
|
493
|
+
"stance_affective",
|
|
494
|
+
"stance_alignment",
|
|
495
|
+
"discourse_relation",
|
|
496
|
+
"grounding_move"
|
|
497
|
+
],
|
|
174
498
|
"properties": {
|
|
175
|
-
"speech_act": {
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
"
|
|
179
|
-
|
|
180
|
-
|
|
499
|
+
"speech_act": {
|
|
500
|
+
"$ref": "#/$defs/dimension_value"
|
|
501
|
+
},
|
|
502
|
+
"stance_epistemic": {
|
|
503
|
+
"$ref": "#/$defs/dimension_value"
|
|
504
|
+
},
|
|
505
|
+
"stance_affective": {
|
|
506
|
+
"$ref": "#/$defs/dimension_value"
|
|
507
|
+
},
|
|
508
|
+
"stance_alignment": {
|
|
509
|
+
"$ref": "#/$defs/dimension_value"
|
|
510
|
+
},
|
|
511
|
+
"discourse_relation": {
|
|
512
|
+
"$ref": "#/$defs/dimension_value"
|
|
513
|
+
},
|
|
514
|
+
"grounding_move": {
|
|
515
|
+
"$ref": "#/$defs/dimension_list"
|
|
516
|
+
}
|
|
181
517
|
}
|
|
182
518
|
},
|
|
183
519
|
"pair": {
|
|
184
520
|
"type": "object",
|
|
185
521
|
"additionalProperties": false,
|
|
186
|
-
"required": [
|
|
522
|
+
"required": [
|
|
523
|
+
"pair_type",
|
|
524
|
+
"pair_completed",
|
|
525
|
+
"uptaken_as",
|
|
526
|
+
"accommodation_direction"
|
|
527
|
+
],
|
|
187
528
|
"properties": {
|
|
188
|
-
"pair_type": {
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
"
|
|
529
|
+
"pair_type": {
|
|
530
|
+
"$ref": "#/$defs/dimension_value"
|
|
531
|
+
},
|
|
532
|
+
"pair_completed": {
|
|
533
|
+
"type": [
|
|
534
|
+
"boolean",
|
|
535
|
+
"null"
|
|
536
|
+
],
|
|
537
|
+
"description": "Did the move get its completing response? Null = pair not readable on this turn."
|
|
538
|
+
},
|
|
539
|
+
"uptaken_as": {
|
|
540
|
+
"$ref": "#/$defs/dimension_value"
|
|
541
|
+
},
|
|
542
|
+
"accommodation_direction": {
|
|
543
|
+
"$ref": "#/$defs/dimension_value"
|
|
544
|
+
}
|
|
192
545
|
}
|
|
193
546
|
},
|
|
194
|
-
"transition_time_ms": {
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
547
|
+
"transition_time_ms": {
|
|
548
|
+
"type": [
|
|
549
|
+
"integer",
|
|
550
|
+
"null"
|
|
551
|
+
]
|
|
552
|
+
},
|
|
553
|
+
"transition_length_delta": {
|
|
554
|
+
"type": [
|
|
555
|
+
"integer",
|
|
556
|
+
"null"
|
|
557
|
+
]
|
|
558
|
+
},
|
|
559
|
+
"interrupted_stream": {
|
|
560
|
+
"type": [
|
|
561
|
+
"boolean",
|
|
562
|
+
"null"
|
|
563
|
+
]
|
|
564
|
+
},
|
|
565
|
+
"cancelled_response": {
|
|
566
|
+
"type": [
|
|
567
|
+
"boolean",
|
|
568
|
+
"null"
|
|
569
|
+
]
|
|
570
|
+
}
|
|
198
571
|
}
|
|
199
572
|
},
|
|
200
573
|
"reward": {
|
|
201
574
|
"type": "object",
|
|
202
575
|
"description": "What followed: outcome events joined back to the causing turn (hours later is fine), plus explicit user signals.",
|
|
203
576
|
"additionalProperties": false,
|
|
204
|
-
"required": [
|
|
577
|
+
"required": [
|
|
578
|
+
"events",
|
|
579
|
+
"user_flagged_break",
|
|
580
|
+
"user_explicit_rating",
|
|
581
|
+
"user_thumbs",
|
|
582
|
+
"contradiction_flag",
|
|
583
|
+
"contradiction_reason"
|
|
584
|
+
],
|
|
205
585
|
"properties": {
|
|
206
586
|
"events": {
|
|
207
587
|
"type": "array",
|
|
208
588
|
"items": {
|
|
209
589
|
"type": "object",
|
|
210
590
|
"additionalProperties": false,
|
|
211
|
-
"required": [
|
|
591
|
+
"required": [
|
|
592
|
+
"kind",
|
|
593
|
+
"attributed_to",
|
|
594
|
+
"fired_at"
|
|
595
|
+
],
|
|
212
596
|
"properties": {
|
|
213
|
-
"kind": {
|
|
214
|
-
|
|
215
|
-
|
|
597
|
+
"kind": {
|
|
598
|
+
"type": "string",
|
|
599
|
+
"description": "Deployer-named outcome kind (e.g. ticket_resolved, escalated_to_human)."
|
|
600
|
+
},
|
|
601
|
+
"attributed_to": {
|
|
602
|
+
"type": [
|
|
603
|
+
"string",
|
|
604
|
+
"null"
|
|
605
|
+
]
|
|
606
|
+
},
|
|
607
|
+
"fired_at": {
|
|
608
|
+
"$ref": "#/$defs/timestamp"
|
|
609
|
+
}
|
|
216
610
|
}
|
|
217
611
|
}
|
|
218
612
|
},
|
|
219
|
-
"user_flagged_break": {
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
613
|
+
"user_flagged_break": {
|
|
614
|
+
"type": [
|
|
615
|
+
"boolean",
|
|
616
|
+
"null"
|
|
617
|
+
]
|
|
618
|
+
},
|
|
619
|
+
"user_explicit_rating": {
|
|
620
|
+
"type": [
|
|
621
|
+
"number",
|
|
622
|
+
"null"
|
|
623
|
+
]
|
|
624
|
+
},
|
|
625
|
+
"user_thumbs": {
|
|
626
|
+
"type": [
|
|
627
|
+
"string",
|
|
628
|
+
"null"
|
|
629
|
+
]
|
|
630
|
+
},
|
|
631
|
+
"contradiction_flag": {
|
|
632
|
+
"type": [
|
|
633
|
+
"boolean",
|
|
634
|
+
"null"
|
|
635
|
+
]
|
|
636
|
+
},
|
|
637
|
+
"contradiction_reason": {
|
|
638
|
+
"type": [
|
|
639
|
+
"string",
|
|
640
|
+
"null"
|
|
641
|
+
]
|
|
642
|
+
}
|
|
224
643
|
}
|
|
225
644
|
}
|
|
226
645
|
}
|