Doctrine Linter
Deterministic architecture checks. Node built-ins only, no dependencies, so it runs inside any target project without installing anything.
node tooling/doctrine-linter/index.mjs [rootDir] # default: .Exit code 1 if any error-severity finding is present.
What it checks
| Check | Severity | Standing |
|---|---|---|
| Public table created with no GRANT | error | observed |
| Public table without row-level security | error | observed |
| RLS enabled with no policy | error | observed |
| Role column on a users/profiles table | error | observed |
Authored file inside the generated .workspace/skills tree | error | observed |
| SKILL.md referencing a file that does not exist | error | observed |
| Skill with no catalog sidecar / catalog entry with no artifact | error | observed |
| Catalog declaring an unknown target profile | error | observed |
| Invalid catalog JSON | error | observed |
| A Foundry artifact claiming to define governing truth | error | observed |
| Same non-generic column on three or more tables | warning | heuristic |
| Synonymous domain concepts coexisting | warning | heuristic |
| Module with no OWNERSHIP.md | warning | inferred |
| Module nothing else imports | warning | inferred |
| Event-shaped name referenced in exactly one file | info | heuristic |
The duplicate-storage and synonym checks are the mechanical half of the proposed entity-normalizer. The judgement half lives in the registry-designer skill.
Evidence standing
Every finding declares how it was reached:
- observed — read directly from a file; the finding states a fact about the text.
- heuristic — a pattern that is usually, but not always, a defect.
- inferred — concluded from an absence. Weakest, and the most likely to be wrong: a module may be reached by a path this tool cannot see.
Static analysis cannot prove architectural truth. No findings means these checks found nothing. It does not mean the architecture is sound, and the tool says so on every run.
Fixtures
fixtures/failing/ contains a project shaped to trigger the SQL and structural errors. fixtures/passing/ contains its corrected counterpart. Both are exercised by tooling/validation/run-all.mjs.