← all artifacts
toolingv1.0.0tested

Doctrine Linter

doctrine-linter

Provenance

Derived procedure. The source project remains authoritative for its own doctrine; nothing here governs it.

Source project
Skills Foundry
Snapshot
unknown
Source paths
  • tooling/doctrine-linter/
Harvested
2026-09-10
Evidence standing
known
Predecessor
unknown
Supersedes
nothing
Superseded by
unknown

Compatibility and state

Compatible targets
GenericAtlasHTC HubAtlas Harmony Hub
Runtime needs
Node 18+
Dependencies
none
Tests
executed against pass and fail fixtures (last verified 2026-09-10)
Content hash
pending_export
Consumers
not_searched — No activation survey has been performed across target projects.
Transformation
Built as tooling, not as a plugin. Absorbed the mechanical half of the proposed entity-normalizer. Reports heuristics with evidence standing; does not claim to prove architectural truth.

README.md

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

CheckSeverityStanding
Public table created with no GRANTerrorobserved
Public table without row-level securityerrorobserved
RLS enabled with no policyerrorobserved
Role column on a users/profiles tableerrorobserved
Authored file inside the generated .workspace/skills treeerrorobserved
SKILL.md referencing a file that does not existerrorobserved
Skill with no catalog sidecar / catalog entry with no artifacterrorobserved
Catalog declaring an unknown target profileerrorobserved
Invalid catalog JSONerrorobserved
A Foundry artifact claiming to define governing trutherrorobserved
Same non-generic column on three or more tableswarningheuristic
Synonymous domain concepts coexistingwarningheuristic
Module with no OWNERSHIP.mdwarninginferred
Module nothing else importswarninginferred
Event-shaped name referenced in exactly one fileinfoheuristic

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.