topos.evaluation.file_roles¶
File roles¶
Predicates that classify what role a source file plays, so the characteristic morphism can relax or skip specific quality gates when a file is structurally special rather than ordinary logic.
The first role is the import/export-only entrypoint module —
__init__.py, mod.rs/lib.rs, index.ts, and friends — which
are trivial re-export hubs and should not be penalized for low entropy or
high instability. Additional roles (generated code, vendored code, test
files, …) can be added here as further predicates over the same
ProgramMorphism.
- topos.evaluation.file_roles.is_entrypoint_module(morphism)[source]
True iff morphism is an import/export-only entrypoint module.