Compare commits

...
3 Commits
39 changed files with 230 additions and 3 deletions

No files matched your search

+2 -2
View File
@@ -3,8 +3,8 @@
<!-- HS-COMMIT-STATUS:START --> <!-- HS-COMMIT-STATUS:START -->
> **Gitea Commit & Release Telemetry (`v2.10.0` • Namespace `urn:io:hyperstitionstud`)** > **Gitea Commit & Release Telemetry (`v2.10.0` • Namespace `urn:io:hyperstitionstud`)**
> - **Repository Role & Public Route:** `388`-Node / `1,282`-Edge Interactive Knowledge Graph Workbench (Modes 1-4), 6-Gate Verifier, & Architectural Plan/Release Archive &rarr; [`https://hyperstitionstud.io/graph/index.html`](https://hyperstitionstud.io/graph/index.html) > - **Repository Role & Public Route:** `388`-Node / `1,282`-Edge Interactive Knowledge Graph Workbench (Modes 1-4), 6-Gate Verifier, & Architectural Plan/Release Archive &rarr; [`https://hyperstitionstud.io/graph/index.html`](https://hyperstitionstud.io/graph/index.html)
> - **Latest Commit Scope (`encyclopedia-knowledge-graph`):** Synchronized v2.10.0 release state across 9 tracked module/artifact surface(s) > - **Latest Commit Scope (`encyclopedia-knowledge-graph`):** Synchronized v2.10.0 release state across 2 tracked module/artifact surface(s)
> - **Touched Files / Surfaces:** `docs/PLAN-PIECEWISE-UI-EVOLUTION-FOR-GROWING-DATASETS-DEFERRED-STRATEGIES.md`, `docs/PLAN-PIECEWISE-UI-EVOLUTION-FOR-GROWING-DATASETS-DEFERRED-STRATEGIES.pdf`, `docs/archive/README.md`, `docs/archive/archive-manifest.json`, `docs/archive/completed-plans-archive.tar.gz`, `docs/cross-repo-dependency-and-audit-flow-diagram.html`, `docs/periodic-harvest-cicd-to-vps-flow-diagram.png`, `index.html` (+1 more) > - **Touched Files / Surfaces:** `docs/plans/piecewise/PLAN-PIECEWISE-QUANT-VOICE-NARRATION-AND-SCENE-UI-INDICATORS.md`, `docs/plans/piecewise/PLAN-PIECEWISE-QUANT-VOICE-NARRATION-AND-SCENE-UI-INDICATORS.pdf`
> - **Live Verified Ecosystem Metrics (`v2.10.0`):** `6` Repositories • `17` CLI Entrypoints • `20` MCP/REST Tools • `14` URN Resources • `63` Verified Web Routes • `388` KG Nodes / `1,282` Edges • `282` Glossary Entries • `4,943` Offline CMUdict Phonetics • `0` Synthetic Data > - **Live Verified Ecosystem Metrics (`v2.10.0`):** `6` Repositories • `17` CLI Entrypoints • `20` MCP/REST Tools • `14` URN Resources • `63` Verified Web Routes • `388` KG Nodes / `1,282` Edges • `282` Glossary Entries • `4,943` Offline CMUdict Phonetics • `0` Synthetic Data
<!-- HS-COMMIT-STATUS:END --> <!-- HS-COMMIT-STATUS:END -->
+4 -1
View File
@@ -7,7 +7,10 @@
> - **Production VPS & Git Operator Deployment Guide:** `../VPS-AND-GIT-OPERATOR-DEPLOYMENT-GUIDE.pdf` (and `.md`) > - **Production VPS & Git Operator Deployment Guide:** `../VPS-AND-GIT-OPERATOR-DEPLOYMENT-GUIDE.pdf` (and `.md`)
> - **Cross-Repository Dependency & Audit Flow Diagram:** `../cross-repo-dependency-and-audit-flow-diagram.html` (and `.png` / `.pdf`) > - **Cross-Repository Dependency & Audit Flow Diagram:** `../cross-repo-dependency-and-audit-flow-diagram.html` (and `.png` / `.pdf`)
> - **Concentric ETI Radar (`D Periphery`) Specification:** `../specification-concentric-eti-tier-ring-radar-d-periphery.pdf` (and `.md`) > - **Concentric ETI Radar (`D Periphery`) Specification:** `../specification-concentric-eti-tier-ring-radar-d-periphery.pdf` (and `.md`)
> - **Active / Deferred Roadmap Plans in `../`:** `../PLAN-LEXICAL-AND-ETYMOLOGICAL-SIMPLIFICATION.{md,pdf}`, `../PLAN-HEADER-SUBTITLE-TELEMETRY-CONSOLIDATION-ALTERNATIVE.{md,pdf}`, `../PLAN-SQLITE-META-REST-ENDPOINTS-ETAG-AND-VPS-SYNC.{md,pdf}`, `../PLAN-LLM-TOKEN-ECONOMIZER-AND-VARIANCE-ROUTING.{md,pdf}`, `../PLAN-ECOSYSTEM-WIDE-ECONOMIZATION-EVALUATION-AND-VECTORS.{md,pdf}`, `../PLAN-LOCAL-SERVER-SIDE-WEB-CHATBOT-GUI.{md,pdf}`, and `../PLAN-MEMETIC-GALLERY-SUBPAGE.{md,pdf}` are preserved in `../` as long-term inactive/deferred plans. > - **Filesystem-Organized Roadmap Plans in `../plans/`:**
> - **Active Non-Piecewise Plans:** `../plans/active/PLAN-*.{md,pdf}`
> - **Piecewise Plans (`Fully Affirmed`, `Partially Affirmed`, & `Pending Audit`):** `../plans/piecewise/PLAN-*.{md,pdf}`
> - **Inactive / Deferred Plans & Retained Candidate Strategies:** `../plans/inactive/PLAN-*.{md,pdf}`
--- ---
+7
View File
@@ -0,0 +1,7 @@
# Active Non-Piecewise Plans (`docs/plans/active/`)
This directory holds **Tier 1 Active Non-Piecewise Plans** (`PLAN-*.md` and their compiled Dark-Mode ReportLab PDF companions `PLAN-*.pdf`) for offline PDF review and direct execution.
- **Piecewise Plans (`Tier 2–4`):** Located in `../piecewise/`
- **Inactive / Deferred Plans:** Located in `../inactive/`
- **Completed Cold-Rotated Plans:** Located in `../../archive/completed-plans-archive.tar.gz`
+7
View File
@@ -0,0 +1,7 @@
# Inactive & Deferred Plans (`docs/plans/inactive/`)
This directory holds **Long-Term Inactive / Deferred Plans** and **Companion Deferred Strategy Plans** (`PLAN-*.md` and their compiled Dark-Mode ReportLab PDF companions `PLAN-*.pdf`) for offline PDF review.
- **Active Non-Piecewise Plans (`Tier 1`):** Located in `../active/`
- **Piecewise Plans (`Tier 2–4`):** Located in `../piecewise/`
- **Completed Cold-Rotated Plans:** Located in `../../archive/completed-plans-archive.tar.gz`
@@ -0,0 +1,104 @@
# PLAN: Piecewise Grimoiric Transformation of `/learn/` (`Codex of the 6 Seals, Numogrammatic Syzygy & Talismanic CIDv1 Ledger`, `Audit Points 1–5`, `Rule C` Piecewise Specification)
**Document ID:** `PLAN-PIECEWISE-GRIMOIRIC-LEARN-PAGE`
**Status:** `PENDING AUDIT PIECEWISE (0/5 AUDIT POINTS AFFIRMED — READY FOR STEPWISE REVIEW)`
**Target Ecosystem Version:** `v2.11.0`
**Target Repositories:** `hyperstitionstudio-core`, `encyclopedia-knowledge-graph`
**Author:** m00t & Hermes Agent
**Date:** 2026-11-30
---
## 1. Ground-Truth Audit: Current `/learn/` Surface (`v2.10.0`) vs. Grimoiric Potential (`Rule C.1`)
Per `Rule C` of `hyperstitionstudio-roadmap-and-release` (**Piecewise Plan Authoring & Stepwise Review Protocol**), we first audit what already exists in `/workspace/hyperstitionstudio-core/site/learn/index.html` and `site/learn/learn-app.js` today (`100%` verified) against how `/learn/` can become a true **Cybernetic & Hermetic Digital Grimoire** while remaining 100% novice-accessible, Group 3 compliant, and schema-compatible (`urn:io:hyperstitionstud:schema:v1:learn-progress-state`):
| Audit Point & `/learn/` Surface | What Exists in `/learn/` Today (`v2.10.0`) | Why It Currently Feels Like a Standard Web Course & How to Make It Grimoiric |
| :--- | :--- | :--- |
| **Audit Point 1**<br/>*Header, Sticky State Bar (`#statePortabilityBar`) & Talismanic Seal Ribbon* | • `<header>` titled `"SELF-PACED INTERACTIVE LEARNING TRACK"`<br/>• `#statePortabilityBar` shows `"0 / 6 Modules Completed (0%)"`, a plain cyan progress bar, `"Download State (.json)"`, and `"dag-json CIDv1: baguqeera..."` | • Currently reads like a generic LMS progress bar.<br/>• **Grimoiric Upgrade:** Frame `#statePortabilityBar` as the **Personal Grimoire & Talismanic Seal Ledger**, displaying a live **6-Seal Planetary/Hermetic Consecration Ribbon (`[ ☿ M01 ] [ ☉ M02 ] [ ∆ M03 ] [ ⊗ M04 ] [ ☍ M05 ] [ ♄ M06 ]`)** that illuminates in Gold/Emerald as each seal is consecrated, while framing the `RFC 8785 dag-json CIDv1` hash as the practitioner's **Cryptographic Talisman Seal (`baguqeera...`)**. |
| **Audit Point 2**<br/>*Module Framing (`M01–M06`): Dual-Register Grimoiric Folios & Sigil Seals* | • Cards labeled `Module M01 // Foundation Cipher` .. `Module M06 // Applied Decision Registers` with generic `"Mark Module Complete"` buttons and `"Personal field notes for Module M01..."` textareas | • Lacks ritual/grimoiric structure (no planetary/alchemical seal badges, no canonical Latin/CCRU epigraphs, no `"Consecrate Seal"` / `"Marginalia & Synchronicity Log"` framing).<br/>• **Grimoiric Upgrade:** Give each of the 6 modules (`M01–M06`) its **Hermetic Seal & Folio Title** alongside its clear novice-friendly math explanation (`M01: ☿ Seal I — The Base-36 Cabbala & Lexicon of Names`, `M02: ☉ Seal II — Incantation Over Orthography (The Stripping of Silent Ghost-Mass)`, `M03: ∆ Seal III — The 37×3k Attractor & Zero-Variance Singularity`, `M04: ⊗ Seal IV — Double Articulation & The Two-Gate Daemonic Pact`, `M05: ☍ Seal V — The Concentric Circle of Apex Predators & D-Periphery`, `M06: ♄ Seal VI — The Four Registers & Book of Coordinates`). |
| **Audit Point 3**<br/>*Interactive Numogrammatic Syzygy & Digital Root Readout in `M01` & `M02` Sandboxes* | • `M01` computes `computeAQ(a)` and `[PRIME]`, and `M02` computes `Gen 0 vs Gen 1` drift $\Delta$<br/>• Neither sandbox shows the **Mod-9 Digital Root (`dr_9(n)`), its CCRU `9`-Sum Twin Syzygy (`1::8, 2::7, 3::6, 4::5`), or `37×3k` Repdigit Resonance** | • A practitioner using `M01` or `M02` as a digital grimoire wants to see the **Mod-9 Digital Root (`dr_9`)**, the **CCRU 9-Sum Syzygy Twin (`4::5`, `2::7`, etc.)**, and **1-click `[ + Inscribe Coordinate to Grimoire ]`** directly inside the `M01`/`M02` readout! |
| **Audit Point 4**<br/>*Interactive Talismanic Sigil & Kamea Wheel Visualizer (`M01 / M06`)* | • `#m01Output` and `#m06Output` output plain monospace text only<br/>• No visual sigil/polygonal glyph is drawn from the user's entered word or bookmarked coordinates | • **Grimoiric Upgrade:** Add a deterministic, zero-dependency **Base-36 Planetary Wheel / 9-PointEnneagram Sigil Renderer (`<svg id="grimoireSigilSvg">`)** that traces the character-by-character path of the practitioner's input phrase (`Term A` or `Gen 1 Ingglish` incantation) around the `9` mod-9 chambers (`1..9`) or `36` Base-36 decans, with `[ Inscribe & Export SVG Sigil ]`! |
| **Audit Point 5**<br/>*Module `M06` Bookmarked Coordinate Ledger & Marginalia (`#bookmarkedCoordsList`)* | • `#bookmarkedCoordsList` renders bare pills (`AQ 137 ×`) with no lookup of what specimen/hub/syzygy that coordinate corresponds to | • Clicking or hovering a bookmarked coordinate (`AQ 292`, `AQ 137`, `AQ 666`) in a grimoire should reveal its **Canonical Correspondence & Syzygy (`AQ 292 • dr_9=4 [Syzygy 4::5] • shizohnalizis == abstrakt masheen == sinthetik dayta • [Open in /graph/ ↗]`)**! |
---
## 2. Four Factual Binary Design & Engineering Gates (`G1–G4`, Zero Synthetic Data)
- **`Gate G1` (100% Novice-Accessible Dual-Voice — Grimoiric Atmosphere Without Obscuring First-Principles Math):** Every module retains its crystal-clear novice mathematical explanation while layering authentic Hermetic/CCRU grimoiric folio titles, sigil seals (`☿, ☉, ∆, ⊗, ☍, ♄`), and marginalia framing.
- **`Gate G2` (100% Backward-Compatible `learn-progress-state.schema.json` & Test Suite Parity):** Preserves all existing DOM IDs (`#statePortabilityBar`, `#card-M01..M06`, `#chk-M01..M06`, `#note-M01..M06`, `#m01InputA`, `#m01InputB`, `#m02WordSelect`, `#m03TriadSelect`, `#m04HeadlineSelect`, `#m05BuildSelect`, `#m06RegisterSelect`, `#bookmarkedCoordsList`, `#inputBookmarkCoord`, `#filterBookmarkInput`) and `urn:io:hyperstitionstud:schema:v1:learn-progress-state` JSON structure.
- **`Gate G3` (`0` LLM Tokens & `0` External Dependencies):** All sigil geometry, mod-9 syzygy math, and correspondence lookups run 100% deterministically in client-side vanilla JS (`learn-app.js`).
- **`Gate G4` (Group 3 Stealth Basalt & DejaVu TrueType Glyph Purity):** Uses only Group 3 basalt/gold/emerald/cyan/rose tokens and DejaVu-verified Unicode symbols (`☿, ☉, ∆, ⊗, ☍, ♄, ⚚, ⚛`).
---
## 3. Piecewise Audit Points & Candidate Strategies (`Strategies 1A–1C` through `5A–5C`)
---
### Audit Point 1: Grimoiric Header, 6-Seal Consecration Ribbon & Cryptographic Talisman Bar (`#statePortabilityBar`)
- **Strategy `1A` (Transform `#statePortabilityBar` into the Interactive 6-Seal Consecration Ribbon + Cryptographic `CIDv1` Talisman Ledger — Recommended Candidate):**
- Retains all existing state import/export buttons and IDs while adding a live **6-Seal Consecration Ribbon** (`[ ☿ I: Cabbala ] [ ☉ II: Incantation ] [ ∆ III: Singularity ] [ ⊗ IV: Pact ] [ ☍ V: Circle ] [ ♄ VI: Grimoire ]`) inside `#statePortabilityBar` where clicking any seal scrolls smoothly to that folio (`#card-M01..M06`) and consecrated (completed) seals glow in Gold & Emerald.
- Updates the header and state-bar framing so the `RFC 8785 dag-json CIDv1` digest (`#stateCidBadge`) is presented as the practitioner's verifiable **Cryptographic Talisman Seal (`dag-json CIDv1: baguqeera...`)**.
- **Strategy `1B` (Update Header & Subtitle Copy Only — Minimal Candidate):**
- Changes the title text to include "Digital Grimoire" without adding the interactive 6-Seal Consecration Ribbon to `#statePortabilityBar`.
- **Strategy `1C` (Keep Current LMS-Style Progress Bar Only — Status Quo):**
- Leaves `#statePortabilityBar` unchanged.
---
### Audit Point 2: The Six Folio Cards (`#card-M01` through `#card-M06`) — Hermetic Seals, Epigraphs & Marginalia Framing
- **Strategy `2A` (Dual-Register Grimoiric Folio Headers, Hermetic Seal Badges, Epigraphs & Marginalia Prompts Across `M01–M06` — Recommended Candidate):**
- Upgrades each `.module-card` (`#card-M01`..`#card-M06`) with:
1. A carved **Group 3 Grimoiric Folio Kicker & Seal** (`Folio I • Seal of Mercury [☿] // Module M01`, `Folio II • Seal of Sol [☉] // Module M02`, `Folio III • Seal of the Triad [∆] // Module M03`, `Folio IV • Seal of Double Articulation [⊗] // Module M04`, `Folio V • Seal of the Syzygy [☍] // Module M05`, `Folio VI • Seal of Saturn [♄] // Module M06`),
2. A concise 1-line **Hermetic / Cybermemetic Axiom Banner** above the novice-friendly math explanation, and
3. Grimoiric marginalia labels on `.note-area` (`Grimoire Marginalia & Synchronicity Log for Folio I...`) while keeping all existing DOM IDs (`#chk-M01..M06`, `#note-M01..M06`) 100% intact.
- **Strategy `2B` (Replace Novice Explanations with Purely Esoteric Prose — High-Friction Candidate):**
- Removes the plain-English math explanations in favor of dense occult prose. *(Violates `Gate G1` novice accessibility for Quadrant 03).*
- **Strategy `2C` (Keep Existing Module Titles & Labels — Status Quo):**
- Leaves `M01–M06` headings unchanged.
---
### Audit Point 3: Numogrammatic Mod-9 Digital Root (`dr_9`), `9`-Sum Syzygy Twin & 1-Click Grimoire Inscription in `M01` & `M02`
- **Strategy `3A` (Enrich `#m01Output` & `#m02Output` with Mod-9 Digital Root `dr_9(n)`, CCRU `9`-Sum Syzygy Twin (`1::8, 2::7, 3::6, 4::5`), `37×3k` Attractor Detection & `[ + Inscribe AQ to Grimoire ]` Button — Recommended Candidate):**
- In `M01` (`updateM01Sandbox()`) and `M02` (`updateM02Sandbox()`), augments the live readout with:
- **Mod-9 Digital Root & Syzygy Twin:** e.g. `dr_9(81) = 9 (Repdigit Nexus 9::0)` or `dr_9(292) = 4 (CCRU Twin Syzygy 4::5 -> Demon/Zone Pair)`,
- **Prime & `37×3k` Divisibility Badges**, and
- A 1-click **`[ + Inscribe Coordinate to Grimoire Ledger ]`** button that bookmarks the computed `AQ` value directly into `memoryState.bookmarked_coordinates` (`#bookmarkedCoordsList`)!
- **Strategy `3B` (Add `dr_9(n)` Text Only Without 1-Click Inscription — Partial Candidate):**
- Prints `dr_9` in `#m01Output` without the 1-click bookmark inscription button.
- **Strategy `3C` (Leave `M01` & `M02` Readouts Unchanged — Status Quo):**
- Keeps only the basic sum and prime check.
---
### Audit Point 4: Deterministic Talismanic Sigil & 9-Chamber Enneagram Wheel (`<svg id="grimoireSigilSvg">`)
- **Strategy `4A` (Interactive Deterministic 9-Chamber Numogram / Enneagram SVG Sigil Wheel in `Module M01 / M02` with Gen 0 vs. Gen 1 Overlay & `.svg` Export — Recommended Candidate):**
- Embeds a crisp, zero-dependency Group 3 **`<svg id="grimoireSigilSvg" viewBox="0 0 280 280">`** panel beside `#m01Output` (and reactive to `M01`/`M02` inputs) that plots the **9 Mod-9 Chambers (`1..9`) around a basalt-and-gold Hermetic circle** and traces the deterministic vector path of the input word's character values (`c_1 -> c_2 -> ... -> c_k`), marking the starting glyph with a circle (`☉`), intermediate vertices with cyan nodes, and the terminal sum with a gold seal (`⚚`)—plus a **`[ Download Talisman Sigil (.svg) ]`** button!
- **Strategy `4B` (Static Decorative SVG Ornament Only — Non-Interactive Candidate):**
- Adds a static decorative SVG border that does not respond to the user's typed words.
- **Strategy `4C` (Text-Only Readouts, No Sigil Wheel — Status Quo):**
- Omits visual sigil generation.
---
### Audit Point 5: Annotated Bookmarked Coordinate Correspondences & Direct `/graph/` Ritual Links in `Module M06` (`#bookmarkedCoordsList`)
- **Strategy `5A` (Interactive Coordinate Correspondence Inspector Card `#bookmarkCorrespondenceBox` + Direct `/graph/?select=aq:<N>` Launch — Recommended Candidate):**
- Enhances `#bookmarkedCoordsList` in `Module M06` so each bookmarked coordinate pill (`AQ 292`, `AQ 137`, `AQ 666`, etc.) displays its mod-9 digital root badge, and clicking a pill inspects its **Canonical Grimoire Correspondence** in `#bookmarkCorrespondenceBox` (showing its known `Gen 1 Ingglish` equivalence lock from the corpus, its `dr_9` syzygy twin `1::8..4::5`, prime/repdigit status, and a 1-click `[ Open aq:<N> in Knowledge Graph Radar ↗ ]` link, alongside a `[ Remove × ]` action).
- **Strategy `5B` (Tooltip `title` Attribute Only on Pills — Minimal Candidate):**
- Adds a hover `title` tooltip to `.coord-pill` without an inline correspondence inspector box or `/graph/` launcher.
- **Strategy `5C` (Keep Click-to-Delete Pills Only — Status Quo):**
- Clicking a pill immediately deletes it without showing its correspondence.
---
## 4. Summary Matrix of Audit Points `1–5` for Stepwise Review
| Audit Point | Target `/learn/` Surface | Strategy `A` (Full Grimoiric Upgrade — Novice-Friendly + Group 3 Compliant) | Strategy `B` (Minimal / Partial Change) | Strategy `C` (Status Quo) |
| :--- | :--- | :--- | :--- | :--- |
| **Point 1** | **Header & `#statePortabilityBar`** | **`1A`:** 6-Seal Consecration Ribbon (`[☿ I]..[♄ VI]`) + Cryptographic `CIDv1` Talisman Seal framing | **`1B`:** Header text change only | **`1C`:** Keep current progress bar |
| **Point 2** | **Folios `M01–M06` Cards** | **`2A`:** Dual-register Grimoiric Folio titles, Hermetic seals (`☿, ☉, ∆, ⊗, ☍, ♄`), epigraphs & Marginalia prompts (preserving novice math clarity) | **`2B`:** Replace novice math with dense esoteric prose | **`2C`:** Keep current module titles |
| **Point 3** | **`M01` & `M02` Incantation Readouts** | **`3A`:** Add Mod-9 Digital Root `dr_9`, CCRU `9`-Sum Syzygy Twin (`1::8..4::5`), & `[+ Inscribe Coordinate to Grimoire]` button | **`3B`:** Add `dr_9` text only | **`3C`:** Keep current readout |
| **Point 4** | **Talismanic Sigil Generator** | **`4A`:** Interactive 9-Chamber Enneagram/Numogram `<svg id="grimoireSigilSvg">` tracing the word's vector path + `.svg` download | **`4B`:** Static decorative SVG only | **`4C`:** No SVG sigil wheel |
| **Point 5** | **`M06` Coordinate Bookmarks** | **`5A`:** Interactive `#bookmarkCorrespondenceBox` showing `Gen 1` locks, `dr_9` syzygy twin, & `[Open in /graph/ ↗]` link | **`5B`:** Hover tooltip only | **`5C`:** Click-to-delete only |
@@ -0,0 +1,99 @@
# PLAN: Piecewise `/quant/` Guided Tour Spoken Voice Narration, Explicit Per-Scene UI Element Indicators & Automatic Closeup Re-Rendering (`Audit Points 1–4`, `Rule C` Piecewise Specification)
**Document ID:** `PLAN-PIECEWISE-QUANT-VOICE-NARRATION-AND-SCENE-UI-INDICATORS`
**Status:** `PENDING AUDIT PIECEWISE (0/4 AUDIT POINTS AFFIRMED — READY FOR STEPWISE REVIEW)`
**Target Ecosystem Version:** `v2.11.0`
**Target Repositories:** `hyperstitionstudio-core`, `encyclopedia-knowledge-graph`
**Author:** m00t & Hermes Agent
**Date:** 2026-11-30
---
## 1. Ground-Truth Audit: Why `Voice: ON` Only Played Chimes & Why `Ep 04` Failed to Indicate `#lensSelect` (`Rule C.1`)
Per `Rule C` of `hyperstitionstudio-roadmap-and-release`, we audited `/workspace/hyperstitionstudio-core/site/quant/quant-tutorials.js`, `site/quant/quant-app.js`, and `src/hyperstitionstud_io/publishing/closeups_sync.py` to pinpoint the exact root causes of the issues reported by the user:
| Audit Point & Surface | Root Cause Discovered in Live Code (`v2.10.0`) | What Must Change to Fix It |
| :--- | :--- | :--- |
| **Audit Point 1**<br/>*Spoken Voice Narration (`#tutSpeechBtn` `"Voice: ON"` in `site/quant/quant-tutorials.js`)* | **1. Silent Abort When `speechSynthesis.getVoices()` Is Empty (lines 406–410):**<br/>`speakSubtitle()` calls `playWebAudioTelemetryChime(curStepIdx)` and then immediately checks:<br/>`if (typeof window.speechSynthesis === "undefined" || cachedVoices.length === 0) return;`<br/>• On Linux/Firefox/Chromium without `speech-dispatcher` voices installed (or before async `onvoiceschanged` fires), `getVoices()` returns `[]`, so `speakSubtitle()` **plays the 3-note chime and exits without speaking a single word!**<br/>**2. `cancel()` + `setTimeout(..., 60)` Loses User-Gesture Activation:**<br/>Calling `speechSynthesis.speak(u)` inside a `60ms` `setTimeout` after `cancel()` drops the browser's user-gesture token (`not-allowed`). | **1. Pre-Synthesized Offline Neural TTS Audio Clips (`site/quant/audio/ep01-s1.mp3 .. ep05-s5.mp3`) + Direct Synchronous `speechSynthesis.speak()`:**<br/>• Generate real, human-clear spoken neural TTS audio files for all 25 scenes (`text_to_speech` tool -> `site/quant/audio/ep0{1..5}-s{1..5}.mp3`) and play them via standard `<audio id="tutVoiceAudio">` when `Voice: ON` is active, falling back to synchronous `window.speechSynthesis.speak(u)` (without blocking on `cachedVoices.length === 0`) so **every browser and OS speaks the episode text aloud reliably!** |
| **Audit Point 2**<br/>*Per-Scene UI Element Indicators (`Ep 01–05`, especially `Ep 04` `#lensSelect` Dropdown)* | **1. `highlightDomTarget()` Only Knew 5 Bottom Panels (lines 454–466):**<br/>`map = { panel2: "heatmapTable", lensCard: "lensProjectionCard", docCard: "docReferencesCard", wireTape: "wireEqTape", panel4: "lagBarsContainer" }`.<br/>• It **never included `#lensSelect` (the Projection Lens dropdown list!), `#guildFilterPills`, `#tickerSelect`, `#tickerQuickFilter`, `#metricModePills`, `#timeWindowPills`, `#openTradingViewBtn`, `#exportCsvBtn`, `#macroIndicatorsPanel`, or `#dailyBriefPanel`**!<br/>• As a result, all 5 scenes of `Ep 04` (`4.1`–`4.5`) only put a faint box-shadow on `#lensProjectionCard` and **never pointed to or highlighted the `#lensSelect` Projection Lens dropdown list** in the toolbar! | **1. Explicit Floating UI Element Callout Badge (`#tutUiElementIndicator`) + Gold Pulse Ring on Every Scene's Target Control (`25/25` Scenes):**<br/>• Give every single scene (`1.1` through `5.5`) an explicit `uiTargets: [...]` array mapping to the exact DOM control(s) being taught (e.g., `Ep 04` scenes `4.1–4.5` highlight **both `#lensSelect` (Projection Lens Dropdown List) AND `#lensProjectionCard`** with a glowing Gold border + floating `▼ ACTIVE UI ELEMENT: Projection Lens Dropdown (#lensSelect)` badge and smooth scroll-into-view!). |
| **Audit Point 3**<br/>*Spoken Text Normalization for Math, Symbols & Tickers (`cleanTextForSpeech()`)* | • Raw subtitle strings contain symbols like `|Δbps_{i, t+tau}|`, `#:~:text=`, `struct_*`, `ts_*`, `==`, and `x` (`24x30`), which TTS engines read awkwardly as literal punctuation. | • Add a deterministic `cleanTextForSpeech(subtitle, uiElementLabel)` normalizer (or spoken script per scene) that announces the highlighted UI control first (*"Inspecting the Projection Lens dropdown list and Panel 3 readout: ..."*) and expands math/code symbols into natural spoken English. |
| **Audit Point 4**<br/>*Deepening `hs-closeups-sync` (`src/hyperstitionstud_io/publishing/closeups_sync.py`) for `/quant/` & All Pages* | • While `closeups_sync.py` hashes HTML IDs/classes/buttons, it currently only inspects `.html` files (not `quant-tutorials.js` or `quant-app.js` dynamic pill arrays), and the Quadrant 02 closeups (`quadrant-2-*.png`) do not visually reflect the newly added `/quant/` toolbar & tutorial controls (`#quantTutorialBar`, `#lensSelect`, `#timeWindowPills`, `#tickerQuickFilter`, `#heatmapPaginationBar`, `#wireTapeFilterInput`) when those elements are added or removed. | • Upgrade `closeups_sync.py` so `introspect_live_ui_elements()` inspects **both `.html` and companion `.js` files (`quant-app.js`, `quant-tutorials.js`, `learn-app.js`, `hs-guile-scheme-repl.js`)** AND dynamically renders the live detected UI controls directly inside the `680×260` closeup canvases whenever any control is added or removed! |
---
## 2. Four Factual Binary Engineering Gates (`G1–G4`, Zero Synthetic Data)
- **`Gate G1` (100% Real Spoken Voice Output — Not Just Chimes):** Clicking `▶ Play Guided Tour` or `🔊 Voice: ON` must produce real spoken human-intelligible voice narration of the scene's educational text (via pre-generated offline `.mp3` voice clips + synchronous Web Speech API `SpeechSynthesisUtterance` without blocking on `cachedVoices.length === 0`).
- **`Gate G2` (`25/25` Scenes Explicitly Indicate Their Target DOM UI Element(s)):** Every scene (`1.1`–`5.5`) highlights its exact DOM control(s) (including `#lensSelect` in `Ep 04`, `#guildFilterPills` in `Ep 01`, `#metricModePills` in `Ep 02`, `#openTradingViewBtn` / `#heatmapTable` in `Ep 03`, and `#exportCsvBtn` / `#lagBarsContainer` in `Ep 05`) with a high-visibility `.tut-active-ui-highlight` ring and a floating `#tutUiElementCallout` pointer banner.
- **`Gate G3` (100% Dynamic `hs-closeups-sync` Reactivity Across HTML + JS):** Adding or removing any UI element in `/quant/`, `/learn/`, `/graph/`, `/calc/`, `/engineering/`, or `/math/` (in either `.html` or `.js`) triggers `hs-closeups-sync` and updates the rendered elements inside `site/assets/closeups/*.png`.
- **`Gate G4` (`ProtectSystem=strict` `EROFS` & Offline `file://` Safe):** Works 100% offline over both HTTP and `file://`.
---
## 3. Piecewise Audit Points & Candidate Strategies (`Strategies 1A–1C` through `4A–4C`)
---
### Audit Point 1: Real Spoken Voice Narration for `/quant/` Guided Tour (`#tutSpeechBtn` & `speakSubtitle()`)
- **Strategy `1A` (Dual-Engine Spoken Voice: Pre-Generated Offline Neural TTS `.mp3` Clips for All 25 Scenes + Unblocked Synchronous Browser `speechSynthesis.speak()` Fallback — Recommended Candidate):**
- Uses the `text_to_speech` tool to generate crisp, offline-bundled spoken audio tracks (`site/quant/audio/ep01-s1.mp3` .. `ep05-s5.mp3`) for all 25 scenes and plays them through a dedicated `<audio id="tutVoicePlayer">` element when `Voice: ON` is enabled.
- Simultaneously fixes the Web Speech API fallback in `quant-tutorials.js` by:
1. Removing the fatal `if (cachedVoices.length === 0) return;` guard (calling `window.speechSynthesis.speak(u)` with the browser's default voice even when `getVoices()` is initially empty),
2. Calling `speechSynthesis.speak(u)` synchronously inside the user click handler (instead of inside `setTimeout(..., 60)`), and
3. Lowering or removing the chime so the **spoken voice** is the primary audio output controlled by `🔊 Voice: ON / 🔇 Voice: OFF`.
- **Strategy `1B` (Fix Browser `window.speechSynthesis` Guard & Synchronous Call Only — Zero `.mp3` Files Candidate):**
- Fixes `speakSubtitle()` in `quant-tutorials.js` so `window.speechSynthesis.speak(u)` is called synchronously without aborting on `cachedVoices.length === 0` and adds a spoken math/symbol normalizer, without bundling `.mp3` files.
- **Strategy `1C` (Keep WebAudio Chimes Only — Status Quo):**
- Plays only synthetic sine/triangle chimes when `getVoices()` is empty.
---
### Audit Point 2: Explicit UI Element Indication Across All 25 Scenes (Especially `Ep 04` `#lensSelect` Projection Lens Dropdown)
- **Strategy `2A` (High-Visibility Gold Callout Ring `.tut-ui-highlight` + Floating `▼ INSPECTING UI ELEMENT` Pointer Badge on Every Scene's Target Control(s), Including `#lensSelect` in `Ep 04` — Recommended Candidate):**
- Expands `highlightDomTarget()` in `site/quant/quant-tutorials.js` to support **all 18 interactive DOM controls** on `/quant/`:
- `Ep 01` (`1.1–1.5`): Highlights `#guildFilterPills` (and the specific active pill `ALL / S1 / S3 / S6`), `#tickerQuickFilter`, `#tickerSelect`, and `#periodicityAuditFooter`.
- `Ep 02` (`2.1–2.5`): Highlights `#metricModePills` (`Close Price (USD)` / `Move (BPS)` / `Spoken AQ`), `#timeWindowPills`, `#activeDateBadge`, and the specific Top/Middle/Bottom pane of `#tsCanvas`.
- `Ep 03` (`3.1–3.5`): Highlights `#heatmapTable` (`Panel 2`), `#openTradingViewBtn` & `#panel3TvBtn` (`TradingView ↗`), `#docReferencesCard`, and `#wireEqTape` + `#wireTapeFilterInput`.
- **`Ep 04` (`4.1–4.5` — Projection Lenses):** Explicitly highlights **BOTH the `#lensSelect` Projection Lens `<select>` dropdown list in the toolbar AND `#lensProjectionCard` in Panel 3**, attaches a floating Gold badge (`▼ UI ELEMENT: Projection Lens Dropdown (#lensSelect) -> Active: <Lens Name>`) directly above `#lensSelect`, and pulses `#lensSelect` so the viewer immediately sees where to change lenses!
- `Ep 05` (`5.1–5.5`): Highlights `#lagBarsContainer` (`Panel 4`), `#exportCsvBtn` & `#exportJsonBtn`, `#macroIndicatorsPanel` (`Panel 5`), and `#dailyBriefPanel` (`Panel 6`).
- **Strategy `2B` (Add `#lensSelect` Box-Shadow Only Without Floating Callout Badge — Minimal Candidate):**
- Adds `lensSelect` to `highlightDomTarget()` with a CSS `box-shadow` only, without a floating label badge or multi-control highlighting.
- **Strategy `2C` (Keep Existing 5-Panel Highlight Map — Status Quo):**
- Leaves `#lensSelect` and toolbar controls unhighlighted during the tour.
---
### Audit Point 3: Spoken Script & Educational UI-Element Callout Normalization (`speechText` Per Keyframe)
- **Strategy `3A` (Dedicated Natural-English `speechText` Per Scene Naming the Highlighted UI Control First — Recommended Candidate):**
- Adds a natural-English `speechText` field (and `cleanTextForSpeech()` normalizer) to each of the 25 scenes so the voice explicitly names the highlighted UI element and explains its educational function in clear spoken words (e.g. for `Ep 04 Scene 4.1`: *"Scene 4.1. Highlighting the Projection Lens dropdown list in the top toolbar and the Lens Projection card in Panel 3. Under the hood, the workbench stores one hundred percent lens-neutral mathematical scores. Use the Projection Lens dropdown list to switch between Neutral Math, Fund Manager, Corporate Board, TierZoo, Fantasy Sabermetrics, and Pokedex Scanner."*).
- **Strategy `3B` (Regex Strip Punctuation from Existing `subtitle` Only — Partial Candidate):**
- Strips `_*|=` characters from `kf.subtitle` without explicitly naming the highlighted UI control in the spoken narration.
- **Strategy `3C` (Pass Raw `kf.subtitle` Directly to TTS — Status Quo):**
- Passes raw code/math strings like `|Δbps_{i, t+tau}|` directly to TTS.
---
### Audit Point 4: Deepening `hs-closeups-sync` (`closeups_sync.py`) to Track JS-Rendered Controls & Visually Reflect `/quant/` UI Elements
- **Strategy `4A` (Introspect Both `.html` and `.js` UI Control Definitions in `hs-closeups-sync` & Render Live Detected Controls Inside the `680×260` Closeup Canvases — Recommended Candidate):**
- Upgrades `introspect_live_ui_elements()` in `src/hyperstitionstud_io/publishing/closeups_sync.py` so it fingerprints **both `.html` files and companion `.js` files** (`site/quant/quant-app.js`, `site/quant/quant-tutorials.js`, `site/learn/learn-app.js`, `site/assets/hs-guile-scheme-repl.js`)—detecting any added/removed toolbar controls, tutorial episodes, lens options, or filter pills.
- Updates the `Quadrant 02` (`quadrant-2-*.png`) closeup renderer in `closeups_sync.py` so that each tab closeup dynamically draws the live controls present in `site/quant/index.html` and `quant-tutorials.js` (e.g., showing the `#lensSelect` dropdown, `#tutSpeechBtn` `🔊 Voice: ON`, `#timeWindowPills` `[30D|90D|180D|ALL]`, and `#tickerQuickFilter` when present in the live DOM, and omitting them if removed) and adds a unit test in `tests/test_core_suite.py` verifying that mutating a UI element triggers `hs-closeups-sync` re-rendering!
- **Strategy `4B` (Add `.js` File Hashing to `closeups_sync.py` Only — Partial Candidate):**
- Hashes `.js` files to trigger re-renders without updating the visual control drawing inside `quadrant-2-*.png`.
- **Strategy `4C` (Leave `closeups_sync.py` HTML-Only — Status Quo):**
- Only inspects `.html` files.
---
## 4. Summary Matrix of Audit Points `1–4` for Stepwise Review
| Audit Point | Target `/quant/` & Tooling Surface | Strategy `A` (Complete Fix & Live Introspection — Recommended) | Strategy `B` (Lightweight / Partial Alternative) | Strategy `C` (Status Quo) |
| :--- | :--- | :--- | :--- | :--- |
| **Point 1** | **Spoken Voice Narration (`#tutSpeechBtn`)** | **`1A`:** Pre-generated offline neural TTS `.mp3` clips (`25` scenes) + unblocked synchronous `window.speechSynthesis.speak()` fallback | **`1B`:** Unblocked synchronous `window.speechSynthesis.speak()` fix only (`0` `.mp3` files) | **`1C`:** Chimes only when `getVoices()` is empty |
| **Point 2** | **Per-Scene UI Element Indicators (`Ep 01–05` & `Ep 04` `#lensSelect`)** | **`2A`:** Highlight all `18` DOM controls (including `#lensSelect` dropdown + `#lensProjectionCard` in `Ep 04`) with `.tut-ui-highlight` + floating `▼ UI ELEMENT` pointer badge | **`2B`:** Add `#lensSelect` box-shadow only (no floating pointer badge) | **`2C`:** Keep 5-panel highlight map |
| **Point 3** | **Spoken Educational Script (`speechText`)** | **`3A`:** Dedicated natural-English `speechText` per scene naming the highlighted UI element first + math/symbol pronunciation normalizer | **`3B`:** Regex punctuation strip on raw `subtitle` only | **`3C`:** Raw `subtitle` string |
| **Point 4** | **`hs-closeups-sync` (`closeups_sync.py`)** | **`4A`:** Introspect both `.html` + `.js` (`quant-app.js`, `quant-tutorials.js`, `learn-app.js`), dynamically draw live `/quant/` controls in `quadrant-2-*.png`, & add mutation test in `test_core_suite.py` | **`4B`:** Hash `.js` files without updating `quadrant-2-*.png` control drawing | **`4C`:** HTML-only fingerprinting |
+7
View File
@@ -0,0 +1,7 @@
# Piecewise Plans (`docs/plans/piecewise/`)
This directory holds **Tier 2 (`Fully Affirmed`), Tier 3 (`Partially Affirmed`), and Tier 4 (`Pending Audit`) Piecewise Plans** (`PLAN-*.md` and their compiled Dark-Mode ReportLab PDF companions `PLAN-*.pdf`) for offline PDF review and stepwise `Rule C` audit/execution.
- **Active Non-Piecewise Plans (`Tier 1`):** Located in `../active/`
- **Inactive / Deferred Plans & Companion Deferred Strategies:** Located in `../inactive/`
- **Completed Cold-Rotated Plans:** Located in `../../archive/completed-plans-archive.tar.gz`