Gold Compass
Last full refresh 2026-10-15 14:55:30 Status

Tech debt and version

Running version: 03f5a0d (vendored 2026-10-16) · Source: TECH_DEBT.md

What is missing, what was found and what was decided. The dashboard shows this file on its Tech debt page. Newest first.

Version

2026-10-15

A purple label gives the Consensus mean at 12 months. The optional mean comes with a shaded band from the 25% to the 75% of the banks. - Markets. - On the central bank chart the gold price is now drawn over the colored areas. Plotly always draws the overlaid axis on top, so the reserves moved to the base axis and gold to the overlaid one. - Every chart shows only its main axis, for cleaner screenshots. The price, the monthly flows and gold on the central bank chart are read from the hover. - The demand chart is titled "Gold demand" and the SHFE chart "SHFE positions updated: …"; neither is CFTC data. - Fixes from the agent review: - The box that adds Shadow Price bands now sits outside Plotly's fixed-height wrapper; inside it, the chart overflowed and showed scrollbars. - The browser builds the 5% and 10% bands from the 100% line. The page went back from 4.3 MB to 2.9 MB. - Band names use {b*100:g}%, so 2.5% is no longer labelled "2%". The comment warns that 25%, 40% and 100% already exist. - The skew note says the 25Δ put has a delta of −0.25. - Data health now lists Consensus and Options as readers of 2. XAU.csv, and Markets as a reader of 4. XAG.csv and 3. SI.csv (silver premiums and SI CFTC). A drift in those CSVs now warns on those pages too, including the Consensus block of the Forecast page. - Links to #consensus no longer land under the sticky top bar. - The selectors (past forecasts, charts, Consensus report) use autocomplete="off". On a reload, Firefox restored the old choice while the page drew the default chart. - Consensus counts months by calendar. With days // 30, the 3-month point of a January report came out as 2 (Jan 31 to Apr 30 is 89 days). That affected 11 reports and would have crashed the section once a January report became the latest (February 2027). Juan's cell that builds p still uses days // 30; p no longer feeds any chart. - Options. - "Smile today and a month ago" is gone. - Two 3D surfaces sit side by side. On the left, fixed: today's implied volatility by delta and tenor. On the right, picked from a selector: the 1M smile, the 2M smile or the contango by delta (2M − 1M), weekly over the last two years. - The contango surface is centered on zero, red when the curve inverts. - In the notebook the three surfaces are drawn one after the other. - Equity Crash. The page ends at "Gold drawdown scenarios". The crash-probability analysis is gone from the page and from the notebook (its section 3, cells 14-16, Juan 2026-10-15): - "Gold around the SPX trough", the base rate, the quintile table and "Where each condition is today". - The "Equity crash risk" lens on the Compass and the base-rate KPI. - The headline now gives the gold drawdown in past SPX crashes. - Old notebooks deleted. Data World and Options and Premiums and Discounts were replaced by Gold Markets and Gold Options; they remain in git history. - Forecasts by bank adds the InHouse expected path (12 months) and an InHouse row in the table. They appear only for the report that the InHouse forecast was compared with, because the forecast log only holds that release. - Forecasts by bank, past reports. The gold line no longer stops at the report date. It runs from 3 years before the report to the report's last horizon (today for recent reports), so a past report shows what the price did afterwards (Juan). - InHouse row of Forecasts by bank. It takes the expected price on each horizon date, while the banks give quarterly averages. Kept as is; point closed (Juan). - InHouse forecast with the banks on top has a selector with one forecast per month (the last 12). Each comes with the bank densities of its month's Consensus report, and past months show the price that followed. In the notebook, change archivo to pick another month. - The refresh writes the 12 monthly forecasts to cache/forecast_log/, each as of its date (cached cone, logit fitted with data up to that date). - The 12 panes take the Forecast page from about 1.5 MB to 3.1 MB. Each is drawn only when picked. - Which Consensus report goes with a forecast. The pipeline dates each report at the calendar month-end, but forecasts fall on the last trading day. Comparing exact dates gave 6 of the 12 forecasts the previous month's report (28 Aug 2026 got July). - A forecast now takes its own month's report, or the latest before it if that month's report is not out yet. The latest forecast (12 Oct) still gets September. - Forecasts by bank uses the same rule, so its InHouse row and path now appear for the last 12 reports. - Tickers. get_all_tickers() reads data/6. Tickers.csv instead of tickers.xlsx (Sheet2) in the Trading Desk library on SharePoint. The original file is untouched. - The CSV has one lowercase header row, ticker as the first column, Bloomberg #N/A errors left empty, ISO dates, and no exact duplicate rows (379 to 370). - The six ticker groups come out identical, in the same order. - It feeds Regime (IMF reserves), Markets (CFTC, SHFE) and the Phase 2 walk-forward notebook. - Fixes from the final agent review (notebook and page): - Markets: the price hover on the positioning charts lost its $ format when the right axis was hidden, because Plotly ignores tickformat on a hidden axis. It now uses hoverformat='$,.0f'. - Consensus: the labels to the right of the densities are ordered by the price they show. Before, Consensus at $4,677 sat above Neutral at $4,727. - Options: the two surfaces line up at the bottom, since the right one has the selector and its note above it. - Equity Crash: the VIX query (about 3 s per refresh) and CONDICIONES_EN only fed the removed section, so they are gone. The notebook intro marks section 3 as removed. - Gold today: the CSV drift warning no longer names the cause fixed on 2026-10-14; it says what to check instead. Data health lists data/5. Consensus.csv. - Shadow Price: the note names the bands from bandas_extra. - Docs: the README lists the Shadow Price band controls, and CLAUDE.md points to the files that exist (data/TradingView.ipynb, notebooks/Phase2/Resistencia del Oro.ipynb).

2026-10-14, evening (Juan's touch-ups)

2026-10-14, afternoon

2026-10-14, morning

Open items

Data

Notebook methodology (not changed; Juan decides)

Thesis Monitor and Fiscal Dominance (Camilo; found by the merge review, 2026-10-15)

Dashboard and infrastructure