Skip to main content

Find AI supply-chain bottleneck ('chokepoint') stocks โ€” a transparent, auditable reproduction of Serenity's framework. Not financial advice.

Project description

๐Ÿชข Serenity Chokepoint Engine

Don't buy the tuna. Buy the shiso leaf.

An auditable, open-source reproduction of the AI supply-chain "Chokepoint Theory" โ€” the framework behind one of the most talked-about retail traders of the decade.

It reverse-engineers the AI-compute supply chain, hunts the physically irreplaceable bottlenecks the entire buildout must flow through, and builds a high-conviction stock pool that maximises return under an as-certain-as-possible win rate.

License: MIT Python 3.10+ Tests PRs welcome Not financial advice

pipx install serenity-chokepoint
serenity pool

ไธญๆ–‡่ฏดๆ˜Ž ยท Reproduce / Replace data ยท How it works ยท Performance ยท Critique it


โš ๏ธ Read this first

This is an educational reproduction of a publicly described investment framework, built for people to study and tear apart.

  • ๐Ÿงช The bundled data are illustrative placeholder estimates, hand-assembled to demonstrate the method โ€” not a live signal. Replace them with verifiable data (see REPRODUCE.md) before trusting any number.
  • ๐Ÿ’ธ Nothing here is financial advice. Small-cap, illiquid, highly volatile names. You can lose everything.
  • ๐Ÿ™… Not affiliated with, endorsed by, or connected to Serenity (@aleabitoreddit) in any way. This is an independent reproduction of ideas they shared publicly.
  • ๐Ÿ“ˆ The performance below comes from backtests with real, disclosed limitations (survivorship, a roaring AI bull market). We show you the unflattering parts on purpose.

If that's fine with you โ€” welcome. Let's hunt chokepoints.


๐Ÿฃ The idea in 30 seconds

In a piece of sushi, the tuna belly is the expensive part โ€” but the shiso leaf is the one thing you cannot skip. The same is true of the AI boom.

Everyone owns the "tuna": NVIDIA, TSMC, the hyperscalers. The alpha hides in the "shiso leaf" โ€” the tiny, overlooked, near-monopoly suppliers buried 4โ€“7 layers deep in the supply chain, whose failure would halt the entire buildout.

Just as ~20% of the world's oil must pass through the Strait of Hormuz, the photonics buildout must pass through a handful of indium-phosphide substrate, laser, and feedstock suppliers. Control the chokepoint, control the buildout.

A chokepoint is a node that is, all at once:

๐Ÿ”’ Concentrated ๐Ÿงฑ Irreplaceable โณ Qualification-gated ๐Ÿ•ต๏ธ Undiscovered
Top 1โ€“3 suppliers > 70% share Material-science moat, no second source 12โ€“24 month design-in cycle Small cap, low institutional ownership

When demand grows at 50โ€“100% CAGR and the choke can't, the screw gets repriced violently. That repricing is what the strategy is built to catch โ€” early, and only when the win is structurally likely.


โš™๏ธ The strategy, as one loop

   DEEP RESEARCH                CERTAINTY GATE                 RETURN MAXIMISER
 โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”         โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”       โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
 โ”‚ map the AI      โ”‚         โ”‚ keep only names whose โ”‚       โ”‚ among survivors,    โ”‚
 โ”‚ supply chain,   โ”‚  โ”€โ”€โ”€โ”€โ–ถ  โ”‚ win is structurally   โ”‚ โ”€โ”€โ”€โ”€โ–ถ โ”‚ concentrate capital โ”‚
 โ”‚ score every     โ”‚         โ”‚ certain:              โ”‚       โ”‚ by win ร— upside so  โ”‚
 โ”‚ node's          โ”‚         โ”‚ โ€ข survives red-team   โ”‚       โ”‚ the pool MAXIMISES  โ”‚
 โ”‚ chokepoint-ness โ”‚         โ”‚ โ€ข win prob โ‰ฅ 60%      โ”‚       โ”‚ return GIVEN the    โ”‚
 โ”‚ + asymmetry     โ”‚         โ”‚ โ€ข chokepoint โ‰ฅ 60     โ”‚       โ”‚ win-rate holds      โ”‚
 โ”‚                 โ”‚         โ”‚ โ€ข P(EV>0) โ‰ฅ 60%       โ”‚       โ”‚ โ†’ CORE / BUILD /    โ”‚
 โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜         โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜       โ”‚   STARTER tiers     โ”‚
                                                            โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

