בס״ד

MIS Lineage — the family tree of Sam's trading brain (LIVING doc)

docs/MIS_LINEAGE.md · last changed (pre-VM history) · rendered from GitHub master

MIS Lineage — the family tree of Sam's trading brain (LIVING doc)

Purpose: preserve, formula-level, every generation of Sam's Market Intelligence System so the logic he built over years is never re-discovered or lost. This is "the heart of MIS." Built from a 9-agent deep-read (Jun 30, 2026) across the live sheets, Apps Script, forensic teardowns, and the formula archives.
Last updated: Tue Jun 30, 2026 · 4:23 PM EDT (NY). Canonical engine today = MIS/v2/Code.gs (frozen). Read this with MIS_OPERATOR.md (the beacon) + MIS_FSE_ARCHITECTURE.md.


The one-line genealogy

zGoogle Tracker (118 names, 4 flags) → v7.1 blueprint (thin, Oct 2025) → v7.1 rebuilt workbook (≈184 names, SACS born here, Apr 2026) → v11 family (183-ticker, 5-gate, 3 emails/day, broke Jun 2) → v2 (decomposed, 27 names, frozen, the clean re-pour).

The crucial truth: v2 is not a from-scratch design — it is a clean re-pour of v7.1's engine (it inherited the 56-column Momentum_Engine and the Snapshot gate cascade verbatim), with v11's 8 documented flaws fixed and v2's own cash-flow discipline added on top. The SACS formula has run unchanged from v7.1 through v2.


Generation 0 — zGoogle Finance Investment Tracker (the ancestor)


Generation 1 — v7.1 ("Momentum Architect"). NOTE: two artifacts under one label.

(A) v7.1 blueprintMIS/docs/MIS_v7.1_Production_Blueprint.md + Drive Doc 1DGILyPZEYr5Hx0QBTW7mHmaPGWJTri2EPbqnisks-og. Oct 18 2025. Thin: 13 tabs, 3 sample tickers, scoring = 6 columns, composite F=(B*2+D)/3. No SACS, no Flow, no gates. The clean theory: Data→Compute→Plan→Act→Score→Learn→Adapt; Portfolio_Start=25000; VIX bands 14/20/28/35.

(B) v7.1 rebuilt workbookMIS_v7.1_gsheet_forclaudeedit (Drive xlsx 1-q0W2T0UEkrDhEXcsAH-vAUQGaRkfD-z, 59 sheets, 53,604 formula cells) + generator MIS/archive/MIS_v7.1_AppsScript.js (buildMIS(), 1,302 lines). Built Apr 30 2026 — this is where the real machine and SACS were born.


Generation 2 — v11 ("Architect V11"). A FAMILY of 4 sheets + a dual engine.

The 4 sheets (same blueprint, diverged):
| Sheet | ID | Was | Status |
|---|---|---|---|
| Architect V11 | 1HEmRev… | reference scoring engine (SACS range 3.7–70.4); became the v1-script sheet | retired 6/2 |
| MASTER v11.0f | 1cosuFr… | most-evolved production: live Schwab API, 3×/day since 3/12, macro tape, news, buy-tickets | archived; plaintext-creds P0 (residual in CONTROL tab) |
| Dead 1F31z… | 1F31z… | TSLA fork; scoring collapsed to #NAME? (named ranges/functions didn't copy) | DEAD; mined |
| Microservices | 1MU_Ni… | sandbox firing "⚡ Power Hour" email; no weekend skip = the duplicate-email culprit | killed; mined |

The dual-engine problem (the core lesson): two scoring implementations co-existed —
- (A) Sheets formula engine (Momentum_Engine, GOOGLEFINANCE) — the all-183 engine.
- (B) Apps Script JS engine (MIS_ARCHITECT_COMPLETE_FIXED.js) — re-pulls each ticker from Yahoo Finance REST, scores in JS, emails Power-Hour.

Same concepts, different SACS math + thresholds → the surfaces disagreed (Apr 27: "5 Lean In incl INTC" vs "No setups, INTC blocked"). This is exactly what the FSE architecture was written to kill ("no surface independently classifies").

Why v11 broke (3 stories):
1. Scoring design (8 flaws, SACS_ZScore_Analysis.docx): ZScore on price levels not returns (autocorrelation noise); ZScore→SACS correlation 0.014 (Flow is the real driver at 0.766); SACS ceiling 70.4 so the ADD tier was barely reachable; RR_13W divide-by-near-zero phantoms (AMGN 58M); single-day IPQ; 61% crammed in the 40–60 band; no trend-alignment factor; no regime-adaptive weighting. Compound = the "inversion problem": the RiskGate rejected the best high-ATR setups (LLY 70/Flow 100 → WATCH) and ranked calm low-ATR names #1 (BLK) because their tight stops passed the gate. It rewarded boring stocks.
2. Production safety (2 P0s): Schwab creds plaintext in KEY_VALUE; uncapped sizer firing 63 simultaneous BUY LMTs, some at 700% of portfolio (SGOV 1,746 sh = $175K on a $25K book).
3. Structural decay: non-tradeable indices/bonds/leveraged ETFs generated phantom tickets; 3 bad sector tags corrupted analytics; ghost/duplicate tabs disagreed; #NAME? on the dead fork; weekend duplicate emails.

Retirement: all v1/v11 email triggers killed 2026-06-02; history chose "option four: fresh v2 build" over patching.


Generation 3 — v2 (current, canonical, FROZEN)


What must never be lost (the preserved heart)

  1. SACS = FlowStrength×0.5 + RS_SPY×25 + RS_Sector×25 (+ the FlowStrength build). Unchanged tracker→v7.1→v11→v2.
  2. The tracker's 4 flags + thresholds (Drop 85% / Re-entry 80% of 13W-high / Overweight 14% / Momentum 87.5%) and conviction sizing 0.5/1/2%.
  3. The 8 v11 flaws + their exact fixes (runSACSUpgrade.js) — so we never re-introduce the inversion problem / 70.4 ceiling / price-level z-score.
  4. The 183-ticker universe (docs/MIS_UNIVERSE.md) + the 183 → 3–6 funnel with honest pass rates (14.7% risk / 3.3% final).
  5. The 7-step decision chain: Regime gate → Flow filter → ZScore (returns, sector-relative) → Structure → Catalyst decay → Sizing (ATR, $250 risk) → Rank-and-select 3–5.
  6. v2's discipline additions: 2.5%/mo clock, −20% floor, broker-verified net equity (not the margin-phantom gross), mandate/account split, wash-sale (still to wire).

Architectural law carried forward (FSE): one source of decision truth; no surface independently classifies. The whole point of v2 is to end the v11 dual-engine disagreement.


Source files (for re-extraction)

Source trail · docs/MIS_LINEAGE.md @ master · rendered 2026-07-02 7:23 PM EDT by scripts/build-docs.py · the .md in the repo is the truth; this page is the phone-readable view