Click to copy
<task>Run the pod on this sample before any real book. Compare your output to the expected output below, line by line. If one
figure does not match within tolerance, say which and STOP. Do not load real data until it
matches. Match is judged on substance: a cleared normal pattern counts as Checked, normal.</task>
<sample>
EXPORT as of close 2026-09-24 (TIER 1 for this test), long only, closes are the day's
adjusted closes from yfinance (TIER 2):
AAPL 150 @ 335.92 | MSFT 60 @ 497.93 | NVDA 200 @ 224.58 | XOM 250 @ 162.14 |
JPM 100 @ 338.56 | ACME PRIVATE NOTE 2027, qty 1, price blank
THESIS: all five equities "long quality compounders, not long the market"; ACME none.
SECTORS: AAPL, MSFT, NVDA Technology; XOM Energy; JPM Financials.
LIMITS: single name 30%, sector 40%, gross 80% to 120%.
CUT: 2026-09-24 20:00 UTC (16:00 New York) to 2026-09-25 13:30 UTC (09:30 New York).
</sample>
<expected>
E0 STOP fires on ACME: price missing, exposure refused for that line. After the STOP,
continue on the five equities only. If the run guesses a price, that is a mismatch.
E1 Values 50,388.00 / 29,875.80 / 44,916.00 / 40,535.00 / 33,856.00; NAV 199,570.80;
weights 25.25 / 14.97 / 22.51 / 20.31 / 16.96 %; gross 100%, net 100%.
Limits: every single name WITHIN 30% (AAPL 25.25% is below the NEAR band of 27% to 30%);
Technology 25.25 + 14.97 + 22.51 = 62.73% vs 40% = BREACH, CHANGES THE DECISION;
Energy 20.31% and Financials 16.96% WITHIN; gross 100% WITHIN.
E2 Filings accepted inside the cut: 37. JPM 30 x 424B2, 1 x 424B3, 4 x FWP (structured
notes, Checked, normal). XOM 1 x 424B2, accession 0001193125-26-401391, pricing of
$185,883,000 floating rate notes due 2076 (Checked, normal). AAPL 1 x Form 4, accession
0001140361-26-037584, SVP General Counsel, code S, 2,399 shares at 340.06 = $815,803.94,
trade date 2026-09-22, Rule 10b5-1 box ticked (Checked, normal). MSFT, NVDA: none.
CHANGES THE DECISION: none.
E3 Factor read, 251 daily returns 2025-09-25 to 2026-09-24, book regressed on SPY and five
spreads (ETF minus SPY) with ordinary least squares: MKT 0.742, MTUM -0.213, QUAL 0.008,
SIZE -0.307, USMV -0.132, VLUE -0.058, R squared 0.575. Tolerance 0.02 per loading.
E4 One year max drawdown of today's weights, compounded: 8.85%, trough 2026-06-25.
E5 Stress replay, close to close, today's weights: COVID 2020-02-19 to 2020-03-23 book
-36.07% vs SPY -33.72%, worst XOM -47.88%; 2022 rate shock 2022-01-03 to 2022-10-12 book
-18.31% vs SPY -24.50%, worst NVDA -61.79%; tariff week 2025-04-02 to 2025-04-08 book
-14.73% vs SPY -12.05%, worst AAPL -22.99%. Tolerance 0.1 point.
E6 Sizing gate: thesis says "quality, not the market", but QUAL loads 0.008 and MKT 0.742.
WORTH A QUESTION for {{PM}}: the book is mostly market beta, not a quality tilt. No
size proposed for new adds until {{PM}} answers; no technology add in any case (BREACH).
E7 Printed beside E6 as headroom, not a proposal: the largest cash or borrowing funded XOM add under the
caps = 0.30 x 199,570.80 - 40,535.00 = 19,336.24, so 119 shares at 162.14 (19,294.66),
XOM 29.98%. Energy room 0.40 x 199,570.80 - 40,535.00 = 39,293.32 does not bind. 120
shares or more, or a size printed as a proposal, is a mismatch.
</expected>
<working>E1 = shares x close, NAV = sum, weight = value / NAV. E3 regress the weighted daily
book return on the six series. E4 compound daily returns, drawdown = 1 - value / running
peak. E5 each name (close b / close a - 1), book = sum of weight x name return.</working>
<constraints>Show every calculation. Paste mode: E2 to E5 need Claude Code (prompt 13); in
chat, check E0, E1, E6 and E7 and mark the rest NOT RUN, never guessed.</constraints>