It is not a multi-factor trading system. It does one thing: deep research โ†’ a high-conviction pool โ†’ maximise return under a win-rate condition.


๐Ÿš€ Quickstart

# install once, get a global `serenity` command (like any CLI tool)
pipx install serenity-chokepoint        # or:  uvx serenity-chokepoint pool
                                         # or:  pip install serenity-chokepoint

serenity pool                            # ๐Ÿ‘ˆ the curated high-conviction pool
serenity pool --live                     # tighten it with live Yahoo Finance data
serenity thesis AXTI                     # ๐ŸŽฏ one-page full thesis: moat ร— timing ร— risk
serenity growth AXTI                     # the ramp-inflection (timing) lens
serenity scan                            # ๐Ÿ›ฐ๏ธ momentum ranking radar (NOT the method)
serenity scan --tickers NVDA,AXTI,SIVE   # scan your own watchlist
serenity validate AXTI                   # deep-dive one ticker (score + red-team)
serenity supply-chain                    # the 7-layer map + structural chokepoints
serenity backtest --oos                  # the honest out-of-sample test
serenity --help
๐Ÿ“‹ Sample serenity pool output (click to expand)
SERENITY CHOKEPOINT โ€” HIGH-CONVICTION STOCK POOL (deep research -> certainty gate -> max return)
Certainty gate: survives red-team + win_prob>=60% + chokepoint>=60 + P(EV>0)>=60%
Pool size: 8 names.   Objective: maximise return GIVEN the win-rate condition.

โ”€โ”€ TIER 1: CORE (highest conviction) โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
  SIVE   Sivers Semiconductors   L3 Laser / light source
         weight 23.2% | win 68%  P(EV>0) 100% | upside 5.0x  exp.return +253% | choke 74 resil 0.69
         thesis : CW laser light-source chokepoint for co-packaged optics; 2027-28 ramp; AVGO/MRVL buyout optionality.
         catalyst: UNDISCOVERED, MOAT:LONG-QUAL, M&A-TARGET | top risk: dilution / cash burn before ramp
  AXTI   AXT Inc.                L4 Substrate (InP/GaAs)
         weight 17.4% | win 72%  P(EV>0) 100% | upside 3.8x  exp.return +191% | choke 83 resil 0.77
         thesis : Western InP-substrate chokepoint ('Strait of Hormuz' of photonics); vertically integrated feedstock.
         catalyst: CONCENTRATED(>70%), MOAT:LONG-QUAL | top risk: China gallium/indium export controls
โ”€โ”€ TIER 2: BUILD โ”€โ”€  POET ยท AEHR ยท VNP
โ”€โ”€ TIER 3: STARTER / watch โ”€โ”€  IQE ยท INPACT ยท SOI

POOL BLEND: weighted win-prob 67%   weighted expected return +153% (per $1, on the modelled horizon)

๐Ÿ›ฐ๏ธ Radar vs. deep dive โ€” two different tools

serenity scan (radar) serenity pool (deep dive)
Universe broad (~60 names, or your --tickers) a fixed, hand-researched watchlist
Signal live, price-only ramp factor (12-1 momentum + re-rating gap + small-cap tilt) full structural Chokepoint Score + asymmetric odds + red-team
Changes? yes โ€” daily, with the market; surfaces NEW names stable; a high-conviction book shouldn't churn
Use it to find candidates worth researching commit to the ones that survived research

