Sessions 7e+7f: Grade adapter, normalize consolidation, computeFeatures, analyzeViaEngine1, scan/parlay migrated to engine1

This commit is contained in:
Kev
2026-06-10 09:28:30 -04:00
parent 012c0ef47e
commit 4815ceac03
10 changed files with 952 additions and 11 deletions
+16 -2
View File
@@ -411,8 +411,22 @@ No circular imports detected.
### ARCH — Architecture
- **[ARCH-1] Dual grading paths.** Severity: Medium. Status:
**PARTIAL in Session 7e**Step 1 of the migration (the adapter)
is complete and tested. Steps 2-6 deferred per ESCAPE HATCH.
**PARTIAL in Session 7f**/api/scan/parlay migrated to engine1.
/api/analyze/{prop,batch} stayed on legacy after Escape Hatch
(integration test asserts specific legacy-engine grade values).
/api/bets/* doesn't touch the legacy path at all (verified by grep).
Dead-code removal blocked because /api/analyze still imports
analyzeProp.
Adapter, computeFeaturesForProp, and analyzeViaEngine1 helpers all
shipped and tested. Future migration can flip the analyze route any
time the integration test mocks are updated to drive the new
upstream chain.
ORIGINAL Session 7e ARCH-1 narrative below for history.
**PARTIAL (carried from 7e)** — Step 1 of the migration (the adapter)
is complete and tested. Steps 2-6 partially executed.
Step 1 ✓ — `src/utils/gradeAdapter.js` translates engine1 output
into the legacy shape `DemoScan` reads. 26 unit
tests covering grade collapse, confidence math,