Skip to main content
← Back to list
01Issue
BugOpenSwamp Club
AssigneesNone

Architecture violation: search route imports directly from lib/infrastructure

Opened by stack72 · 4/9/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 PROGRESSSHIPPED

Open

4/9/2026, 4:44:28 PM

No activity in this phase yet.

03Sludge Pulse

Sign in to post a ripple.