Types.failing: def of cswap-bend-cli@0.1.0.0 Import: import cswap-bend-cli@0.1.0.0/policy/types.bend as Types Lines 30-39 of cswap-bend-cli@0.1.0.0/policy/types.bend: https://jend.leeeet.dev/read.txt?path=cswap-bend-cli@0.1.0.0/policy/types.bend&start_line=30&end_line=39 import Base # A derived state laid over a stored row at read time. `TokenExpired` is the # idle-Claude-Code sentinel; every sentinel hides the row's windows. # 0 when the last fetch left no error, else 1: how a row built without a # stored failure count says whether it is failing. def failing(+e: ErrKind) -> Nat: match e: case ErrNone{}: 0n case o: 1n Uses (2): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/policy/types.bend&name=ErrKind