Factor-First AI Investment Platform Narrated by a Six-Persona Committee
Built a factor-scoring engine that keeps a dated record of its forecasts and grades them against later outcomes. When the strongest signal from its historical tests failed out of sample, it stayed out of the engine.
The Problem
Standard brokerage tools expose raw financial metrics but do not synthesize them into a conviction-level judgment. Investors still do their own mental weighting, often inconsistently and without a documented framework.
Financial APIs are a commodity. The missing piece is a repeatable scoring architecture that combines quantitative fundamentals with qualitative judgment and stays trustworthy enough to run with personal capital.
A one-off grade is not enough: the same engine has to keep portfolio grades fresh, publish research, and retain what it said before the outcome was known. A published forecast record makes evaluation possible; it does not establish predictive edge.
The Approach
Converged on a four-factor composite (ADR-013): Quality, Valuation, Momentum, and Health each score independently and aggregate into a single weighted 0-100 number, with quality carrying the heaviest emphasis. Growth was eliminated as a standalone factor, with its signals folded into Quality.
Built a six-persona investment committee (Graham, Buffett, Munger, Lynch, Dalio, Bogle) that narrates the factor scores in each investor's voice rather than recomputing them in parallel, and surfaces which factor and which persona drove conviction.
Added Piotroski F-Score and Altman Z-Score as distress signals with teeth: a deteriorating F-Score takes a graduated penalty inside the Health factor, and an Altman Z below 2.10, inside the grey zone, attenuates the composite linearly toward a floor of 40, reaching it at 1.50, so a weak balance sheet cannot be masked by a strong factor.
Made the engine market-aware: live SPY drawdown plus a VIX cooling-off counter gate SELL/TRIM recommendations, so the model doesn't tell you to sell into a panic.
Pointed the same scorer at a several-hundred-name large-cap universe every night and surfaced it three ways: a public Market's Best leaderboard at caskeycoding.com/market-best, split by issuer domicile (US-domiciled names, and foreign-domiciled names with ADRs), a private watchlist Discovery scanner for A/A+ opportunities, and a chat-driven universe screener.
Kept research generation in the shared engine and built a separate public publication layer that reads its saved outputs. It publishes grades and cited research without recalculating scores or calling a model per page view, and shows when each research item was generated so readers can judge its freshness.
Preserved the forecast record separately from today's view: the engine logs each forecast with its date, past forecasts stay fixed, and realized outcomes are attached once as their horizons resolve. Missing prices remain explicitly missing, and immature outcomes remain pending. Current factor snapshots refresh on each export and are never presented as the historical inputs to an older forecast.
Built backtesting harnesses to measure historical ranking behavior: a daily engine self-test computes the information coefficient of the composite against forward market-relative returns at 1m/3m/6m/12m horizons, and an offline panel re-scores its historical universe with decile spreads and per-factor IC. Historical ranking behavior is measured only; there is no demonstrated edge net of costs, and historical magnitudes are survivorship-affected upper bounds. Any change to a weight, factor, or formula has to clear a measurable decision gate on that panel before it merges.
Wrapped everything in production guardrails: a Response Validator (ticker closure, confidence floor, mandatory disclaimer, no forecasting) on every LLM output, immutable hashed audit records for every review, and async execution to clear the API timeout. Public exposure sits behind per-IP and per-session rate caps, a hard daily cost ceiling, and a default-off kill switch. The no-forecasting rule binds the language model's narration, which may not predict prices or returns; the dated forecasts in the publication record come from the scoring engine and are stored before their outcomes are known.
The Impact
- The evaluation changed a decision: the best signal found passed its in-sample checks, failed to establish a durable out-of-sample edge, and was not deployed
- Every forecast the engine makes is logged with its date and graded against realized returns when its horizon resolves, so a reader can see what was said before the result without confusing today's grade with an older prediction
- Returns a repeatable 0-100 composite and A+ to F grade for a requested ticker in the signed-in grader, with six-persona narration underneath: one consistent framework across tickers instead of ad-hoc mental weighting
- Grew from a single-ticker grader into a platform: portfolio review by Fidelity CSV or phone-snapshot upload, a net-worth tracker with trend, a daily auto-review that keeps grades fresh, and a chat assistant that answers questions about your own review data under the same not-investment-advice disclaimer
- A nightly scan scores several hundred large caps and powers the public, no-login Market's Best leaderboard plus a private Discovery watchlist scanner, at zero per-view cost
- Distress signals and market-state cooling-off keep the model consistent: a weak balance sheet pulls the grade down toward a floor, and SELL/TRIM signals are suppressed during drawdowns and VIX spikes
- Historical ranking behavior is measured only; there is no demonstrated edge net of costs, and historical magnitudes are survivorship-affected upper bounds. The daily information-coefficient self-test and offline panel are measurement gates, and every review is written as an immutable, hashed audit record
Evidence
Related
Market's Best
The top-graded stocks from the latest market scan. No sign-in needed.
Grade my portfolio
Get an AI review of a fixed sample portfolio.
Building a Personal Finance Reviewer: What Survived the Rewrite
A personal portfolio reviewer where the scoring is deterministic and the AI only narrates. The architecture that held up after I had to rewrite the model it was built on, and why that boundary is the whole point.
A Boring Design Let Me Run a Black Swan on a Tuesday
Keeping my portfolio reviewer's engine deterministic let me replay a synthetic market crash through its scoring code. The run exposed a potentially costly interaction, with a harness shortcut that limits what the result says about live behavior.
When the Spec Was Wrong: Rewriting a Shipped Decision
Two weeks after I shipped a post about a scoring engine I'd built, I rewrote the spec it was based on. Here's what I learned, and why I had an AI agent do the literature review.
Specs in, deploys out, no keyboard
Two production sites, a blog, and two personal AI projects, shipped this week from a phone. The chain is voice dictation into Perplexity Computer, a spec, then Claude Code on the web. The interaction model is the story.