So the workflow is: scan to spot movement โ†’ thesis/validate/growth to do the real analysis โ†’ pool to size. serenity thesis <T> is the one-page synthesis โ€” it fuses the three lenses (structural moat ร— growth timing ร— red-team risk) into a single verdict (๐ŸŽฏ PRIME SETUP, โณ POSITIONED EARLY, โ›” FAILS VALIDATION, โ€ฆ).

 # TICKER   SCORE  MOM(12-1)  RAMP    MKT$B   note
 1 AXTI     100.0      ...x     ๐Ÿ”ฅ      6.7   curated
 6 ICHR      90.7      ...x     ๐Ÿ”ฅ      2.5   NEW find   โ† radar surfaced it; go research it

๐Ÿ“ˆ Growth analysis โ€” the ramp-inflection lens (serenity growth)

This is the analytical core applied to growth, and it is not a generic "high revenue growth = good" screen. Serenity's thesis monetises one specific moment โ€” the volume-ramp inflection, when a qualified chokepoint supplier goes from sampling to mass production and the economics flip: revenue accelerates, gross margin turns up, and operating losses collapse. Bought before the Street re-rates it, that inflection is the asymmetric trade.

serenity growth AXTI       # one ticker, full ramp breakdown (live, free data)
serenity growth --pool     # ramp-stage table across the curated chokepoint pool
SERENITY GROWTH ANALYSIS โ€” AXTI (ramp-inflection lens)
  GROWTH SCORE : 72.1/100      stage: ๐Ÿš€ EARLY RAMP (margin inflection)
     revenue acceleration     0.50  โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ
     margin inflection        1.00  โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ   โ† gross margin +36pts, op margin +47pts
     revenue growth (YoY)     0.78  โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ
     reinvestment (R&D)       0.75  โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ
     growth-adj. valuation    0.51  โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ

The Growth Score weights, in order of Serenity-relevance: acceleration (25), margin inflection (25), revenue growth (22), reinvestment/R&D (13), and a venture-style growth-adjusted valuation (15) โ€” not trailing P/S.

๐Ÿ”‘ Two scores, one thesis. The chokepoint score is the structural bet (the moat); the growth score is the timing (has the ramp started?). A pre-ramp chokepoint deliberately scores LOW on growth โ€” that's the point: you buy the moat before the ramp shows up in the numbers, and use growth to watch the inflection arrive. High chokepoint + turning-up growth = the ideal Serenity setup.

๐Ÿ›ฐ๏ธ A momentum ranking, clearly labelled (serenity scan)

serenity scan ranks a broad universe by vol-adjusted 3m/6m/12m momentum. It is a convenience radar, explicitly NOT the method โ€” momentum only tells you what already moved. Use it to spot movement, then do the real work with growth + validate.

๐Ÿง  How it works

Every node in the supply chain gets two things: a Chokepoint Score (is it a real bottleneck?) and an asymmetric-payoff estimate (is it a high-odds bet?).

1. Chokepoint Score (0โ€“100) โ€” six weighted pillars

Pillar Weight What it captures
Supply concentration 22 Top-3 share; > 70% is the hard gate, then curves up non-linearly
Irreplaceability 22 Material-science moat ร— qualification-cycle length
Demand/supply gap 16 AI end-market CAGR running ahead of the node's capacity CAGR
Qualification barrier 16 Already designed-in + long cert cycle = competitors years behind
Information asymmetry 14 Small cap + low institutional ownership + thin coverage (the alpha)
Catalyst / optionality 10 Insider buying, short interest, M&A premium, vertical integration

2. Asymmetric payoff

The structural moat maps to a win probability; the ramp multiple (venture-style, not trailing P/S) maps to upside; dilution + valuation + tech-path + liquidity risk map to downside. Out come the odds ratio, expected value, and a deep-fractional-Kelly position size.

3. The supply-chain graph & demand model

