-
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy patherrors.json
More file actions
1708 lines (1708 loc) · 57.6 KB
/
Copy patherrors.json
File metadata and controls
1708 lines (1708 loc) · 57.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
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
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"version": "0.16.1",
"description": "PEAC error codes - normative source of truth",
"errors": [
{
"code": "E_INVALID_SIGNATURE",
"http_status": 400,
"title": "Invalid Signature",
"description": "Receipt signature verification failed",
"category": "verification",
"retryable": false,
"next_action": "abort"
},
{
"code": "E_INVALID_FORMAT",
"http_status": 400,
"title": "Invalid Format",
"description": "Receipt does not conform to JWS format",
"category": "validation",
"retryable": false,
"next_action": "retry_with_different_input"
},
{
"code": "E_EXPIRED",
"http_status": 400,
"title": "Receipt Expired",
"description": "Receipt has exceeded its expiration time",
"category": "validation",
"retryable": false,
"next_action": "retry_with_different_input"
},
{
"code": "E_NOT_YET_VALID",
"http_status": 400,
"title": "Not Yet Valid",
"description": "Receipt nbf (not before) time is in the future",
"category": "validation",
"retryable": true,
"next_action": "retry_after_delay"
},
{
"code": "E_INVALID_ISSUER",
"http_status": 400,
"title": "Invalid Issuer",
"description": "Receipt issuer claim is invalid or untrusted",
"category": "validation",
"retryable": false,
"next_action": "retry_with_different_input"
},
{
"code": "E_INVALID_AUDIENCE",
"http_status": 400,
"title": "Invalid Audience",
"description": "Receipt audience claim does not match expected value",
"category": "validation",
"retryable": false,
"next_action": "retry_with_different_input"
},
{
"code": "E_JWKS_FETCH_FAILED",
"http_status": 503,
"title": "JWKS Fetch Failed",
"description": "Failed to fetch public keys from JWKS endpoint",
"category": "infrastructure",
"retryable": true,
"next_action": "retry_after_delay"
},
{
"code": "E_KEY_NOT_FOUND",
"http_status": 400,
"title": "Key Not Found",
"description": "Public key with specified kid not found in JWKS",
"category": "verification",
"retryable": false,
"next_action": "retry_with_different_key"
},
{
"code": "E_KID_REUSE_DETECTED",
"http_status": 400,
"title": "Kid Reuse Detected",
"description": "Same kid value used with different key material within the retention window",
"category": "verification",
"retryable": false,
"next_action": "abort"
},
{
"code": "E_REVOKED_KEY_USED",
"http_status": 400,
"title": "Revoked Key Used",
"description": "Receipt signed with a key listed in the issuer revoked_keys set",
"category": "verification",
"retryable": false,
"next_action": "retry_with_different_key"
},
{
"code": "E_INVALID_AMOUNT",
"http_status": 400,
"title": "Invalid Amount",
"description": "Payment amount is invalid or out of allowed range",
"category": "validation",
"retryable": false,
"next_action": "retry_with_different_input"
},
{
"code": "E_INVALID_CURRENCY",
"http_status": 400,
"title": "Invalid Currency",
"description": "Currency code is not a valid ISO 4217 code",
"category": "validation",
"retryable": false,
"next_action": "retry_with_different_input"
},
{
"code": "E_INVALID_RAIL",
"http_status": 400,
"title": "Invalid Payment Rail",
"description": "Payment rail identifier is not recognized",
"category": "validation",
"retryable": false,
"next_action": "retry_with_different_input"
},
{
"code": "E_MISSING_REQUIRED_CLAIM",
"http_status": 400,
"title": "Missing Required Claim",
"description": "Receipt is missing a required JWT claim",
"category": "validation",
"retryable": false,
"next_action": "retry_with_different_input"
},
{
"code": "E_RATE_LIMITED",
"http_status": 429,
"title": "Rate Limited",
"description": "Too many requests, please retry later",
"category": "infrastructure",
"retryable": true,
"next_action": "retry_after_delay"
},
{
"code": "E_PAYLOAD_TOO_LARGE",
"http_status": 413,
"title": "Payload Too Large",
"description": "Request body exceeds the maximum allowed size for this transport surface",
"category": "validation",
"retryable": false,
"next_action": "retry_with_different_input"
},
{
"code": "E_CIRCUIT_BREAKER_OPEN",
"http_status": 503,
"title": "Circuit Breaker Open",
"description": "Service temporarily unavailable due to circuit breaker",
"category": "infrastructure",
"retryable": true,
"next_action": "retry_after_delay"
},
{
"code": "E_CONTROL_DENIED",
"http_status": 403,
"title": "Control Decision Denied",
"description": "Control engine denied authorization",
"category": "control",
"retryable": false,
"next_action": "contact_issuer"
},
{
"code": "E_CONTROL_REVIEW_REQUIRED",
"http_status": 202,
"title": "Review Required",
"description": "Control engine requires manual review",
"category": "control",
"retryable": true,
"next_action": "contact_issuer"
},
{
"code": "E_EVIDENCE_NOT_JSON",
"http_status": 400,
"title": "Evidence Not JSON-Safe",
"description": "Evidence contains non-JSON-safe values (NaN, Infinity, undefined, BigInt, Date, Map, Set, functions, symbols, class instances, or cycles)",
"category": "validation",
"retryable": false,
"next_action": "retry_with_different_input"
},
{
"code": "E_INVALID_SUBJECT",
"http_status": 400,
"title": "Invalid Subject",
"description": "Receipt subject claim does not match expected value",
"category": "validation",
"retryable": false,
"next_action": "retry_with_different_input"
},
{
"code": "E_INVALID_RECEIPT_ID",
"http_status": 400,
"title": "Invalid Receipt ID",
"description": "Receipt ID (rid) does not match expected value",
"category": "validation",
"retryable": false,
"next_action": "retry_with_different_input"
},
{
"code": "E_MISSING_EXP",
"http_status": 400,
"title": "Missing Expiration",
"description": "Receipt is missing required exp claim",
"category": "validation",
"retryable": false,
"next_action": "retry_with_different_input"
},
{
"code": "E_INTERNAL",
"http_status": 500,
"title": "Internal Error",
"description": "An unexpected internal error occurred during verification",
"category": "infrastructure",
"retryable": true,
"next_action": "retry_after_delay"
},
{
"code": "E_IDENTITY_MISSING",
"http_status": 401,
"title": "Identity Missing",
"description": "No agent identity attestation provided in request",
"category": "identity",
"retryable": false,
"next_action": "retry_with_different_input"
},
{
"code": "E_IDENTITY_INVALID_FORMAT",
"http_status": 400,
"title": "Identity Invalid Format",
"description": "Agent identity attestation does not conform to schema",
"category": "identity",
"retryable": false,
"next_action": "retry_with_different_input"
},
{
"code": "E_IDENTITY_EXPIRED",
"http_status": 401,
"title": "Identity Expired",
"description": "Agent identity attestation has exceeded its expiration time",
"category": "identity",
"retryable": false,
"next_action": "refresh_attestation"
},
{
"code": "E_IDENTITY_NOT_YET_VALID",
"http_status": 401,
"title": "Identity Not Yet Valid",
"description": "Agent identity attestation issued_at time is in the future",
"category": "identity",
"retryable": true,
"next_action": "retry_after_delay"
},
{
"code": "E_IDENTITY_SIG_INVALID",
"http_status": 401,
"title": "Identity Signature Invalid",
"description": "Agent identity proof signature verification failed",
"category": "identity",
"retryable": false,
"next_action": "retry_with_different_input"
},
{
"code": "E_IDENTITY_KEY_UNKNOWN",
"http_status": 401,
"title": "Identity Key Unknown",
"description": "Key ID not found in agent key directory",
"category": "identity",
"retryable": true,
"next_action": "retry_after_delay"
},
{
"code": "E_IDENTITY_KEY_EXPIRED",
"http_status": 401,
"title": "Identity Key Expired",
"description": "Agent signing key has expired per directory metadata",
"category": "identity",
"retryable": false,
"next_action": "refresh_attestation"
},
{
"code": "E_IDENTITY_KEY_REVOKED",
"http_status": 401,
"title": "Identity Key Revoked",
"description": "Agent signing key has been explicitly revoked",
"category": "identity",
"retryable": false,
"next_action": "refresh_attestation"
},
{
"code": "E_IDENTITY_BINDING_MISMATCH",
"http_status": 400,
"title": "Identity Binding Mismatch",
"description": "Identity binding does not match the request being verified",
"category": "identity",
"retryable": false,
"next_action": "retry_with_different_input"
},
{
"code": "E_IDENTITY_BINDING_STALE",
"http_status": 401,
"title": "Identity Binding Stale",
"description": "Identity binding is too old and requires fresh binding",
"category": "identity",
"retryable": true,
"next_action": "retry_after_delay"
},
{
"code": "E_IDENTITY_BINDING_FUTURE",
"http_status": 400,
"title": "Identity Binding Future",
"description": "Identity binding signed_at timestamp is in the future",
"category": "identity",
"retryable": false,
"next_action": "retry_with_different_input"
},
{
"code": "E_IDENTITY_PROOF_UNSUPPORTED",
"http_status": 400,
"title": "Identity Proof Unsupported",
"description": "Agent identity proof method is not supported",
"category": "identity",
"retryable": false,
"next_action": "retry_with_different_input"
},
{
"code": "E_IDENTITY_DIRECTORY_UNAVAILABLE",
"http_status": 503,
"title": "Identity Directory Unavailable",
"description": "Failed to fetch agent key directory",
"category": "identity",
"retryable": true,
"next_action": "retry_after_delay"
},
{
"code": "E_MVIS_INCOMPLETE",
"http_status": 400,
"title": "MVIS Incomplete",
"description": "Identity receipt missing one or more Minimum Viable Identity Set required fields (issuer, subject, key_binding, time_bounds, replay_protection)",
"category": "identity",
"retryable": false,
"next_action": "retry_with_different_input"
},
{
"code": "E_ATTRIBUTION_MISSING_SOURCES",
"http_status": 400,
"title": "Attribution Missing Sources",
"description": "Attribution attestation has empty sources array",
"category": "attribution",
"retryable": false,
"next_action": "retry_with_different_input"
},
{
"code": "E_ATTRIBUTION_INVALID_FORMAT",
"http_status": 400,
"title": "Attribution Invalid Format",
"description": "Attribution attestation does not conform to schema",
"category": "attribution",
"retryable": false,
"next_action": "retry_with_different_input"
},
{
"code": "E_ATTRIBUTION_INVALID_REF",
"http_status": 400,
"title": "Attribution Invalid Reference",
"description": "Receipt reference format is invalid (must be jti:{id}, URL, or URN)",
"category": "attribution",
"retryable": false,
"next_action": "retry_with_different_input"
},
{
"code": "E_ATTRIBUTION_HASH_INVALID",
"http_status": 400,
"title": "Attribution Hash Invalid",
"description": "Content hash structure is invalid (wrong algorithm, encoding, or value length)",
"category": "attribution",
"retryable": false,
"next_action": "retry_with_different_input"
},
{
"code": "E_ATTRIBUTION_UNKNOWN_USAGE",
"http_status": 400,
"title": "Attribution Unknown Usage",
"description": "Attribution usage type is not recognized",
"category": "attribution",
"retryable": false,
"next_action": "retry_with_different_input"
},
{
"code": "E_ATTRIBUTION_INVALID_WEIGHT",
"http_status": 400,
"title": "Attribution Invalid Weight",
"description": "Attribution weight is out of valid range (must be 0.0-1.0)",
"category": "attribution",
"retryable": false,
"next_action": "retry_with_different_input"
},
{
"code": "E_ATTRIBUTION_CIRCULAR_CHAIN",
"http_status": 400,
"title": "Attribution Circular Chain",
"description": "Circular reference detected in attribution chain",
"category": "attribution",
"retryable": false,
"next_action": "retry_with_different_input"
},
{
"code": "E_ATTRIBUTION_CHAIN_TOO_DEEP",
"http_status": 400,
"title": "Attribution Chain Too Deep",
"description": "Attribution chain exceeds maximum allowed depth (8)",
"category": "attribution",
"retryable": false,
"next_action": "retry_with_different_input"
},
{
"code": "E_ATTRIBUTION_TOO_MANY_SOURCES",
"http_status": 400,
"title": "Attribution Too Many Sources",
"description": "Attribution has too many sources (maximum 100)",
"category": "attribution",
"retryable": false,
"next_action": "retry_with_different_input"
},
{
"code": "E_ATTRIBUTION_SIZE_EXCEEDED",
"http_status": 400,
"title": "Attribution Size Exceeded",
"description": "Attribution attestation exceeds maximum size (64KB)",
"category": "attribution",
"retryable": false,
"next_action": "retry_with_different_input"
},
{
"code": "E_ATTRIBUTION_RESOLUTION_FAILED",
"http_status": 502,
"title": "Attribution Resolution Failed",
"description": "Failed to resolve receipt reference in attribution chain",
"category": "attribution",
"retryable": true,
"next_action": "retry_after_delay"
},
{
"code": "E_ATTRIBUTION_RESOLUTION_TIMEOUT",
"http_status": 504,
"title": "Attribution Resolution Timeout",
"description": "Timeout while resolving receipt reference in attribution chain",
"category": "attribution",
"retryable": true,
"next_action": "retry_after_delay"
},
{
"code": "E_ATTRIBUTION_NOT_YET_VALID",
"http_status": 401,
"title": "Attribution Not Yet Valid",
"description": "Attribution attestation issued_at time is in the future",
"category": "attribution",
"retryable": true,
"next_action": "retry_after_delay"
},
{
"code": "E_ATTRIBUTION_EXPIRED",
"http_status": 401,
"title": "Attribution Expired",
"description": "Attribution attestation has exceeded its expiration time",
"category": "attribution",
"retryable": false,
"next_action": "retry_with_different_input"
},
{
"code": "E_DISPUTE_INVALID_FORMAT",
"http_status": 400,
"title": "Dispute Invalid Format",
"description": "Dispute attestation does not conform to schema",
"category": "dispute",
"retryable": false,
"next_action": "retry_with_different_input"
},
{
"code": "E_DISPUTE_INVALID_ID",
"http_status": 400,
"title": "Dispute Invalid ID",
"description": "Dispute ID is not a valid ULID format (26 uppercase alphanumeric characters)",
"category": "dispute",
"retryable": false,
"next_action": "retry_with_different_input"
},
{
"code": "E_DISPUTE_INVALID_TYPE",
"http_status": 400,
"title": "Dispute Invalid Type",
"description": "Dispute type is not recognized",
"category": "dispute",
"retryable": false,
"next_action": "retry_with_different_input"
},
{
"code": "E_DISPUTE_INVALID_TARGET_TYPE",
"http_status": 400,
"title": "Dispute Invalid Target Type",
"description": "Dispute target type is not recognized (must be receipt, attribution, identity, or policy)",
"category": "dispute",
"retryable": false,
"next_action": "retry_with_different_input"
},
{
"code": "E_DISPUTE_INVALID_GROUNDS",
"http_status": 400,
"title": "Dispute Invalid Grounds",
"description": "Dispute grounds code is not recognized",
"category": "dispute",
"retryable": false,
"next_action": "retry_with_different_input"
},
{
"code": "E_DISPUTE_INVALID_STATE",
"http_status": 400,
"title": "Dispute Invalid State",
"description": "Dispute state is not recognized",
"category": "dispute",
"retryable": false,
"next_action": "retry_with_different_input"
},
{
"code": "E_DISPUTE_INVALID_TRANSITION",
"http_status": 400,
"title": "Dispute Invalid Transition",
"description": "Invalid state transition for dispute lifecycle",
"category": "dispute",
"retryable": false,
"next_action": "retry_with_different_input"
},
{
"code": "E_DISPUTE_MISSING_RESOLUTION",
"http_status": 400,
"title": "Dispute Missing Resolution",
"description": "Resolution is required for terminal states (resolved, rejected, final)",
"category": "dispute",
"retryable": false,
"next_action": "retry_with_different_input"
},
{
"code": "E_DISPUTE_RESOLUTION_NOT_ALLOWED",
"http_status": 400,
"title": "Dispute Resolution Not Allowed",
"description": "Resolution is only valid for terminal states",
"category": "dispute",
"retryable": false,
"next_action": "retry_with_different_input"
},
{
"code": "E_DISPUTE_NOT_YET_VALID",
"http_status": 401,
"title": "Dispute Not Yet Valid",
"description": "Dispute attestation issued_at time is in the future",
"category": "dispute",
"retryable": true,
"next_action": "retry_after_delay"
},
{
"code": "E_DISPUTE_EXPIRED",
"http_status": 401,
"title": "Dispute Expired",
"description": "Dispute attestation has exceeded its expiration time",
"category": "dispute",
"retryable": false,
"next_action": "retry_with_different_input"
},
{
"code": "E_DISPUTE_OTHER_REQUIRES_DESCRIPTION",
"http_status": 400,
"title": "Dispute Other Requires Description",
"description": "Dispute type 'other' requires description of at least 50 characters",
"category": "dispute",
"retryable": false,
"next_action": "retry_with_different_input"
},
{
"code": "E_DISPUTE_DUPLICATE",
"http_status": 409,
"title": "Dispute Duplicate",
"description": "A dispute with this ID already exists",
"category": "dispute",
"retryable": false,
"next_action": "retry_with_different_input"
},
{
"code": "E_DISPUTE_TARGET_NOT_FOUND",
"http_status": 404,
"title": "Dispute Target Not Found",
"description": "The target receipt, attribution, or identity being disputed was not found",
"category": "dispute",
"retryable": true,
"next_action": "retry_after_delay"
},
{
"code": "E_BUNDLE_INVALID_FORMAT",
"http_status": 400,
"title": "Bundle Invalid Format",
"description": "Bundle archive structure is invalid (not a valid ZIP or missing required files)",
"category": "bundle",
"retryable": false,
"next_action": "retry_with_different_input"
},
{
"code": "E_BUNDLE_MANIFEST_MISSING",
"http_status": 400,
"title": "Bundle Manifest Missing",
"description": "manifest.json not found at bundle archive root",
"category": "bundle",
"retryable": false,
"next_action": "retry_with_different_input"
},
{
"code": "E_BUNDLE_MANIFEST_INVALID",
"http_status": 400,
"title": "Bundle Manifest Invalid",
"description": "manifest.json does not conform to schema or contains invalid values",
"category": "bundle",
"retryable": false,
"next_action": "retry_with_different_input"
},
{
"code": "E_BUNDLE_HASH_MISMATCH",
"http_status": 400,
"title": "Bundle Hash Mismatch",
"description": "File hash does not match value declared in manifest.json",
"category": "bundle",
"retryable": false,
"next_action": "retry_with_different_input"
},
{
"code": "E_BUNDLE_SIGNATURE_INVALID",
"http_status": 400,
"title": "Bundle Signature Invalid",
"description": "bundle.sig JWS verification failed over manifest hash",
"category": "bundle",
"retryable": false,
"next_action": "retry_with_different_input"
},
{
"code": "E_BUNDLE_RECEIPTS_UNORDERED",
"http_status": 400,
"title": "Bundle Receipts Unordered",
"description": "receipts.ndjson is not in deterministic order (issued_at, receipt_id, receipt_hash)",
"category": "bundle",
"retryable": false,
"next_action": "retry_with_different_input"
},
{
"code": "E_BUNDLE_POLICY_HASH_MISMATCH",
"http_status": 400,
"title": "Bundle Policy Hash Mismatch",
"description": "Policy snapshot hash does not match policy used to evaluate receipts",
"category": "bundle",
"retryable": false,
"next_action": "retry_with_different_input"
},
{
"code": "E_BUNDLE_KEY_MISSING",
"http_status": 400,
"title": "Bundle Key Missing",
"description": "Required signing key not found in bundle (offline verification mode)",
"category": "bundle",
"retryable": false,
"next_action": "retry_with_different_input"
},
{
"code": "E_BUNDLE_TIME_RANGE_INVALID",
"http_status": 400,
"title": "Bundle Time Range Invalid",
"description": "Receipt issued_at is outside the bundle declared time_range",
"category": "bundle",
"retryable": false,
"next_action": "retry_with_different_input"
},
{
"code": "E_BUNDLE_MISSING_RECEIPTS",
"http_status": 400,
"title": "Bundle Missing Receipts",
"description": "No receipts provided when creating bundle",
"category": "bundle",
"retryable": false,
"next_action": "retry_with_different_input"
},
{
"code": "E_BUNDLE_MISSING_KEYS",
"http_status": 400,
"title": "Bundle Missing Keys",
"description": "No verification keys provided in bundle JWKS",
"category": "bundle",
"retryable": false,
"next_action": "retry_with_different_input"
},
{
"code": "E_BUNDLE_RECEIPT_INVALID",
"http_status": 400,
"title": "Bundle Receipt Invalid",
"description": "Receipt JWS in bundle is malformed or missing required claims",
"category": "bundle",
"retryable": false,
"next_action": "retry_with_different_input"
},
{
"code": "E_BUNDLE_DUPLICATE_RECEIPT",
"http_status": 400,
"title": "Bundle Duplicate Receipt",
"description": "Bundle contains multiple receipts with the same ID",
"category": "bundle",
"retryable": false,
"next_action": "retry_with_different_input"
},
{
"code": "E_BUNDLE_PATH_TRAVERSAL",
"http_status": 400,
"title": "Bundle Path Traversal",
"description": "Bundle contains path traversal attack (zip-slip vulnerability)",
"category": "bundle",
"retryable": false,
"next_action": "retry_with_different_input"
},
{
"code": "E_BUNDLE_SIZE_EXCEEDED",
"http_status": 400,
"title": "Bundle Size Exceeded",
"description": "Bundle exceeds size limits (entry count, entry size, or total size)",
"category": "bundle",
"retryable": false,
"next_action": "retry_with_different_input"
},
{
"code": "E_UCP_SIGNATURE_MISSING",
"http_status": 400,
"title": "UCP Signature Missing",
"description": "Request-Signature header is missing from UCP webhook request",
"category": "ucp",
"retryable": false,
"next_action": "retry_with_different_input"
},
{
"code": "E_UCP_SIGNATURE_MALFORMED",
"http_status": 400,
"title": "UCP Signature Malformed",
"description": "Request-Signature header is not a valid detached JWS (RFC 7797)",
"category": "ucp",
"retryable": false,
"next_action": "retry_with_different_input"
},
{
"code": "E_UCP_SIGNATURE_ALGORITHM_UNSUPPORTED",
"http_status": 400,
"title": "UCP Signature Algorithm Unsupported",
"description": "Signature algorithm is not ES256, ES384, or ES512",
"category": "ucp",
"retryable": false,
"next_action": "retry_with_different_input"
},
{
"code": "E_UCP_SIGNATURE_B64_INVALID",
"http_status": 400,
"title": "UCP Signature b64 Invalid",
"description": "b64=false requires 'b64' in 'crit' array per RFC 7797",
"category": "ucp",
"retryable": false,
"next_action": "retry_with_different_input"
},
{
"code": "E_UCP_KEY_NOT_FOUND",
"http_status": 401,
"title": "UCP Key Not Found",
"description": "Key ID from signature not found in business UCP profile",
"category": "ucp",
"retryable": true,
"next_action": "retry_after_delay"
},
{
"code": "E_UCP_KEY_ALGORITHM_MISMATCH",
"http_status": 401,
"title": "UCP Key Algorithm Mismatch",
"description": "Key type is not EC as required for ECDSA signatures",
"category": "ucp",
"retryable": false,
"next_action": "retry_with_different_input"
},
{
"code": "E_UCP_KEY_CURVE_MISMATCH",
"http_status": 401,
"title": "UCP Key Curve Mismatch",
"description": "Key curve does not match signature algorithm (ES256=P-256, ES384=P-384, ES512=P-521)",
"category": "ucp",
"retryable": false,
"next_action": "retry_with_different_input"
},
{
"code": "E_UCP_SIGNATURE_INVALID",
"http_status": 401,
"title": "UCP Signature Invalid",
"description": "Webhook signature verification failed against payload",
"category": "ucp",
"retryable": false,
"next_action": "retry_with_different_input"
},
{
"code": "E_UCP_VERIFICATION_FAILED",
"http_status": 401,
"title": "UCP Verification Failed",
"description": "All verification attempts failed (raw and JCS canonicalized)",
"category": "ucp",
"retryable": false,
"next_action": "retry_with_different_input"
},
{
"code": "E_UCP_PROFILE_FETCH_FAILED",
"http_status": 502,
"title": "UCP Profile Fetch Failed",
"description": "Failed to fetch business UCP profile from /.well-known/ucp",
"category": "ucp",
"retryable": true,
"next_action": "retry_after_delay"
},
{
"code": "E_UCP_PROFILE_INVALID",
"http_status": 502,
"title": "UCP Profile Invalid",
"description": "Business UCP profile does not conform to expected schema",
"category": "ucp",
"retryable": false,
"next_action": "retry_with_different_input"
},
{
"code": "E_UCP_PROFILE_NO_SIGNING_KEYS",
"http_status": 502,
"title": "UCP Profile No Signing Keys",
"description": "Business UCP profile has empty or missing signing_keys array",
"category": "ucp",
"retryable": false,
"next_action": "retry_with_different_input"
},
{
"code": "E_UCP_PAYLOAD_EMPTY",
"http_status": 400,
"title": "UCP Payload Empty",
"description": "Webhook request body is empty",
"category": "ucp",
"retryable": false,
"next_action": "retry_with_different_input"
},
{
"code": "E_UCP_PAYLOAD_NOT_JSON",
"http_status": 400,
"title": "UCP Payload Not JSON",
"description": "Webhook request body is not valid JSON",
"category": "ucp",
"retryable": false,
"next_action": "retry_with_different_input"
},
{
"code": "E_UCP_PAYLOAD_TOO_LARGE",
"http_status": 400,
"title": "UCP Payload Too Large",
"description": "Webhook request body exceeds maximum allowed size",
"category": "ucp",
"retryable": false,
"next_action": "retry_with_different_input"
},
{
"code": "E_UCP_ORDER_INVALID",
"http_status": 400,
"title": "UCP Order Invalid",
"description": "UCP order object does not conform to expected schema",
"category": "ucp",
"retryable": false,
"next_action": "retry_with_different_input"
},
{
"code": "E_UCP_ORDER_MISSING_ID",
"http_status": 400,
"title": "UCP Order Missing ID",
"description": "UCP order is missing required id field",
"category": "ucp",
"retryable": false,
"next_action": "retry_with_different_input"
},
{
"code": "E_UCP_ORDER_MISSING_LINE_ITEMS",
"http_status": 400,
"title": "UCP Order Missing Line Items",
"description": "UCP order is missing required line_items array",
"category": "ucp",
"retryable": false,
"next_action": "retry_with_different_input"
},
{
"code": "E_UCP_ORDER_MISSING_TOTALS",
"http_status": 400,
"title": "UCP Order Missing Totals",
"description": "UCP order is missing required totals array or total entry",
"category": "ucp",
"retryable": false,
"next_action": "retry_with_different_input"
},
{
"code": "E_UCP_EVIDENCE_SERIALIZATION_FAILED",
"http_status": 500,
"title": "UCP Evidence Serialization Failed",
"description": "Failed to serialize UCP evidence to YAML format",
"category": "ucp",
"retryable": false,
"next_action": "retry_with_different_input"
},
{
"code": "E_WORKFLOW_CONTEXT_INVALID",
"http_status": 400,
"title": "Invalid Workflow Context",
"description": "Workflow context does not conform to WorkflowContextSchema",
"category": "workflow",
"retryable": false,
"next_action": "retry_with_different_input"
},
{
"code": "E_WORKFLOW_DAG_INVALID",
"http_status": 400,
"title": "Invalid Workflow DAG",
"description": "Workflow DAG semantics violated (self-parent, duplicate parents, or cycle detected)",
"category": "workflow",
"retryable": false,
"next_action": "retry_with_different_input"
},
{
"code": "E_WORKFLOW_LIMIT_EXCEEDED",
"http_status": 400,
"title": "Workflow Limit Exceeded",
"description": "Workflow exceeds defined limits (parent count, ID length, etc.)",
"category": "workflow",
"retryable": false,
"next_action": "retry_with_different_input"
},
{
"code": "E_WORKFLOW_ID_INVALID",
"http_status": 400,
"title": "Invalid Workflow ID",
"description": "Workflow ID does not match required format (wf_{ulid|uuid})",
"category": "workflow",
"retryable": false,
"next_action": "retry_with_different_input"
},
{
"code": "E_WORKFLOW_STEP_ID_INVALID",
"http_status": 400,
"title": "Invalid Step ID",
"description": "Step ID does not match required format (step_{ulid|uuid})",
"category": "workflow",
"retryable": false,
"next_action": "retry_with_different_input"
},
{
"code": "E_WORKFLOW_PARENT_NOT_FOUND",
"http_status": 400,
"title": "Parent Step Not Found",
"description": "Referenced parent step ID does not exist in the workflow",
"category": "workflow",
"retryable": false,
"next_action": "retry_with_different_input"
},
{
"code": "E_WORKFLOW_SUMMARY_INVALID",
"http_status": 400,
"title": "Invalid Workflow Summary",
"description": "Workflow summary attestation does not conform to schema",
"category": "workflow",
"retryable": false,
"next_action": "retry_with_different_input"
},
{
"code": "E_WORKFLOW_CYCLE_DETECTED",
"http_status": 400,
"title": "Workflow Cycle Detected",
"description": "Workflow DAG contains a cycle (not acyclic)",
"category": "workflow",
"retryable": false,
"next_action": "retry_with_different_input"
},
{
"code": "E_INTERACTION_INVALID_FORMAT",
"http_status": 400,
"title": "Interaction Invalid Format",
"description": "Interaction evidence does not conform to InteractionEvidenceV01 schema",
"category": "interaction",
"retryable": false,
"next_action": "retry_with_different_input"
},
{
"code": "E_INTERACTION_MISSING_ID",
"http_status": 400,
"title": "Interaction Missing ID",
"description": "Interaction evidence is missing required interaction_id field",