/** * src/services/quality.ts * ========================= * Shared singleton for the quality route group (app/api/0pt/quality/*), * matching src/services/source-registry.ts's precedent: constructing the * service once here (instead of `new QualityService()` per route module) * keeps rules/runs/issues registered via one route visible to another * within the same running process — the same "not even a shared * process-wide singleton" defect BEFORE_STATE.md §1 found and fixed for the * Source Registry would otherwise recur here. * * This is also the seam the Python engine's quality bridge * (services/api/workers/quality_bridge.py) calls through over HTTP — * see app/api/0pt/quality/bridge-run/route.ts. */ import { QualityService } from "../quality/quality-service"; export const qualityService = new QualityService();