A NetworkX dependency graph independently corroborates which nodes are chokepoints topologically (high betweenness / reverse-PageRank), and a simple compute-ร—-optical-intensity model sizes the demand-vs-capacity shortfall.

Chokepoint screen: supply-chain graph, scores, odds-vs-conviction, demand vs capacity

๐Ÿ“Š Does it actually work?

Here's where most strategy repos show you a hockey stick and hide the caveats. We built an engine to attack our own picks, and we publish the unflattering findings. Read all three.

1๏ธโƒฃ In-sample portfolio backtest (trailing 2y, real prices)

Book Return CAGR Sharpe
Chokepoint survivors (Kelly) +1506% 58% 1.77
Equal-weight universe +1140% 51% 1.67
๐ŸŸ NVDA (the "tuna") +91% 11% 0.53
QQQ +65% 9% 0.74

2๏ธโƒฃ Event study โ€” does "qualification โ†’ ramp" actually re-rate?

Using a +12% single-day gap as a proxy for a qualification/ramp event: the average 60-day forward return is +58.7% vs a +28.4% baseline โ†’ +30.3% edge (227 events, 63% hit-rate). Re-rating events continue, they don't mean-revert. โœ…

Backtest equity curves and event-study

3๏ธโƒฃ The honest one: genuine out-of-sample walk-forward

Broad fixed universe (winners and laggards), point-in-time price-only signal, train/test split, no look-ahead.

Window Strategy CAGR SOXX CAGR Verdict
In-sample (2019โ€“23) 22.2% 25.2% ๐Ÿ”ด slightly LAGS โ€” proof it wasn't curve-fit
Out-of-sample (2023โ€“26) 143.9% 54.1% ๐ŸŸข beats the semiconductor sector itself by +90 pts

The train window underperforming is the point: the out-of-sample edge can't be from tuning on the test data. And the benchmark is SOXX โ€” so this is selection within semis beating owning all semis, not just sector beta.

Out-of-sample walk-forward equity curve

๐Ÿ”ฌ ...and we stress-test that, too

Per-regime excess and rolling-fold distribution
  • 2022 bear: the factor fell โˆ’30.9% vs SOXX โˆ’35.1% โ€” a +4.2pt cushion, no momentum crash. ๐ŸŸข
  • Regime-dependent: it lagged in the 2020/2021/2023 bull years; the edge is concentrated in 2024โ€“26, exactly the late volume-ramp phase the thesis is about. ๐ŸŸก
  • Rolling 24 folds: beats SOXX in 62% of windows โ€” but median Sharpe 1.01 vs SOXX 1.27: higher return, higher volatility, edge in the right tail. It's a high-odds book, not a low-risk one. ๐ŸŸก

Bottom line: the alpha looks real but regime-dependent and volatile โ€” consistent with a concentrated, high-conviction, ride-the-ramp strategy. We'd rather you know that going in.


