# X_GUARD_LOAD_FAILED

## Means

a repository guard could not load its own imports, so it checked nothing

## Typical cause

a package in the guard's import graph is mid-edit or broken, and Bun refused to link it: `Export named '…' not found` or `Cannot find module '…'`. Reported by `scripts/lib/guard-load.ts` as a finding naming the module, instead of a bare `SyntaxError`, so it is never read as a clean run or a mystery crash. A guard's own failure is still thrown as it was

## Fix

edit the module the cause names until `bun run typecheck` is clean, then rerun the guard the cause names

[CLI and verify](/error-codes#cli-and-verify)
