Brings the Space up to date with the audit fixes.
Availability:
- sqlite3 shim re-exports the real Row/Connection/Cursor. The stub Row broke
the SQLite path outright and the missing Connection broke pandas.read_sql_query
at 17 call sites, which silently dropped every request to the baseline heuristic.
- init_db() no longer aborts module import, so a database outage returns
503 DEGRADED from /health instead of crash-looping uvicorn.
- Unknown user_id returns 404 rather than scoring default features and leaking a
foreign-key error; all scoring connections are wrapped in try/finally with
rollback, so one failed request no longer leaves a write lock behind.
Scoring correctness:
- Snapshot date defaults to the user's own latest transaction rather than the
global maximum, which had left 98% of users on the cold-start heuristic.
Adds a data_freshness block reporting snapshot age.
- Removes the synthetic ensemble that added np.random.normal() noise to the
XGBoost output four …