Dependency Coherence
Internal consistency across a codebase — redundant or conflicting libraries, dual ORMs, dual auth, dual HTTP clients, split state systems, mixed module systems.
The internal-consistency layer: does the codebase use one way to do one job?
In scope. Two libraries doing the same thing in one codebase (dual ORM, dual auth, dual HTTP client, dual form library, dual validation, dual date library, dual state manager, dual component library, dual icon library, dual test runner). Also: mixed CSS approaches without a dominant one, mixed module systems, conflicting router abstractions, dual routing conventions (App Router + Pages Router).
Not in scope. Missing dependencies that break resolution — that's reference-integrity. Third-party dependency vulnerabilities or provenance — that's supply-chain. Sloppy usage of a single correctly-chosen tool — that's code-quality.
Distinct because. The defect is the system uses two ways to do one thing. Each individual piece may be correct — the plurality is the defect. A pattern about "codebase contains both Prisma and Drizzle queries" is dependency-coherence; a pattern about "Prisma query uses findMany without take" is cost-efficiency or code-quality.
Conceptual sub-structure. Tooling plurality (dual libraries by concern), convention drift (naming / formatting / module conventions varying across same codebase), architectural redundancy (multiple patterns solving the same architectural problem).
Note on the name. Formerly stack-coherence — renamed because "stack" carries 2015-era framework-stack connotations and reads narrowly in a world of WASM / edge / agent composition.
Patterns in this taxon (21)
- criticalAt most one auth library wired upab-000218 · ai-slop-code-drift
- infoAt most one charting libraryab-000236 · ai-slop-code-drift
- highAt most one client-side routerab-000227 · ai-slop-code-drift
- mediumAt most one component library familyab-000222 · ai-slop-code-drift
- mediumAt most one CSS approach dominatesab-000223 · ai-slop-code-drift
- criticalAt most one database driver in active useab-000219 · ai-slop-code-drift
- mediumAt most one date libraryab-000229 · ai-slop-code-drift
- highAt most one form libraryab-000220 · ai-slop-code-drift
- highAt most one global state managerab-000221 · ai-slop-code-drift
- highAt most one HTTP clientab-000225 · ai-slop-code-drift
- infoAt most one i18n libraryab-000235 · ai-slop-code-drift
- lowAt most one icon libraryab-000224 · ai-slop-code-drift
- criticalAt most one ORM in active useab-000217 · ai-slop-code-drift
- mediumAt most one payment processorab-000232 · ai-slop-code-drift
- lowAt most one toast/notification libraryab-000230 · ai-slop-code-drift
- mediumAt most one unit test frameworkab-000228 · ai-slop-code-drift
- highAt most one validation libraryab-000226 · ai-slop-code-drift
- lowNo conflicting duplicate package versionsab-000678 · code-maintainability
- lowNo duplicate packages at conflicting versionsab-000966 · dependency-supply-chain
- mediumOnly one analytics instance is initializedab-001699 · marketing-analytics
- mediumRouting pattern consistencyab-000231 · ai-slop-code-drift