A total, exception-free result type used across the domain layer.
The engine never throws for expected failures (validation, placement
conflicts, rule violations). Those are modelled as Err so callers are
forced by the type system to handle them. Exceptions are reserved for
programmer errors (see ./invariant.ts).
A total, exception-free result type used across the domain layer.
The engine never throws for expected failures (validation, placement conflicts, rule violations). Those are modelled as
Errso callers are forced by the type system to handle them. Exceptions are reserved for programmer errors (see ./invariant.ts).