agent-first-data 0.40.0

A naming convention that lets AI agents understand your data without being told what it means, plus the afdata CLI and a Rust library for reading Markdown structure and safely editing structured JSON, TOML, YAML, dotenv, and INI documents.
Documentation
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
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
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "description": "Canonical cross-SDK API surface for the shared AFDATA contract (protocol builders/reader, output, redaction, CLI primitives, core types). The closed-world CliSpec compiler and help-v2 are the only lifecycle/help contract; the Rust reference ships first. Skill administration, tracing, stream redirection, and the whole `document` module are Rust-only and outside this manifest, so the checked count is the shared contract, not the crate's full public surface. A null entry means that language has no required top-level export for the group; the note records the idiomatic equivalent or the deliberate contract gap. Reverse export checks still reject undeclared public symbols. Validated by scripts/validate_api_surface.py, wired into scripts/test.sh's static phase.",
  "groups": [
    {
      "id": "json_result",
      "kind": "fn",
      "rust": "json_result",
      "python": "json_result",
      "typescript": "jsonResult",
      "go": "NewJSONResult"
    },
    {
      "id": "json_error",
      "kind": "fn",
      "rust": "json_error",
      "python": "json_error",
      "typescript": "jsonError",
      "go": "NewJSONError"
    },
    {
      "id": "json_progress",
      "kind": "fn",
      "rust": "json_progress",
      "python": "json_progress",
      "typescript": "jsonProgress",
      "go": "NewJSONProgress"
    },
    {
      "id": "json_log",
      "kind": "fn",
      "rust": "json_log",
      "python": "json_log",
      "typescript": "jsonLog",
      "go": "NewJSONLog"
    },
    {
      "id": "result_builder",
      "kind": "type",
      "rust": "ResultBuilder",
      "python": "ResultBuilder",
      "typescript": "JsonResultBuilder",
      "go": "JSONResultBuilder",
      "members": [
        {
          "id": "trace",
          "rust": "trace",
          "python": "trace",
          "typescript": "trace",
          "go": "Trace"
        },
        {
          "id": "build",
          "rust": "build",
          "python": "build",
          "typescript": "build",
          "go": "Build"
        }
      ]
    },
    {
      "id": "error_builder",
      "kind": "type",
      "rust": "ErrorBuilder",
      "python": "ErrorBuilder",
      "typescript": "JsonErrorBuilder",
      "go": "JSONErrorBuilder",
      "members": [
        {
          "id": "retryable",
          "rust": "retryable",
          "python": "retryable",
          "typescript": "retryable",
          "go": "Retryable"
        },
        {
          "id": "retryable_if",
          "rust": "retryable_if",
          "python": "retryable_if",
          "typescript": "retryableIf",
          "go": "RetryableIf"
        },
        {
          "id": "hint",
          "rust": "hint",
          "python": "hint",
          "typescript": "hint",
          "go": "Hint"
        },
        {
          "id": "hint_if_some",
          "rust": "hint_if_some",
          "python": "hint_if_some",
          "typescript": "hintIfSome",
          "go": "HintIfSome"
        },
        {
          "id": "field",
          "rust": "field",
          "python": "field",
          "typescript": "field",
          "go": "Field"
        },
        {
          "id": "fields",
          "rust": "fields",
          "python": "fields",
          "typescript": "fields",
          "go": "Fields"
        },
        {
          "id": "extend",
          "rust": "extend",
          "python": "extend",
          "typescript": "extend",
          "go": "Extend"
        },
        {
          "id": "trace",
          "rust": "trace",
          "python": "trace",
          "typescript": "trace",
          "go": "Trace"
        },
        {
          "id": "build",
          "rust": "build",
          "python": "build",
          "typescript": "build",
          "go": "Build"
        }
      ]
    },
    {
      "id": "error_spec",
      "kind": "type",
      "rust": "ErrorSpec",
      "python": null,
      "typescript": null,
      "go": null,
      "note": "Rust-only stable public domain-error declaration. It deliberately has no runtime diagnostic field."
    },
    {
      "id": "error_catalog",
      "kind": "type",
      "rust": "ErrorCatalog",
      "python": null,
      "typescript": null,
      "go": null,
      "note": "Rust-only validated lookup table that builds protocol error events from ErrorSpec by stable code."
    },
    {
      "id": "error_catalog_error",
      "kind": "type",
      "rust": "ErrorCatalogError",
      "python": null,
      "typescript": null,
      "go": null,
      "note": "Rust-only duplicate/unknown/invalid catalog error."
    },
    {
      "id": "progress_builder",
      "kind": "type",
      "rust": "ProgressBuilder",
      "python": "ProgressBuilder",
      "typescript": "JsonProgressBuilder",
      "go": "JSONProgressBuilder",
      "note": "Builders support explicit epoch-millisecond timestamps and current-time timestamps.",
      "members": [
        {
          "id": "timestamp_now",
          "rust": "timestamp_now",
          "python": "timestamp_now",
          "typescript": "timestampNow",
          "go": "TimestampNow"
        },
        {
          "id": "timestamp_epoch_ms",
          "rust": "timestamp_epoch_ms",
          "python": "timestamp_epoch_ms",
          "typescript": "timestampEpochMs",
          "go": "TimestampEpochMs"
        },
        {
          "id": "trace",
          "rust": "trace",
          "python": "trace",
          "typescript": "trace",
          "go": "Trace"
        },
        {
          "id": "build",
          "rust": "build",
          "python": "build",
          "typescript": "build",
          "go": "Build"
        }
      ]
    },
    {
      "id": "log_builder",
      "kind": "type",
      "rust": "LogBuilder",
      "python": "LogBuilder",
      "typescript": "JsonLogBuilder",
      "go": "JSONLogBuilder",
      "note": "Builders support explicit epoch-millisecond timestamps and current-time timestamps.",
      "members": [
        {
          "id": "timestamp_now",
          "rust": "timestamp_now",
          "python": "timestamp_now",
          "typescript": "timestampNow",
          "go": "TimestampNow"
        },
        {
          "id": "timestamp_epoch_ms",
          "rust": "timestamp_epoch_ms",
          "python": "timestamp_epoch_ms",
          "typescript": "timestampEpochMs",
          "go": "TimestampEpochMs"
        },
        {
          "id": "trace",
          "rust": "trace",
          "python": "trace",
          "typescript": "trace",
          "go": "Trace"
        },
        {
          "id": "build",
          "rust": "build",
          "python": "build",
          "typescript": "build",
          "go": "Build"
        }
      ]
    },
    {
      "id": "event",
      "kind": "type",
      "rust": "Event",
      "python": "Event",
      "typescript": "Event",
      "go": "Event"
    },
    {
      "id": "event_build_error",
      "kind": "type",
      "rust": "BuildError",
      "python": "EventBuildError",
      "typescript": "EventBuildError",
      "go": "BuilderError"
    },
    {
      "id": "log_level",
      "kind": "type",
      "rust": "LogLevel",
      "python": "LogLevel",
      "typescript": "LogLevel",
      "go": "LogLevel"
    },
    {
      "id": "validate_protocol_event",
      "kind": "fn",
      "rust": "validate_protocol_event",
      "python": "validate_protocol_event",
      "typescript": "validateProtocolEvent",
      "go": "ValidateProtocolEvent"
    },
    {
      "id": "validate_protocol_stream",
      "kind": "fn",
      "rust": "validate_protocol_stream",
      "python": "validate_protocol_stream",
      "typescript": "validateProtocolStream",
      "go": "ValidateProtocolStream"
    },
    {
      "id": "protocol_violation",
      "kind": "type",
      "rust": "ProtocolViolation",
      "python": null,
      "typescript": null,
      "go": null,
      "note": "Rust-only typed protocol-validation error (stable rule slug + JSON pointer + message) returned by validate_protocol_event/validate_protocol_stream. Python/TS/Go SDKs still surface validation failures as a plain message (ValueError / Error / error), not yet upgraded to the typed violation — a tracked cross-SDK gap."
    },
    {
      "id": "build_cli_error",
      "kind": "fn",
      "rust": "build_cli_error",
      "python": "build_cli_error",
      "typescript": "buildCliError",
      "go": "BuildCliError"
    },
    {
      "id": "decode_protocol_event",
      "kind": "fn",
      "rust": "decode_protocol_event",
      "python": "decode_protocol_event",
      "typescript": "decodeProtocolEvent",
      "go": "DecodeProtocolEvent",
      "note": "Reads base-profile events; strict validation remains a separate opt-in. DecodedError.retryable is nullable when absent."
    },
    {
      "id": "event_decode_error",
      "kind": "type",
      "rust": "EventDecodeError",
      "python": "EventDecodeError",
      "typescript": "EventDecodeError",
      "go": "EventDecodeError"
    },
    {
      "id": "decoded_event",
      "kind": "type",
      "rust": "DecodedEvent",
      "python": null,
      "typescript": "DecodedEvent",
      "go": "DecodedEvent",
      "note": "Rust/TS/Go use a decoded-event enum/union/interface; Python returns one of DecodedResult/DecodedError/DecodedProgress/DecodedLog directly without a wrapping union type."
    },
    {
      "id": "decoded_result",
      "kind": "type",
      "rust": "DecodedResult",
      "python": "DecodedResult",
      "typescript": "DecodedResult",
      "go": "DecodedResult"
    },
    {
      "id": "decoded_error",
      "kind": "type",
      "rust": "DecodedError",
      "python": "DecodedError",
      "typescript": "DecodedError",
      "go": "DecodedError"
    },
    {
      "id": "decoded_progress",
      "kind": "type",
      "rust": "DecodedProgress",
      "python": "DecodedProgress",
      "typescript": "DecodedProgress",
      "go": "DecodedProgress"
    },
    {
      "id": "decoded_log",
      "kind": "type",
      "rust": "DecodedLog",
      "python": "DecodedLog",
      "typescript": "DecodedLog",
      "go": "DecodedLog"
    },
    {
      "id": "render",
      "kind": "fn",
      "rust": "render",
      "python": "render",
      "typescript": "render",
      "go": "Render",
      "note": "The single value × format × options → String entry point. Replaces the former output_json/output_yaml/output_plain (+ _with_options) and cli_output/cli_output_with_options families. Rust/Go take an explicit OutputOptions argument (OutputOptions: Default); Python/TS keep it an optional keyword/parameter."
    },
    {
      "id": "lint_value",
      "kind": "fn",
      "rust": "lint_value",
      "python": null,
      "typescript": null,
      "go": null,
      "note": "Return deterministic contract violations for a serialized value in the specified input mode."
    },
    {
      "id": "lint_field_value",
      "kind": "fn",
      "rust": "lint_field_value",
      "python": null,
      "typescript": null,
      "go": null,
      "note": "Check a separately supplied field name and value. JSON Pointers are relative to that value, with an empty root pointer."
    },
    {
      "id": "lint_finding",
      "kind": "type",
      "rust": "LintFinding",
      "python": null,
      "typescript": null,
      "go": null,
      "note": "A contract violation with its rule_id, JSON Pointer and message."
    },
    {
      "id": "lint_options",
      "kind": "type",
      "rust": "LintOptions",
      "python": null,
      "typescript": null,
      "go": null,
      "note": "Typed runtime data by default. schema_properties() selects schema declarations and untyped_text_scalars(bool) selects text scalar semantics."
    },
    {
      "id": "assert_strict_event",
      "kind": "fn",
      "rust": "assert_strict_event",
      "python": null,
      "typescript": null,
      "go": null,
      "note": "Rust-only test helper returning the strict protocol validation result."
    },
    {
      "id": "assert_no_lint_findings",
      "kind": "fn",
      "rust": "assert_no_lint_findings",
      "python": null,
      "typescript": null,
      "go": null,
      "note": "Return Ok for contract-compliant typed data, or Err with all violations."
    },
    {
      "id": "assert_redaction_canary_absent",
      "kind": "fn",
      "rust": "assert_redaction_canary_absent",
      "python": null,
      "typescript": null,
      "go": null,
      "note": "Rust-only test helper that checks a unique canary is absent from final serialized output."
    },
    {
      "id": "redaction_canary_error",
      "kind": "type",
      "rust": "RedactionCanaryError",
      "python": null,
      "typescript": null,
      "go": null,
      "note": "Rust-only empty/exposed canary error."
    },
    {
      "id": "redacted_value",
      "kind": "fn",
      "rust": "redacted_value",
      "python": "redacted_value",
      "typescript": "redactedValue",
      "go": "RedactedValue"
    },
    {
      "id": "redacted_value_at",
      "kind": "fn",
      "rust": null,
      "python": "redacted_value_at",
      "typescript": "redactedValueAt",
      "go": null,
      "note": "Rust Redactor::value_at and Go Redactor.ValueAt implement the same structural route contract. An element step has no index or identifier."
    },
    {
      "id": "is_secret_path",
      "kind": "fn",
      "rust": null,
      "python": "is_secret_path",
      "typescript": "isSecretPath",
      "go": null,
      "note": "Rust Redactor::is_secret_path and Go Redactor.IsSecretPath implement the same path judgment."
    },
    {
      "id": "redact_url_secrets",
      "kind": "fn",
      "rust": "redact_url_secrets",
      "python": "redact_url_secrets",
      "typescript": "redactUrlSecrets",
      "go": "RedactURLSecrets"
    },
    {
      "id": "redact_urls_in_text",
      "kind": "fn",
      "rust": "redact_urls_in_text",
      "python": "redact_urls_in_text",
      "typescript": "redactUrlsInText",
      "go": "RedactURLsInText",
      "note": "Explicit URL-only prose helper. It recognizes complete scheme-prefixed URL spans and delegates URL redaction; ordinary structured redaction never scans arbitrary prose."
    },
    {
      "id": "redact_argv",
      "kind": "fn",
      "rust": "redact_argv",
      "python": "redact_argv",
      "typescript": "redactArgv",
      "go": "RedactArgv",
      "note": "Rust/Go also expose it as a configured Redactor method (.argv()/.Argv()) for custom secret_names/policy; Python/TS take secret_names/policy as keyword arguments, matching redacted_value/redact_url_secrets."
    },
    {
      "id": "redactor",
      "kind": "type",
      "rust": "Redactor",
      "python": null,
      "typescript": null,
      "go": "Redactor",
      "note": "Rust/Go use a configured Redactor value (.value()/.url() or .Value()/.URL()) for custom secret_names/policy; Python/TS take secret_names/policy as keyword arguments directly on redacted_value/redact_url_secrets/OutputOptions instead of a separate type. Exact reveal names: Rust Redactor::reveal_names, Go Redactor.RevealNames, Python reveal_names (OutputOptions/keyword), TypeScript OutputOptions.redaction.revealNames; URL parameters and argv get no exemption."
    },
    {
      "id": "redaction_policy",
      "kind": "type",
      "rust": "RedactionPolicy",
      "python": "RedactionPolicy",
      "typescript": "RedactionPolicy",
      "go": "RedactionPolicy"
    },
    {
      "id": "plain_style",
      "kind": "type",
      "rust": "PlainStyle",
      "python": "PlainStyle",
      "typescript": "PlainStyle",
      "go": "PlainStyle"
    },
    {
      "id": "output_options",
      "kind": "type",
      "rust": "OutputOptions",
      "python": "OutputOptions",
      "typescript": "OutputOptions",
      "go": "OutputOptions"
    },
    {
      "id": "normalize_utc_offset",
      "kind": "fn",
      "rust": "normalize_utc_offset",
      "python": "normalize_utc_offset",
      "typescript": "normalizeUtcOffset",
      "go": "NormalizeUTCOffset"
    },
    {
      "id": "is_valid_rfc3339_date",
      "kind": "fn",
      "rust": "is_valid_rfc3339_date",
      "python": "is_valid_rfc3339_date",
      "typescript": "isValidRfc3339Date",
      "go": "IsValidRFC3339Date"
    },
    {
      "id": "is_valid_rfc3339_time",
      "kind": "fn",
      "rust": "is_valid_rfc3339_time",
      "python": "is_valid_rfc3339_time",
      "typescript": "isValidRfc3339Time",
      "go": "IsValidRFC3339Time"
    },
    {
      "id": "is_valid_rfc3339",
      "kind": "fn",
      "rust": "is_valid_rfc3339",
      "python": "is_valid_rfc3339",
      "typescript": "isValidRfc3339",
      "go": "IsValidRFC3339"
    },
    {
      "id": "is_valid_bcp47",
      "kind": "fn",
      "rust": "is_valid_bcp47",
      "python": "is_valid_bcp47",
      "typescript": "isValidBcp47",
      "go": "IsValidBCP47"
    },
    {
      "id": "output_format",
      "kind": "type",
      "rust": "OutputFormat",
      "python": "OutputFormat",
      "typescript": "OutputFormat",
      "go": "OutputFormat"
    },
    {
      "id": "log_filters",
      "kind": "type",
      "rust": "LogFilters",
      "python": "LogFilters",
      "typescript": "LogFilters",
      "go": "LogFilters",
      "members": [
        {
          "id": "construct",
          "rust": "new",
          "python": null,
          "typescript": null,
          "go": "NewLogFilters",
          "note": "Python and TypeScript construct through the class constructor itself. Every constructor applies the one normalization in the spec (ASCII trim, ASCII lowercase, de-duplicate, drop empty); there is no mutating append."
        },
        {
          "id": "enabled",
          "rust": "enabled",
          "python": "enabled",
          "typescript": "enabled",
          "go": "Enabled"
        },
        {
          "id": "is_empty",
          "rust": "is_empty",
          "python": "is_empty",
          "typescript": "isEmpty",
          "go": "IsEmpty"
        },
        {
          "id": "values",
          "rust": "as_slice",
          "python": "values",
          "typescript": "values",
          "go": "Values"
        }
      ]
    },
    {
      "id": "cli_parse_output",
      "kind": "fn",
      "rust": "cli_parse_output",
      "python": "cli_parse_output",
      "typescript": "cliParseOutput",
      "go": "CliParseOutput"
    },
    {
      "id": "cli_parse_log_filters",
      "kind": "fn",
      "rust": "cli_parse_log_filters",
      "python": "cli_parse_log_filters",
      "typescript": "cliParseLogFilters",
      "go": "CliParseLogFilters"
    },
    {
      "id": "cli_emitter",
      "kind": "type",
      "rust": "CliEmitter",
      "python": "CliEmitter",
      "typescript": "CliEmitter",
      "go": "CliEmitter",
      "members": [
        {
          "id": "stream",
          "rust": "stream",
          "python": "stream",
          "typescript": "stream",
          "go": "NewCliEmitterStream"
        },
        {
          "id": "finite",
          "rust": "finite",
          "python": "finite",
          "typescript": "finite",
          "go": "NewCliEmitterFinite"
        },
        {
          "id": "from_output_to",
          "rust": "from_output_to",
          "python": "from_output_to",
          "typescript": "fromOutputTo",
          "go": "NewCliEmitterFromOutputTo"
        },
        {
          "id": "with_options",
          "rust": "with_options",
          "python": "with_options",
          "typescript": "withOptions",
          "go": "WithOptions"
        },
        {
          "id": "with_strict_protocol",
          "rust": "with_strict_protocol",
          "python": "with_strict_protocol",
          "typescript": "withStrictProtocol",
          "go": "WithStrictProtocol"
        },
        {
          "id": "emit",
          "rust": "emit",
          "python": "emit",
          "typescript": "emit",
          "go": "Emit"
        },
        {
          "id": "emit_validated_value",
          "rust": "emit_validated_value",
          "python": "emit_validated_value",
          "typescript": "emitValidatedValue",
          "go": "EmitValidatedValue"
        },
        {
          "id": "emit_result",
          "rust": "emit_result",
          "python": "emit_result",
          "typescript": "emitResult",
          "go": "EmitResult"
        },
        {
          "id": "emit_error",
          "rust": "emit_error",
          "python": "emit_error",
          "typescript": "emitError",
          "go": "EmitError"
        },
        {
          "id": "emit_progress",
          "rust": "emit_progress",
          "python": "emit_progress",
          "typescript": "emitProgress",
          "go": "EmitProgress"
        },
        {
          "id": "emit_log",
          "rust": "emit_log",
          "python": "emit_log",
          "typescript": "emitLog",
          "go": "EmitLog"
        },
        {
          "id": "write_raw",
          "rust": "write_raw",
          "python": "write_raw",
          "typescript": "writeRaw",
          "go": "WriteRaw"
        },
        {
          "id": "finish_raw",
          "rust": "finish_raw",
          "python": "finish_raw",
          "typescript": "finishRaw",
          "go": "FinishRaw"
        },
        {
          "id": "finish",
          "rust": "finish",
          "python": "finish",
          "typescript": "finish",
          "go": "Finish"
        },
        {
          "id": "finish_result",
          "rust": "finish_result",
          "python": "finish_result",
          "typescript": "finishResult",
          "go": "FinishResult"
        },
        {
          "id": "finish_document_result",
          "rust": "finish_document_result",
          "python": null,
          "typescript": null,
          "go": null,
          "note": "Rust alone exposes the editable document value model and its native YAML numbers."
        },
        {
          "id": "exit_code",
          "rust": "exit_code",
          "python": "exit_code",
          "typescript": "exitCode",
          "go": "ExitCode"
        },
        {
          "id": "from_plan",
          "rust": "from_plan",
          "python": null,
          "typescript": null,
          "go": null,
          "note": "Rust-only: builds an emitter from a compiled cli-spec-v1 output plan; the other SDKs have no CliSpec compiler yet."
        },
        {
          "id": "set_options",
          "rust": "set_options",
          "python": null,
          "typescript": null,
          "go": null,
          "note": "Rust-only: in-place variant of with_options for an emitter held by mutable reference."
        },
        {
          "id": "format",
          "rust": "format",
          "python": null,
          "typescript": null,
          "go": null,
          "note": "Rust-only accessor; the other SDKs keep the format private."
        },
        {
          "id": "write_failure",
          "rust": "write_failure",
          "python": null,
          "typescript": null,
          "go": null,
          "note": "Rust-only inspection of the remembered failure; every SDK settles it through exit_code."
        },
        {
          "id": "into_inner",
          "rust": "into_inner",
          "python": null,
          "typescript": null,
          "go": null,
          "note": "Rust-only: the generic writer is recoverable; the other SDKs hold a writer callback or file-like object the caller already owns."
        }
      ]
    },
    {
      "id": "output_to",
      "kind": "type",
      "rust": "OutputTo",
      "python": "OutputTo",
      "typescript": "OutputTo",
      "go": "OutputTo"
    },
    {
      "id": "parse_output_to",
      "kind": "fn",
      "rust": null,
      "python": null,
      "typescript": "parseOutputTo",
      "go": "ParseOutputTo",
      "note": "Rust/Python expose this as the OutputTo::parse associated function / OutputTo.parse classmethod, not a separate top-level export; Go/TS provide it as a free function."
    },
    {
      "id": "cli_emitter_stream",
      "kind": "fn",
      "rust": null,
      "python": null,
      "typescript": null,
      "go": "NewCliEmitterStream",
      "note": "Go-only free constructor for the event-stream mode (every event, including error, to one writer); Rust/Python/TS construct via CliEmitter::stream / CliEmitter.stream, not separate top-level exports."
    },
    {
      "id": "cli_emitter_finite",
      "kind": "fn",
      "rust": null,
      "python": null,
      "typescript": null,
      "go": "NewCliEmitterFinite",
      "note": "Go-only free constructor for the finite one-shot mode (result and raw bytes to the result writer, error/progress/log to the diagnostic writer); Rust/Python/TS construct via CliEmitter::finite / CliEmitter.finite / CliEmitter.finite, not separate top-level exports."
    },
    {
      "id": "cli_emitter_from_output_to",
      "kind": "fn",
      "rust": null,
      "python": null,
      "typescript": null,
      "go": "NewCliEmitterFromOutputTo",
      "note": "Go-only free constructor that picks finite (split) or stream mode from a parsed OutputTo selector, wired to the process streams; Rust/Python/TS use the from_output_to / fromOutputTo method."
    },
    {
      "id": "output_options_for_policy",
      "kind": "fn",
      "rust": null,
      "python": null,
      "typescript": "outputOptionsForPolicy",
      "go": "OutputOptionsForPolicy",
      "note": "Python exposes this as a classmethod (OutputOptions.for_policy). Rust has no such function: it implements `From<RedactionPolicy> for OutputOptions`, so the equivalent is `OutputOptions::from(policy)` or `policy.into()`."
    },
    {
      "id": "cli_event_writer",
      "kind": "type",
      "rust": null,
      "python": null,
      "typescript": "CliEventWriter",
      "go": null,
      "note": "TS-only structural type for the writer CliEmitter accepts; Rust expresses the equivalent as a generic bound (W: Write), Python/Go accept any writable/file-like object without naming the shape."
    },
    {
      "id": "json_value",
      "kind": "type",
      "rust": null,
      "python": null,
      "typescript": "JsonValue",
      "go": null,
      "note": "TS-only exported type alias for a JSON value. Rust uses serde_json::Value (from the serde_json crate, not this crate's own naming); Python/Go use the host language's dynamic Any/any."
    },
    {
      "id": "cli_emitter_error",
      "kind": "type",
      "rust": "CliEmitterError",
      "python": null,
      "typescript": null,
      "go": null,
      "note": "Rust-only: a typed write-failure error for CliEmitter. Python/TS/Go raise/return the host language's native I/O error instead."
    },
    {
      "id": "build_cli_version",
      "kind": "fn",
      "rust": "build_cli_version",
      "python": "build_cli_version",
      "typescript": "buildCliVersion",
      "go": "BuildCliVersion"
    },
    {
      "id": "cli_render_version",
      "kind": "fn",
      "rust": "cli_render_version",
      "python": "cli_render_version",
      "typescript": "cliRenderVersion",
      "go": "CliRenderVersion"
    },
    {
      "id": "cli_spec",
      "kind": "type",
      "rust": "CliSpec",
      "python": null,
      "typescript": null,
      "go": null,
      "note": "Rust reference compiler for cli-spec-v1; the other SDK compilers are intentionally deferred to the shared-fixture migration."
    },
    {
      "id": "built_cli_spec",
      "kind": "type",
      "rust": "BuiltCliSpec",
      "python": null,
      "typescript": null,
      "go": null,
      "note": "Rust-only validated cli-spec-v1 registry."
    },
    {
      "id": "bound_cli_spec",
      "kind": "type",
      "rust": "BoundCliSpec",
      "python": null,
      "typescript": null,
      "go": null,
      "note": "Rust-only registry with exact action-handler coverage."
    },
    {
      "id": "bound_outcome",
      "kind": "type",
      "rust": "BoundOutcome",
      "python": null,
      "typescript": null,
      "go": null,
      "note": "Rust-only. What an argv resolved to, with the run branch already carrying its handler so dispatch cannot fail."
    },
    {
      "id": "bound_invocation",
      "kind": "type",
      "rust": "BoundInvocation",
      "python": null,
      "typescript": null,
      "go": null,
      "note": "Rust-only. A resolved invocation plus its handler. `run` is infallible because the handler was bound during resolution by the registry that owns it, which is why no caller branches on a dispatch miss."
    },
    {
      "id": "command_spec",
      "kind": "type",
      "rust": "CommandSpec",
      "python": null,
      "typescript": null,
      "go": null,
      "note": "Rust reference cli-spec-v1 command declaration."
    },
    {
      "id": "arg_spec",
      "kind": "type",
      "rust": "ArgSpec",
      "python": null,
      "typescript": null,
      "go": null,
      "note": "Rust reference cli-spec-v1 argument declaration."
    },
    {
      "id": "source_set",
      "kind": "type",
      "rust": "SourceSet",
      "python": null,
      "typescript": null,
      "go": null,
      "note": "Rust reference declaration of the value sources one cli-spec-v1 argument accepts."
    },
    {
      "id": "source_scheme",
      "kind": "type",
      "rust": "SourceScheme",
      "python": null,
      "typescript": null,
      "go": null,
      "note": "Rust reference value-source scheme (env, file, stdin, fd, prompt)."
    },
    {
      "id": "host_scheme",
      "kind": "type",
      "rust": "HostScheme",
      "python": null,
      "typescript": null,
      "go": null,
      "note": "Rust reference declaration of a value-source scheme the host parses and reads itself."
    },
    {
      "id": "value_source",
      "kind": "type",
      "rust": "ValueSource",
      "python": null,
      "typescript": null,
      "go": null,
      "note": "Rust reference classified value source, read through the value_source module."
    },
    {
      "id": "source_error",
      "kind": "type",
      "rust": "SourceError",
      "python": null,
      "typescript": null,
      "go": null,
      "note": "Rust reference value-source failure: an unacceptable or malformed source, or one that could not be read."
    },
    {
      "id": "arg_syntax",
      "kind": "type",
      "rust": "ArgSyntax",
      "python": null,
      "typescript": null,
      "go": null,
      "note": "Rust reference long-or-positional syntax model."
    },
    {
      "id": "arg_value_type",
      "kind": "type",
      "rust": "ArgValueType",
      "python": null,
      "typescript": null,
      "go": null,
      "note": "Rust reference closed CLI argument type enum."
    },
    {
      "id": "cli_value",
      "kind": "type",
      "rust": "CliValue",
      "python": null,
      "typescript": null,
      "go": null,
      "note": "Rust reference portable resolved CLI value."
    },
    {
      "id": "combination",
      "kind": "type",
      "rust": "Combination",
      "python": null,
      "typescript": null,
      "go": null,
      "note": "Rust reference registered legal invocation shape."
    },
    {
      "id": "fixed_value",
      "kind": "type",
      "rust": "FixedValue",
      "python": null,
      "typescript": null,
      "go": null,
      "note": "Rust reference scalar-or-one_of fixed enum constraint."
    },
    {
      "id": "output_spec",
      "kind": "type",
      "rust": "OutputSpec",
      "python": null,
      "typescript": null,
      "go": null,
      "note": "Rust reference closed raw/protocol output contract."
    },
    {
      "id": "exit_code_spec",
      "kind": "type",
      "rust": "ExitCodeSpec",
      "python": null,
      "typescript": null,
      "go": null,
      "note": "Rust reference cli-spec-v1 declaration of an exit code the CLI defines beyond AFDATA's 0/1/2/4, so the rendered reference documents what the binary returns. Belongs to the CliSpec compiler, which the other SDKs intentionally defer (see cli_spec)."
    },
    {
      "id": "output_lifecycle",
      "kind": "type",
      "rust": "OutputLifecycle",
      "python": null,
      "typescript": null,
      "go": null,
      "note": "Rust reference finite-or-stream lifecycle enum."
    },
    {
      "id": "output_plan",
      "kind": "type",
      "rust": "OutputPlan",
      "python": null,
      "typescript": null,
      "go": null,
      "note": "Rust-only resolved output plan."
    },
    {
      "id": "cli_outcome",
      "kind": "type",
      "rust": "CliOutcome",
      "python": null,
      "typescript": null,
      "go": null,
      "note": "Rust-only closed Run/Help/Version resolution outcome."
    },
    {
      "id": "resolved_invocation",
      "kind": "type",
      "rust": "ResolvedInvocation",
      "python": null,
      "typescript": null,
      "go": null,
      "note": "Rust-only projected typed invocation."
    },
    {
      "id": "resolved_docs",
      "kind": "type",
      "rust": "ResolvedDocs",
      "python": null,
      "typescript": null,
      "go": null,
      "note": "Rust-only resolved `--docs` request; carries the output plan, not rendered bytes."
    },
    {
      "id": "resolved_help",
      "kind": "type",
      "rust": "ResolvedHelp",
      "python": null,
      "typescript": null,
      "go": null,
      "note": "Rust-only help-v2 outcome and output plan."
    },
    {
      "id": "resolved_version",
      "kind": "type",
      "rust": "ResolvedVersion",
      "python": null,
      "typescript": null,
      "go": null,
      "note": "Rust-only version outcome and output plan."
    },
    {
      "id": "cli_help_v2",
      "kind": "type",
      "rust": "CliHelpV2",
      "python": null,
      "typescript": null,
      "go": null,
      "note": "Rust reference cli-help-v2 model."
    },
    {
      "id": "cli_error",
      "kind": "type",
      "rust": "CliError",
      "python": null,
      "typescript": null,
      "go": null,
      "note": "Rust-only structured closed-world CLI error."
    },
    {
      "id": "cli_error_rule",
      "kind": "type",
      "rust": "CliErrorRule",
      "python": null,
      "typescript": null,
      "go": null,
      "note": "Rust reference closed CLI error rule enum."
    },
    {
      "id": "cli_spec_error",
      "kind": "type",
      "rust": "CliSpecError",
      "python": null,
      "typescript": null,
      "go": null,
      "note": "Rust-only cli-spec-v1 build error."
    },
    {
      "id": "build_afdata_cli",
      "kind": "fn",
      "rust": "build_afdata_cli",
      "python": null,
      "typescript": null,
      "go": null,
      "note": "AFDATA adapter for the Rust reference compiler: the only place a cli-spec outcome becomes a protocol event. Rust-only for the same reason the compiler is."
    },
    {
      "id": "cli_help_event",
      "kind": "fn",
      "rust": "cli_help_event",
      "python": null,
      "typescript": null,
      "go": null,
      "note": "AFDATA adapter for the Rust reference compiler: the only place a cli-spec outcome becomes a protocol event. Rust-only for the same reason the compiler is."
    },
    {
      "id": "cli_version_event",
      "kind": "fn",
      "rust": "cli_version_event",
      "python": null,
      "typescript": null,
      "go": null,
      "note": "AFDATA adapter for the Rust reference compiler: the only place a cli-spec outcome becomes a protocol event. Rust-only for the same reason the compiler is."
    },
    {
      "id": "cli_error_event",
      "kind": "fn",
      "rust": "cli_error_event",
      "python": null,
      "typescript": null,
      "go": null,
      "note": "AFDATA adapter for the Rust reference compiler: the only place a cli-spec outcome becomes a protocol event. Rust-only for the same reason the compiler is."
    },
    {
      "id": "cli_invocation_invalid_event",
      "kind": "fn",
      "rust": "cli_invocation_invalid_event",
      "python": null,
      "typescript": null,
      "go": null,
      "note": "Rust-only. The event for a program that misread its own resolved invocation (an argument id its combination does not declare). Dispatch itself cannot fail; `BoundCliSpec::resolve_from` binds the handler while resolving."
    },
    {
      "id": "cli_shape",
      "kind": "type",
      "rust": "CliShape",
      "python": null,
      "typescript": null,
      "go": null,
      "note": "One legal shape inside a cli-help-v2 response. Rust-only, like the compiler that produces it."
    },
    {
      "id": "render_cli_reference",
      "kind": "fn",
      "rust": "render_cli_reference",
      "python": null,
      "typescript": null,
      "go": null,
      "note": "Offline Markdown reference rendered from a built registry. Deliberately a separate capability rather than a help format, so the agent-facing discovery path stays minimal. Rust-only, like the compiler it reads."
    },
    {
      "id": "synthetic_invocation",
      "kind": "type",
      "rust": "SyntheticInvocation",
      "python": null,
      "typescript": null,
      "go": null,
      "note": "Rust-only compiler-generated type-correct registry fixture."
    },
    {
      "id": "cli_output_setup_failed_event",
      "kind": "fn",
      "rust": "cli_output_setup_failed_event",
      "python": null,
      "typescript": null,
      "go": null,
      "note": "Rust-only standard terminal error for output sink installation failure."
    },
    {
      "id": "cli_output_write_failed_event",
      "kind": "fn",
      "rust": "cli_output_write_failed_event",
      "python": null,
      "typescript": null,
      "go": null,
      "note": "Rust-only standard terminal error for output write failure."
    },
    {
      "id": "atomic_write",
      "kind": "type",
      "rust": "AtomicWrite",
      "python": null,
      "typescript": null,
      "go": null,
      "note": "Rust-only options of the one durable atomic file write: explicit unix mode bits and new-only."
    },
    {
      "id": "atomic_error",
      "kind": "type",
      "rust": "AtomicError",
      "python": null,
      "typescript": null,
      "go": null,
      "note": "Rust-only failure of the atomic file write: the step that failed, plus commit_uncertain and target_exists."
    },
    {
      "id": "atomic_step",
      "kind": "type",
      "rust": "AtomicStep",
      "python": null,
      "typescript": null,
      "go": null,
      "note": "Rust-only name of the atomic-write step an AtomicError reports."
    },
    {
      "id": "write_atomic",
      "kind": "fn",
      "rust": "write_atomic",
      "python": null,
      "typescript": null,
      "go": null,
      "note": "Rust-only default atomic file write: AtomicWrite with no options."
    },
    {
      "id": "cli_main",
      "kind": "type",
      "rust": "CliMain",
      "python": null,
      "typescript": null,
      "go": null,
      "note": "Rust-only registry CLI lifecycle entry: binds actions, resolves argv, runs a pre-sink check and the pure handler projection, installs file sinks, answers help/version/docs, runs the command with a plan-built emitter, and settles write failures. Rust-only, like the compiler it drives."
    },
    {
      "id": "prepared_cli",
      "kind": "type",
      "rust": "PreparedCli",
      "python": null,
      "typescript": null,
      "go": null,
      "note": "Rust-only resolved command and process output sinks, with a separate emitter for each logical request."
    },
    {
      "id": "run_with_plan",
      "kind": "fn",
      "rust": "run_with_plan",
      "python": null,
      "typescript": null,
      "go": null,
      "note": "Rust-only output half of CliMain for a plan resolved outside the registry."
    },
    {
      "id": "cli_stop",
      "kind": "type",
      "rust": "CliStop",
      "python": null,
      "typescript": null,
      "go": null,
      "note": "Rust-only event and exit code that ends a registry CLI run before or instead of its own outcome."
    },
    {
      "id": "cli_handler",
      "kind": "type",
      "rust": "CliHandler",
      "python": null,
      "typescript": null,
      "go": null,
      "note": "Rust-only type of a bound action handler: the pure projection from a resolved invocation to the program's command."
    },
    {
      "id": "process_emitter",
      "kind": "type",
      "rust": "ProcessEmitter",
      "python": null,
      "typescript": null,
      "go": null,
      "note": "Rust-only alias for the process-wired CliEmitter CliMain hands to a command."
    },
    {
      "id": "invocation_read_error",
      "kind": "type",
      "rust": "InvocationReadError",
      "python": null,
      "typescript": null,
      "go": null,
      "note": "Rust-only typed-read refusal on a resolved invocation: a program defect, reported as cli_invocation_invalid."
    },
    {
      "id": "invocation_read_problem",
      "kind": "type",
      "rust": "InvocationReadProblem",
      "python": null,
      "typescript": null,
      "go": null,
      "note": "Rust-only classification of an InvocationReadError."
    }
  ]
}