The Logical layer MUST give hygiene, a pure function from the facts of a repository (its package.json files, lockfiles, installed copies, relative imports and workspaces, and whether it is the repository of commons) to its findings, each with a level, a code, a path, a message and a fix, in the order of the codes and then of the paths: a dependency by Git on intellectual-frontiers/.github (E-HYGIENE-GIT), a file: or link: dependency into a path with a segment commons that has something after it (E-HYGIENE-PATH), a relative import into such a path (E-HYGIENE-IMPORT), a package of the scope @intellectual-frontiers/ in a folder that is not the root package or a declared workspace (E-HYGIENE-VENDORED), one package of the scope installed at two versions (E-HYGIENE-DUPLICATE) and, as a warning, a dependency of the scope that is not an exact version (E-HYGIENE-RANGE); in the repository of commons the path, import and vendored findings MUST NOT be made.
Enforced (check): .github: cd commons/repoctl && bun run verify — suite/hygiene.test.ts: each of the six findings is made from facts, in the order of the codes, and the repository of commons is not reported for its own packages
Proved by: repoctl/suite/hygiene.test.ts
Written in: repoctl/src/logical/hygiene.ts
Tests: passed: suite/hygiene.test.ts each of the six findings is made from facts, in the order of the codes; passed: suite/hygiene.test.ts in the repository of commons the path, import and vendored findings are not made and the o
Cited by: Repoctl, logical/hygiene