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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
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
{
 "class": "sample_intro",
 "adapter": "chemlab.compile.classes.sample_intro:SampleIntroAdapter",
 "about": "Sample introduction front ends (headspace, purge and trap, laser ablation, pyrolysis, thermal desorption): method KEY=VALUE, load / unload vials, set-temp per zone, start (job), inject (manual pyrolyzer step), stop, result, position (laser stage), status. Ranges and units come from each member's contract.",
 "membership": {
  "decided": "2026-10-22",
  "primary": [
   "agilent_hs8697",
   "teledyne_atomxxyz",
   "teledyne_analyteexcite",
   "frontier_egapy",
   "markes_unityxr"
  ],
  "secondary": {},
  "notes": "power, open / close of lids, guards, drawers and shields come from the shared layer on every member."
 },
 "members": {
  "agilent_hs8697": {
   "role": "primary",
   "verbs": {
    "method": {
     "calls": [
      {
       "cap": "method.set_equilibration_time",
       "keys": {
        "equilibration": "duration_s"
       },
       "passthrough": true
      },
      {
       "cap": "hs.method.configure",
       "object": "settings",
       "passthrough": true,
       "keys": {
        "gc-cycle": "gc_cycle_s",
        "shake": "shake",
        "vial-size": "vial_size_m3",
        "fill-pressure": "fill_pressure_Pa"
       }
      }
     ]
    },
    "load": {
     "cap": "sample.load",
     "id_arg": "sample_id",
     "slot_arg": "slot_id",
     "slot_format": "tray_{:02d}",
     "positions": 48,
     "occupancy": "tray.occupancy",
     "lid": {
      "cap": "lid.set_angle",
      "arg": "angle_rad",
      "open": 1.5707963267948966,
      "close": 0.0,
      "slot": "lid.angle_rad",
      "min_open": 1.0471975511965976
     }
    },
    "unload": {
     "cap": "sample.unload",
     "slot_arg": "slot_id",
     "slot_format": "tray_{:02d}",
     "positions": 48,
     "occupancy": "tray.occupancy",
     "lid": {
      "cap": "lid.set_angle",
      "arg": "angle_rad",
      "open": 1.5707963267948966,
      "close": 0.0,
      "slot": "lid.angle_rad",
      "min_open": 1.0471975511965976
     }
    },
    "set-temp": {
     "cap": "thermal.set_temperature",
     "arg": "temperature_K"
    },
    "start": {
     "cap": "sequence.start",
     "vials_arg": "vials",
     "injections_arg": "injections_per_vial",
     "positions": 48,
     "occupancy": "tray.occupancy",
     "job": {
      "slot": "hs.sequence",
      "null_done": true,
      "report": {
       "injections": "measurement.count"
      },
      "max_s": 86400,
      "poll_s": 5.0
     }
    },
    "stop": {
     "cap": "sequence.stop",
     "args": {
      "scope": "sequence"
     }
    },
    "result": {
     "reads": [
      "measurement.count",
      "injection.log",
      "measurement.chromatogram"
     ],
     "show": [
      "measurement.count",
      "injection.log",
      "measurement.chromatogram"
     ]
    }
   },
   "targets": {
    "zone": {
     "arg": "zone",
     "values": {
      "oven": "oven",
      "loop": "loop_valve",
      "transfer": "transfer_line"
     },
     "required": true
    }
   },
   "slots": {
    "power": "power.enabled",
    "ambient": "ambient.temperature_k"
   },
   "params": {
    "above_ambient_k": 5.0,
    "busy": {
     "slot": "hs.sequence",
     "not_null": true
    }
   },
   "path_exceptions": [
    "measurement.count",
    "injection.log",
    "measurement.chromatogram"
   ],
   "show": [
    [
     "power",
     "power.enabled"
    ],
    [
     "status",
     "hs.status#text"
    ],
    [
     "oven set",
     "thermal.oven.setpoint_k",
     "temperature"
    ],
    [
     "loop set",
     "thermal.loop_valve.setpoint_k",
     "temperature"
    ],
    [
     "transfer line set",
     "thermal.transfer_line.setpoint_k",
     "temperature"
    ],
    [
     "equilibration",
     "method.equilibration_time_s",
     "duration"
    ],
    [
     "tray",
     "tray.occupancy"
    ],
    [
     "sequence",
     "hs.sequence"
    ],
    [
     "injections",
     "measurement.count"
    ],
    [
     "lid closed",
     "lid.closed"
    ]
   ],
   "requires": {
    "load": [
     {
      "slot": "hs.sequence",
      "value": null,
      "code": "BUSY",
      "label": "no sequence running",
      "message": "{inst} is running a sequence; the tray is in use.",
      "fix": "wait for it (`chemlab run {inst} wait`) or stop it (`chemlab run {inst} stop`)."
     }
    ],
    "unload": [
     {
      "slot": "hs.sequence",
      "value": null,
      "code": "BUSY",
      "label": "no sequence running",
      "message": "{inst} is running a sequence; the tray is in use.",
      "fix": "wait for it (`chemlab run {inst} wait`) or stop it (`chemlab run {inst} stop`)."
     }
    ],
    "set-temp": [
     {
      "slot": "power.enabled",
      "value": true,
      "code": "POWER_OFF",
      "label": "power on",
      "message": "{inst} is switched off.",
      "fix": "switch it on: `chemlab run {inst} power on`."
     },
     {
      "slot": "ambient.temperature_k",
      "set": true,
      "code": "NO_AMBIENT",
      "label": "room temperature known",
      "message": "{inst} does not know the room temperature yet, so it takes no zone set points (the lab sets it up).",
      "fix": "ask the lab operator to set the instrument up; nothing to do from chemlab."
     }
    ],
    "start": [
     {
      "slot": "power.enabled",
      "value": true,
      "code": "POWER_OFF",
      "label": "power on",
      "message": "{inst} is switched off.",
      "fix": "switch it on: `chemlab run {inst} power on`."
     },
     {
      "slot": "method.equilibration_time_s",
      "set": true,
      "code": "NO_METHOD",
      "label": "equilibration time set",
      "message": "{inst} has no equilibration time in its method, so a sequence cannot start.",
      "fix": "set it: `chemlab run {inst} method equilibration=10min`."
     },
     {
      "slot": "gc.connected",
      "truthy": true,
      "code": "GC_NOT_CONNECTED",
      "label": "GC connected",
      "message": "{inst} is not connected to a GC, so it cannot inject.",
      "fix": "ask the lab operator to connect the GC."
     },
     {
      "slot": "lid.closed",
      "truthy": true,
      "code": "LID_OPEN",
      "label": "lid closed",
      "message": "the lid of {inst} is open.",
      "fix": "close it: `chemlab run {inst} close lid`."
     }
    ],
    "stop": [
     {
      "slot": "hs.sequence",
      "set": true,
      "code": "NOT_RUNNING",
      "label": "a sequence running",
      "message": "{inst} has no sequence running.",
      "fix": "nothing to stop; see `chemlab run {inst} status`."
     }
    ]
   },
   "codes": {
    "sample.load:PRECONDITION_FAILED": {
     "code": "NOT_REGISTERED",
     "message": "{inst} did not take that vial: the vial id is not one the lab prepared, or it is already in the tray.",
     "fix": "use a vial id the lab gave you; see the tray with `chemlab run {inst} status`."
    },
    "thermal.set_temperature:PRECONDITION_FAILED": {
     "code": "TOO_LOW",
     "message": "{inst} refused the set point: it must be at least 5 K above the room temperature and the instrument must be on.",
     "fix": "give a higher set point; check `chemlab run {inst} status`."
    },
    "sequence.start:PRECONDITION_FAILED": {
     "code": "NOT_READY",
     "message": "{inst} cannot start a sequence: the method needs an equilibration time and the instrument must be idle.",
     "fix": "set `chemlab run {inst} method equilibration=10min`; see `chemlab run {inst} status`."
    },
    "sequence.start:BUSY": {
     "code": "BUSY",
     "message": "{inst} is busy (a sequence, a test, a calibration or its start-up).",
     "fix": "wait for it: `chemlab run {inst} status`."
    }
   },
   "unsupported": {
    "inject": "the 8697 injects only within a sequence (its direct `measure` path is a second native path the class does not use)",
    "position": "no sample stage (vials move on the tray)",
    "rinse": "no rinse step (the sample loop is purged by the method's purge settings)"
   },
   "alternatives": {
    "inject": "run a one-vial sequence: `chemlab run INST start --vials N`."
   },
   "notes": {
    "start": [
     "the sequence waits until the oven is at temperature and the instrument is ready; the job ends when every vial is back in the tray",
     "the GC runs belong to the GC; the lab connects it"
    ],
    "set-temp": [
     "zones: oven (vials), loop (sample loop and valve), transfer (transfer line); set points at least 5 K above the room temperature"
    ],
    "method": [
     "equilibration goes to the method's equilibration time; the other keys go to the headspace method (only what you give changes)"
    ]
   },
   "manual": "Agilent 8697 headspace operation manual G4511-90004 (method, tray, sequences, Park; see manifest key sections); 8697 brochure p.5-6 (method parameters)",
   "examples": {
    "method": "chemlab run INST method equilibration=10min gc-cycle=5min shake=3",
    "start": "chemlab run INST start --vials 1,2",
    "load": "chemlab run INST load v1 --vial 1",
    "set-temp": "chemlab run INST set-temp 70C --zone oven",
    "stop": "chemlab run INST stop"
   }
  },
  "teledyne_atomxxyz": {
   "role": "primary",
   "verbs": {
    "method": {
     "calls": [
      {
       "cap": "method.configure",
       "passthrough": true,
       "keep": {
        "last": true,
        "example": true
       },
       "keys": {
        "matrix": "matrix",
        "sample-volume": "sample_volume_m3",
        "dilution": "dilution",
        "purge-temp": "purge_k",
        "purge-time": "purge_s",
        "purge-flow": "purge_flow_m3_s",
        "dry-purge-time": "dry_purge_s",
        "desorb-temp": "desorb_k",
        "desorb-time": "desorb_s",
        "bake-temp": "bake_k",
        "bake-time": "bake_s"
       }
      }
     ]
    },
    "start": {
     "cap": "acquisition.start",
     "vial_arg": "vial_index",
     "vial_base": 0,
     "positions": 84,
     "job": {
      "slot": "acquisition.phase",
      "done": [
       "succeeded"
      ],
      "failed": [
       "failed",
       "cancelled"
      ],
      "report": {
       "stage": "acquisition.stage"
      },
      "max_s": 7200
     }
    },
    "stop": {
     "cap": "acquisition.stop"
    },
    "result": {
     "cap": "process.measure",
     "show": [
      "phase",
      "stage",
      "complete",
      "elapsed_s",
      "gc_start",
      "points",
      "quality",
      "evidence",
      "warnings"
     ]
    },
    "rinse": {
     "cap": "system.rinse",
     "arg": "volume_m3"
    }
   },
   "slots": {
    "power": "power.enabled"
   },
   "params": {
    "busy": {
     "slot": "acquisition.phase",
     "values": [
      "running"
     ]
    }
   },
   "path": "acquisition",
   "path_exceptions": [
    "process.measure"
   ],
   "show": [
    [
     "power",
     "power.enabled"
    ],
    [
     "method set",
     "method.configured"
    ],
    [
     "vials",
     "sample.count"
    ],
    [
     "phase",
     "acquisition.phase"
    ],
    [
     "stage",
     "acquisition.stage"
    ],
    [
     "elapsed",
     "acquisition.elapsed_s",
     "duration"
    ],
    [
     "trap",
     "trap.temperature_k",
     "temperature"
    ],
    [
     "guard",
     "guard.angle_rad",
     "angle"
    ],
    [
     "trap door",
     "trap_door.angle_rad",
     "angle"
    ]
   ],
   "requires": {
    "method": [
     {
      "slot": "acquisition.phase",
      "not": [
       "running"
      ],
      "code": "BUSY",
      "label": "no run in progress",
      "message": "{inst} is running; the method cannot change now.",
      "fix": "wait for the run (`chemlab run {inst} wait`) or stop it."
     }
    ],
    "start": [
     {
      "slot": "power.enabled",
      "value": true,
      "code": "POWER_OFF",
      "label": "power on",
      "message": "{inst} is switched off.",
      "fix": "switch it on: `chemlab run {inst} power on`."
     },
     {
      "slot": "method.configured",
      "value": true,
      "code": "NO_METHOD",
      "label": "method set",
      "message": "{inst} has no method yet.",
      "fix": "set one: `chemlab run {inst} method matrix=water purge-time=11min` (see `chemlab help {inst} method`)."
     },
     {
      "slot": "guard.angle_rad",
      "max": 0.0,
      "code": "COVER_OPEN",
      "label": "guard closed",
      "message": "the guard of {inst} is open.",
      "fix": "close it: `chemlab run {inst} close guard`."
     },
     {
      "slot": "trap_door.angle_rad",
      "max": 0.0,
      "code": "COVER_OPEN",
      "label": "trap door closed",
      "message": "the trap door of {inst} is open.",
      "fix": "close it: `chemlab run {inst} close trap_door`."
     },
     {
      "slot": "sample.count",
      "min": 1,
      "code": "NO_SAMPLE",
      "label": "a vial on the tray",
      "message": "there is no sample vial on the tray of {inst}.",
      "fix": "ask the lab operator to place the vials."
     }
    ],
    "stop": [
     {
      "slot": "acquisition.phase",
      "value": "running",
      "code": "NOT_RUNNING",
      "label": "a run in progress",
      "message": "{inst} has no run in progress.",
      "fix": "nothing to stop; see `chemlab run {inst} status`."
     }
    ],
    "rinse": [
     {
      "slot": "power.enabled",
      "value": true,
      "code": "POWER_OFF",
      "label": "power on",
      "message": "{inst} is switched off.",
      "fix": "switch it on: `chemlab run {inst} power on`."
     },
     {
      "slot": "acquisition.phase",
      "not": [
       "running"
      ],
      "code": "BUSY",
      "label": "no run in progress",
      "message": "{inst} is running; it rinses after the run by itself.",
      "fix": "wait for the run (`chemlab run {inst} wait`) or stop it."
     }
    ]
   },
   "codes": {
    "acquisition.start:EMPTY_POSITION": {
     "code": "EMPTY_POSITION",
     "message": "there is no vial at that tray position of {inst}.",
     "fix": "give the position the lab put the vial at (`--vial N`)."
    },
    "acquisition.start:METHOD_MATRIX": {
     "code": "WRONG_MATRIX",
     "message": "the vial's matrix does not match the method's matrix on {inst}.",
     "fix": "set `chemlab run {inst} method matrix=...` to the sample's matrix."
    },
    "acquisition.start:HOT_TRAP": {
     "code": "HOT",
     "message": "the trap of {inst} is still hot from the last run.",
     "fix": "wait a few minutes, then start again."
    },
    "method.configure:METHOD_GRID": {
     "code": "BAD_STEP",
     "message": "{inst} takes times and temperatures only on its setting grid.",
     "fix": "round the values (whole seconds, whole °C)."
    },
    "acquisition.start:NOT_READY": {
     "code": "NOT_READY",
     "message": "{inst} is not ready to take that vial: there is no vial at that tray position, or the sparge vessel still holds liquid from a stopped run.",
     "fix": "rinse it (`chemlab run {inst} rinse`), and check the tray position (`--vial N`)."
    }
   },
   "unsupported": {
    "load": "the vials are placed on the tray by the lab operator (no load command)",
    "unload": "the vials are taken off the tray by the lab operator (no unload command)",
    "set-temp": "its temperatures are method settings (purge-temp, desorb-temp, bake-temp)",
    "inject": "the run transfers the sample by itself (no manual step)",
    "position": "no sample stage"
   },
   "alternatives": {
    "set-temp": "`chemlab run INST method purge-temp=40C desorb-temp=250C`."
   },
   "notes": {
    "start": [
     "--vial N is the tray position (1..84); the contract counts from 0, so position 1 is vial_index 0",
     "one run takes about 20 min with the documented method; follow it with the job"
    ],
    "method": [
     "method.configure needs every setting; the ones you leave out stay as in the last accepted method, else the documented defaults (the reply lists them)"
    ],
    "rinse": [
     "water rinse of the sparger after a stopped or failed run; the default volume is the documented 7 mL; the trap is not cleaned by it"
    ]
   },
   "manual": "Atomx XYZ user manual (purge and trap operation p.24-32, TekLink method and schedule p.75-120)",
   "examples": {
    "method": "chemlab run INST method purge-temp=40C purge-time=10min desorb-temp=250C",
    "start": "chemlab run INST start --vial 1",
    "rinse": "chemlab run INST rinse 7mL"
   }
  },
  "teledyne_analyteexcite": {
   "role": "primary",
   "verbs": {
    "method": {
     "calls": [
      {
       "cap": "method.configure",
       "passthrough": true,
       "keep": {
        "last": true,
        "example": true
       },
       "keys": {
        "mode": "mode",
        "shape": "shape",
        "spot": "spot_size_m",
        "fluence": "fluence_j_m2",
        "frequency": "frequency_hz",
        "shots": "shots",
        "washout": "washout_s",
        "scan-speed": "scan_speed_m_s"
       }
      }
     ]
    },
    "start": {
     "cap": "acquisition.start",
     "job": {
      "slot": "acquisition.phase",
      "done": [
       "succeeded"
      ],
      "failed": [
       "failed",
       "cancelled"
      ],
      "report": {
       "stage": "acquisition.stage",
       "pulses": "laser.pulse_count"
      },
      "max_s": 3600
     }
    },
    "stop": {
     "cap": "acquisition.stop"
    },
    "result": {
     "cap": "process.measure",
     "show": [
      "phase",
      "stage",
      "elapsed_s",
      "pulses",
      "quality",
      "evidence",
      "warnings"
     ]
    },
    "position": {
     "cap": "stage.move",
     "arg": "position_m",
     "axes": [
      "stage.x_m",
      "stage.y_m",
      "stage.z_m"
     ],
     "tolerance_m": 1e-07,
     "max_s": 60
    },
    "rinse": {
     "cap": "washout.start",
     "job": {
      "slot": "acquisition.phase",
      "done": [
       "succeeded"
      ],
      "failed": [
       "failed",
       "cancelled"
      ],
      "max_s": 600
     }
    }
   },
   "slots": {
    "power": "power.enabled"
   },
   "params": {
    "busy": {
     "slot": "acquisition.phase",
     "values": [
      "running"
     ]
    }
   },
   "path": "acquisition",
   "path_exceptions": [
    "process.measure"
   ],
   "show": [
    [
     "power",
     "power.enabled"
    ],
    [
     "method set",
     "method.configured"
    ],
    [
     "sample",
     "sample.loaded"
    ],
    [
     "phase",
     "acquisition.phase"
    ],
    [
     "stage",
     "acquisition.stage"
    ],
    [
     "pulses",
     "laser.pulse_count"
    ],
    [
     "x",
     "stage.x_m",
     "length"
    ],
    [
     "y",
     "stage.y_m",
     "length"
    ],
    [
     "z",
     "stage.z_m",
     "length"
    ],
    [
     "drawer",
     "drawer.open_m",
     "length"
    ],
    [
     "guard",
     "guard.angle_rad",
     "angle"
    ]
   ],
   "requires": {
    "method": [
     {
      "slot": "acquisition.phase",
      "not": [
       "running"
      ],
      "code": "BUSY",
      "label": "no run in progress",
      "message": "{inst} is running; the method cannot change now.",
      "fix": "wait for the run (`chemlab run {inst} wait`) or stop it."
     }
    ],
    "start": [
     {
      "slot": "power.enabled",
      "value": true,
      "code": "POWER_OFF",
      "label": "power on",
      "message": "{inst} is switched off.",
      "fix": "switch it on: `chemlab run {inst} power on`."
     },
     {
      "slot": "method.configured",
      "value": true,
      "code": "NO_METHOD",
      "label": "method set",
      "message": "{inst} has no ablation method yet.",
      "fix": "set one: `chemlab run {inst} method mode=spot spot=80um shots=10` (see `chemlab help {inst} method`)."
     },
     {
      "slot": "drawer.open_m",
      "max": 0.0,
      "code": "COVER_OPEN",
      "label": "sample drawer closed",
      "message": "the sample drawer of {inst} is open.",
      "fix": "close it: `chemlab run {inst} close drawer`."
     },
     {
      "slot": "guard.angle_rad",
      "max": 0.0,
      "code": "COVER_OPEN",
      "label": "guard closed",
      "message": "the guard of {inst} is open.",
      "fix": "close it: `chemlab run {inst} close guard`."
     },
     {
      "slot": "service.angle_rad",
      "max": 0.0,
      "code": "COVER_OPEN",
      "label": "service cover closed",
      "message": "the service cover of {inst} is open.",
      "fix": "close it: `chemlab call {inst} service.set --angle_rad 0`."
     },
     {
      "slot": "sample.loaded",
      "value": true,
      "code": "NO_SAMPLE",
      "label": "a sample in the cell",
      "message": "there is no sample in the ablation cell of {inst}.",
      "fix": "ask the lab operator to load the sample."
     }
    ],
    "position": [
     {
      "slot": "power.enabled",
      "value": true,
      "code": "POWER_OFF",
      "label": "power on",
      "message": "{inst} is switched off.",
      "fix": "switch it on: `chemlab run {inst} power on`."
     },
     {
      "slot": "drawer.open_m",
      "max": 0.0,
      "code": "DRAWER_OPEN",
      "label": "sample drawer closed",
      "message": "the sample drawer of {inst} is open, so the stage does not move.",
      "fix": "close it: `chemlab run {inst} close drawer`."
     },
     {
      "slot": "acquisition.phase",
      "not": [
       "running"
      ],
      "code": "BUSY",
      "label": "no run in progress",
      "message": "{inst} is ablating; the stage follows the method now.",
      "fix": "wait for the run (`chemlab run {inst} wait`)."
     }
    ],
    "stop": [
     {
      "slot": "acquisition.phase",
      "value": "running",
      "code": "NOT_RUNNING",
      "label": "a run in progress",
      "message": "{inst} has no run in progress.",
      "fix": "nothing to stop; see `chemlab run {inst} status`."
     }
    ],
    "rinse": [
     {
      "slot": "power.enabled",
      "value": true,
      "code": "POWER_OFF",
      "label": "power on",
      "message": "{inst} is switched off.",
      "fix": "switch it on: `chemlab run {inst} power on`."
     },
     {
      "slot": "method.configured",
      "value": true,
      "code": "NO_METHOD",
      "label": "method set",
      "message": "{inst} needs a method for the washout gas flows.",
      "fix": "set one: `chemlab run {inst} method mode=spot` (see `chemlab help {inst} method`)."
     },
     {
      "slot": "drawer.open_m",
      "max": 0.0,
      "code": "COVER_OPEN",
      "label": "sample drawer closed",
      "message": "the sample drawer of {inst} is open.",
      "fix": "close it: `chemlab run {inst} close drawer`."
     },
     {
      "slot": "guard.angle_rad",
      "max": 0.0,
      "code": "COVER_OPEN",
      "label": "guard closed",
      "message": "the guard of {inst} is open.",
      "fix": "close it: `chemlab run {inst} close guard`."
     },
     {
      "slot": "acquisition.phase",
      "not": [
       "running"
      ],
      "code": "BUSY",
      "label": "no run in progress",
      "message": "{inst} is running.",
      "fix": "wait for the run (`chemlab run {inst} wait`)."
     }
    ]
   },
   "codes": {
    "acquisition.start:SAMPLE_BOUNDS": {
     "code": "OUTSIDE_SAMPLE",
     "message": "the laser path of the method leaves the sample on {inst}.",
     "fix": "set a path inside the sample (`chemlab run {inst} method path_m=[[x,y,z]]`, metres)."
    },
    "acquisition.start:GRID_RESOLUTION": {
     "code": "SPOT_TOO_SMALL",
     "message": "the spot is too small for the sample model of {inst}.",
     "fix": "use a larger spot (`method spot=80um`)."
    },
    "method.configure:APERTURE_LIST_UNAVAILABLE": {
     "code": "UNKNOWN_APERTURE",
     "message": "{inst} knows only the 50 µm circle and the 80 µm square apertures.",
     "fix": "use `method shape=square spot=80um` or `shape=circle spot=50um`, or add accept_aperture_interpolation=true."
    },
    "method.configure:PATH_INVALID": {
     "code": "BAD_PATH",
     "message": "the laser path does not fit the mode (spot: one point, scan: two or more, z at most 50 mm).",
     "fix": "give path_m=[[x,y,z]] for spot mode."
    }
   },
   "unsupported": {
    "load": "the sample is placed in the ablation cell drawer by the lab operator (no load command)",
    "unload": "the sample is taken out of the drawer by the lab operator (no unload command)",
    "set-temp": "no heated zone",
    "inject": "the ablated aerosol goes to the ICP-MS by itself (no manual step)"
   },
   "notes": {
    "start": [
     "the laser fires along the method's path; a spot of 10 shots takes about 2 s plus the washout"
    ],
    "position": [
     "moves the stage (bare numbers in mm, the stage travel is 0..100 mm) and waits until it is there"
    ],
    "method": [
     "fluence is in J/m² (60000 J/m² = 6 J/cm²); path_m is a JSON list of [x, y, z] points in metres"
    ],
    "rinse": [
     "a gas washout of the ablation cell into the ICP-MS for the method's washout time (a job)"
    ]
   },
   "manual": "Analyte Excite+ specification sheet p.1-2 (laser, stage, gas handling, triggering); HelEx II cell brochure p.1-4",
   "examples": {
    "method": "chemlab run INST method mode=spot shape=square spot=80um shots=20 path_m=[[0.03,0.03,0.01]]",
    "start": "chemlab run INST start",
    "position": "chemlab run INST position 30mm 30mm 10mm",
    "rinse": "chemlab run INST rinse"
   }
  },
  "frontier_egapy": {
   "role": "primary",
   "verbs": {
    "method": {
     "calls": [
      {
       "cap": "method.configure",
       "passthrough": true,
       "keep": {
        "last": true,
        "example": true
       },
       "keys": {
        "mode": "mode",
        "pyrolysis-temp": "pyrolysis_k",
        "pyrolysis-time": "pyrolysis_s",
        "td-start": "td_start_k",
        "td-end": "td_end_k",
        "ramp": "ramp_k_s",
        "hold": "hold_s",
        "interface-temp": "interface_k",
        "carrier-flow": "carrier_flow_m3_s"
       }
      }
     ]
    },
    "start": {
     "cap": "acquisition.start",
     "job": {
      "slot": "acquisition.phase",
      "done": [
       "succeeded"
      ],
      "failed": [
       "failed",
       "cancelled"
      ],
      "report": {
       "stage": "acquisition.stage"
      },
      "max_s": 7200
     }
    },
    "stop": {
     "cap": "acquisition.stop"
    },
    "result": {
     "cap": "process.measure",
     "show": [
      "phase",
      "stage",
      "elapsed_s",
      "thermal_trace",
      "quality",
      "template_source",
      "warnings"
     ]
    },
    "inject": {
     "stage_slot": "acquisition.stage",
     "phase_slot": "acquisition.phase",
     "gc_slot": "gc.ready",
     "temp_slot": "furnace.temperature_k",
     "steps": {
      "wait_drop": {
       "gc": true,
       "calls": [
        {
         "cap": "cup.drop",
         "what": "drop the sample cup into the furnace"
        },
        {
         "cap": "acquisition.confirm",
         "what": "confirm the drop"
        }
       ]
      },
      "wait_insert": {
       "gc": true,
       "calls": [
        {
         "cap": "sampler.set",
         "arg": "down_m",
         "value": "max",
         "what": "lower the sampler into the furnace"
        },
        {
         "cap": "acquisition.confirm",
         "what": "confirm the insertion"
        }
       ]
      },
      "wait_retract": {
       "calls": [
        {
         "cap": "sampler.set",
         "arg": "down_m",
         "value": "min",
         "what": "raise the sampler"
        },
        {
         "cap": "acquisition.confirm",
         "what": "confirm the retraction"
        }
       ]
      }
     }
    }
   },
   "slots": {
    "power": "power.enabled"
   },
   "params": {
    "busy": {
     "slot": "acquisition.phase",
     "values": [
      "running"
     ]
    }
   },
   "path": "acquisition",
   "path_exceptions": [
    "process.measure"
   ],
   "show": [
    [
     "power",
     "power.enabled"
    ],
    [
     "method set",
     "method.configured"
    ],
    [
     "carrier gas",
     "gas.enabled"
    ],
    [
     "sample",
     "sample.loaded"
    ],
    [
     "phase",
     "acquisition.phase"
    ],
    [
     "stage",
     "acquisition.stage"
    ],
    [
     "furnace",
     "furnace.temperature_k",
     "temperature"
    ],
    [
     "interface",
     "interface.temperature_k",
     "temperature"
    ],
    [
     "GC ready",
     "gc.ready"
    ],
    [
     "GC starts",
     "gc.trigger_count"
    ]
   ],
   "requires": {
    "method": [
     {
      "slot": "acquisition.phase",
      "not": [
       "running"
      ],
      "code": "BUSY",
      "label": "no run in progress",
      "message": "{inst} is running; the method cannot change now.",
      "fix": "wait for the run (`chemlab run {inst} wait`) or stop it."
     }
    ],
    "start": [
     {
      "slot": "power.enabled",
      "value": true,
      "code": "POWER_OFF",
      "label": "power on",
      "message": "{inst} is switched off.",
      "fix": "switch it on: `chemlab run {inst} power on`."
     },
     {
      "slot": "method.configured",
      "value": true,
      "code": "NO_METHOD",
      "label": "method set",
      "message": "{inst} has no method yet.",
      "fix": "set one: `chemlab run {inst} method mode=single pyrolysis-temp=600C` (see `chemlab help {inst} method`)."
     },
     {
      "slot": "gas.enabled",
      "value": true,
      "code": "GAS_OFF",
      "label": "carrier gas on",
      "message": "the carrier gas of {inst} is off.",
      "fix": "switch it on: `chemlab call {inst} gas.set --enabled true`."
     },
     {
      "slot": "sample.loaded",
      "value": true,
      "code": "NO_SAMPLE",
      "label": "a sample cup loaded",
      "message": "there is no sample cup in the sampler of {inst}.",
      "fix": "ask the lab operator to load the sample cup."
     },
     {
      "slot": "guard.lift_m",
      "max": 0.0,
      "code": "COVER_OPEN",
      "label": "guard closed",
      "message": "the guard of {inst} is open.",
      "fix": "close it: `chemlab run {inst} close guard`."
     },
     {
      "slot": "sampler.down_m",
      "max": 0.0,
      "code": "SAMPLER_DOWN",
      "label": "sampler up",
      "message": "the sampler of {inst} is lowered.",
      "fix": "raise it: `chemlab call {inst} sampler.set --down_m 0`."
     }
    ],
    "stop": [
     {
      "slot": "acquisition.phase",
      "value": "running",
      "code": "NOT_RUNNING",
      "label": "a run in progress",
      "message": "{inst} has no run in progress.",
      "fix": "nothing to stop; see `chemlab run {inst} status`."
     }
    ]
   },
   "codes": {
    "method.configure:INVALID_ARGUMENT": {
     "code": "BAD_STEP",
     "message": "{inst} takes temperatures in whole °C, times in 6 s steps and ramps in 1 K/min steps, the end temperature not below the start, and every temperature at least 10 K above the room.",
     "fix": "round the values (e.g. pyrolysis-time=0.1min, ramp=20K/min)."
    },
    "cup.drop:MANUAL_INTERLOCK": {
     "code": "NOT_NOW",
     "message": "{inst} does not take the cup now (the run is not waiting for the drop, the sampler is down or the GC is not ready).",
     "fix": "see `chemlab run {inst} status`."
    }
   },
   "unsupported": {
    "load": "the sample cup is filled and put into the sampler by the lab operator (no load command)",
    "unload": "the sample cup is taken out by the lab operator (no unload command)",
    "set-temp": "its temperatures are method settings (pyrolysis-temp, td-start, td-end, interface-temp)",
    "position": "no sample stage",
    "rinse": "no rinse step (the furnace is cleaned by heating, not by the agent)"
   },
   "alternatives": {
    "set-temp": "`chemlab run INST method pyrolysis-temp=600C interface-temp=300C`."
   },
   "notes": {
    "start": [
     "the run heats the furnace and then waits for the manual step: use `chemlab run INST inject --wait` (single shot: the cup drop)",
     "the GC must be ready (the lab runs it); the job ends when the furnace has cooled after the shot"
    ],
    "inject": [
     "single shot: drop the cup and confirm; double shot / EGA: lower the sampler and confirm, later raise it and confirm"
    ]
   },
   "manual": "PY-3030D operation manual v1.29 (pyrolyzer ch.1 p.10-14, control software p.30-35, single / double shot and EGA operation)",
   "examples": {
    "method": "chemlab run INST method mode=single pyrolysis-temp=600C pyrolysis-time=0.1min",
    "start": "chemlab run INST start",
    "inject": "chemlab run INST inject --wait"
   }
  },
  "markes_unityxr": {
   "role": "primary",
   "verbs": {
    "method": {
     "calls": [
      {
       "cap": "method.configure",
       "passthrough": true,
       "keep": {
        "last": true,
        "example": true
       },
       "keys": {
        "mode": "mode",
        "desorb-temp": "tube_k",
        "desorb-time": "tube_hold_s",
        "trap-low": "trap_low_k",
        "trap-high": "trap_high_k",
        "trap-time": "trap_hold_s",
        "trap-ramp": "trap_ramp_k_s",
        "valve-temp": "valve_k",
        "line-temp": "line_k",
        "purge-flow": "purge_flow_m3_s",
        "purge-time": "prepurge_s"
       }
      }
     ]
    },
    "start": {
     "cap": "acquisition.start",
     "job": {
      "slot": "acquisition.phase",
      "done": [
       "succeeded"
      ],
      "failed": [
       "failed",
       "cancelled"
      ],
      "report": {
       "stage": "acquisition.stage"
      },
      "max_s": 7200
     }
    },
    "stop": {
     "cap": "acquisition.stop"
    },
    "result": {
     "cap": "process.measure",
     "show": [
      "phase",
      "stage",
      "elapsed_s",
      "leak_result",
      "thermal_trace",
      "quality",
      "template_source",
      "warnings"
     ]
    }
   },
   "slots": {
    "power": "power.enabled"
   },
   "params": {
    "busy": {
     "slot": "acquisition.phase",
     "values": [
      "running"
     ]
    }
   },
   "path": "acquisition",
   "path_exceptions": [
    "process.measure"
   ],
   "show": [
    [
     "power",
     "power.enabled"
    ],
    [
     "method set",
     "method.configured"
    ],
    [
     "tube",
     "sample.loaded"
    ],
    [
     "phase",
     "acquisition.phase"
    ],
    [
     "stage",
     "acquisition.stage"
    ],
    [
     "tube temp",
     "tube.temperature_k",
     "temperature"
    ],
    [
     "trap",
     "trap.temperature_k",
     "temperature"
    ],
    [
     "leak test",
     "leak.result"
    ],
    [
     "GC ready",
     "gc.ready"
    ],
    [
     "GC starts",
     "gc.trigger_count"
    ],
    [
     "lid",
     "lid.lift_m",
     "length"
    ]
   ],
   "requires": {
    "method": [
     {
      "slot": "acquisition.phase",
      "not": [
       "running"
      ],
      "code": "BUSY",
      "label": "no run in progress",
      "message": "{inst} is running; the method cannot change now.",
      "fix": "wait for the run (`chemlab run {inst} wait`) or stop it."
     }
    ],
    "start": [
     {
      "slot": "power.enabled",
      "value": true,
      "code": "POWER_OFF",
      "label": "power on",
      "message": "{inst} is switched off.",
      "fix": "switch it on: `chemlab run {inst} power on`."
     },
     {
      "slot": "method.configured",
      "value": true,
      "code": "NO_METHOD",
      "label": "method set",
      "message": "{inst} has no method yet.",
      "fix": "set one: `chemlab run {inst} method mode=analyze desorb-temp=300C` (see `chemlab help {inst} method`)."
     },
     {
      "slot": "lid.lift_m",
      "max": 0.0,
      "code": "COVER_OPEN",
      "label": "lid closed",
      "message": "the lid of {inst} is open.",
      "fix": "close it: `chemlab run {inst} close lid`."
     },
     {
      "slot": "shield.lift_m",
      "max": 0.0,
      "code": "COVER_OPEN",
      "label": "shield closed",
      "message": "the shield of {inst} is open.",
      "fix": "close it: `chemlab run {inst} close shield`."
     },
     {
      "slot": "rear.slide_m",
      "max": 0.0,
      "code": "COVER_OPEN",
      "label": "rear panel closed",
      "message": "the rear panel of {inst} is open.",
      "fix": "close it: `chemlab call {inst} rear.set --slide_m 0`."
     },
     {
      "slot": "sample_lever.angle_rad",
      "max": 0.0,
      "code": "LEVER_OPEN",
      "label": "sample lever closed",
      "message": "the sample tube lever of {inst} is open.",
      "fix": "close it: `chemlab call {inst} sample_lever.set --angle_rad 0`."
     },
     {
      "slot": "recollect_lever.angle_rad",
      "max": 0.0,
      "code": "LEVER_OPEN",
      "label": "re-collection lever closed",
      "message": "the re-collection lever of {inst} is open.",
      "fix": "close it: `chemlab call {inst} recollect_lever.set --angle_rad 0`."
     }
    ],
    "stop": [
     {
      "slot": "acquisition.phase",
      "value": "running",
      "code": "NOT_RUNNING",
      "label": "a run in progress",
      "message": "{inst} has no run in progress.",
      "fix": "nothing to stop; see `chemlab run {inst} status`."
     }
    ]
   },
   "codes": {
    "acquisition.start:NOT_READY": {
     "code": "NOT_READY",
     "message": "{inst} is not ready to start: in analyze mode it needs a sample tube loaded and a cool tube oven, and a method with recollect=true needs the re-collection tube installed.",
     "fix": "check `chemlab run {inst} status`; set `method recollect=false` if no re-collection tube is installed."
    },
    "method.configure:TENAX_TEMPERATURE_LIMIT": {
     "code": "TOO_HOT",
     "message": "{inst} keeps the tube and the trap at or below 350 °C (sorbent limit).",
     "fix": "give desorb-temp and trap-high of 350C or less."
    },
    "method.configure:FLOW_RANGE": {
     "code": "BAD_FLOW",
     "message": "{inst} takes the purge, trap and split flows in whole mL/min from 2 to 500 mL/min (250 with nitrogen), or 0 for the splits.",
     "fix": "round the flows to whole mL/min."
    },
    "method.configure:INVALID_ARGUMENT": {
     "code": "BAD_STEP",
     "message": "{inst} takes temperatures in whole °C and times in 6 s steps, with trap-high not below trap-low.",
     "fix": "round the values."
    }
   },
   "unsupported": {
    "load": "the sample tube is put in by the lab operator (no load command; the lid and levers are manual)",
    "unload": "the sample tube is taken out by the lab operator (no unload command)",
    "set-temp": "its temperatures are method settings (desorb-temp, trap-low, trap-high, valve-temp, line-temp)",
    "inject": "the desorbed sample goes to the GC by itself once the GC is ready (no manual step)",
    "position": "no sample stage",
    "rinse": "no rinse step (tube and trap conditioning are method modes: `method mode=tube_condition`)"
   },
   "alternatives": {
    "set-temp": "`chemlab run INST method desorb-temp=300C trap-high=300C`.",
    "rinse": "`chemlab run INST method mode=trap_condition` then `chemlab run INST start`."
   },
   "notes": {
    "start": [
     "the run does a leak test, purges, desorbs the tube onto the cold trap, waits for the GC to be ready and then desorbs the trap into the GC"
    ],
    "method": [
     "method.configure needs every setting; the ones you leave out stay as in the last accepted method, else the documented defaults (the reply lists them); set recollect=false if no re-collection tube is installed"
    ]
   },
   "manual": "UNITY-xr user manual (quick start p.11-14, tube and trap p.15-21, method editor p.25-42)",
   "examples": {
    "method": "chemlab run INST method mode=analyze desorb-temp=280C recollect=false",
    "start": "chemlab run INST start"
   }
  }
 }
}