ReferenceErrors
INVARIANT
An internal contract was breached - for example restore outside egress.
What it means
InvariantViolationError (code: INVARIANT). A hard product invariant was violated regardless of policy.
Message shape
<reason> → https://tailrace.dev/docs/reference/errors/INVARIANTCommon causes
- Calling
tailrace.restoreat amodel,tool,mcp, ortelemetryboundary. - Asking the vault/actions layer to do something only egress may do.
Fixes
- Restore only at
{ kind: "egress", sink: "…" }. - Keep model/tool paths on
check(tokenize/mask/block), notrestore.
Safe to catch?
Treat as a programmer error. Fix the call site; do not swallow and continue.