Diagnostics
Every finding has a stable id, severity, rule, file, line, message and suggestion.
Errors fail fellow check; warnings fail it only with --strict.
| Id | Severity | Meaning |
|---|---|---|
| FW-LOAD-001 | error | A module file failed to import |
| FW-LOAD-002 | error | A file does not default-export the expected contract |
| FW-MOD-001 | error | Module directory without module.ts |
| FW-MOD-002 | error | Manifest id differs from the directory name |
| FW-MOD-003 | error | Module is incompatible with the installed Fellow version |
| FW-MOD-004 | error | Dependency is not installed |
| FW-MOD-005 | error | Dependency version does not satisfy the declared range |
| FW-MOD-006 | error | Circular module dependency |
| FW-MOD-007 | error | Permission not prefixed with the module id |
| FW-MOD-008 | warning | Manifest without name or description |
| FW-MOD-009 | error | Retention policy targets a table the module does not create |
| FW-MOD-010 | warning | Event defined by the module but not declared in events.publishes |
| FW-MOD-011 | error | events.publishes lists an event the module does not define |
| FW-MOD-012 | error | events.consumes lists an event that no dependency defines |
| FW-MOD-013 | error | Navigation entry requires an unknown permission |
| FW-MOD-014 | error | Core module depends on a non-core module |
| FW-MOD-015 | error | Package version bump smaller than its contract changes require |
| FW-ARCH-001 | error | Import of another module’s internals |
| FW-ARCH-002 | error | Use of another module without declaring the dependency |
| FW-ARCH-003 | error | Reference to a table owned by another module |
| FW-ARCH-004 | error | Vue component imports server code (@fellowframework/core, /nitro, /project, /testing); use @fellowframework/core/contracts |
| FW-ROUTE-001 | error | Route id not prefixed with the module id |
| FW-ROUTE-002 | error | Duplicate route id |
| FW-ROUTE-003 | error | Duplicate method and path |
| FW-ROUTE-004 | error | Route without output schema |
| FW-ROUTE-005 | error | POST/PUT/PATCH route without body schema |
| FW-ROUTE-006 | error | Path parameters without params schema |
| FW-ROUTE-007 | error | Route without server-side authorization |
| FW-ROUTE-008 | error | Route permission not declared in the manifest |
| FW-ROUTE-009 | error | Route without tenant declaration |
| FW-ROUTE-010 | error | Public route that requires a tenant |
| FW-ROUTE-011 | warning | Route runs SQL directly instead of calling a service |
| FW-DEPR-001 | warning | Use of a deprecated API |
| FW-PAGE-001 | error | Page component file not found under modules/<module>/pages/ |
| FW-PAGE-002 | error | Page without props schema |
| FW-ROLE-001 | error | Role not prefixed with the module id |
| FW-ROLE-002 | error | Role grants a permission declared neither by the module nor by its dependencies |
| FW-POLICY-001 | error | Policy name not prefixed with the module id |
| FW-NOTIF-001 | error | Notification name not prefixed with the module id |
| FW-CONFIG-001 | error | defineConfig module differs from the module directory |
| FW-CONFIG-002 | error | Configuration variable not prefixed with <MODULE>_ |
| FW-EVENT-001 | error | Event without a valid version |
| FW-EVENT-002 | error | Event name not prefixed with the module id |
| FW-ENTITY-001 | error | Entity table not created by a migration of its module |
| FW-MIG-001 | error | Migration file name is not NNNN_description.sql |
| FW-MIG-002 | error | Table not prefixed with the module id |
| FW-MIG-003 | error | Table with tenant_id without enabled and forced row-level security |
| FW-MIG-004 | warning | Destructive statement; needs human approval to run |
| FW-MIG-005 | warning | Table without tenant_id (shared across tenants). Silence it by marking the table with -- fellow:global <table> in the migration |
| FW-TEST-001 | warning | Route not referenced by any test |
| FW-CODE-001 | warning | Module file longer than 400 lines |
| FW-CODE-002 | error | Decorator in module code |
| FW-CODE-003 | error | Dependency-injection container imported (inversify, tsyringe, typedi, awilix, NestJS, reflect-metadata) |
| FW-CODE-004 | warning | Barrel file inside a module (only public.ts re-exports) |
| FW-CODE-005 | warning | Exported function that only forwards its arguments to another function |
| FW-CODE-006 | warning | Service not reached by any test, directly or through a tested route |
| FW-TEST-002 | error | A test failed |
| FW-GEN-001 | error | Generator would overwrite a file with different content |
| FW-GEN-002 | warning | Generator could not update the manifest automatically |
| FW-GEN-003 | error | src/fellow.gen.ts is out of date; run fellow types |
| FW-ENV-001..004 | error/warning | Environment not ready (tools, database, production guard, TypeScript) |
| FW-ENV-005 | error | A service became unavailable while tests ran (infrastructure failure) |
| FW-TASK-001 | error | Task plan is malformed or has empty fields |
| FW-TASK-002 | error | Task plan has an unresolved ambiguity |
| FW-TASK-003 | error | Requirement without acceptance criterion |
| FW-TASK-004 | error | Acceptance criterion without verifying tests |
| FW-TASK-005 | error/warning | Plan references an element that does not exist (or adds one that does) |
| FW-TASK-006 | error | Plan references a module that neither exists nor is planned |
| FW-APPROVAL-001 | error | High-risk action without a matching human approval (destructive migration, tenant export, module uninstall, backup restore, module publish) |
| FW-APPROVAL-002 | error | Approval attempted non-interactively |
| FW-DOCS-001 | error | Documentation mentions a command that does not exist |
| FW-DOCS-002 | error | Documentation mentions an option a command does not have |
| FW-DOCS-003 | error | Documentation mentions an unknown diagnostic id |
| FW-DOCS-004 | error | Documentation imports a name the package does not export |
| FW-DOCS-005 | warning | Project documentation references a file that does not exist |
| FW-AUDIT-001 | error | Audit hash chain broken: entries were altered or removed outside the framework |
| FW-JOB-001 | error | Job, workflow, schedule or channel not named <module>.<...> |
| FW-DIAG-001 | error | fellow diagnose found nothing for the id given |
| FW-BACKUP-001 | error | Backup or restore cannot run (role subject to RLS, missing tools, pg_dump/pg_restore failure) |
| FW-BACKUP-002 | error/warning | Backup does not match its manifest checksum, has no manifest, or cannot be read |
| FW-REG-001 | error | Module from a registry needs a dependency that is not installed (or not at a compatible version) |
| FW-REG-002 | error | Downloaded package does not match the integrity recorded in the registry index, or its manifest does not match the entry |
| FW-REG-003 | warning/error | Installed module is outdated, yanked or cannot be checked against its registry |
| FW-UPG-001 | error | A module does not support the installed Fellow version and cannot be upgraded automatically |
| FW-UPG-002 | warning | Files can be upgraded automatically (fellow upgrade) |
| FW-CLI-001 | error | Invalid command usage |
| TS#### | error | Type checker error |
How the static rules work
FW-ARCH-003 and the FW-MIG rules read SQL and source text; they do not execute it. Table ownership comes
from create table statements in migrations. They catch the common cases and can miss SQL built
dynamically, so row-level security remains the enforcement of last resort.