Files
encyclopedia-knowledge-graph/docs/PLAN-HOMEPAGE-QUADRANT-EXPLORATORY-FEATURES-AND-BUTTON-GEOMETRY.md
T

107 lines
16 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# PLAN: Piecewise Exploratory Persona Features & Below-Closeup Button Geometry for the Homepage 2×2 Showcase Grid (`Audit Points 1–5`, `Rule C` Piecewise Specification)
**Document ID:** `PLAN-HOMEPAGE-QUADRANT-EXPLORATORY-FEATURES-AND-BUTTON-GEOMETRY`
**Status:** `ACTIVE / READY FOR STEPWISE PIECEWISE REVIEW & IMPLEMENTATION`
**Target Ecosystem Version:** `v2.8.0`
**Target Repositories:** `hyperstitionstudio-core`, `haiperdohp-jemaytreeah`, `encyclopedia-knowledge-graph`
**Author:** m00t & Hermes Agent
**Date:** 2026-11-30
---
## 1. Ground-Truth Audit: What Already Exists in the Codebase vs. Where Data or Code Is Missing (`Rule C.1`)
Per `Rule C` of `hyperstitionstudio-roadmap-and-release` (**Piecewise Plan Authoring & Stepwise Review Protocol**), this plan opens with an empirical Ground-Truth Audit separating (a) capabilities and data that **already exist and are 100% verified in the workspace today**, from (b) net-new UI code or statistical sample-size limits (`"Insufficient data to merit confidence / No data available"`):
| Audit Point | Target Surface & Persona | What Already Exists in the Codebase Today (`100%` Verified) | What Is Net-New or Statistically Constrained (`"No data available"`) |
| :--- | :--- | :--- | :--- |
| **Audit Point 1**<br/>*Below-the-Closeup Button Bar Geometry (`site/index.html`)* | Homepage `2×2` Showcase Quadrants (`Q1–Q4`, `680px` inner width below `680×260` `.closeup-frame`) | • `.card.hs-plate-g3` (`padding: 1.15rem 1.25rem` / `18.4px 20px`, `gap: 0.75rem` / `12px`)<br/>• `.closeup-frame` (`680×260` aspect ratio)<br/>• `34px`/`30px` chamfered `.btn` styling in `hs-group3-basalt-chamfer.css` | • **Net-New CSS Container (`.actions.below-closeup-bar`):** Whether each quadrant renders `1`, `2`, or `3` buttons on a single non-wrapping `680px` row depends on how many strategies (`A / B / C`) are affirmed per quadrant (`grid-template-columns: repeat(N, minmax(0, 1fr))`).<br/>• **External Click-Through Data:** `"No data available"` (`0` external clicks recorded yet). |
| **Audit Point 2**<br/>*Quadrant 01: Cybermemetics & Personal Magical Practice (`/calc/`, `/graph/`, `/learn/`)* | `ICP-H1` (Cybernetic & Occult Enthusiasts) | • **100% Live Today (`Strategy 2A`):** `☉ Personal Grimoire Ledger` already exists in `/learn/index.html` (`#statePortabilityBar`, `#inputBookmarkCoord`, `.note-area`, `#m06RegisterSelect`, `WebCrypto` `CIDv1` export/import).<br/>• **90% Live Today (`Strategy 2B`):** `/graph/index.html` already supports `?select=aq:<N>` URL deep-linking, 1-hop ego isolation, and `#flexPills`.<br/>• **Data Ready (`Strategy 2C`):** `cmudict_fallback.json` (`4,943` keys) + Base-36 `AQ` already live in `/calc/` and `hyperstitionstud_io.phonetics`. | • **`Strategy 2A`:** `0` new backend code needed (`1` deep-link button).<br/>• **`Strategy 2B` (`Numogram Syzygy Compass`):** Needs a small JS helper in `/graph/index.html` to compute `dr9(x)` and its `9`-sum twin (`1::8, 2::7, 3::6, 4::5`).<br/>• **`Strategy 2C` (`Sigil & Mantra Forge`):** Requires net-new 2D canvas/SVG kamea wheel rendering code. |
| **Audit Point 3**<br/>*Quadrant 02: Finance & Esoteric Non-Correlation (`/quant/`)* | `ICP-H2` (Finance & Alternative-Data Researchers) | • **Data & UI Ready (`Strategy 3A`):** `quant-timeseries-data.js` already ships all `9` `S1–S6` / `M1–M7+` builds with their exact 6-stat `ETI` vectors (`ARM, VEL, COL, CAP, PRM, RES`), and `/quant/` already has `#guildFilterPills` and `#lensProjectionCard`.<br/>• **Data Ready (`Strategy 3B`):** `24` watchlist tickers (`19` trading days / `472` real bars) + `14` FRED series + `confluence_dose` ($D_{i,t} \in \{0..4\}$) already pre-computed in `quant-timeseries-data.js`. | • **Statistical Sample-Size Caveat (`N = 19` trading days per ticker):** While `19` trading days (`30` UTC days) is 100% verified for **descriptive 30-day event inspection** (`Strategy 3B`) and **cross-sectional `ETI` screening** (`Strategy 3A`), it is **statistically insufficient (`"No data available"` for long-horizon $p$-values)** to claim multi-year backtested alpha or stable 252-day trailing price correlation (`Strategy 3C`). |
| **Audit Point 4**<br/>*Quadrant 03: Novice-Friendly Information Science (`/learn/`, `/engineering/`, `/math/`)* | `ICP-H3` (Novice-to-Intermediate CS & Math Learners) | • **100% Live Today (`Strategy 4A`):** `λ Visual AST & Z-Trace Tree` (`#hsGuileReplStepBtn` `"Step AST Trace"`, `#hsPolyglotReplLang`, `#hsGuileReplPreset`) is already implemented in `site/assets/hs-guile-scheme-repl.js` across all 12 `/engineering/*` & `/math/*` pages.<br/>• **100% Live Today (`Strategy 4B`):** Interactive Base-36 & `Ingglish` variance-collapse sandboxes (`Module 1`, `Module 2`, `Module 3`) are already live in `/learn/index.html` (`learn-app.js`). | • **`Strategy 4A` & `4B`:** `0` new code required beyond URL hash/query auto-focus (`#hsGuileReplDrawer`, `#mod-M02`).<br/>• **`Strategy 4C` (`1-Hop Graph Walk Builder`):** Requires net-new interactive node/edge toy builder JS on `/math/graph-topology-and-eti-scoring/`. |
| **Audit Point 5**<br/>*Quadrant 04: Operators & Two-Script DevOps (`/engineering/`)* | `ICP-H4` (Systems Operators, Self-Hosters & MCP Builders) | • **100% Live Today (`Strategy 5A`):** `◈ DAG-JSON CIDv1 Verifier` is already implemented in `/learn/learn-app.js` (`computeDagJsonCidv1()`) and `/api/v1/ipld/cid?registry=all` (`hs_compute_ipld_dag_json_cid`).<br/>• **Data & API Ready (`Strategy 5B`):** `/api/v1/status`, `/mcp`, and `engineering-manifest-data.js` are already live on `/engineering/`. | • **`Strategy 5A`:** Can link directly to `/api/v1/ipld/cid?registry=all` or `/engineering/mcp-chatbot-rest-and-ipld/` with `0` new backend code.<br/>• **`Strategy 5B` (`Live P1–P6 Smoke & ETag Probe`):** Lightweight `fetch('/api/v1/status')` button on `Unit E5`.<br/>• **`Strategy 5C` (`EROFS & tmpfs Mount Simulator UI`):** Requires net-new interactive UI widget. |
---
## 2. Four Factual Binary Engineering Gates (`G1–G4`, Zero Synthetic Scores)
Every candidate strategy across Audit Points `1–5` is evaluated strictly against four binary engineering gates:
- **`Gate G1` (100% Extant Verified Data):** Uses only verified local registries/corpora with `0` synthetic data and `0` unverified statistical claims.
- **`Gate G2` (`0` LLM Tokens):** Runs 100% deterministically in browser JS or existing stdlib Python.
- **`Gate G3` (`ProtectSystem=strict` `EROFS` Safe):** Zero writes to read-only rootfs paths.
- **`Gate G4` (Reuse-First / Minimal Code Delta):** Reuses existing live DOM/JS capabilities where available before adding new code.
---
## 3. Piecewise Audit Points & Candidate Strategies (`Strategies 1A–1C` through `5A–5C`)
---
### Audit Point 1: Below-the-Closeup Button Bar Geometry, Proportionality & Adaptive Column Grid (`site/index.html`)
Inside `.showcase-grid` (`max-width: 1320px`, `gap: 1.15rem`), each quadrant `.card.hs-plate-g3` (`padding: 1.15rem 1.25rem` / `18.4px 20px`, `gap: 0.75rem` / `12px`) frames a `680×260` `.closeup-frame`. When exploratory buttons are placed beneath `.closeup-frame`, their vertical height (`30px` vs `260px` image = `11.5%` / `1:8.7` vertical ratio) and horizontal grid columns must adapt cleanly to the number of affirmed buttons per quadrant:
- **Strategy `1A` (Adaptive `1`-to-`3` Column Flush Grid `.actions.below-closeup-bar` — Recommended Candidate):**
- Uses `display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.5rem (8px); width: 100%; margin: 0.1rem 0 0 0; padding: 0;` with `.actions.below-closeup-bar .btn { height: 30px; padding: 0.35rem 0.62rem; font-size: 0.70rem; text-align: center; justify-content: center; }`.
- **Why It Is Commutative:** Whether a quadrant has **1**, **2**, or **3** affirmed exploratory feature buttons, `repeat(auto-fit, minmax(180px, 1fr))` automatically stretches them flush across the exact `680px` width of the `.closeup-frame` above (`1` button = `680px`; `2` buttons = `2 × 336px + 8px gap = 680px`; `3` buttons = `3 × 221.3px + 2 × 8px gap = 680px`) and stacks to `1fr` on mobile (`@media (max-width: 680px)`).
- **Strategy `1B` (Fixed `3`-Column Grid Only `repeat(3, minmax(0, 1fr))` — Candidate):**
- Requires every quadrant to always have exactly `3` buttons (`221.3px` each), leaving empty whitespace if fewer than `3` strategies are affirmed for a quadrant.
- **Strategy `1C` (Keep `0` Buttons Below Closeups on `site/index.html` — Option 2 Baseline Currently Live in `v2.7.0`):**
- Leaves `site/index.html` with `0` buttons below the `680×260` UI closeups and exposes exploratory features only inside their respective subpages (`/calc/`, `/graph/`, `/quant/`, `/learn/`, `/engineering/`, `/math/`).
---
### Audit Point 2: Quadrant 01 Exploratory Features — Cybermemetics, Isopsephy & Personal Magical Practice (`ICP-H1`)
- **Strategy `2A` (`☉ Personal Grimoire Ledger` Deep-Link — 100% Live in Codebase Today, `4/4` Gates):**
- Links `[ ☉ Personal Grimoire Ledger ]` to `/learn/index.html#m06RegisterSelect` (and adds a 5-line hash handler in `/learn/learn-app.js` that scrolls to `#statePortabilityBar` / `#inputBookmarkCoord`), giving practitioners immediate 1-click access to the existing private `localStorage` coordinate bookmarking, `.note-area` synchronicity journal, and RFC 8785 `dag-json` `CIDv1` talisman exporter/importer (`0` new backend code).
- **Strategy `2B` (`☍ Numogram Syzygy Compass` Mode in `/graph/index.html` — 90% Live in Codebase Today, `4/4` Gates):**
- Links `[ ☍ Numogram Syzygy Compass ]` to `/graph/index.html?filter=syzygy` and adds `<option value="syzygy">CCRU 9-Sum Numogram Syzygies (1::8, 2::7, 3::6, 4::5)</option>` to the existing `#flagFilter` dropdown in `/workspace/encyclopedia-knowledge-graph/index.html` (`~15` lines of JS), highlighting nodes whose `AQ` mod-9 digital roots form twin syzygy pairs.
- **Strategy `2C` (`☿ Sigil & Mantra Forge` Canvas Modal in `/calc/index.html` — Net-New UI Widget, `3/4` Gates):**
- Builds a net-new SVG/Canvas kamea wheel sigil drawer inside `/workspace/haiperdohp-jemaytreeah/index.html` (`?mode=sigil-forge`). *(Higher code complexity; touches the upstream fork `haiperdohp-jemaytreeah`).*
---
### Audit Point 3: Quadrant 02 Exploratory Features — Finance & Esoteric Non-Correlation (`ICP-H2`)
- **Strategy `3A` (`♄ Uncaptured Gem Screener` Filter Pill in `/quant/index.html` — Extant `ETI` Data, `4/4` Gates):**
- Links `[ ♄ Uncaptured Gem Screener ]` to `/quant/index.html?screen=uncaptured-gems` and adds a 1-click filter preset in `/workspace/hyperstitionstudio-core/site/quant/quant-app.js` (`~20` lines of JS) that filters the `24` instruments and `9` assemblage builds to those matching the Fund Manager Proposal's `"Uncaptured Gem"` criterion (`COL >= 75` or `ARM >= 75`, `VEL >= 80`, and low institutional crowding `CAP <= 65`).
- **Strategy `3B` (`∆ 30-Day Dose D≥3 Event Inspector` Filter in `/quant/index.html` — Extant `N=19` Trading-Day Data, `4/4` Gates):**
- Links `[ ∆ 30-Day Dose D≥3 Inspector ]` to `/quant/index.html?screen=dose-d3` and highlights all `(Ticker, Date)` cells in `PANEL 2` (`#heatmapTable`) and `PANEL 1` (`#tsCanvas`) where `confluence_dose >= 3` across the `30` UTC days (`19` trading days), explicitly labeled as a **30-Day Descriptive Event Inspector ($N = 19$ trading days)** so it never overstates statistical sample size.
- **Strategy `3C` (`☍ Zero-Beta Pair Finder` — Statistically Constrained at `N = 19` Trading Days, `2/4` Gates):**
- Computing sample Pearson correlation $\rho_{\text{price}}$ over only $N = 19$ trading days has a wide standard error ($SE \approx 1/\sqrt{19 - 3} = 0.25$), which is **insufficient data to merit confidence** for claiming true "Zero-Beta" price independence until the historical bar cache accumulates $\ge 60–252$ trading days.
---
### Audit Point 4: Quadrant 03 Exploratory Features — Novice-Friendly Information Science & Polyglot CS (`ICP-H3`)
- **Strategy `4A` (`λ Visual AST & Z-Trace Tree` Auto-Open Deep-Link — 100% Live in Codebase Today, `4/4` Gates):**
- Links `[ λ Visual AST & Z-Trace Tree ]` to `/math/base36-algebra-and-primes/index.html?repl=trace` and adds a 6-line URL query check in `site/assets/hs-guile-scheme-repl.js` so `?repl=trace` automatically expands `#hsGuileReplDrawer`, selects `(prime-factors 666)`, and triggers `Step AST Trace` (`#hsGuileReplStepBtn`) on page load (`0` new backend code).
- **Strategy `4B` (`◈ Phonemic Compression Sandbox` Deep-Link — 100% Live in `/learn/index.html` Modules 1–3, `4/4` Gates):**
- Links `[ ◈ Phonemic Compression Sandbox ]` directly to `/learn/index.html#mod-M02` (where the live interactive `Gen 0 -> Gen 1 Ingglish` phonetic translator and `Module 3` Cluster `292` variance-collapse calculator already run in `learn-app.js`), avoiding duplicating `/learn/`'s sandbox on `/engineering/`.
- **Strategy `4C` (`☉ 1-Hop Graph Walk Builder` Toy Widget on `/math/graph-topology-and-eti-scoring/` — Net-New UI Code, `3/4` Gates):**
- Builds a net-new 5-node toy graph editor in `publishing/math_docs.py`. *(Redundant with `/graph/index.html`'s existing 1-hop ego-network isolator).*
---
### Audit Point 5: Quadrant 04 Exploratory Features — Operators & Two-Script DevOps (`ICP-H4`)
- **Strategy `5A` (`◈ DAG-JSON CIDv1 & Isolation Verifier` Deep-Link — 100% Live in Codebase Today, `4/4` Gates):**
- Links `[ ◈ DAG-JSON CIDv1 Verifier ]` to `/engineering/mcp-chatbot-rest-and-ipld/index.html#cid-verifier` (or `/api/v1/ipld/cid?registry=all`), where `Unit E4` and the Polyglot REPL already evaluate and verify RFC 8785 JCS + `SHA-256` `CIDv1` digests (`baguqeera...`) and `ReadOnlyIsolationGuard` receipts.
- **Strategy `5B` (`⚛ Live API & ETag 304 Probe` on `/engineering/cicd-vps-tmpfs-and-regression/` — Lightweight Live Probe, `4/4` Gates):**
- Links `[ ⚛ Live API & ETag 304 Probe ]` to `/engineering/cicd-vps-tmpfs-and-regression/index.html#live-smoke-probe` and adds a compact interactive probe panel in `Unit E5` (`publishing/engineering_docs.py`, `~25` lines) that fetches `/api/v1/status` twice (second time with `If-None-Match: <ETag>`) to demonstrate live `HTTP 200 OK` $\to$ `HTTP 304 Not Modified` conditional caching, latency, and `ReadOnlyIsolationGuard` status in the visitor's browser.
- **Strategy `5C` (`⚚ EROFS & tmpfs Mount Simulator UI` — Net-New UI Widget, `3/4` Gates):**
- Builds a separate interactive mount-table visualizer in `Unit E4/E5`. *(Redundant with `Unit E2` and `Unit E5`'s existing architecture prose and `periodic-harvest-cicd-to-vps-flow-diagram.png`).*
---
## 4. Summary Matrix of Audit Points `1–5` for Stepwise Review
| Audit Point | Strategy `A` (Reuse-First / High-Confidence) | Strategy `B` (Lightweight High-Signal Addition) | Strategy `C` (High Complexity or Insufficient Data) |
| :--- | :--- | :--- | :--- |
| **Point 1 (Button Geometry)** | **`1A`:** Adaptive `1..3` Column Flush Grid (`repeat(auto-fit, minmax(180px, 1fr))`) | **`1B`:** Fixed `3`-Column Grid Only | **`1C`:** `0` Buttons on Homepage (Option 2 Baseline) |
| **Point 2 (Quadrant 01: Cybermemetics)** | **`2A`:** `☉ Personal Grimoire Ledger` (`100%` Live in `/learn/`) | **`2B`:** `☍ Numogram Syzygy Compass` (`~15` lines in `/graph/` `#flagFilter`) | **`2C`:** `☿ Sigil & Mantra Forge` (Net-new canvas in `/calc/`) |
| **Point 3 (Quadrant 02: Finance/Quant)** | **`3A`:** `♄ Uncaptured Gem Screener` (`~20` lines in `/quant/` over extant `ETI`) | **`3B`:** `∆ 30-Day Dose D≥3 Inspector` (`~20` lines in `/quant/` over $N=19$ days) | **`3C`:** `☍ Zero-Beta Pair Finder` (*Insufficient data at $N=19$ days*) |
| **Point 4 (Quadrant 03: Novice Info Sci)** | **`4A`:** `λ Visual AST & Z-Trace Tree` (`100%` Live in `hs-guile-scheme-repl.js`) | **`4B`:** `◈ Phonemic Compression Sandbox` (`100%` Live in `/learn/#mod-M02`) | **`4C`:** `☉ 1-Hop Graph Walk Builder` (Net-new toy widget) |
| **Point 5 (Quadrant 04: Operators/SRE)** | **`5A`:** `◈ DAG-JSON CIDv1 Verifier` (`100%` Live in `Unit E4` & `/learn/`) | **`5B`:** `⚛ Live API & ETag 304 Probe` (`~25` lines in `Unit E5`) | **`5C`:** `⚚ EROFS & tmpfs Simulator UI` (Redundant widget) |