zlh-grind/ANTI_DRIFT_GUARDRAIL.md

36 lines
897 B
Markdown

# ZLH Frontend Guardrails
This file is intended for Codex / AI agents and human contributors.
## Primary Objective
ZeroLagHub's frontend is a **control surface**, not a game UI.
## Guardrails
- Prefer boring, predictable UI over clever abstractions
- Do not introduce new visual metaphors without removing an old one
- No "sci-fi" effects unless strictly informational
- Avoid abstractions that hide client/server boundaries
## Terminal & Realtime UI Rules
- Terminal components must be isolated and client-only
- No terminal logic in shared utilities
- No implicit socket initialization at import time
## When Unsure
Default to:
- Removing code
- Leaving a comment
- Asking for review
Silence is better than instability.
### Enforcement Note (Dec 28)
If portal code references:
- CSRF
- Cookies for auth
- Pterodactyl
- APIv1 routes
That code must be removed or refactored before merge.