Files
encyclopedia-knowledge-graph/docs/archive/PLAN-QUANT-TUTORIAL-VIDEO-SERIES-AND-CITATION-DEEP-LINKS.md
T

17 KiB
Raw Blame History

Plan: /quant/ Zero-MP4 Interactive HTML5 Canvas Tutorial Tour, Interface Figure Guide & Passage-Encoded Deep-Link Citation Drawer (v2.0.18)

  • Document ID: PLAN-QUANT-TUTORIAL-VIDEO-SERIES-AND-CITATION-DEEP-LINKS (v2.0.18)
  • Storage & Delivery Architecture (Option B — Zero-MP4 Interactive HTML5 Canvas / Subtitled Walkthrough, < 150 KB Total, 100% Git-Tracked):
    • Rather than committing multi-megabyte .mp4 video binaries into Git or consuming space in the 512 MB VPS tmpfs RAM mount, the 5-episode tutorial series resides directly in /workspace/hyperstitionstudio-core/site/quant/ (quant-tutorials.js, < 45 KB uncompressed, ~12 KB Brotli-11) as an interactive, timeline-scrubbable 5-Episode Guided Canvas Player.
    • When a user plays an episode (Ep 01 through Ep 05), the player programmatically drives the live /quant/ interface in real time—switching tickers (NVDA, ASML, ANTHR-PVT, LLY), scrubbing UTC dates, toggling projection lenses, drawing animated spotlight callout rings and vector arrows directly over the live Panel 1–4 figures, displaying synchronized chapter subtitles (with optional zero-dependency browser window.speechSynthesis narration toggle), and presenting clickable passage-encoded citation cards at every keyframe!
  • Target Web Route & Tracked Files:
    • /workspace/hyperstitionstudio-core/site/quant/index.html & quant-app.js
    • /workspace/hyperstitionstudio-core/site/quant/quant-tutorials.js (window.HyperstitionStudio.QuantTutorials — 5 episodes, 25 timed keyframes, animated canvas spotlight overlay, play/pause/scrub timeline bar, and clickable deep-link cards)
    • /workspace/hyperstitionstudio-core/site/quant/OPERATORS-MANUAL-QUANT-TIMESERIES-WORKBENCH.{md,pdf} (Companion Reference Manual with clickable passage-encoded deep links)
  • Core Architectural Feature (Knowledge-Graph-Modeled Documentation & Passage-Encoded Deep-Link Citations): Models /quant/'s Documentation & Citation Drawer directly on the Encyclopedia Knowledge Graph's (encyclopedia-knowledge-graph/index.html) ENC_BASE + volume_pdf_rel inspector drawer, and extends every link with RFC 3778 PDF Page/Search Fragments (#page=N&search="verbatim_lock") and WICG Scroll-To-Text Fragments (#:~:text=start_token,end_token) plus /api/v1/dossiers/{N}?highlight=<passage> and /graph/index.html?select=aq:137 so clicking any figure or lock on /quant/ (or inside the tutorial player) jumps straight to the cited passage.

1. Explaining Every Visual Figure & Numerical Readout in the /quant/ Interface

Every curve, marker, bar, cell, and metric in /quant/index.html is spotlighted by the interactive tutorial player and linked in the Documentation & Citation Drawer:

1.1 Panel 1 — Synchronized 3-Pane Time-Series Canvas (#tsCanvas)

Canvas Element / Figure Visual Encoding on Screen Mathematical & Gematrial Meaning Passage-Encoded Encyclopedia & Dossier Deep Link
1. Top-Pane Solid Cyan Curve Continuous #22d3ee cyan polyline across 30 UTC days (2026-11-01 .. 2026-11-30) Plots the active metric selected in the Metric Mode bar for ticker i:
• Spoken AQ (Gen 1): $Q^{\text{spoken}}{i,t} = \text{AQ}(\text{Ingglish}(\text{spoken}(\lfloor P{i,t}\rceil)))$
• Close Price (USD): Official 21:30 UTC closing price $P_{i,t}$
• Move (BPS): Daily basis-point change $\Delta\text{bps}{i,t} = \text{round}(100 \times \Delta%{i,t})$
• Digit AQ: Literal Base-36 digit sum of \lfloor P_{i,t}\rceil.
/encyclopedia/01-cipher-and-orthographic-mechanics/a-to-g-alphanumeric-qabbala-to-gen-2-evolution.pdf#page=1&search=Alphanumeric%20Qabbala
2. Top-Pane Horizontal Dashed Crimson Line (entity_ing = N) Dashed #ff4d4d horizontal threshold line labeled with the ticker's Gen 1 Ingglish name and AQ value (e.g., envideea=137, asml=81, anthropik=193) Marks the instrument's Intrinsic Phonemic Identity Coordinate (\text{AQ}_{\text{Ing}}(\text{Entity}_i)). When the cyan trajectory touches or crosses this dashed line, the asset's market price or basis-point move equals its own name in Base-36 space. /encyclopedia/03-machinic-phylum-singularities-s1-to-s5/s3-a-to-z-asml-to-wor-masheen.pdf#page=5&search=envideea
3. Top-Pane Gold Beacon Circles (r = 5.2px) Glowing #f5c630 gold circles plotted directly on vertices of the cyan curve Scope 1 Intra-Instrument Self-Lock or Repdigit Attractor: Fires when \lfloor P_{i,t}\rceil == \text{AQ}(\text{Entity}_i) (NVDA closing at $137.00 == envideea [137]), $ \Delta\text{bps}_{i,t}
4. Top-Pane Cyan Beacon Circles (r = 3.8px) #22d3ee cyan vertex markers on the curve Scope 2 Causal S1–S6 Supply-Chain Ring Migration: Fires when \lfloor P_{i,t}\rceil, Q^{\text{spoken}}_{i,t}, or $ \Delta\text{bps}_{i,t}
5. Middle-Pane Violet & Emerald Histogram Bars (Wire Eq) Vertical bars showing the count of verified 333 / 666 / 777 equations synthesized in that UTC date's 00:00 GMT news-wire dossier (25..71-dossier-news-YYYY-MM-DD.md) • Violet Bar (#a78bfa): Standard 00:00 GMT wire harvest day (ticker i not named in top headlines).
• Emerald Bar (#34d399): Scope 3 News-Wire Co-Presence Day (C_{i,t} = 1) — Ticker i or its entity name co-occurred in breaking wire headlines on the exact same UTC date as its market observation.
/archive/71-dossier-news-2026-11-29.md#:~:text=Nvidia,73
6. Bottom-Pane Volume Ratio & Regime Color Bars (Vol20d) Vertical bars scaled to 20-day relative volume (V_{i,t}/\bar{V}_{20}) and color-coded by objective Scope 3 thermodynamic regime • Gold Bar (#f5c630, Vol20d < 0.45x): M1_ENTROPIC_STAGNATION (halts, low-volume freeze -> 137: hawlts == inersha == envideea).
• Crimson Bar (#ff4d4d, Δ% <= -5.0% or Vol20d >= 2.5x): M2_FLASH_CRASH_TEMPLEX_SURGE (193: flash krash == anthropik, 256: akselerayshan).
• Sky-Blue Bar (#38bdf8): Normal kinetic trading regime (M3_LEVIATHAN active for $1T+ market caps).
/encyclopedia/05-memetic-superclass-m1-to-m7/m1-a-to-m-anemia-to-monopoly.pdf#page=1&search=M1
7. Vertical Gold Crosshair Line Full-height vertical gold cursor line (rgba(245,198,48,0.45)) Synchronizes all three canvas panes, the Panel 2 heatmap column, and the Panel 3 cross-sectional inspector to the selected UTC date t. Interactive UI control (Click canvas or press ← / →).

1.2 Panel 2, Panel 3 & Panel 4 Figures

  • Panel 2 (24 Tickers × 30 UTC Days Spatiotemporal Heatmap):
    • Each row is one of the 24 S1–S6 tickers (↗ opens its live TradingView Superchart in a new browser window); each column is a UTC day (01..30).
    • Gold Cell (hm-scope1): Scope 1 Intra-Instrument Self-Lock on that (Ticker, Date).
    • Cyan Cell (hm-scope2): Scope 2 S1–S6 Ring Migration on that (Ticker, Date).
    • Emerald Outline (hm-wire): Ticker co-occurred in that UTC day's 00:00 GMT news-wire dossier (Scope 3).
  • Panel 3 (Cross-Sectional Date Inspector, Multi-Lens Card, Documentation Citations & Verbatim Equation Tape):
    • Top 6 telemetry boxes display the exact values at date t: Close USD (Change bps), Spoken Close (Gen 1 AQ), Scaled Cap (Gen 1 AQ), BPS Spoken AQ / Vol20d, Active Contingent Locks, and 00:00 GMT Wire Co-Present.
    • Middle Lens Projection Card (LENS_REGISTRY) dynamically projects the instrument's 6 lens-neutral time-series moments (ts_duty_cycle_pct, ts_weighted_resonance, ts_excess_over_replacement, ts_quantile_profile, ts_optimal_lag_days, ts_regime_splits) and 30-day sparkline (▁▂▃▄▅▆▇█) into the selected lens (Quant Factor, Neutral Math, Corporate Board, TierZoo (ETI), Fantasy Sabermetrics, or Pokédex Scanner).
    • Knowledge-Graph-Modeled Documentation & Cited Passages Card: Displays the ticker's Encyclopedia Volume PDF deep link (#page=N&search=...), Knowledge Graph node deep link (/graph/index.html?select=aq:N), exemplar Dossier scroll-to-text link (#:~:text=...), and REST API JSON/passage link (/api/v1/dossiers/N?highlight=...).
    • Bottom Dated Memetic Equation Tape lists the verbatim 333 / 666 / 777 equations from that date's *-dossier-news-YYYY-MM-DD.md archive file, each with its own clickable #:~:text= passage deep link and inline REST passage preview button.
  • Panel 4 (Lead-Lag Cross-Correlation Histogram r(\tau) at \tau \in [-5, +5] Days):
    • Plots the empirical Pearson correlation r(\tau) between daily news-wire equation velocity M_t and unsigned ticker basis-point displacement |\Delta\text{bps}_{i, t+\tau}|, highlighting the optimal causal lag \tau^* in gold.

2. Option B Interactive Tutorial Player Architecture (/quant/quant-tutorials.js)

Instead of static .mp4 video files, /quant/ includes an integrated 5-Episode Interactive Canvas Tutorial Player directly below the top toolbar:

+---------------------------------------------------------------------------------------------------+
| INTERACTIVE TUTORIAL SERIES PLAYER (Zero-MP4 Live Canvas Choreographer • < 45 KB Git-Tracked)     |
| [ Ep 01: Periodicity Gate ] [ Ep 02: 3-Pane Canvas & Locks ] [ Ep 03: Heatmap & Deep Citations ]  |
| [ Ep 04: Modular Lens Switcher ] [ Ep 05: Lead-Lag r(tau) & REST API ]                            |
| +-----------------------------------------------------------------------------------------------+ |
| | [ ▶ Play / Pause ] [ ⏮ Prev Step ] [ Step 2/5 (00:18 / 00:45) ━━━━●━━━━━━ ] [ ⏭ Next ] [ 🔊 ] | |
| | SUBTITLE & CALLOUT: "Notice the Gold Circle on Nov 30 ($137.00): NVDA's integer close equals  | |
| | its own Gen 1 Ingglish coordinate (envideea = 137 [33rd PRIME])—a Scope 1 Self-Lock."         | |
| | CITED SOURCES: [ 📄 Vol 03C PDF (p.5 "envideea") ↗ ] [ 📜 Dossier 71 Passage ↗ ] [ 🕸️ aq:137 ]| |
| +-----------------------------------------------------------------------------------------------+ |
+---------------------------------------------------------------------------------------------------+

2.1 How Each Episode Choreographs the Live Interface (5 Episodes × 5 Timed Keyframes = 25 Interactive Scenes)

When an episode plays (auto-advancing every 7 seconds per keyframe or stepped manually via ⏮ / ⏭ or timeline scrubbing):

  1. State Synchronization: Each keyframe sets {guildFilter, selectedSymbol, selectedLens, metricMode, selectedDateIdx} on the live /quant/ state machine and triggers renderAll().
  2. Canvas Spotlight & Callout Overlay: Draws a pulsing gold/rose spotlight ring, vector callout arrow, and HUD label directly on #tsCanvas (or highlights the target DOM panel #heatmapTable, #lensProjectionCard, #docReferencesCard, #lagBarsContainer) pointing to the exact figure being explained.
  3. Passage-Encoded Citation Bar: Renders clickable deep-link pills for the exact Encyclopedia PDF page (#page=N&search=...), Dossier passage (#:~:text=...), REST API passage preview (/api/v1/dossiers/{N}?highlight=...), and Knowledge Graph node (/graph/index.html?select=aq:N) referenced in that scene.
Episode ID Title & Focus Live State Choreography & Spotlighted Figures
Ep 01 The Strict Periodicity Gate & Watchlist Topology Steps through ALL -> S1 -> S3 -> S6 guild filters, spotlights the Periodicity Audit Footer (20 dated 00:00 UTC dossiers + 30 daily 21:30 UTC closing-bell bars, 0 non-periodic static records), and links to Vol 08A#page=2&search=Room%20Filter and /archive/00-index-and-methodology.md#:~:text=closing-bell,continuity.
Ep 02 Reading Panel 1: Spoken AQ Curves, Gold/Cyan Beacons & Regimes Focuses NVDA ($137 == envideea [137]), ASML (+81 bps == asml [81]), and LLY ($777 repdigit); switches between Close Price (USD), Move (BPS), and Spoken AQ (Gen 1); spotlights the dashed crimson entity_ing=N threshold, Gold (Scope 1) vs. Cyan (Scope 2) beacons, Emerald (Scope 3) wire co-presence bars, and M1/M2/M3 volume bars.
Ep 03 Panels 2 & 3: The 24×30 Lock Heatmap, TradingView & Deep Citations Scrubs across the 24 × 30 heatmap (ANTHR-PVT $83 -> $89 [193] on 2026-11-26, NVDA on 2026-11-29), highlights the Open TradingView Chart ↗ launcher (T), and demonstrates clicking the passage-encoded Encyclopedia PDF (#page & search), Dossier (#:~:text=), and inline /api/v1/dossiers/71?highlight= preview buttons.
Ep 04 Hot-Swapping Projection Lenses (LENS_REGISTRY Reversibility) Holds NVDA at 2026-11-30 while cycling the Projection Lens selector through Quant Factor, Neutral Math, Corporate Board, TierZoo (ETI), Fantasy Sabermetrics, and Pokédex Scanner (DEX #137), proving how the exact same 6 lens-neutral mathematical moments (ts_*) re-project without altering a single underlying number.
Ep 05 Panel 4: Lead-Lag Cross-Correlation r(\tau), Exports & REST/SQLite APIs Spotlights Panel 4's correlation bars r(\tau) across \tau \in [-5, +5] days and the Gold optimal causal lag \tau^*, demonstrates .CSV and .JSON export, and links directly to /api/v1/quant/timeseries?symbol=NVDA and /api/v1/openapi.json.

3. Four-Phase Implementation Roadmap (Phases 1–4)

  1. In /workspace/hyperstitionstudio-core/src/hyperstitionstud_io/quant/timeseries.py, attach doc_references (encyclopedia_volume_rel, encyclopedia_deep_link with #page=N&search=..., knowledge_graph_deep_link with /graph/index.html?select=aq:N, exemplar_dossier_deep_link with #:~:text=..., rest_api_deep_link, and verbatim_citation_passage) to every instrument, guild build, and dated wire equation (dossier_deep_link, api_highlight_link, graph_hub_links), and regenerate quant-timeseries.json and quant-timeseries-data.js.
  2. In /workspace/hyperstitionstudio-core/src/hyperstitionstud_io/mcp/rest.py, add ?highlight=<passage> support to GET /api/v1/dossiers/{number} so it returns matched_passages (line numbers + verbatim surrounding lines) alongside the dossier Markdown.
  3. In /workspace/encyclopedia-knowledge-graph/index.html, add URL query parameter handling (?select=<node_id>&mode=<mode_id>) on startup so clicking a Knowledge Graph deep link from /quant/ immediately selects, centers, and opens the right-hand Encyclopedia drawer for that node.

Phase 2: Build /workspace/hyperstitionstudio-core/site/quant/quant-tutorials.js & Update /quant/index.html + quant-app.js

  1. Create site/quant/quant-tutorials.js containing the 5-episode, 25-keyframe interactive canvas choreographer, timeline scrubber, canvas spotlight/arrow overlay renderer, optional Web Speech narration toggle, and inline REST passage preview modal.
  2. Update site/quant/index.html and site/quant/quant-app.js to render:
    • The collapsible Interactive Tutorial Series Player (Ep 01–Ep 05) and Visual Figure Legend,
    • The Knowledge-Graph-modeled Documentation & Cited Passages Card in Panel 3, and
    • Passage-encoded #:~:text= deep links + inline passage preview buttons on every equation in the Dated Memetic Equation Tape.
  3. Register site/quant/quant-tutorials.js in version_sync.py.

Phase 3: Write /quant/OPERATORS-MANUAL-QUANT-TIMESERIES-WORKBENCH.{md,pdf}

  1. Author /workspace/hyperstitionstudio-core/site/quant/OPERATORS-MANUAL-QUANT-TIMESERIES-WORKBENCH.md and compile .pdf via hs-pdf-build, providing the complete reference manual for /quant/ with clickable passage-encoded links.

Phase 4: Verification in tests/test_core_suite.py & deploy/test-first-deployment.sh

  1. Add unit assertions in tests/test_core_suite.py verifying doc_references (#page=, #:~:text=, ?select=aq:) on /quant/ instruments and equations, and verifying GET /api/v1/dossiers/65?highlight=292 returns matched_passages.
  2. Add /quant/quant-tutorials.js and /quant/OPERATORS-MANUAL-QUANT-TIMESERIES-WORKBENCH.pdf to deploy/test-first-deployment.sh.