@arcforge/err 2.0.100 → 2.0.102
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/src/map.ts +106 -15
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcforge/err",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.102",
|
|
4
4
|
"description": "Structured Axon errors — the code map every user-facing failure is rendered from.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"private": false,
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"deploy": "echo \"This package is published ONLY by apps/tui/scripts/release.ts, which pins workspace:* deps to concrete versions first. Publishing it directly ships an unresolvable dependency.\" && exit 1"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@arcforge/types": "2.0.
|
|
18
|
+
"@arcforge/types": "2.0.102"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"@types/bun": "latest",
|
package/src/map.ts
CHANGED
|
@@ -490,7 +490,7 @@ export const errorMap = {
|
|
|
490
490
|
source: "bench",
|
|
491
491
|
severity: "fatal",
|
|
492
492
|
},
|
|
493
|
-
|
|
493
|
+
BENCH_AXIS_UNKNOWN: {
|
|
494
494
|
code: "AX-BENCH-018",
|
|
495
495
|
title: "Unknown Bench Factor",
|
|
496
496
|
description: "Something referenced a factor id the running bench's coordinate never assigned a value to.",
|
|
@@ -511,42 +511,70 @@ export const errorMap = {
|
|
|
511
511
|
source: "bench",
|
|
512
512
|
severity: "fatal",
|
|
513
513
|
},
|
|
514
|
-
|
|
514
|
+
BENCH_SCHEMA_UNREADABLE: {
|
|
515
|
+
code: "AX-BENCH-030",
|
|
516
|
+
title: "Bench Schema Unreadable",
|
|
517
|
+
description: "bench.config.ts could not be parsed while extracting the measurement schema.",
|
|
518
|
+
source: "bench",
|
|
519
|
+
severity: "fatal",
|
|
520
|
+
},
|
|
521
|
+
BENCH_SCHEMA_EMPTY: {
|
|
522
|
+
code: "AX-BENCH-031",
|
|
523
|
+
title: "Bench Schema Empty",
|
|
524
|
+
description: "defineBench<Schema> was given a type with no properties — an empty schema and a failed extraction must never look alike.",
|
|
525
|
+
source: "bench",
|
|
526
|
+
severity: "fatal",
|
|
527
|
+
},
|
|
528
|
+
BENCH_SCHEMA_UNSUPPORTED_TYPE: {
|
|
529
|
+
code: "AX-BENCH-032",
|
|
530
|
+
title: "Bench Measurement Type Unsupported",
|
|
531
|
+
description: "A measurement is not a boolean, number, union of string literals, or string.",
|
|
532
|
+
source: "bench",
|
|
533
|
+
severity: "fatal",
|
|
534
|
+
},
|
|
535
|
+
BENCH_SCHEMA_EXTRACTION_FAILED: {
|
|
536
|
+
code: "AX-BENCH-033",
|
|
537
|
+
title: "Bench Schema Extraction Failed",
|
|
538
|
+
description: "The schema worker did not return a schema. Prepare fails rather than continuing with an empty one, which would silently make every measurement undeclared.",
|
|
539
|
+
source: "bench",
|
|
540
|
+
severity: "fatal",
|
|
541
|
+
},
|
|
542
|
+
BENCH_AXIS_NOT_FOUND: {
|
|
515
543
|
code: "AX-BENCH-021",
|
|
516
|
-
title: "Bench
|
|
517
|
-
description: "The bench config has no
|
|
544
|
+
title: "Bench Axis Not Found",
|
|
545
|
+
description: "The bench config's matrix has no axis with this key.",
|
|
518
546
|
source: "bench",
|
|
519
547
|
severity: "fatal",
|
|
520
548
|
},
|
|
521
|
-
|
|
549
|
+
BENCH_AXIS_VALUE_NOT_FOUND: {
|
|
522
550
|
code: "AX-BENCH-022",
|
|
523
|
-
title: "Bench
|
|
524
|
-
description: "The bench config's
|
|
551
|
+
title: "Bench Axis Value Not Found",
|
|
552
|
+
description: "The bench config's matrix axis has no declared value with this id.",
|
|
525
553
|
source: "bench",
|
|
526
554
|
severity: "fatal",
|
|
527
555
|
},
|
|
528
|
-
|
|
556
|
+
BENCH_WORKSPACE_ESCAPE: {
|
|
529
557
|
code: "AX-BENCH-023",
|
|
530
|
-
title: "Bench
|
|
531
|
-
description: "A workspace
|
|
558
|
+
title: "Bench Workspace Path Escapes Root",
|
|
559
|
+
description: "A workspace source entry resolved to a path outside the workspace directory — refused rather than materialized.",
|
|
532
560
|
source: "bench",
|
|
533
561
|
severity: "fatal",
|
|
534
562
|
},
|
|
535
|
-
|
|
563
|
+
BENCH_WORKSPACE_SYMLINK_UNSUPPORTED: {
|
|
536
564
|
code: "AX-BENCH-024",
|
|
537
|
-
title: "Bench
|
|
538
|
-
description: "A workspace
|
|
565
|
+
title: "Bench Workspace Symlinks Unsupported",
|
|
566
|
+
description: "A workspace source contains a symlink — not supported when materializing a bench workspace.",
|
|
539
567
|
source: "bench",
|
|
540
568
|
severity: "fatal",
|
|
541
569
|
},
|
|
542
|
-
|
|
570
|
+
BENCH_WORKSPACE_OUTSIDE_ROOT: {
|
|
543
571
|
code: "AX-BENCH-025",
|
|
544
572
|
title: "Bench Template Outside Root",
|
|
545
573
|
description: "A workspace template's declared source path resolves outside the bench project root.",
|
|
546
574
|
source: "bench",
|
|
547
575
|
severity: "fatal",
|
|
548
576
|
},
|
|
549
|
-
|
|
577
|
+
BENCH_WORKSPACE_SOURCE_NOT_FOUND: {
|
|
550
578
|
code: "AX-BENCH-026",
|
|
551
579
|
title: "Bench Template Not Found",
|
|
552
580
|
description: "A workspace template's declared source path isn't a real directory.",
|
|
@@ -724,6 +752,13 @@ export const errorMap = {
|
|
|
724
752
|
source: "runtime",
|
|
725
753
|
severity: "fatal",
|
|
726
754
|
},
|
|
755
|
+
BUS_HANDLER_FAILED: {
|
|
756
|
+
code: "AX-RUNTIME-004",
|
|
757
|
+
title: "Bus Handler Failed",
|
|
758
|
+
description: "A handler subscribed to a runtime bus event threw. Handler failures are non-fatal by design — the remaining handlers still run — but they are recorded rather than swallowed, since plugins and modules register handlers and a silently-broken one is invisible rot.",
|
|
759
|
+
source: "runtime",
|
|
760
|
+
severity: "degraded",
|
|
761
|
+
},
|
|
727
762
|
TOOL_CALL_FAILED: {
|
|
728
763
|
code: "AX-RUNTIME-003",
|
|
729
764
|
title: "Tool Call Failed",
|
|
@@ -824,6 +859,62 @@ export const errorMap = {
|
|
|
824
859
|
source: "capsule",
|
|
825
860
|
severity: "fatal",
|
|
826
861
|
},
|
|
862
|
+
CAPSULE_CRASHED: {
|
|
863
|
+
code: "AX-CAPSULE-015",
|
|
864
|
+
title: "Capsule Crashed",
|
|
865
|
+
description: "An unhandled error escaped inside the sandbox subprocess. The capsule reports it on the wire and exits immediately — after an unhandled throw the sandbox's state is unknown, and a capsule that keeps serving is worse than one that dies loudly.",
|
|
866
|
+
source: "capsule",
|
|
867
|
+
severity: "fatal",
|
|
868
|
+
},
|
|
869
|
+
CAPSULE_DEAD: {
|
|
870
|
+
code: "AX-CAPSULE-016",
|
|
871
|
+
title: "Capsule Dead",
|
|
872
|
+
description: "The capsule subprocess is gone and supervision gave up restarting it. Every subsequent execution request fails until a new capsule is booted.",
|
|
873
|
+
source: "capsule",
|
|
874
|
+
severity: "fatal",
|
|
875
|
+
},
|
|
876
|
+
CAPSULE_PARSE_ERROR: {
|
|
877
|
+
code: "AX-CAPSULE-017",
|
|
878
|
+
title: "Capsule Wire Parse Error",
|
|
879
|
+
description: "A line arriving from the sandbox was not a valid protocol event. The sandbox is speaking garbage — a protocol mismatch or corrupted output — and the line is dropped rather than acted on, never silently.",
|
|
880
|
+
source: "capsule",
|
|
881
|
+
severity: "degraded",
|
|
882
|
+
},
|
|
883
|
+
CAPSULE_CMD_FAILED: {
|
|
884
|
+
code: "AX-CAPSULE-018",
|
|
885
|
+
title: "Capsule Command Failed",
|
|
886
|
+
description: "Code executed in the sandbox threw. This is the ordinary failure path for an agent-emitted block or a script-land run() — the error is the sandboxed code's own, surfaced verbatim.",
|
|
887
|
+
source: "capsule",
|
|
888
|
+
severity: "degraded",
|
|
889
|
+
},
|
|
890
|
+
CAPSULE_FN_FAILED: {
|
|
891
|
+
code: "AX-CAPSULE-019",
|
|
892
|
+
title: "Tool Call Threw",
|
|
893
|
+
description: "A mediated tool function threw inside the sandbox. The failure is the tool's own; it propagates to the calling code unchanged and is recorded as the closing half of the call's span.",
|
|
894
|
+
source: "capsule",
|
|
895
|
+
severity: "degraded",
|
|
896
|
+
},
|
|
897
|
+
CAPSULE_PROC_DENIED: {
|
|
898
|
+
code: "AX-CAPSULE-020",
|
|
899
|
+
title: "Process Spawn Denied",
|
|
900
|
+
description: "A process the sandbox tried to start was refused — denied by policy, killed before it could spawn, or the spawn itself failed. No process was created.",
|
|
901
|
+
source: "capsule",
|
|
902
|
+
severity: "degraded",
|
|
903
|
+
},
|
|
904
|
+
CAPSULE_PROC_FAILED: {
|
|
905
|
+
code: "AX-CAPSULE-022",
|
|
906
|
+
title: "Managed Process Failed",
|
|
907
|
+
description: "A spawned child process errored without ever producing an exit code — an exec failure or a broken IPC channel. Distinct from a non-zero exit, which is the process running correctly and reporting a result.",
|
|
908
|
+
source: "capsule",
|
|
909
|
+
severity: "degraded",
|
|
910
|
+
},
|
|
911
|
+
CAPSULE_PROC_STDIN_FAILED: {
|
|
912
|
+
code: "AX-CAPSULE-021",
|
|
913
|
+
title: "Process Stdin Write Failed",
|
|
914
|
+
description: "Writing to a managed child process's stdin failed — the process is no longer running, or its stdin has already closed.",
|
|
915
|
+
source: "capsule",
|
|
916
|
+
severity: "degraded",
|
|
917
|
+
},
|
|
827
918
|
|
|
828
919
|
// ── TUI (useAgents.ts / platform/build/agent / platform/store / platform/services/cloud) ──
|
|
829
920
|
NOT_BOOTED: {
|