Sessions 7e-7g: Grading path unified - adapter, computeFeatures, analyzeViaEngine1, all routes migrated, dead code removed

This commit is contained in:
Kev
2026-06-10 10:23:55 -04:00
parent 4815ceac03
commit 4e18eb1efe
9 changed files with 181 additions and 712 deletions
+7 -4
View File
@@ -1,10 +1,13 @@
// PERF-1 (Session 7d): /api/analyze caches via Redis. Second identical
// call must hit cache (returns _cache:'HIT', does not re-invoke
// analyzeProp). Different keys still miss.
// call must hit cache (returns _cache:'HIT', does not re-invoke the
// analyzer). Different keys still miss.
// ARCH-1 (Session 7g): the analyzer target moved from propAnalyzer to
// the unified analyzeViaEngine1. Mock target updated to follow; the
// caching behavior under test is unchanged.
const mockAnalyze = jest.fn();
jest.mock('../../src/services/propAnalyzer', () => ({
analyzeProp: (...args) => mockAnalyze(...args),
jest.mock('../../src/services/intelligence/analyzeViaEngine1', () => ({
analyzeViaEngine1: (...args) => mockAnalyze(...args),
}));
const mockStore = new Map();