Sessions 7e+7f: Grade adapter, normalize consolidation, computeFeatures, analyzeViaEngine1, scan/parlay migrated to engine1
This commit is contained in:
@@ -1,4 +1,8 @@
|
||||
const { analyzeProp } = require('./propAnalyzer');
|
||||
// ARCH-1 Step 4 (Session 7f): /api/scan/parlay legs now grade via
|
||||
// engine1 (computeFeatures → engine1 → gradeAdapter) instead of the
|
||||
// legacy `analyzeProp`. Response shape is byte-compatible. Parallel
|
||||
// resolution from PERF-2 is preserved (still inside Promise.allSettled).
|
||||
const { analyzeViaEngine1 } = require('./intelligence/analyzeViaEngine1');
|
||||
const { getOdds } = require('./oddsService');
|
||||
const { detectCorrelations } = require('./correlationEngine');
|
||||
const { gradeParlayFromLegs } = require('./parlayGrader');
|
||||
@@ -28,7 +32,7 @@ async function scanParlay(user, legs) {
|
||||
// than the old sequential loop. allSettled preserves leg order and
|
||||
// lets a single failed leg surface as an error stub instead of
|
||||
// crashing the whole parlay.
|
||||
const settled = await Promise.allSettled(legs.map((leg) => analyzeProp(leg)));
|
||||
const settled = await Promise.allSettled(legs.map((leg) => analyzeViaEngine1(leg)));
|
||||
const legResults = settled.map((s, i) => {
|
||||
if (s.status === 'fulfilled') return s.value;
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user