All work

faults-go

Application faults with stable codes across process boundaries.

Status
maintained
Built with
Go

System

My faults-go library provides structured application faults with stable application codes and mapped transport codes across process boundaries. New and Wrap create and wrap faults with normalized key/value details. CodeOf and IsCode inspect codes. Project-specific codes can be registered process-wide during startup.

Constraints

  • stdlib compatibility (errors.Is / errors.As must keep working)
  • context cancellation and deadline semantics
  • Process-wide code mappings and their global state

Decisions

  • Durable application codes and transport codes remain separate.
  • The library builds on errbuilder-go for transport-aware error values and integrates assert-lib reporting.

Evidence

Related systems

  • assert-lib

    Go assertions with logging by default and an explicit crash-on-failure option.

    Go
  • errbuilder-go

    A Go builder that attaches project-defined codes and details to errors.

    Go
  • DragonScale

    A fork of sipeed/picoclaw with documented SecureBus and Isolated Tool Runtime boundaries.

    Go / libSQL / DAG execution