def failing

cswap-bend-cli@0.1.0.0 · policy/types.bend:30

import cswap-bend-cli@0.1.0.0/policy/types.bend as Types
import Base

30# A derived state laid over a stored row at read time. `TokenExpired` is the
31# idle-Claude-Code sentinel; every sentinel hides the row's windows.
32# 0 when the last fetch left no error, else 1: how a row built without a
33# stored failure count says whether it is failing.
34def failing(+e: ErrKind) -> Nat:
35  match e:
36    case ErrNone{}:
37      0n
38    case o:
39      1n

Uses (2)

Used by (0)

No other definition uses this definition.