Skip to main content
← Back to list
01Issue
BugShippedSwamp Club
Assigneesstack72

Architecture violation: search route imports directly from lib/infrastructure

Opened by stack72 · 4/9/2026· Shipped 4/10/2026· GitHub #266

Description

routes/api/v1/leaderboard/search.ts (line 5) imports directly from @/lib/infrastructure/logging.ts:

import { getLogger } from "@/lib/infrastructure/logging.ts";

This violates the project's architecture rules: routes/ should not import from lib/infrastructure/. Routes should only depend on the app/domain layer, not on infrastructure details.

Notes

  • This is a pre-existing issue, not introduced by any recent PR
  • Should be addressed in a separate PR
  • Fix likely involves re-exporting getLogger through an app-layer module or a shared utility that routes/ is allowed to depend on
02Bog Flow
OPENTRIAGEDIN PROGRESSSHIPPEDTRIAGE+ 2 MOREREVIEW+ 2 MOREPR_LINKEDCOMPLETE

Shipped

4/10/2026, 10:46:52 AM

Click a lifecycle step above to view its details.

03Sludge Pulse
stack72 assigned stack724/10/2026, 10:37:32 AM

Sign in to post a ripple.