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 
 
 
 
 
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
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
{
  "trajectory_id": "task_0fdb0477_reference",
  "world_id": "task_0fdb0477",
  "task_id": "task_0fdb0477",
  "source": "ground_truth",
  "records": [
    {
      "kind": "tool_exchange",
      "call": {
        "call_id": "call_1",
        "turn_id": "turn_1",
        "command": {
          "target": "session",
          "function": "get_device_tools",
          "parameters": {
            "device_id": "accessibility_1"
          }
        }
      },
      "result": {
        "call_id": "call_1",
        "turn_id": "turn_1",
        "sequence": 1,
        "status": "success",
        "code": "[PASS]",
        "data": {
          "device_id": "accessibility_1",
          "tools": [
            {
              "function": "get_font_scale_level",
              "description": "Return the selected normalized font scale level without changing any accessibility setting.",
              "mutation": false,
              "parameters_schema": {
                "type": "object",
                "properties": {},
                "required": [],
                "additionalProperties": false
              },
              "reads": [
                "font_scale_level"
              ],
              "writes": [],
              "semantics": {
                "kind": "read",
                "property": "font_scale_level",
                "response_key": "font_scale_level",
                "preconditions": {}
              }
            },
            {
              "function": "set_font_scale_level",
              "description": "Select an existing normalized font level. The level must be a key in the read-only font_levels catalog. Its synthetic normalized percentage is mapped to the nearest level supported by the simulated platform and is not treated as a native cross-platform increment. Invalid level IDs leave the selection unchanged.",
              "mutation": true,
              "parameters_schema": {
                "type": "object",
                "properties": {
                  "level": {
                    "type": "string",
                    "enum": [
                      "small",
                      "default",
                      "large",
                      "extra_large"
                    ],
                    "examples": [
                      "default",
                      "large"
                    ]
                  }
                },
                "required": [
                  "level"
                ],
                "additionalProperties": false
              },
              "reads": [
                "font_levels"
              ],
              "writes": [
                "font_scale_level"
              ],
              "semantics": {
                "kind": "set",
                "property": "font_scale_level",
                "parameter": "level",
                "preconditions": {
                  "font_levels": {
                    "contains_key": {
                      "parameter": "level"
                    }
                  }
                }
              }
            },
            {
              "function": "get_font_levels",
              "description": "Return the read-only normalized font-level catalog and its nearest-supported-platform mapping policy.",
              "mutation": false,
              "parameters_schema": {
                "type": "object",
                "properties": {},
                "required": [],
                "additionalProperties": false
              },
              "reads": [
                "font_levels"
              ],
              "writes": [],
              "semantics": {
                "kind": "read",
                "property": "font_levels",
                "response_key": "font_levels",
                "preconditions": {}
              }
            },
            {
              "function": "get_captions_enabled",
              "description": "Return whether the system caption preference is enabled. This reports the preference, not whether particular content supplies captions.",
              "mutation": false,
              "parameters_schema": {
                "type": "object",
                "properties": {},
                "required": [],
                "additionalProperties": false
              },
              "reads": [
                "captions_enabled"
              ],
              "writes": [],
              "semantics": {
                "kind": "read",
                "property": "captions_enabled",
                "response_key": "captions_enabled",
                "preconditions": {}
              }
            },
            {
              "function": "set_captions_enabled",
              "description": "Enable or disable the system caption preference. This does not create captions for content that does not provide them.",
              "mutation": true,
              "parameters_schema": {
                "type": "object",
                "properties": {
                  "value": {
                    "type": "boolean",
                    "examples": [
                      true,
                      false
                    ]
                  }
                },
                "required": [
                  "value"
                ],
                "additionalProperties": false
              },
              "reads": [],
              "writes": [
                "captions_enabled"
              ],
              "semantics": {
                "kind": "set",
                "property": "captions_enabled",
                "parameter": "value",
                "preconditions": {}
              }
            },
            {
              "function": "get_reduced_motion",
              "description": "Return whether reduced motion is preferred without changing the preference.",
              "mutation": false,
              "parameters_schema": {
                "type": "object",
                "properties": {},
                "required": [],
                "additionalProperties": false
              },
              "reads": [
                "reduced_motion"
              ],
              "writes": [],
              "semantics": {
                "kind": "read",
                "property": "reduced_motion",
                "response_key": "reduced_motion",
                "preconditions": {}
              }
            },
            {
              "function": "set_reduced_motion",
              "description": "Enable or disable the reduced-motion preference. The setting expresses a preference and does not guarantee that every application suppresses all animation.",
              "mutation": true,
              "parameters_schema": {
                "type": "object",
                "properties": {
                  "value": {
                    "type": "boolean",
                    "examples": [
                      true,
                      false
                    ]
                  }
                },
                "required": [
                  "value"
                ],
                "additionalProperties": false
              },
              "reads": [],
              "writes": [
                "reduced_motion"
              ],
              "semantics": {
                "kind": "set",
                "property": "reduced_motion",
                "parameter": "value",
                "preconditions": {}
              }
            },
            {
              "function": "get_installed_services",
              "description": "Return all installed synthetic assistive services and their read-only capabilities. Reading this catalog does not grant an ordinary application permission to enable a service.",
              "mutation": false,
              "parameters_schema": {
                "type": "object",
                "properties": {},
                "required": [],
                "additionalProperties": false
              },
              "reads": [
                "installed_services"
              ],
              "writes": [],
              "semantics": {
                "kind": "read",
                "property": "installed_services",
                "response_key": "installed_services",
                "preconditions": {}
              }
            },
            {
              "function": "get_enabled_services",
              "description": "Return all currently enabled assistive services. Each returned dictionary value is exactly {\"enabled\": true}; service names and capabilities are available separately from installed_services. This is a system-settings simulation query and does not imply that an ordinary application can change the returned state.",
              "mutation": false,
              "parameters_schema": {
                "type": "object",
                "properties": {},
                "required": [],
                "additionalProperties": false
              },
              "reads": [
                "enabled_services"
              ],
              "writes": [],
              "semantics": {
                "kind": "read",
                "property": "enabled_services",
                "response_key": "enabled_services",
                "preconditions": {}
              }
            },
            {
              "function": "get_screen_reading_available",
              "description": "Return whether an enabled assistive service currently declares screen-reading capability. A true result does not guarantee that every application or item of content is readable.",
              "mutation": false,
              "parameters_schema": {
                "type": "object",
                "properties": {},
                "required": [],
                "additionalProperties": false
              },
              "reads": [
                "screen_reading_available"
              ],
              "writes": [],
              "semantics": {
                "kind": "read",
                "property": "screen_reading_available",
                "response_key": "screen_reading_available",
                "preconditions": {}
              }
            },
            {
              "function": "request_service_state",
              "description": "Request activation or deactivation of an installed assistive service through a resolved simulated authorization decision. The service ID must be a key in installed_services. If authorization_granted is false, enabled_services and screen_reading_available remain unchanged. If authorization is granted and activate is true, the operation inserts or retains enabled_services[service_id] with the exact value {\"enabled\": true}; no installed-service fields are copied into that record. If authorization is granted and activate is false, the operation removes service_id from enabled_services. Activation and deactivation are idempotent when the service is already in the requested state. After an authorized request, screen_reading_available is recomputed as true exactly when at least one remaining enabled-service key identifies an installed service whose capabilities list contains screen_reading; otherwise it is false. Invalid input or an unknown service ID causes no mutation. This unified system-settings simulation does not represent a generally available ordinary-application API.",
              "mutation": true,
              "parameters_schema": {
                "type": "object",
                "properties": {
                  "service_id": {
                    "type": "string",
                    "description": "Stable ID of an installed assistive service.",
                    "pattern": "^[a-z][a-z0-9_]*$",
                    "maxLength": 128,
                    "examples": [
                      "screen_reader",
                      "switch_access"
                    ]
                  },
                  "activate": {
                    "type": "boolean",
                    "description": "True to request activation or false to request deactivation.",
                    "examples": [
                      true,
                      false
                    ]
                  },
                  "authorization_granted": {
                    "type": "boolean",
                    "description": "Resolved simulated authorization result. False represents denial and guarantees that service activation state remains unchanged.",
                    "examples": [
                      true,
                      false
                    ]
                  }
                },
                "required": [
                  "service_id",
                  "activate",
                  "authorization_granted"
                ],
                "additionalProperties": false
              },
              "reads": [
                "installed_services",
                "enabled_services",
                "screen_reading_available"
              ],
              "writes": [
                "enabled_services",
                "screen_reading_available"
              ],
              "semantics": {
                "kind": "custom",
                "preconditions": {
                  "installed_services": {
                    "contains_key": {
                      "parameter": "service_id"
                    }
                  }
                },
                "reason": "The operation conditionally performs no mutation when simulated authorization is denied; when approved, it either inserts the exact fixed record {\"enabled\": true} under a keyed enabled-service entry or removes that entry, then recomputes a derived capability across all enabled service IDs."
              }
            }
          ]
        },
        "mutation_committed": false,
        "audit_sequence": 1
      }
    },
    {
      "kind": "tool_exchange",
      "call": {
        "call_id": "call_2",
        "turn_id": "turn_1",
        "command": {
          "target": "session",
          "function": "get_device_tools",
          "parameters": {
            "device_id": "privacy_1"
          }
        }
      },
      "result": {
        "call_id": "call_2",
        "turn_id": "turn_1",
        "sequence": 2,
        "status": "success",
        "code": "[PASS]",
        "data": {
          "device_id": "privacy_1",
          "tools": [
            {
              "function": "get_authorization",
              "description": "Return the stored authorization record for an existing application and one supported permission type. This reports authorization only; it does not imply that the resource and master-switch conditions currently allow effective access.",
              "mutation": false,
              "parameters_schema": {
                "type": "object",
                "properties": {
                  "app_id": {
                    "type": "string",
                    "description": "An existing stable application ID.",
                    "pattern": "^[A-Za-z0-9_-]+$",
                    "maxLength": 128,
                    "examples": [
                      "camera_app",
                      "maps"
                    ]
                  },
                  "permission": {
                    "type": "string",
                    "description": "The permission type to query.",
                    "enum": [
                      "camera",
                      "microphone",
                      "location",
                      "notifications"
                    ],
                    "examples": [
                      "camera",
                      "location"
                    ]
                  }
                },
                "required": [
                  "app_id",
                  "permission"
                ],
                "additionalProperties": false
              },
              "reads": [
                "app_permissions"
              ],
              "writes": [],
              "semantics": {
                "kind": "custom",
                "reason": "The authorization record is nested first by application ID and then by permission type, which cannot be selected by the collection_read vocabulary.",
                "preconditions": {
                  "app_permissions": {
                    "contains_key": {
                      "parameter": "app_id"
                    }
                  }
                }
              }
            },
            {
              "function": "get_effective_access",
              "description": "Return whether an existing application currently has effective access to the selected permission. Access is effective only when stored authorization is granted, the corresponding system resource is available, and the relevant master switch is enabled. The response also includes the stored location scope and accuracy when location is selected. This query changes no state.",
              "mutation": false,
              "parameters_schema": {
                "type": "object",
                "properties": {
                  "app_id": {
                    "type": "string",
                    "description": "An existing stable application ID.",
                    "pattern": "^[A-Za-z0-9_-]+$",
                    "maxLength": 128,
                    "examples": [
                      "camera_app",
                      "maps"
                    ]
                  },
                  "permission": {
                    "type": "string",
                    "description": "The permission type whose effective access is queried.",
                    "enum": [
                      "camera",
                      "microphone",
                      "location",
                      "notifications"
                    ],
                    "examples": [
                      "microphone",
                      "notifications"
                    ]
                  }
                },
                "required": [
                  "app_id",
                  "permission"
                ],
                "additionalProperties": false
              },
              "reads": [
                "app_permissions",
                "platform_conditions"
              ],
              "writes": [],
              "semantics": {
                "kind": "custom",
                "reason": "Effective access must select a nested authorization record and combine it with the resource and master-switch conditions for the requested permission.",
                "preconditions": {
                  "app_permissions": {
                    "contains_key": {
                      "parameter": "app_id"
                    }
                  }
                }
              }
            },
            {
              "function": "get_permission_requests",
              "description": "Return all permission-request records keyed by request ID. Pending, granted, and denied records remain distinct, and reading them changes no authorization.",
              "mutation": false,
              "parameters_schema": {
                "type": "object",
                "properties": {},
                "required": [],
                "additionalProperties": false
              },
              "reads": [
                "permission_requests"
              ],
              "writes": [],
              "semantics": {
                "kind": "read",
                "property": "permission_requests",
                "response_key": "permission_requests",
                "preconditions": {}
              }
            },
            {
              "function": "get_permission_request",
              "description": "Return one existing permission-request record by stable request ID without changing its status or any authorization.",
              "mutation": false,
              "parameters_schema": {
                "type": "object",
                "properties": {
                  "request_id": {
                    "type": "string",
                    "description": "An existing permission-request ID.",
                    "pattern": "^[A-Za-z0-9_-]+$",
                    "maxLength": 128
                  }
                },
                "required": [
                  "request_id"
                ],
                "additionalProperties": false
              },
              "reads": [
                "permission_requests"
              ],
              "writes": [],
              "semantics": {
                "kind": "collection_read",
                "property": "permission_requests",
                "id_parameter": "request_id",
                "response_key": "permission_request",
                "preconditions": {
                  "permission_requests": {
                    "contains_key": {
                      "parameter": "request_id"
                    }
                  }
                }
              }
            },
            {
              "function": "get_platform_config",
              "description": "Return the fixed platform permission configuration, including supported permission types and valid location scope and accuracy combinations.",
              "mutation": false,
              "parameters_schema": {
                "type": "object",
                "properties": {},
                "required": [],
                "additionalProperties": false
              },
              "reads": [
                "platform_config"
              ],
              "writes": [],
              "semantics": {
                "kind": "read",
                "property": "platform_config",
                "response_key": "platform_config",
                "preconditions": {}
              }
            },
            {
              "function": "get_platform_conditions",
              "description": "Return current resource-availability and master-switch feedback for camera, microphone, location, and notifications without changing authorization or feedback.",
              "mutation": false,
              "parameters_schema": {
                "type": "object",
                "properties": {},
                "required": [],
                "additionalProperties": false
              },
              "reads": [
                "platform_conditions"
              ],
              "writes": [],
              "semantics": {
                "kind": "read",
                "property": "platform_conditions",
                "response_key": "platform_conditions",
                "preconditions": {}
              }
            },
            {
              "function": "get_camera_in_use",
              "description": "Return current system privacy feedback indicating whether the camera is in use.",
              "mutation": false,
              "parameters_schema": {
                "type": "object",
                "properties": {},
                "required": [],
                "additionalProperties": false
              },
              "reads": [
                "camera_in_use"
              ],
              "writes": [],
              "semantics": {
                "kind": "read",
                "property": "camera_in_use",
                "response_key": "camera_in_use",
                "preconditions": {}
              }
            },
            {
              "function": "get_microphone_in_use",
              "description": "Return current system privacy feedback indicating whether the microphone is in use.",
              "mutation": false,
              "parameters_schema": {
                "type": "object",
                "properties": {},
                "required": [],
                "additionalProperties": false
              },
              "reads": [
                "microphone_in_use"
              ],
              "writes": [],
              "semantics": {
                "kind": "read",
                "property": "microphone_in_use",
                "response_key": "microphone_in_use",
                "preconditions": {}
              }
            },
            {
              "function": "request_permission",
              "description": "Create a new pending permission request for an existing application and return its generated request ID. For location, requested_scope must be while_in_use or background and requested_accuracy must be approximate or precise, and the pair must appear in the fixed valid-location combinations. For camera, microphone, or notifications, both values must be not_applicable. Invalid combinations leave all requests and authorizations unchanged. Creating a request does not grant authorization.",
              "mutation": true,
              "parameters_schema": {
                "type": "object",
                "properties": {
                  "app_id": {
                    "type": "string",
                    "description": "An existing stable application ID requesting permission.",
                    "pattern": "^[A-Za-z0-9_-]+$",
                    "maxLength": 128,
                    "examples": [
                      "camera_app",
                      "maps"
                    ]
                  },
                  "permission": {
                    "type": "string",
                    "description": "The requested permission type.",
                    "enum": [
                      "camera",
                      "microphone",
                      "location",
                      "notifications"
                    ]
                  },
                  "requested_scope": {
                    "type": "string",
                    "description": "Requested location scope, or not_applicable for a non-location permission.",
                    "enum": [
                      "not_applicable",
                      "while_in_use",
                      "background"
                    ]
                  },
                  "requested_accuracy": {
                    "type": "string",
                    "description": "Requested location accuracy, or not_applicable for a non-location permission.",
                    "enum": [
                      "not_applicable",
                      "approximate",
                      "precise"
                    ]
                  }
                },
                "required": [
                  "app_id",
                  "permission",
                  "requested_scope",
                  "requested_accuracy"
                ],
                "additionalProperties": false
              },
              "reads": [
                "app_permissions",
                "permission_requests",
                "platform_config"
              ],
              "writes": [
                "permission_requests"
              ],
              "semantics": {
                "kind": "collection_add",
                "property": "permission_requests",
                "response_key": "request_id",
                "fields": {
                  "app_id": {
                    "parameter": "app_id"
                  },
                  "permission": {
                    "parameter": "permission"
                  },
                  "requested_scope": {
                    "parameter": "requested_scope"
                  },
                  "requested_accuracy": {
                    "parameter": "requested_accuracy"
                  },
                  "status": {
                    "value": "pending"
                  }
                },
                "preconditions": {
                  "app_permissions": {
                    "contains_key": {
                      "parameter": "app_id"
                    }
                  }
                }
              }
            },
            {
              "function": "resolve_permission_request",
              "description": "Resolve one pending permission request as granted or denied. Granting updates only the corresponding application permission, using the request's validated location scope and accuracy for location. Denying stores denied authorization with not_applicable scope and accuracy. The request record is retained with its final status, and all unrelated applications, permissions, and requests are preserved. A missing or already resolved request leaves state unchanged.",
              "mutation": true,
              "parameters_schema": {
                "type": "object",
                "properties": {
                  "request_id": {
                    "type": "string",
                    "description": "The ID of an existing pending permission request.",
                    "pattern": "^[A-Za-z0-9_-]+$",
                    "maxLength": 128
                  },
                  "decision": {
                    "type": "string",
                    "description": "The simulated user decision for the pending request.",
                    "enum": [
                      "granted",
                      "denied"
                    ]
                  }
                },
                "required": [
                  "request_id",
                  "decision"
                ],
                "additionalProperties": false
              },
              "reads": [
                "app_permissions",
                "permission_requests",
                "platform_config"
              ],
              "writes": [
                "app_permissions",
                "permission_requests"
              ],
              "semantics": {
                "kind": "custom",
                "reason": "Resolving a request atomically updates one request record and its corresponding nested application-permission record, which spans two collections and cannot be expressed by one collection semantic.",
                "preconditions": {
                  "permission_requests": {
                    "contains_key": {
                      "parameter": "request_id"
                    }
                  }
                }
              }
            },
            {
              "function": "set_authorization",
              "description": "Set one modifiable application permission through the simulated authorized system-settings interface. For granted location authorization, scope must be while_in_use or background and accuracy must be approximate or precise, with the pair present in the fixed valid-location combinations. For denied location authorization and for every non-location permission, scope and accuracy must both be not_applicable. Invalid values, unknown applications, and non-modifiable records leave all state unchanged. This operation does not create or resolve a permission request and preserves every unrelated record.",
              "mutation": true,
              "parameters_schema": {
                "type": "object",
                "properties": {
                  "app_id": {
                    "type": "string",
                    "description": "An existing stable application ID.",
                    "pattern": "^[A-Za-z0-9_-]+$",
                    "maxLength": 128,
                    "examples": [
                      "camera_app",
                      "maps"
                    ]
                  },
                  "permission": {
                    "type": "string",
                    "description": "The permission type to change.",
                    "enum": [
                      "camera",
                      "microphone",
                      "location",
                      "notifications"
                    ]
                  },
                  "authorization": {
                    "type": "string",
                    "description": "The desired stored authorization.",
                    "enum": [
                      "granted",
                      "denied"
                    ]
                  },
                  "scope": {
                    "type": "string",
                    "description": "Location scope for granted location access, otherwise not_applicable.",
                    "enum": [
                      "not_applicable",
                      "while_in_use",
                      "background"
                    ]
                  },
                  "accuracy": {
                    "type": "string",
                    "description": "Location accuracy for granted location access, otherwise not_applicable.",
                    "enum": [
                      "not_applicable",
                      "approximate",
                      "precise"
                    ]
                  }
                },
                "required": [
                  "app_id",
                  "permission",
                  "authorization",
                  "scope",
                  "accuracy"
                ],
                "additionalProperties": false
              },
              "reads": [
                "app_permissions",
                "platform_config"
              ],
              "writes": [
                "app_permissions"
              ],
              "semantics": {
                "kind": "custom",
                "reason": "The operation must atomically validate conditional location combinations and modify one permission nested within an application record while preserving all sibling records.",
                "preconditions": {
                  "app_permissions": {
                    "contains_key": {
                      "parameter": "app_id"
                    }
                  }
                }
              }
            }
          ]
        },
        "mutation_committed": false,
        "audit_sequence": 2
      }
    },
    {
      "kind": "turn_boundary",
      "boundary": {
        "turn_id": "turn_1",
        "apply_after_turn": true
      }
    },
    {
      "kind": "tool_exchange",
      "call": {
        "call_id": "call_3",
        "turn_id": "turn_2",
        "command": {
          "target": "accessibility_1",
          "function": "set_font_scale_level",
          "parameters": {
            "level": "small"
          }
        }
      },
      "result": {
        "call_id": "call_3",
        "turn_id": "turn_2",
        "sequence": 3,
        "status": "success",
        "code": "[PASS]",
        "data": {},
        "mutation_committed": true,
        "audit_sequence": 4
      }
    },
    {
      "kind": "tool_exchange",
      "call": {
        "call_id": "call_4",
        "turn_id": "turn_2",
        "command": {
          "target": "privacy_1",
          "function": "get_microphone_in_use",
          "parameters": {}
        }
      },
      "result": {
        "call_id": "call_4",
        "turn_id": "turn_2",
        "sequence": 4,
        "status": "success",
        "code": "[PASS]",
        "data": {
          "microphone_in_use": false
        },
        "mutation_committed": false,
        "audit_sequence": 5
      }
    },
    {
      "kind": "tool_exchange",
      "call": {
        "call_id": "call_5",
        "turn_id": "turn_2",
        "command": {
          "target": "session",
          "function": "submit_answer",
          "parameters": {
            "value": false
          }
        }
      },
      "result": {
        "call_id": "call_5",
        "turn_id": "turn_2",
        "sequence": 5,
        "status": "success",
        "code": "[PASS]",
        "data": {
          "accepted": true,
          "index": 0
        },
        "mutation_committed": false,
        "audit_sequence": 6
      }
    },
    {
      "kind": "tool_exchange",
      "call": {
        "call_id": "call_6",
        "turn_id": "turn_2",
        "command": {
          "target": "session",
          "function": "submit_report",
          "parameters": {
            "status": "infeasible",
            "reason_code": "DEVICE_PROPERTY_NOT_SUPPORTED",
            "description": "Setting Flashlight 1 does not support the requested brightness_level operation.",
            "affected_properties": [
              "brightness_level"
            ]
          }
        }
      },
      "result": {
        "call_id": "call_6",
        "turn_id": "turn_2",
        "sequence": 6,
        "status": "success",
        "code": "[PASS]",
        "data": {
          "accepted": true,
          "index": 0
        },
        "mutation_committed": false,
        "audit_sequence": 7
      }
    },
    {
      "kind": "tool_exchange",
      "call": {
        "call_id": "call_7",
        "turn_id": "turn_2",
        "command": {
          "target": "session",
          "function": "finish",
          "parameters": {}
        }
      },
      "result": {
        "call_id": "call_7",
        "turn_id": "turn_2",
        "sequence": 7,
        "status": "success",
        "code": "[PASS]",
        "data": {
          "finished": true
        },
        "mutation_committed": false,
        "audit_sequence": 8
      }
    },
    {
      "kind": "termination",
      "termination": {
        "reason": "session_finish",
        "turn_id": "turn_2",
        "turn_index": 2,
        "elapsed_minutes": 0,
        "limits": {
          "max_turns": 2,
          "max_elapsed_minutes": null
        }
      }
    }
  ]
}