648 lines
36 KiB
JavaScript
648 lines
36 KiB
JavaScript
// /workspace/hyperstitionstudio-core/site/quant/quant-tutorials.js
|
|
// Option B Zero-MP4 Interactive HTML5 Canvas Tutorial Player & Deep-Link Choreographer (v2.0.28)
|
|
(function () {
|
|
"use strict";
|
|
|
|
window.HyperstitionStudio = window.HyperstitionStudio || {};
|
|
|
|
const EPISODES = [
|
|
{
|
|
id: "ep01",
|
|
code: "Ep 01",
|
|
title: "The Strict Periodicity Gate & Watchlist Topology",
|
|
keyframes: [
|
|
{
|
|
title: "1.1 Strict Periodicity Gate (21:30 UTC Close x 00:00 UTC Wire)",
|
|
state: { guildFilter: "ALL", selectedSymbol: "NVDA", selectedLens: "fund_manager", metricMode: "spoken_aq", selectedDateIdx: 26 },
|
|
spotlight: { target: "canvas", pane: "top", xRatio: 0.89, yRatio: 0.22, label: "Strict Periodicity Gate: 19 Real US Equity Sessions in Nov 2026" },
|
|
subtitle: "Only real periodic timestamp-indexed observations (21:30 UTC US Closing-Bell bars and 00:00 UTC dated news dossiers) enter this workbench. Closed weekend/holiday dates explicitly report 'No data available'.",
|
|
citations: [
|
|
{ label: "Vol 08A PDF (Room Filter)", href: "/encyclopedia/08-stakeholder-registers-idioms-and-pokedex-semiotics/a-to-h-ai-powered-race-to-hidden-chokepoint-screen.pdf#page=2&search=Room%20Filter" },
|
|
{ label: "Archive Methodology", href: "/archive/00-index-and-methodology.md#:~:text=closing-bell" },
|
|
{ label: "Graph Hub aq:137", href: "/graph/index.html?select=aq:137" }
|
|
]
|
|
},
|
|
{
|
|
title: "1.2 Guild S1 — Autoregressive AI Syndicate (Coordinate 292)",
|
|
state: { guildFilter: "S1", selectedSymbol: "MSFT", selectedLens: "fund_manager", metricMode: "spoken_aq", selectedDateIdx: 24 },
|
|
spotlight: { target: "canvas", pane: "top", xRatio: 0.83, yRatio: 0.28, label: "S1 AI Guild Filter Active (MSFT 2026-11-25 Close $489.93)" },
|
|
subtitle: "Filtering by Guild S1 isolates the Autoregressive AI Syndicate anchored on Coordinate 292 (shizohnalizis == abstrakt masheen == sinthetik dayta == asset management [Gen 0]).",
|
|
citations: [
|
|
{ label: "Vol 03A PDF (S1 AI)", href: "/encyclopedia/03-machinic-phylum-guilds-s1-to-s5/class-s1-autoregressive-ai-and-abstract-machine-a-to-z.pdf#page=1&search=292" },
|
|
{ label: "Dossier 65 (292 Lock)", href: "/zoology/dossiers/65-dossier-technocapital-singularity-autoregressive-ai.md#:~:text=292" },
|
|
{ label: "Graph Build S1", href: "/graph/index.html?select=build:S1" }
|
|
]
|
|
},
|
|
{
|
|
title: "1.3 Guild S3 — Silicon-Photonic War Machine (137 & 81)",
|
|
state: { guildFilter: "S3", selectedSymbol: "ASML", selectedLens: "corporate_board", metricMode: "close_usd", selectedDateIdx: 26 },
|
|
spotlight: { target: "canvas", pane: "top", xRatio: 0.89, yRatio: 0.30, label: "S3 Isometric Chokepoint: ASML = asml = 81 (Δ = 0)" },
|
|
subtitle: "Guild S3 maps physical wafer and EUV lithography chokepoints: ASML (81, Δ = 0 isometric), TSMC (95, Δ = 0), and Nvidia (envideea = 137 [33rd Prime]).",
|
|
citations: [
|
|
{ label: "Vol 03C PDF (p.5 ASML/envideea)", href: "/encyclopedia/03-machinic-phylum-guilds-s1-to-s5/class-s3-silicon-war-machine-and-euv-swarm-a-to-z.pdf#page=5&search=envideea" },
|
|
{ label: "Dossier 67 (Silicon War Machine)", href: "/zoology/dossiers/67-dossier-technocapital-singularity-silicon-war-machine.md#:~:text=137" },
|
|
{ label: "Graph Hub aq:81", href: "/graph/index.html?select=aq:81" }
|
|
]
|
|
},
|
|
{
|
|
title: "1.4 Guild S6 — Apparatus of Capture (Coordinate 125)",
|
|
state: { guildFilter: "S6", selectedSymbol: "BLK", selectedLens: "corporate_board", metricMode: "spoken_aq", selectedDateIdx: 26 },
|
|
spotlight: { target: "canvas", pane: "top", xRatio: 0.86, yRatio: 0.26, label: "S6 Capture Ring: kapatal == kapcher == fohldz = 125" },
|
|
subtitle: "Guild S6 tracks sovereign and balance-sheet capture around Coordinate 125 (kapatal == kapcher == fohldz = 125) and charter/sloth (136).",
|
|
citations: [
|
|
{ label: "Vol 04A PDF (S6 Capture)", href: "/encyclopedia/04-capital-organizational-capture-s6/a-to-f-acquisition-to-fund.pdf#page=1&search=125" },
|
|
{ label: "Dossier 68 (Capture)", href: "/zoology/dossiers/68-dossier-technocapital-singularity-apparatus-of-capture.md#:~:text=125" },
|
|
{ label: "Graph Hub aq:125", href: "/graph/index.html?select=aq:125" }
|
|
]
|
|
},
|
|
{
|
|
title: "1.5 Periodicity Audit Footer & IPLD dag-json CIDv1",
|
|
state: { guildFilter: "ALL", selectedSymbol: "NVDA", selectedLens: "fund_manager", metricMode: "spoken_aq", selectedDateIdx: 26 },
|
|
spotlight: { target: "panel4", xRatio: 0.50, yRatio: 0.85, label: "Cryptographic CIDv1 & Periodicity Audit Footer" },
|
|
subtitle: "The bottom footer verifies 21 dated 00:00 UTC dossiers + real exchange closing-bell bars (missing/closed days = null / No data available), and the deterministic IPLD dag-json CIDv1 digest.",
|
|
citations: [
|
|
{ label: "Static Bundle quant-timeseries.json", href: "/quant/quant-timeseries.json" },
|
|
{ label: "REST API /api/v1/quant/timeseries", href: "/api/v1/quant/timeseries?symbol=NVDA" },
|
|
{ label: "Schema quant-timeseries.schema.json", href: "/schemas/v1/quant-timeseries.schema.json" }
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
id: "ep02",
|
|
code: "Ep 02",
|
|
title: "Reading Panel 1: Spoken AQ Curves, Gold/Cyan Beacons & Regimes",
|
|
keyframes: [
|
|
{
|
|
title: "2.1 Top Pane: Dashed Crimson Identity Line & Real Scope 1 Self-Lock (PLTR)",
|
|
state: { guildFilter: "ALL", selectedSymbol: "PLTR", selectedLens: "fund_manager", metricMode: "close_usd", selectedDateIdx: 22 },
|
|
spotlight: { target: "canvas", pane: "top", xRatio: 0.76, yRatio: 0.25, label: "Real Scope 1 Self-Lock: PLTR Close $159.36 (159 == palanter)" },
|
|
subtitle: "On 2026-11-23, Palantir (PLTR) closed at $159.36 on the exchange: its rounded integer price (159) lands directly on the dashed crimson threshold marking its own Gen 1 Ingglish name (palanter = 159), firing a real Scope 1 Gold Beacon.",
|
|
citations: [
|
|
{ label: "Vol 03C PDF (S3 War Machine)", href: "/encyclopedia/03-machinic-phylum-guilds-s1-to-s5/class-s3-silicon-war-machine-and-euv-swarm-a-to-z.pdf#page=5&search=palanter" },
|
|
{ label: "Dossier 67 (Silicon War Machine)", href: "/zoology/dossiers/67-dossier-technocapital-singularity-silicon-war-machine.md#:~:text=137" },
|
|
{ label: "Graph Hub aq:159", href: "/graph/index.html?select=aq:159" }
|
|
]
|
|
},
|
|
{
|
|
title: "2.2 Move (BPS) Mode: TSMC (TSM) +81 bps Ring Migration & Microsoft -125 bps",
|
|
state: { guildFilter: "ALL", selectedSymbol: "TSM", selectedLens: "fund_manager", metricMode: "change_bps", selectedDateIdx: 17 },
|
|
spotlight: { target: "canvas", pane: "top", xRatio: 0.59, yRatio: 0.24, label: "Real Exchange Move: TSM +81 bps on 2026-11-18 (Ring 81 == asml)" },
|
|
subtitle: "Switching Metric Mode to Move (BPS) on 2026-11-18 shows TSMC (TSM) moving +81 bps ($359.70 -> $362.62), landing on the S3 lithography coordinate 81 (asml = 81).",
|
|
citations: [
|
|
{ label: "Vol 03C PDF (ASML = 81)", href: "/encyclopedia/03-machinic-phylum-guilds-s1-to-s5/class-s3-silicon-war-machine-and-euv-swarm-a-to-z.pdf#page=1&search=ASML" },
|
|
{ label: "Graph Hub aq:81", href: "/graph/index.html?select=aq:81" }
|
|
]
|
|
},
|
|
{
|
|
title: "2.3 Real Repdigit Attractor Lock: Broadcom (AVGO) at $333.40 & NVDA Spoken 333",
|
|
state: { guildFilter: "ALL", selectedSymbol: "AVGO", selectedLens: "fund_manager", metricMode: "close_usd", selectedDateIdx: 15 },
|
|
spotlight: { target: "canvas", pane: "top", xRatio: 0.52, yRatio: 0.20, label: "Real Exchange Repdigit Lock: AVGO $333.40 on 2026-11-16 (333 = 3 x 111)" },
|
|
subtitle: "On 2026-11-16, Broadcom (AVGO) closed at $333.40 (rounded integer 333 = 3 x 111), and on 2026-11-03 Nvidia (NVDA) closed at $206.69 ('too huhndrad siks' = 333), firing real Scope 1 Repdigit Gold Beacons.",
|
|
citations: [
|
|
{ label: "Vol 03C PDF (S3 Guild)", href: "/encyclopedia/03-machinic-phylum-guilds-s1-to-s5/class-s3-silicon-war-machine-and-euv-swarm-a-to-z.pdf#page=1&search=333" },
|
|
{ label: "Graph Hub aq:333", href: "/graph/index.html?select=aq:333" }
|
|
]
|
|
},
|
|
{
|
|
title: "2.4 Middle Pane: 00:00 GMT Wire Velocity & Emerald Scope 3 Bars",
|
|
state: { guildFilter: "ALL", selectedSymbol: "NVDA", selectedLens: "fund_manager", metricMode: "spoken_aq", selectedDateIdx: 28 },
|
|
spotlight: { target: "canvas", pane: "mid", xRatio: 0.93, yRatio: 0.63, label: "Emerald Bar = Scope 3 News-Wire Co-Presence" },
|
|
subtitle: "In the middle pane, Violet bars show daily 333/666/777 equation counts; Emerald bars highlight UTC dates where the selected ticker co-occurred in breaking 00:00 GMT news headlines.",
|
|
citations: [
|
|
{ label: "Dossier 71 (2026-11-29)", href: "/archive/71-dossier-news-2026-11-29.md#:~:text=333" },
|
|
{ label: "REST Highlight Preview", href: "/api/v1/dossiers/71?highlight=envideea" }
|
|
]
|
|
},
|
|
{
|
|
title: "2.5 Bottom Pane: 20-Day Volume Ratio & M1/M2/M3 Thermodynamic Regimes",
|
|
state: { guildFilter: "ALL", selectedSymbol: "NVDA", selectedLens: "fund_manager", metricMode: "spoken_aq", selectedDateIdx: 25 },
|
|
spotlight: { target: "canvas", pane: "bot", xRatio: 0.83, yRatio: 0.86, label: "Thermodynamic Regime Color Coding (M1 Gold / M2 Crimson / M3 Sky)" },
|
|
subtitle: "The bottom pane color-codes 20d relative volume by objective thermodynamic state: Gold (<0.45x) = M1 Stagnation (137), Crimson (>=2.5x or <=-5%) = M2 Flash-Crash Surge (193), Sky-Blue = M3 Leviathan.",
|
|
citations: [
|
|
{ label: "Vol 05A PDF (Subclass M1)", href: "/encyclopedia/05-memetic-superclass-and-emergent-m7/m1-vampiric-entropic-and-anti-productive-a-to-m.pdf#page=1&search=M1" },
|
|
{ label: "Vol 05C PDF (M2-M6)", href: "/encyclopedia/05-memetic-superclass-and-emergent-m7/m2-to-m6-kinetic-leviathan-mimetic-oracle-abyssal-a-to-z.pdf#page=1&search=M2" }
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
id: "ep03",
|
|
code: "Ep 03",
|
|
title: "Panels 2 & 3: The 24x30 Lock Heatmap, TradingView & Deep Citations",
|
|
keyframes: [
|
|
{
|
|
title: "3.1 Panel 2: 24x30 Heatmap & Explicit 'No Data Available' Handling (ANTHR-PVT & Weekends)",
|
|
state: { guildFilter: "ALL", selectedSymbol: "ANTHR-PVT", selectedLens: "fund_manager", metricMode: "spoken_aq", selectedDateIdx: 17 },
|
|
spotlight: { target: "panel2", xRatio: 0.50, yRatio: 0.40, label: "Zero Synthetic Data: ANTHR-PVT & Closed Market Days Show 'No data available'" },
|
|
subtitle: "This workbench never synthesizes or interpolates missing market data. Because Anthropic (ANTHR-PVT) is a private entity with no public exchange feed (and US stock markets close on weekends and Thanksgiving), those cells explicitly state 'No data available'.",
|
|
citations: [
|
|
{ label: "Vol 06A PDF (Anchor Revision)", href: "/encyclopedia/06-genealogical-vectors-and-quantitative-repricing/a-to-m-attractors-to-multi-build-flex-singularities.pdf#page=1&search=193" },
|
|
{ label: "Dossier 66 (193 Flash Crash)", href: "/zoology/dossiers/66-dossier-technocapital-singularity-flash-crash-liquidity.md#:~:text=193" },
|
|
{ label: "Graph Hub aq:193", href: "/graph/index.html?select=aq:193" }
|
|
]
|
|
},
|
|
{
|
|
title: "3.2 TradingView Superchart Launcher (Shortcut: T)",
|
|
state: { guildFilter: "ALL", selectedSymbol: "NVDA", selectedLens: "fund_manager", metricMode: "spoken_aq", selectedDateIdx: 26 },
|
|
spotlight: { target: "panel3", xRatio: 0.85, yRatio: 0.12, label: "Open TradingView Chart ↗ (Zero External Script Embeds)" },
|
|
subtitle: "Every ticker resolves deterministically to EXCHANGE:SYMBOL (e.g. NASDAQ:NVDA, closing at $150.49 on 2026-11-27). Clicking 'TradingView ↗' or pressing 'T' opens the live Superchart in a new window while keeping 0 external scripts embedded.",
|
|
citations: [
|
|
{ label: "Launch TradingView (NASDAQ:NVDA)", href: "https://www.tradingview.com/chart/?symbol=NASDAQ%3ANVDA" },
|
|
{ label: "Operator's Manual (PDF)", href: "/quant/OPERATORS-MANUAL-QUANT-TIMESERIES-WORKBENCH.pdf#page=1&search=TradingView" }
|
|
]
|
|
},
|
|
{
|
|
title: "3.3 Panel 3: Knowledge-Graph-Modeled Documentation & Cited Passages Card",
|
|
state: { guildFilter: "ALL", selectedSymbol: "NVDA", selectedLens: "fund_manager", metricMode: "spoken_aq", selectedDateIdx: 28 },
|
|
spotlight: { target: "docCard", xRatio: 0.50, yRatio: 0.50, label: "Passage-Encoded PDF (#page & search) + Dossier (#:~:text=) Links" },
|
|
subtitle: "Modeled directly on the Knowledge Graph's inspector drawer, the Documentation Card links every ticker to its exact Encyclopedia PDF page (#page=N&search=...), Dossier passage (#:~:text=...), and Graph node (?select=aq:N).",
|
|
citations: [
|
|
{ label: "Vol 03C PDF (#page=5&search=envideea)", href: "/encyclopedia/03-machinic-phylum-guilds-s1-to-s5/class-s3-silicon-war-machine-and-euv-swarm-a-to-z.pdf#page=5&search=envideea" },
|
|
{ label: "Graph Deep Link (?select=aq:137)", href: "/graph/index.html?select=aq:137" },
|
|
{ label: "REST API Highlight (/api/v1/dossiers/67?highlight=137)", href: "/api/v1/dossiers/67?highlight=137" }
|
|
]
|
|
},
|
|
{
|
|
title: "3.4 Panel 3: Verbatim Dated Memetic Equation Tape & Inline Passage Preview",
|
|
state: { guildFilter: "ALL", selectedSymbol: "NVDA", selectedLens: "fund_manager", metricMode: "spoken_aq", selectedDateIdx: 28 },
|
|
spotlight: { target: "wireTape", xRatio: 0.50, yRatio: 0.50, label: "Dated 333 / 666 / 777 Equations with Scroll-to-Text Deep Links" },
|
|
subtitle: "Every equation in the Dated Wire Tape includes a WICG scroll-to-text link (#:~:text=...), a Knowledge Graph coordinate link, and an inline REST passage preview button.",
|
|
citations: [
|
|
{ label: "Dossier 71 Scroll-to-Text", href: "/archive/71-dossier-news-2026-11-29.md#:~:text=333" },
|
|
{ label: "REST Dossier 71 JSON", href: "/api/v1/dossiers/71?highlight=333" }
|
|
]
|
|
},
|
|
{
|
|
title: "3.5 Bidirectional Graph & Dossier Cross-Verification",
|
|
state: { guildFilter: "ALL", selectedSymbol: "COIN", selectedLens: "fund_manager", metricMode: "spoken_aq", selectedDateIdx: 27 },
|
|
spotlight: { target: "docCard", xRatio: 0.50, yRatio: 0.50, label: "Cross-Corpus Coordinate Verification" },
|
|
subtitle: "Clicking any coordinate pill jumps straight to the Encyclopedia Knowledge Graph with that node centered and isolated in the right-hand drawer.",
|
|
citations: [
|
|
{ label: "Graph Node aq:211", href: "/graph/index.html?select=aq:211" },
|
|
{ label: "Dossier 68 (S6 Capture)", href: "/zoology/dossiers/68-dossier-technocapital-singularity-apparatus-of-capture.md#:~:text=125" }
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
id: "ep04",
|
|
code: "Ep 04",
|
|
title: "Hot-Swapping Projection Lenses (LENS_REGISTRY Reversibility)",
|
|
keyframes: [
|
|
{
|
|
title: "4.1 Lens 1: Neutral Mathematical Substrate (neutral_math)",
|
|
state: { guildFilter: "ALL", selectedSymbol: "NVDA", selectedLens: "neutral_math", metricMode: "spoken_aq", selectedDateIdx: 26 },
|
|
spotlight: { target: "lensCard", xRatio: 0.50, yRatio: 0.50, label: "Pure Lens-Neutral Keys (struct_* & ts_*)" },
|
|
subtitle: "Under the hood, quant-timeseries.json stores 100% lens-neutral mathematical keys (struct_isometric_armor, ts_duty_cycle_pct, ts_weighted_resonance, ts_excess_over_replacement, ts_optimal_lag_days).",
|
|
citations: [
|
|
{ label: "Schema quant-timeseries.schema.json", href: "/schemas/v1/quant-timeseries.schema.json" },
|
|
{ label: "Vol 08A PDF (Stakeholder Registers)", href: "/encyclopedia/08-stakeholder-registers-idioms-and-pokedex-semiotics/a-to-h-ai-powered-race-to-hidden-chokepoint-screen.pdf#page=1&search=Register" }
|
|
]
|
|
},
|
|
{
|
|
title: "4.2 Lens 2: Out-of-Sample Quantitative Factor Register (fund_manager)",
|
|
state: { guildFilter: "ALL", selectedSymbol: "NVDA", selectedLens: "fund_manager", metricMode: "spoken_aq", selectedDateIdx: 26 },
|
|
spotlight: { target: "lensCard", xRatio: 0.50, yRatio: 0.50, label: "Fund Manager Register: Signal Duty Cycle & Alpha Over Benchmark" },
|
|
subtitle: "Switching to 'Quant Factor (fund_manager)' translates the exact same 6 numbers into institutional factor terminology (Chokepoint Moat, Signal Duty Cycle %, Composite Resonance Load).",
|
|
citations: [
|
|
{ label: "Fund Manager Proposal (PDF)", href: "/zoology/proposal-fund-manager-novel-investment-discovery.pdf#page=1&search=Uncaptured" },
|
|
{ label: "REST Tier List (fund_manager)", href: "/api/v1/zoology/tier-list?register=fund_manager" }
|
|
]
|
|
},
|
|
{
|
|
title: "4.3 Lens 3: Corporate Board & Supply-Chain Governance (corporate_board)",
|
|
state: { guildFilter: "ALL", selectedSymbol: "NVDA", selectedLens: "corporate_board", metricMode: "spoken_aq", selectedDateIdx: 26 },
|
|
spotlight: { target: "lensCard", xRatio: 0.50, yRatio: 0.50, label: "Corporate Board Register: Supply-Chain Moat & Stress-Test Delta" },
|
|
subtitle: "Switching to 'Corporate Board' frames those identical invariants as Supply-Chain Structural Moat, Cross-Unit Synergy, and Stress-Test Regime Delta.",
|
|
citations: [
|
|
{ label: "Corporate Board Proposal (PDF)", href: "/zoology/proposal-corporate-board-technocapital-allocation.pdf#page=1&search=Moat" },
|
|
{ label: "REST Tier List (corporate_board)", href: "/api/v1/zoology/tier-list?register=corporate_board" }
|
|
]
|
|
},
|
|
{
|
|
title: "4.4 Lens 4 & 5: TierZoo Ecology (ETI) & Fantasy Sabermetrics (SNAP% / WOPR / WAR)",
|
|
state: { guildFilter: "ALL", selectedSymbol: "NVDA", selectedLens: "fantasy_sabermetrics", metricMode: "spoken_aq", selectedDateIdx: 26 },
|
|
spotlight: { target: "lensCard", xRatio: 0.50, yRatio: 0.50, label: "Fantasy Sabermetrics: SNAP%, WOPR, WAR (30d) & Matchup Splits" },
|
|
subtitle: "Switching to 'Fantasy Sabermetrics' projects SNAP% (Active Lock Share), WOPR (1.5x Target Share + 0.7x Air-Yards Share), and WAR (30d Wins Above Tier D Replacement).",
|
|
citations: [
|
|
{ label: "ETI Tier List Scorecard (PDF)", href: "/zoology/tier-list-technocapital-assemblage-builds.pdf#page=1&search=ETI" },
|
|
{ label: "Vol 07A PDF (ETI Ontology)", href: "/encyclopedia/07-ecological-trophic-index-and-tier-list/a-to-z-arm-chokepoint-armor-to-zoological-tie-breaker.pdf#page=1&search=ETI" }
|
|
]
|
|
},
|
|
{
|
|
title: "4.5 Lens 6: Gen IV Pokédex Field-Scanner (DEX #137)",
|
|
state: { guildFilter: "ALL", selectedSymbol: "NVDA", selectedLens: "pokedex_scanner", metricMode: "spoken_aq", selectedDateIdx: 26 },
|
|
spotlight: { target: "lensCard", xRatio: 0.50, yRatio: 0.50, label: "Gen IV Pokédex Scanner: DEX #137, Nature, Ability & EV Yield" },
|
|
subtitle: "Switching to 'Pokédex Scanner' deterministically derives Gen IV attributes (DEX #137, Nature, Passive Ability, EV Yield) from the real time-series moments—and remains 100% removable via ENABLED_LENSES.",
|
|
citations: [
|
|
{ label: "REST Pokédex Endpoint (/api/v1/zoology/pokedex/NVDA)", href: "/api/v1/zoology/pokedex/NVDA" },
|
|
{ label: "Vol 08B PDF (Pokédex Semiotics)", href: "/encyclopedia/08-stakeholder-registers-idioms-and-pokedex-semiotics/i-to-z-idiosyncratic-prime-screen-to-united-fidelity.pdf#page=1&search=Pokedex" }
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
id: "ep05",
|
|
code: "Ep 05",
|
|
title: "Panel 4: Lead-Lag Cross-Correlation r(tau), Exports & REST APIs",
|
|
keyframes: [
|
|
{
|
|
title: "5.1 Panel 4: Lead-Lag Cross-Correlation Curve r(tau) across [-5 .. +5] Days",
|
|
state: { guildFilter: "ALL", selectedSymbol: "NVDA", selectedLens: "fund_manager", metricMode: "spoken_aq", selectedDateIdx: 26 },
|
|
spotlight: { target: "panel4", xRatio: 0.50, yRatio: 0.45, label: "Pearson Cross-Correlation r(tau) & Gold Optimal Causal Lag tau*" },
|
|
subtitle: "Panel 4 computes the empirical Pearson cross-correlation r(tau) between daily 00:00 GMT news-wire equation velocity M_t and unsigned basis-point displacement |Δbps_{i, t+tau}| across lags tau in [-5, +5] days.",
|
|
citations: [
|
|
{ label: "Operator's Manual (Panel 4 Math)", href: "/quant/OPERATORS-MANUAL-QUANT-TIMESERIES-WORKBENCH.pdf#page=2&search=Correlation" },
|
|
{ label: "Graph Mode 2 Concentric Radar", href: "/graph/index.html?select=aq:137&mode=mode2_radar" }
|
|
]
|
|
},
|
|
{
|
|
title: "5.2 Interpreting Optimal Causal Lag tau* (Leader vs. Synchronizer vs. Follower)",
|
|
state: { guildFilter: "ALL", selectedSymbol: "ASML", selectedLens: "fund_manager", metricMode: "spoken_aq", selectedDateIdx: 26 },
|
|
spotlight: { target: "panel4", xRatio: 0.58, yRatio: 0.45, label: "Gold Bar Marks argmax |r(tau)|" },
|
|
subtitle: "The Gold bar highlights tau* = argmax |r(tau)|: tau* > 0 indicates a Teleoplexic Wire Leader (midnight wire velocity leads market volatility), tau* = 0 an Instantaneous Synchronizer, and tau* < 0 a Narrative Follower.",
|
|
citations: [
|
|
{ label: "Vol 03C PDF (ASML)", href: "/encyclopedia/03-machinic-phylum-guilds-s1-to-s5/class-s3-silicon-war-machine-and-euv-swarm-a-to-z.pdf#page=1&search=ASML" },
|
|
{ label: "Graph Node aq:81", href: "/graph/index.html?select=aq:81" }
|
|
]
|
|
},
|
|
{
|
|
title: "5.3 Portable .CSV & Lens-Neutral .JSON Slice Exports",
|
|
state: { guildFilter: "ALL", selectedSymbol: "NVDA", selectedLens: "neutral_math", metricMode: "spoken_aq", selectedDateIdx: 26 },
|
|
spotlight: { target: "panel4", xRatio: 0.82, yRatio: 0.14, label: "One-Click .CSV & Lens-Neutral .JSON Export" },
|
|
subtitle: "Click 'Export Filtered Series (.CSV)' or 'Export Lens-Neutral Slice (.JSON)' in the Panel 4 header to download any ticker's 30-day periodic bar table and structural/time-series vectors for offline research.",
|
|
citations: [
|
|
{ label: "Raw Bundle quant-timeseries.json", href: "/quant/quant-timeseries.json" },
|
|
{ label: "Schema quant-timeseries.schema.json", href: "/schemas/v1/quant-timeseries.schema.json" }
|
|
]
|
|
},
|
|
{
|
|
title: "5.4 Unified Stateless REST API v1 (/api/v1/*) & OpenAPI 3.1.0",
|
|
state: { guildFilter: "ALL", selectedSymbol: "NVDA", selectedLens: "fund_manager", metricMode: "spoken_aq", selectedDateIdx: 26 },
|
|
spotlight: { target: "docCard", xRatio: 0.50, yRatio: 0.50, label: "Programmatic REST API v1 & OpenAPI 3.1.0" },
|
|
subtitle: "Every readout on /quant/ is also queryable over HTTP GET/POST via /api/v1/quant/timeseries, /api/v1/quant/instruments/{symbol}, /api/v1/dossiers/{number}?highlight=..., and /api/v1/openapi.json.",
|
|
citations: [
|
|
{ label: "OpenAPI 3.1.0 Spec (/api/v1/openapi.json)", href: "/api/v1/openapi.json" },
|
|
{ label: "REST Status (/api/v1/status)", href: "/api/v1/status" },
|
|
{ label: "REST NVDA Instrument", href: "/api/v1/quant/instruments/NVDA" }
|
|
]
|
|
},
|
|
{
|
|
title: "5.5 Complete Tour Summary & Companion Operator's Manual",
|
|
state: { guildFilter: "ALL", selectedSymbol: "NVDA", selectedLens: "fund_manager", metricMode: "spoken_aq", selectedDateIdx: 26 },
|
|
spotlight: { target: "canvas", pane: "top", xRatio: 0.89, yRatio: 0.25, label: "Tour Complete — Explore Any Ticker, Lens, or Deep Citation" },
|
|
subtitle: "You have completed all 5 episodes of the /quant/ guided walkthrough. Open the Companion Operator's Manual (PDF) or click any heatmap cell, lens, or deep citation link to continue exploring.",
|
|
citations: [
|
|
{ label: "Operator's Manual (PDF)", href: "/quant/OPERATORS-MANUAL-QUANT-TIMESERIES-WORKBENCH.pdf" },
|
|
{ label: "Interactive Knowledge Graph (/graph/)", href: "/graph/index.html?select=aq:137" },
|
|
{ label: "Self-Paced Learning Track (/learn/)", href: "/learn/index.html" }
|
|
]
|
|
}
|
|
]
|
|
}
|
|
];
|
|
|
|
function adaptHrefForFileProtocol(href) {
|
|
if (!href || window.location.protocol !== "file:") return href;
|
|
if (href.startsWith("https://")) return href;
|
|
if (href.startsWith("/encyclopedia/")) {
|
|
return "../../../technocapital-singularity-zoology/encyclopedia/" + href.slice("/encyclopedia/".length);
|
|
}
|
|
if (href.startsWith("/zoology/")) {
|
|
return "../../../technocapital-singularity-zoology/" + href.slice("/zoology/".length);
|
|
}
|
|
if (href.startsWith("/archive/")) {
|
|
return "../../../ingglish-hyperdope-gematria/ingglish-aq-archive/" + href.slice("/archive/".length);
|
|
}
|
|
if (href.startsWith("/graph/")) {
|
|
return "../../../encyclopedia-knowledge-graph/" + href.slice("/graph/".length);
|
|
}
|
|
if (href.startsWith("/learn/")) {
|
|
return "../learn/" + href.slice("/learn/".length);
|
|
}
|
|
if (href.startsWith("/quant/")) {
|
|
return "./" + href.slice("/quant/".length);
|
|
}
|
|
if (href.startsWith("/schemas/")) {
|
|
return "../../schemas/" + href.slice("/schemas/".length);
|
|
}
|
|
if (href.startsWith("/api/v1/quant/")) {
|
|
return "./quant-timeseries.json";
|
|
}
|
|
if (href.startsWith("/api/v1/zoology/tier-list")) {
|
|
return "../../../technocapital-singularity-zoology/taxonomy/assemblage-builds-tier-list.json";
|
|
}
|
|
if (href.startsWith("/api/v1/dossiers/")) {
|
|
return "../../../ingglish-hyperdope-gematria/ingglish-aq-archive/71-dossier-news-2026-11-29.md";
|
|
}
|
|
return href;
|
|
}
|
|
|
|
let curEpIdx = 0;
|
|
let curStepIdx = 0;
|
|
let isPlaying = false;
|
|
let playTimer = null;
|
|
let speechEnabled = true; // Enabled by default so tour playback narrates immediately
|
|
let cachedVoices = [];
|
|
let audioCtx = null;
|
|
|
|
function refreshVoices() {
|
|
if (typeof window.speechSynthesis === "undefined") return;
|
|
try {
|
|
cachedVoices = window.speechSynthesis.getVoices() || [];
|
|
} catch (_) {
|
|
cachedVoices = [];
|
|
}
|
|
}
|
|
if (typeof window.speechSynthesis !== "undefined") {
|
|
refreshVoices();
|
|
if (typeof window.speechSynthesis.onvoiceschanged !== "undefined") {
|
|
window.speechSynthesis.onvoiceschanged = refreshVoices;
|
|
}
|
|
}
|
|
|
|
function playWebAudioTelemetryChime(stepIdx) {
|
|
try {
|
|
const Ctx = window.AudioContext || window.webkitAudioContext;
|
|
if (!Ctx) return;
|
|
if (!audioCtx) audioCtx = new Ctx();
|
|
if (audioCtx.state === "suspended") audioCtx.resume();
|
|
const baseFreqs = [292.0, 333.0, 394.0, 444.0, 528.0];
|
|
const f0 = baseFreqs[stepIdx % baseFreqs.length];
|
|
const now = audioCtx.currentTime;
|
|
[f0, f0 * 1.25, f0 * 1.5].forEach(function (freq, i) {
|
|
const osc = audioCtx.createOscillator();
|
|
const gain = audioCtx.createGain();
|
|
osc.type = i === 0 ? "triangle" : "sine";
|
|
osc.frequency.setValueAtTime(freq, now + i * 0.09);
|
|
gain.gain.setValueAtTime(0.001, now + i * 0.09);
|
|
gain.gain.exponentialRampToValueAtTime(0.06, now + i * 0.09 + 0.03);
|
|
gain.gain.exponentialRampToValueAtTime(0.0001, now + i * 0.09 + 0.45);
|
|
osc.connect(gain);
|
|
gain.connect(audioCtx.destination);
|
|
osc.start(now + i * 0.09);
|
|
osc.stop(now + i * 0.09 + 0.48);
|
|
});
|
|
} catch (_) {}
|
|
}
|
|
|
|
function scheduleNextStep(delayMs) {
|
|
if (playTimer) clearTimeout(playTimer);
|
|
if (!isPlaying) return;
|
|
playTimer = setTimeout(function () {
|
|
if (isPlaying) stepNext();
|
|
}, delayMs);
|
|
}
|
|
|
|
function speakSubtitle(text, onDoneCallback) {
|
|
if (!speechEnabled) {
|
|
if (onDoneCallback) scheduleNextStep(7000);
|
|
return;
|
|
}
|
|
// Always play a subtle harmonic telemetry cue at scene start so audio feedback is immediate even if OS TTS voices are absent
|
|
playWebAudioTelemetryChime(curStepIdx);
|
|
|
|
refreshVoices();
|
|
if (typeof window.speechSynthesis === "undefined" || cachedVoices.length === 0) {
|
|
if (onDoneCallback) scheduleNextStep(7500);
|
|
return;
|
|
}
|
|
|
|
try {
|
|
window.speechSynthesis.cancel();
|
|
window.speechSynthesis.resume();
|
|
setTimeout(function () {
|
|
if (!speechEnabled) return;
|
|
const u = new SpeechSynthesisUtterance(text);
|
|
const preferred = cachedVoices.find(function (v) {
|
|
return /en(-|_)(US|GB)/i.test(v.lang) && /natural|neural|google|english/i.test(v.name);
|
|
}) || cachedVoices.find(function (v) {
|
|
return /^en/i.test(v.lang);
|
|
}) || cachedVoices[0];
|
|
if (preferred) u.voice = preferred;
|
|
u.rate = 1.03;
|
|
u.pitch = 1.0;
|
|
u.volume = 1.0;
|
|
let settled = false;
|
|
const finish = function () {
|
|
if (settled) return;
|
|
settled = true;
|
|
if (onDoneCallback && isPlaying) {
|
|
scheduleNextStep(1800);
|
|
}
|
|
};
|
|
u.onend = finish;
|
|
u.onerror = finish;
|
|
window.speechSynthesis.speak(u);
|
|
// Safety fallback timer in case browser TTS engine stalls without firing onend
|
|
const estMs = Math.max(8500, Math.min(20000, text.split(/\s+/).length * 420));
|
|
if (onDoneCallback && isPlaying) {
|
|
scheduleNextStep(estMs);
|
|
}
|
|
}, 60);
|
|
} catch (_) {
|
|
if (onDoneCallback) scheduleNextStep(7500);
|
|
}
|
|
}
|
|
|
|
function getActiveKeyframe() {
|
|
const ep = EPISODES[curEpIdx] || EPISODES[0];
|
|
return ep.keyframes[curStepIdx] || ep.keyframes[0];
|
|
}
|
|
|
|
function highlightDomTarget(targetId) {
|
|
["heatmapTable", "lensProjectionCard", "docReferencesCard", "wireEqTape", "lagBarsContainer"].forEach(function (id) {
|
|
const el = document.getElementById(id);
|
|
if (el) el.style.boxShadow = "";
|
|
});
|
|
const map = {
|
|
panel2: "heatmapTable",
|
|
lensCard: "lensProjectionCard",
|
|
docCard: "docReferencesCard",
|
|
wireTape: "wireEqTape",
|
|
panel4: "lagBarsContainer"
|
|
};
|
|
const domId = map[targetId];
|
|
if (domId) {
|
|
const el = document.getElementById(domId);
|
|
if (el) {
|
|
el.style.boxShadow = "0 0 0 2px #f5c630, 0 0 18px rgba(245, 198, 48, 0.35)";
|
|
}
|
|
}
|
|
}
|
|
|
|
function applyCurrentKeyframe(narrateNow) {
|
|
const kf = getActiveKeyframe();
|
|
const app = window.HyperstitionStudio.QuantWorkbenchApp;
|
|
if (app && typeof app.setStateAndRender === "function") {
|
|
app.setStateAndRender(kf.state, kf.spotlight);
|
|
}
|
|
highlightDomTarget(kf.spotlight && kf.spotlight.target);
|
|
renderTutorialUI();
|
|
if (narrateNow || isPlaying) {
|
|
speakSubtitle(kf.subtitle, isPlaying);
|
|
}
|
|
}
|
|
|
|
function stepNext() {
|
|
const ep = EPISODES[curEpIdx];
|
|
if (curStepIdx < ep.keyframes.length - 1) {
|
|
curStepIdx++;
|
|
} else if (curEpIdx < EPISODES.length - 1) {
|
|
curEpIdx++;
|
|
curStepIdx = 0;
|
|
} else {
|
|
stopPlayback();
|
|
return;
|
|
}
|
|
applyCurrentKeyframe(true);
|
|
}
|
|
|
|
function stepPrev() {
|
|
if (curStepIdx > 0) {
|
|
curStepIdx--;
|
|
} else if (curEpIdx > 0) {
|
|
curEpIdx--;
|
|
curStepIdx = EPISODES[curEpIdx].keyframes.length - 1;
|
|
}
|
|
applyCurrentKeyframe(true);
|
|
}
|
|
|
|
function startPlayback() {
|
|
isPlaying = true;
|
|
if (playTimer) clearTimeout(playTimer);
|
|
applyCurrentKeyframe(true);
|
|
renderTutorialUI();
|
|
}
|
|
|
|
function stopPlayback() {
|
|
isPlaying = false;
|
|
if (playTimer) {
|
|
clearTimeout(playTimer);
|
|
playTimer = null;
|
|
}
|
|
if (typeof window.speechSynthesis !== "undefined") {
|
|
try { window.speechSynthesis.cancel(); } catch (_) {}
|
|
}
|
|
renderTutorialUI();
|
|
}
|
|
|
|
function renderTutorialUI() {
|
|
const epTabs = document.getElementById("tutEpisodeTabs");
|
|
const stepBadge = document.getElementById("tutStepBadge");
|
|
const scrubber = document.getElementById("tutScrubber");
|
|
const playBtn = document.getElementById("tutPlayPauseBtn");
|
|
const speechBtn = document.getElementById("tutSpeechBtn");
|
|
const titleEl = document.getElementById("tutKeyframeTitle");
|
|
const subEl = document.getElementById("tutSubtitleText");
|
|
const citesEl = document.getElementById("tutCitationPills");
|
|
|
|
if (!epTabs) return;
|
|
const ep = EPISODES[curEpIdx];
|
|
const kf = getActiveKeyframe();
|
|
|
|
epTabs.innerHTML = EPISODES.map(function (e, idx) {
|
|
const cls = "pill" + (idx === curEpIdx ? " active" : "");
|
|
return "<button type='button' class='" + cls + "' data-ep-idx='" + idx + "'>" + e.code + ": " + e.title + "</button>";
|
|
}).join("");
|
|
|
|
epTabs.querySelectorAll("[data-ep-idx]").forEach(function (b) {
|
|
b.onclick = function () {
|
|
curEpIdx = parseInt(b.getAttribute("data-ep-idx"), 10);
|
|
curStepIdx = 0;
|
|
applyCurrentKeyframe(speechEnabled);
|
|
};
|
|
});
|
|
|
|
if (playBtn) {
|
|
playBtn.textContent = isPlaying ? "\u23F8 Pause Tour" : "\u25B6 Play Guided Tour";
|
|
playBtn.className = isPlaying ? "btn tv-btn" : "btn primary";
|
|
}
|
|
if (speechBtn) {
|
|
speechBtn.textContent = speechEnabled ? "\uD83D\uDD0A Voice: ON" : "\uD83D\uDD07 Voice: OFF";
|
|
speechBtn.className = speechEnabled ? "btn primary" : "btn";
|
|
}
|
|
if (stepBadge) {
|
|
stepBadge.textContent = ep.code + " \u2022 Scene " + (curStepIdx + 1) + "/" + ep.keyframes.length;
|
|
}
|
|
if (scrubber) {
|
|
scrubber.max = String(ep.keyframes.length - 1);
|
|
scrubber.value = String(curStepIdx);
|
|
}
|
|
if (titleEl) {
|
|
titleEl.textContent = kf.title;
|
|
}
|
|
if (subEl) {
|
|
subEl.textContent = kf.subtitle;
|
|
}
|
|
if (citesEl) {
|
|
citesEl.innerHTML = (kf.citations || []).map(function (c) {
|
|
const resolved = adaptHrefForFileProtocol(c.href);
|
|
return "<a class='pill tut-cite-link' data-raw-href='" + c.href + "' style='text-decoration:none;color:var(--cyan);border-color:var(--cyan);' href='" +
|
|
resolved + "' target='_blank' rel='noopener noreferrer'>\uD83D\uDCC4 " + c.label + " \u2197</a>";
|
|
}).join("");
|
|
}
|
|
}
|
|
|
|
function initTutorials() {
|
|
const playBtn = document.getElementById("tutPlayPauseBtn");
|
|
const prevBtn = document.getElementById("tutPrevBtn");
|
|
const nextBtn = document.getElementById("tutNextBtn");
|
|
const clearBtn = document.getElementById("tutClearSpotlightBtn");
|
|
const speechBtn = document.getElementById("tutSpeechBtn");
|
|
const scrubber = document.getElementById("tutScrubber");
|
|
|
|
if (playBtn) {
|
|
playBtn.onclick = function () {
|
|
if (isPlaying) stopPlayback();
|
|
else startPlayback();
|
|
};
|
|
}
|
|
if (prevBtn) prevBtn.onclick = function () { stopPlayback(); stepPrev(); };
|
|
if (nextBtn) nextBtn.onclick = function () { stopPlayback(); stepNext(); };
|
|
if (clearBtn) {
|
|
clearBtn.onclick = function () {
|
|
stopPlayback();
|
|
highlightDomTarget(null);
|
|
const app = window.HyperstitionStudio.QuantWorkbenchApp;
|
|
if (app && typeof app.setStateAndRender === "function") {
|
|
app.setStateAndRender({}, null);
|
|
}
|
|
};
|
|
}
|
|
if (speechBtn) {
|
|
speechBtn.onclick = function () {
|
|
speechEnabled = !speechEnabled;
|
|
if (speechEnabled) speakSubtitle(getActiveKeyframe().subtitle, isPlaying);
|
|
else if (typeof window.speechSynthesis !== "undefined") {
|
|
try { window.speechSynthesis.cancel(); } catch (_) {}
|
|
}
|
|
renderTutorialUI();
|
|
};
|
|
}
|
|
if (scrubber) {
|
|
scrubber.oninput = function () {
|
|
stopPlayback();
|
|
curStepIdx = parseInt(scrubber.value, 10) || 0;
|
|
applyCurrentKeyframe(speechEnabled);
|
|
};
|
|
}
|
|
|
|
renderTutorialUI();
|
|
}
|
|
|
|
window.HyperstitionStudio.QuantTutorials = {
|
|
version: "2.0.28",
|
|
episodes: EPISODES,
|
|
adaptHrefForFileProtocol: adaptHrefForFileProtocol,
|
|
init: initTutorials
|
|
};
|
|
|
|
if (document.readyState === "loading") {
|
|
document.addEventListener("DOMContentLoaded", initTutorials);
|
|
} else {
|
|
initTutorials();
|
|
}
|
|
})();
|