12. Error Codes (Normative)
FACET reserves F000–F999 for standard diagnostics.
Host extensions must use X.<host>.<code>.
Parse / syntax
F001invalid indentation (must be 2 spaces)F002tabs forbiddenF003malformed syntax / invalid token / invalid escape / unclosed structureF402attribute interpolation forbidden (``)
Semantic / type
F401variable not foundF405invalid variable path (missing field)F451type mismatchF452constraint violation / unsupported construct / invalid placement / invalid signatureF453runtime input validation failed (@input)F454policy deny (deterministic)F455guard undecidable (fail-closed)F456missing/invalid effect declaration
Graph / imports
F505cyclic dependency in R-DAGF601import not found / disallowed pathF602import cycle
Runtime / mode / layout / gas
F801prohibited I/O or construct disallowed by profile/modeF802unknown lensF803pure-mode cache miss for Level-1 lensF901critical overflow in Token Box ModelF902gas exhausted
Fast troubleshooting map
- Parse issues first (
F001/F002/F003) - Then placement/schema (
F452) - Then types (
F451/F453) - Then dependency graph (
F401/F405/F505) - Then runtime mode/policy (
F801/F803/F454/F455/F902)