๐Ÿฅท We attack our own thesis (the part we're proudest of)

The framework's own rule is: before you size up, hand the thesis to the harshest Devil's Advocate. So the engine ships with an adversarial validator:

serenity screen --live --adversarial
  • 9 deterministic attack vectors โ€” valuation already priced-in, supply elasticity / second-source, CPO-vs-pluggables tech-path, "already discovered", dilution, microcap liquidity, customer concentration, geopolitics โ€” each scored with a severity and a rebuttal.
  • Monte-Carlo on the payoff assumptions โ†’ P(EV > 0).
  • Survival gate: only names that survive the red-team make the pool.
  • Optional multi-LLM red-team hook (GPT / Claude / Gemini), off by default.

On live data this correctly kills names the naive score would keep โ€” e.g. a name trading at ~1677ร— EV/Sales, or one that's already 90%+ institutionally owned.


๐Ÿงฉ Architecture

serenity_chokepoint/
โ”œโ”€โ”€ chokepoint_data.py   # curated universe of supply-chain nodes + attributes
โ”œโ”€โ”€ scoring.py           # Chokepoint Score (0โ€“100) + asymmetric-odds engine
โ”œโ”€โ”€ supply_chain.py      # NetworkX dependency graph + topological chokepoints
โ”œโ”€โ”€ demand_model.py      # AI-compute โ†’ optical-interconnect demand projection
โ”œโ”€โ”€ adversarial.py       # Step-3 red/blue team + Monte-Carlo (+ optional LLMs)
โ”œโ”€โ”€ live_data.py         # Yahoo Finance refresh of market-derived fields
โ”œโ”€โ”€ backtest.py          # in-sample portfolio + factor + event study
โ”œโ”€โ”€ oos_backtest.py      # out-of-sample walk-forward + regime/rolling robustness
โ”œโ”€โ”€ pool.py              # THE PRODUCT: certainty-gated, return-maximising pool
โ””โ”€โ”€ cli.py               # the `serenity` command

Runs fully offline with zero API keys; --live is the only thing that touches the network.


๐Ÿ” Reproduce & replace the data

The bundled numbers are placeholders. REPRODUCE.md gives a per-field source table โ€” which fields auto-refresh from market data and which need real research (top-3 share, qualification cycle, ramp multiple) โ€” plus how to reproduce every chart and run the offline test suite:

pip install serenity-chokepoint[dev]
pytest -q          # 16 network-free tests pinning the engine's invariants

๐Ÿคบ Come prove us wrong

This project exists to be critiqued. The most valuable contributions:

  1. Data โ€” overturn a node's chokepoint rating with real top-3 share / qualification facts.
  2. Scoring โ€” argue a pillar weight or curve is wrong.
  3. Odds model โ€” challenge the win-prob mapping, the up/down assumptions, the Kelly cap.
  4. Backtest โ€” find residual look-ahead/survivorship, or contribute a cleaner universe that includes delisted names.
  5. Attack vectors โ€” add a missing one (patent cliff, quantified customer concentrationโ€ฆ).

Open an issue or a PR. Run pytest -q first. Be ruthless โ€” that's the whole point.


๐Ÿ™ Acknowledgments

  • Serenity (@aleabitoreddit) โ€” for sharing the Chokepoint Theory publicly. This is an independent reproduction; all errors are ours, not theirs.
  • virattt/ai-hedge-fund (MIT) โ€” the project this engine was first prototyped inside.
  • The photonics / CPO research community (TrendForce, SemiAnalysis, Yole, and the public write-ups cited in REPRODUCE.md).

๐Ÿ“„ License

MIT โ€” see LICENSE. Use it, fork it, break it. Just don't blame us for your trades.

โญ If this made you think differently about the AI supply chain, star it โ€” and then try to break it.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

serenity_chokepoint-0.4.0.tar.gz (786.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

serenity_chokepoint-0.4.0-py3-none-any.whl (63.6 kB view details)

Uploaded Python 3

File details

Details for the file serenity_chokepoint-0.4.0.tar.gz.

File metadata

  • Download URL: serenity_chokepoint-0.4.0.tar.gz
  • Upload date:
  • Size: 786.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for serenity_chokepoint-0.4.0.tar.gz
Algorithm Hash digest
SHA256 21e978b2abb82dc96bd926041017e31308e52d79ac365c20238abcc9892328a5
MD5 dfeb8be8fa8de5c02022accaa60bc652
BLAKE2b-256 55d29ed66f3b15e95b8cca1abf49c719d974f63c030775b79f0c9be69934be11

See more details on using hashes here.

File details

Details for the file serenity_chokepoint-0.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for serenity_chokepoint-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 97cd8185aee43638f149e1a707ce18f0b6d4bca43bd8e0c66aaaa7209d47924b
MD5 a53042c368795bc2f6a5b2c790395395
BLAKE2b-256 351f6396719ce42a624f0b178420411475987b225792613206486aa851b62c25

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page