The article describes Nifty Mac Desk, a local-first AI trading desk architecture built on fail-closed principles that prioritize safety over automation. The system splits responsibilities: a VPS publishes completed 15-minute bar snapshots with 49 features for a shadow XGBoost model (horizon h2), while a local Mac dashboard handles inference, evidence recording, outcome settlement, and promotion gating. The shadow lane produces a rank, never a calibrated probability, and is strictly prohibited from executing orders. A promotion gate requires 10 sessions, 150 settled outcomes (full horizon elapsed, no interpolation), stale snapshot fraction below 5%, calibration drift under 10%, and explicit human sign-off; critically, the gate function can only return False, making promotion a deliberate manifest change rather than an automated event. Stale data is rejected via freshness budgets (e.g., 20 minutes for 15m bars, 60 seconds for positions), returning "STALE" status without generating new predictions. Deduplication via a persistent ledger keyed by session, bar timestamp, and model ID prevents double-counting across restarts. The Mac launcher verifies SSH host fingerprints, repairs the virtual environment, auto-selects a free localhost port, and employs bounded exponential backoff (capped at 60 seconds) to survive network outages gracefully. A separate 5-minute surge challenger logs frozen entry scores and outcomes to append-only Parquet files under a shadow_evidence directory. Eight architectural refusals — including no partial-bar scoring, no auto-promotion, no stale-driven positions, and no bundled secrets — are enforced by automated tests. Operational trade-offs include the Mac needing to stay awake, clock synchronization requirements, and no intraday execution capability, but the design prevents the catastrophic failure of acting on confident, stale, unvalidated models.

Read original