# X_BOUNDARY_VIOLATION

## Means

a framework package imports one it may not under `scripts/lib/tiers.ts` — this repository's own tier rule, distinct from an app's `X_BOUNDARY_*` codes

## Typical cause

a sideways or upward import, an import outside a package's declared edges, a type-position `import('…')`, or a package missing from the tier table

## Fix

move the shared code down a tier or pass it in; for an edge-only package, add the target to `SIDEWAYS_ALLOW` with the line that earns it; an unknown package goes in the tier table. Then `bun run boundaries`

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