-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinteraction-node.schema.json
More file actions
417 lines (417 loc) · 14.7 KB
/
Copy pathinteraction-node.schema.json
File metadata and controls
417 lines (417 loc) · 14.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://github.com/yaneczech/SIA/schema/interaction-node.schema.json",
"title": "Semantic Interaction Node",
"description": "Illustrative JSON Schema profile for the declarative metadata contract described by SIA v0.3.1. It is an implementable subset of the broader Semantic Interaction Architecture, aligned with Minimal SIA Profile v1 where possible. JSON Schema is used here as a runtime validation candidate; the paper still treats SHACL, JSON Schema, CBOR/Protobuf, and a custom .vspec-style DSL as open specification choices.",
"type": "object",
"required": [
"node",
"since_version",
"direction",
"target_role",
"inherits_from"
],
"properties": {
"node": {
"type": "string",
"pattern": "^Interaction\\.(Action|Event|State|Task)(\\.[A-Za-z0-9_]+)+$",
"description": "Stable semantic node identifier. In Minimal SIA Profile v1, emitted nodes are limited to Action plus the concrete Event subtypes Alert and Notification."
},
"inherits_from": {
"type": "string",
"pattern": "^Interaction(\\.[A-Za-z0-9_]+)+$",
"description": "Reference to the parent node in the ontology hierarchy. Declaration-time only; not present on runtime instances."
},
"since_version": {
"type": "string",
"pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
},
"deprecated_since": {
"type": "string",
"pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
},
"replaced_by": {
"type": "string",
"pattern": "^Interaction(\\.[A-Za-z0-9_]+)+$"
},
"compatible_with_min_version": {
"type": "string",
"pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
},
"direction": {
"enum": [
"occupant_to_system",
"system_to_occupant",
"runtime_internal",
"composite_flow"
],
"description": "occupant_to_system = Action; system_to_occupant = Alert or Notification; runtime_internal = State; composite_flow = Task."
},
"temporal_type": {
"enum": [
"discrete",
"sustained",
"continuous"
]
},
"recommended_modality": {
"type": "array",
"items": {
"enum": [
"visual",
"auditory",
"haptic",
"multimodal",
"input_only"
]
},
"uniqueItems": true,
"description": "Semantic modality preference, not a renderer name. Concrete renderer selection is handled by capability negotiation."
},
"attention_metrics": {
"type": "object",
"properties": {
"glance_time_estimated_ms": {
"type": "integer",
"minimum": 0
},
"mean_single_glance_ms": {
"type": "integer",
"minimum": 0
},
"task_steps": {
"type": "integer",
"minimum": 0
},
"voice_alt_available": {
"type": "boolean"
},
"cognitive_load": {
"enum": [
"minimal",
"moderate",
"high",
"locked_while_driving"
]
}
},
"additionalProperties": false,
"description": "Declared attention-demand proxies. These are estimates for runtime enforcement and later audit; they do not by themselves prove regulatory compliance."
},
"priority": {
"enum": [
"critical",
"high",
"normal",
"low",
"background"
],
"description": "Qualitative priority band declared on the node, not supplied by runtime instances. Deployment profiles may map these bands to local numeric arbitration values."
},
"interruptibility": {
"enum": [
"non_interruptible",
"interruptible",
"deferable"
]
},
"requires_ack": {
"type": "boolean"
},
"ack_kind": {
"enum": [
"none",
"explicit_input",
"gaze",
"timeout",
"explicit_or_timeout",
"gaze_or_timeout",
"awareness_logged"
],
"description": "Acknowledgement semantics. Deployments should distinguish deterministic input from inferred acknowledgement where certification requires it."
},
"ack_timeout_ms": {
"type": "integer",
"minimum": 0,
"description": "Base declarative timeout. Context Policy may scale the effective runtime value only when the field is included in the context-modifier whitelist."
},
"ack_authority": {
"enum": [
"driver_only",
"any_occupant",
"system"
]
},
"trust_requirements": {
"type": "object",
"properties": {
"signed_origin_required": {
"type": "boolean"
},
"permitted_actor_classes": {
"type": "array",
"items": {
"enum": [
"human_direct",
"agent_local",
"agent_cloud",
"adas",
"vsc",
"service",
"third_party_app"
]
},
"uniqueItems": true,
"description": "Actor classes describe who originates the interaction. Voice is a modality or authentication channel, not a separate actor class. Minimal SIA Profile v1 uses human_direct, adas, service, and third_party_app."
},
"max_age_ms": {
"type": "integer",
"minimum": 0
},
"replay_protection": {
"enum": [
"none",
"recommended",
"required"
]
},
"session_revocation_required": {
"type": "boolean",
"description": "Whether a valid symmetric Tier-2 session ticket must remain explicitly revocable before expiry by an IDS, policy monitor, or runtime supervisor."
}
},
"additionalProperties": false
},
"target_role": {
"enum": [
"driver",
"front_passenger",
"rear_passenger",
"any_occupant",
"system_internal"
]
},
"scope": {
"type": "string"
},
"consistency_class": {
"enum": [
"strong",
"eventual",
"best_effort"
]
},
"accessibility_alt": {
"type": "object",
"additionalProperties": true
},
"regulatory_basis": {
"type": "array",
"items": {
"type": "string"
},
"uniqueItems": true
},
"assessment_basis": {
"type": "array",
"items": {
"type": "string"
},
"uniqueItems": true
},
"pii_class": {
"enum": [
"none",
"personal",
"sensitive",
"special_category"
],
"description": "Aligned with GDPR vocabulary: personal = Art. 4(1); sensitive = de-facto industry tier between personal and special_category; special_category = Art. 9."
},
"temporal_freshness_ms": {
"type": "integer",
"minimum": 0
},
"suppression_class": {
"enum": [
"non_suppressible",
"safety_critical",
"regulated",
"system",
"user",
"third_party"
],
"description": "non_suppressible: no runtime actor may suppress or defer this interaction regardless of context or priority. safety_critical: a subtype where the reason for non-suppression is safety relevance; kept for backward compatibility but non_suppressible is preferred. regulated: suppression would violate a regulatory obligation. system: suppression is at system discretion only. user: occupant may suppress or defer. third_party: third-party apps may suppress within policy."
},
"merges_with": {
"type": "array",
"items": {
"type": "string"
},
"uniqueItems": true
},
"fallback_chain": {
"type": "array",
"items": {
"enum": [
"cluster",
"ivi",
"voice"
]
},
"description": "Renderer names allowed by Minimal SIA Profile v1. HUD, haptic, AR, and steering-wheel surfaces are future profile extensions."
},
"degradation_policy": {
"enum": [
"fail_to_cluster_plus_audio",
"escalate",
"downgrade",
"suppress",
"no_degradation"
],
"description": "fail_to_cluster_plus_audio: if the primary renderer is unavailable, fall back to instrument cluster with a concurrent audio prompt; use for safety-critical alerts where cluster+audio is the minimum acceptable delivery. escalate: attempt a higher-priority or less suppressible renderer. downgrade: fall back to a lower-fidelity modality. suppress: silently discard if the preferred renderer is unavailable. no_degradation: fail closed rather than degrade."
},
"context_degradation_policy": {
"enum": [
"safe_worst_case",
"fail_closed"
],
"description": "Policy to apply when a core context axis cannot be determined. Unknown context must not relax constraints."
},
"step_count": {
"type": "integer",
"minimum": 1
},
"interruptible_at": {
"type": "array",
"items": {
"type": "string"
}
},
"resumable_across_contexts": {
"type": "boolean"
}
},
"allOf": [
{
"if": {
"properties": {
"node": {
"pattern": "^Interaction\\.Event\\.Alert\\."
}
}
},
"then": {
"required": [
"priority",
"interruptibility",
"requires_ack",
"ack_kind",
"ack_timeout_ms",
"ack_authority",
"trust_requirements",
"attention_metrics",
"temporal_type",
"temporal_freshness_ms",
"suppression_class",
"fallback_chain",
"degradation_policy"
]
}
},
{
"if": {
"properties": {
"node": {
"pattern": "^Interaction\\.Event\\.Notification\\."
}
}
},
"then": {
"required": [
"priority",
"interruptibility",
"attention_metrics",
"temporal_type",
"suppression_class",
"fallback_chain",
"degradation_policy"
]
}
},
{
"if": {
"properties": {
"node": {
"pattern": "^Interaction\\.Action\\."
}
}
},
"then": {
"required": [
"temporal_type",
"recommended_modality",
"attention_metrics"
]
}
}
],
"additionalProperties": false,
"examples": [
{
"node": "Interaction.Event.Alert.Collision.Warning",
"since_version": "1.0.0",
"inherits_from": "Interaction.Event.Alert",
"direction": "system_to_occupant",
"target_role": "driver",
"priority": "critical",
"interruptibility": "non_interruptible",
"requires_ack": true,
"ack_kind": "explicit_or_timeout",
"ack_timeout_ms": 2000,
"ack_authority": "driver_only",
"temporal_type": "discrete",
"attention_metrics": {
"glance_time_estimated_ms": 800,
"mean_single_glance_ms": 300,
"task_steps": 0,
"voice_alt_available": true,
"cognitive_load": "minimal"
},
"trust_requirements": {
"signed_origin_required": true,
"permitted_actor_classes": [
"adas"
],
"max_age_ms": 200,
"replay_protection": "required",
"session_revocation_required": true
},
"temporal_freshness_ms": 500,
"suppression_class": "non_suppressible",
"merges_with": [],
"fallback_chain": [
"cluster",
"voice"
],
"degradation_policy": "fail_to_cluster_plus_audio",
"context_degradation_policy": "safe_worst_case",
"accessibility_alt": {
"low_vision": [
"voice"
],
"hearing_impaired": [
"cluster"
]
},
"regulatory_basis": [
"UNECE_R152",
"ISO_15623"
],
"assessment_basis": [
"NHTSA_FCW_NCAP"
],
"pii_class": "none"
}
]
}