Compare commits

...
3 Commits
58 changed files with 1677 additions and 555 deletions

No files matched your search

+6 -6
View File
@@ -1,11 +1,11 @@
# `hyperstitionstudio-core` (`hyperstitionstud_io.*` — `v2.15.0`)
# `hyperstitionstudio-core` (`hyperstitionstud_io.*` — `v2.17.0`)
<!-- HS-COMMIT-STATUS:START -->
> **Gitea Commit & Release Telemetry (`v2.15.0` • Namespace `urn:io:hyperstitionstud`)**
> **Gitea Commit & Release Telemetry (`v2.17.0` • Namespace `urn:io:hyperstitionstud`)**
> - **Repository Role & Public Route:** Shared PEP 420 Python core library (`hyperstitionstud_io.*`), MCP/REST server, `/quant/`, `/learn/`, `/engineering/`, `/math/`, & `/donate/` webroots &rarr; [`https://hyperstitionstud.io/`](https://hyperstitionstud.io/)
> - **Latest Commit Scope (`hyperstitionstudio-core`):** Synchronized v2.15.0 release state across 41 tracked module/artifact surface(s)
> - **Touched Files / Surfaces:** `deploy/push-all-to-git-libre-audio.sh`, `deploy/sync-vps-repos.sh`, `package.json`, `packages-js/ciphers-aq/package.json`, `pyproject.toml`, `scripts/build_gallery_manifest.py`, `site/assets/closeups/quadrant-1-cybermemetics-calc-graph.png`, `site/assets/closeups/quadrant-4-operators-deployment-vps.png` (+33 more)
> - **Live Verified Ecosystem Metrics (`v2.15.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
> - **Latest Commit Scope (`hyperstitionstudio-core`):** Synchronized v2.17.0 release state across 44 tracked module/artifact surface(s)
> - **Touched Files / Surfaces:** `deploy/Caddyfile`, `deploy/push-all-to-git-libre-audio.sh`, `deploy/sync-vps-repos.sh`, `deploy/test-first-deployment.sh`, `package.json`, `packages-js/ciphers-aq/package.json`, `pyproject.toml`, `scripts/build_gallery_manifest.py` (+36 more)
> - **Live Verified Ecosystem Metrics (`v2.17.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 -->
Shared Python common library (`hyperstitionstud_io.*`), stateless read-only Model Context Protocol (`/mcp`) & OpenAPI 3.1 REST (`/api/v1/*`) server, SQLite FTS5 metadata catalog (`hs-db-build`), offline `URN:` JSON Schema registry (`urn:io:hyperstitionstud:schema:v1:*`), and Group 3 Stealth Basalt web workbenches (`/`, `/learn/`, `/quant/`, `/engineering/`, `/math/`, `/donate/`) with the 4-Ring Hardened Polyglot REPL (`Guile Scheme`, `TypeScript`, `Rust`) and Subtle Cybernetic Code Rain (`hs-matrix-coderain.js`).
@@ -50,7 +50,7 @@ python3 hyperstitionstudio-core/tests/test_core_suite.py
---
## Key Architecture & Capabilities (`v2.15.0`)
## Key Architecture & Capabilities (`v2.17.0`)
1. **17 CLI Entrypoints (`pyproject.toml [project.scripts]`):**
- `hs-doctor`, `hs-citations`, `hs-pdf-build`, `hs-kg-build`, `hs-quant-harvest`, `hs-macro-harvest`, `hs-daily-brief`, `hs-ticker-card`, `hs-mcp`, `hs-db-build`, `hs-sync-version`, `hs-readme-sync`, `hs-archive-rotate`, `hs-public-smoke`, `hs-eng-docs`, `hs-math-docs`, and `hs-highlights`.
+9
View File
@@ -45,6 +45,15 @@ hyperstitionstud.io {
@html_js path *.html *.js *.json
header @html_js Cache-Control "public, max-age=0, must-revalidate"
# Strategy 1A (Plan #66): Mobile User-Agent & Client-Hint Detection
@mobile_ua {
header_regexp User-Agent "(?i)(android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini|windows phone|mobile)"
}
header @mobile_ua {
X-HS-Device-UI "mobile"
Set-Cookie "hs_device_hint=mobile; Path=/; SameSite=Lax"
}
# 1. Repo Install Dir: encyclopedia-knowledge-graph -> https://hyperstitionstud.io/graph/*
handle_path /graph/* {
root * /var/www/hyperstitionstud.io/repos/encyclopedia-knowledge-graph
+1 -1
View File
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
# /workspace/push-all-to-git-libre-audio.sh
# Release v2.15.0: Pre-push verification & topological push of all 6 repositories to git.libre.audio.
# Release v2.17.0: Pre-push verification & topological push of all 6 repositories to git.libre.audio.
set -euo pipefail
on_error() {
+1 -1
View File
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
# /workspace/hyperstitionstudio-core/deploy/sync-vps-repos.sh
# Release v2.15.0: Self-re-executing tmpfs VPS hydration & service sync.
# Release v2.17.0: Self-re-executing tmpfs VPS hydration & service sync.
# Hydrates per-repository install directories from REPOS_ROOT into LIVE_REPOS (tmpfs RAM mount),
# supplies untracked haiperdohp-jemaytreeah/.gitignore files (config.js, db.json, db_lite.json),
# creates top-level route symlinks, pre-compresses (.br / .gz) static assets, and idempotently
+1
View File
@@ -55,6 +55,7 @@ ROUTES=(
"/assets/hs-group3-basalt-chamfer.css"
"/assets/hs-guile-scheme-repl.js"
"/assets/hs-matrix-coderain.js"
"/assets/hs-mobile-ui.js"
"/assets/matrix-font.woff2"
"/assets/closeups/quadrant-1-cybermemetics-calc-graph.png"
"/assets/closeups/quadrant-1-tab-2-graph.png"
@@ -0,0 +1,7 @@
# `haiperdohpjematreeah` (`hyperstitionstud.io/calc/`): The Sleek, Updated & Adventurous Alternative to `cypher.news`
`cypher.news` did vital archival work by keeping the classic Gematro-era browser calculator alive, but its interface and flat-file loading still belong to an earlier era of the web. At [`https://hyperstitionstud.io/calc/`](https://hyperstitionstud.io/calc/), **`haiperdohpjematreeah`** carries that open-source lineage forward into a sleek, chamfered Stealth Basalt instrument deck engineered for zero-lag exploration. Instead of freezing the browser tab while parsing raw text lists on startup, `haiperdohpjematreeah` uses progressive two-stage database hydration—painting instant matches from a pre-computed lite index in milliseconds while silently hydrating the full **`231,615`-entry**, **`82`-cipher** matrix in the background, complete with one-click column/value highlighting, breakdown charts, and configurable Matrix code-rain.
Where `cypher.news` treats gematria purely as an exercise in silent-letter English spelling, `haiperdohpjematreeah` is built for the adventurous: it bridges written orthography with **spoken phonemic Ingglish** (`126,000+` CMUdict pronunciations) and **Base-36 Alphanumeric Qabbala (`AQ`)**. Flipping the built-in **`ING ↑`** match-priority toggle lets you cut straight through historical spelling drift so phrases that sound identical in spoken incantation lock onto the same numerical coordinates—exposing zero-variance phonemic convergence clusters, twin-prime mutations, and `37 × 3k` repdigit attractors (`333`, `666`, `777`) across `82` classical, Qabbalistic, and CCRU/Numogrammatic ciphers.
Best of all, `hyperstitionstud.io/calc/` never strands a discovery inside an isolated calculator window. Every coordinate you surface in `haiperdohpjematreeah` connects directly to the wider [`hyperstitionstud.io`](https://hyperstitionstud.io/) laboratory: pivot in one click from a cipher match into the `388`-node Concentric ETI Knowledge Graph ([`/graph/`](https://hyperstitionstud.io/graph/)), test whether that coordinate aligns with US closing-bell equities and St. Louis Fed (`FRED`) macro spreads ([`/quant/`](https://hyperstitionstud.io/quant/)), or inspect the underlying algebra in live Guile Scheme, TypeScript, and Rust sandboxes ([`/learn/`](https://hyperstitionstud.io/learn/), [`/math/`](https://hyperstitionstud.io/math/), [`/engineering/`](https://hyperstitionstud.io/engineering/)). Zero trackers, zero ads, 100% open-source, and built for practitioners ready to move from static word-counting to live cybermemetic cartography.
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@hyperstitionstud.io/workspace-core",
"version": "2.15.0",
"version": "2.17.0",
"private": true,
"description": "Offline-first ESM & browser global (@hyperstitionstud.io/* / window.HyperstitionStudio.*) packages for Base-36 AQ ciphers and interactive knowledge graph workbenches.",
"license": "MIT",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@hyperstitionstud.io/ciphers-aq",
"version": "2.15.0",
"version": "2.17.0",
"type": "module",
"main": "index.js",
"license": "MIT"
+1 -1
View File
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "hyperstitionstudio-core"
version = "2.15.0"
version = "2.17.0"
description = "Shared PEP 420 common library (hyperstitionstud_io.*) for Base-36 AQ ciphers, offline CMUdict Ingglish phonetics, ReportLab/Pillow publishing, SHA-256 glossary isolation guards, local-config citation verification, and multi-format knowledge graphs."
readme = "README.md"
requires-python = ">=3.10"
+2 -2
View File
@@ -144,8 +144,8 @@ def main() -> int:
})
manifest = {
"version": "2.15.0",
"namespace_urn": "urn:io:hyperstitionstud:gallery:2.15.0",
"version": "2.17.0",
"namespace_urn": "urn:io:hyperstitionstud:gallery:2.17.0",
"total_items": len(items),
"items": items,
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 31 KiB

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 29 KiB

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 33 KiB

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 35 KiB

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 29 KiB

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 33 KiB

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 31 KiB

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 38 KiB

After

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 36 KiB

After

Width:  |  Height:  |  Size: 29 KiB

+34 -14
View File
@@ -1,6 +1,6 @@
{
"$id": "urn:io:hyperstitionstud:closeups-ui-manifest",
"ui_elements_fingerprint_sha256": "4b0e2539f72562a0cda20c3094f6c02a7e3e86f728073d9a83634b74c26f2f7b",
"ui_elements_fingerprint_sha256": "850e947100a471119f43bcc9317c1979447cd4c1ce3c06f4e98747be54b713b6",
"closeup_images": [
"quadrant-1-cybermemetics-calc-graph.png",
"quadrant-1-tab-2-graph.png",
@@ -69,8 +69,8 @@
]
},
"quant": {
"ui_structure_sha256": "6a8617125aa3a61d26a55c87cb39c0be18aff4fcf79e62e6d4700c49389283e6",
"id_count": 67,
"ui_structure_sha256": "2ab4047333b1c330987a5ee5b67ed3e19125c508a603ed51a8b4be54a324a4ae",
"id_count": 68,
"button_count": 21,
"option_count": 0,
"input_count": 2,
@@ -106,6 +106,7 @@
"navLearn",
"navManual",
"navMath",
"navQuant",
"nextDateBtn",
"openTradingViewBtn",
"panel1Meta",
@@ -168,7 +169,7 @@
]
},
"learn": {
"ui_structure_sha256": "e268fa263952e761a2d79b45a8881691495831178886770566532c30c2100316",
"ui_structure_sha256": "c3313aa013d20695e27cb78dde64a1e17b0dd90c09b0f47555af1b6aba72101d",
"id_count": 48,
"button_count": 11,
"option_count": 29,
@@ -266,7 +267,7 @@
]
},
"engineering_hub": {
"ui_structure_sha256": "12b0496d2f082fa2d29bf68c4b186f40be901f79a7be87fc435241ffa7123145",
"ui_structure_sha256": "9d8f350da3fb9ad545b7bcaa14879a36ad185b890e313efbe0cd354046e08f0d",
"id_count": 14,
"button_count": 16,
"option_count": 16,
@@ -331,7 +332,7 @@
]
},
"engineering_e4": {
"ui_structure_sha256": "4521e10d2e556ada980e8ba3bde5bb0748fa5ef72f15b69a1030ce07cd28904d",
"ui_structure_sha256": "1c819c615e418eec10caefaf53aa76100655c1cb7bbe7b2914e54c9b62c97996",
"id_count": 15,
"button_count": 17,
"option_count": 16,
@@ -391,7 +392,7 @@
]
},
"math_hub": {
"ui_structure_sha256": "9ce686c475325b7c3eef2abada48a3aac3cfa30bec087adb46b5226ff9a39cb6",
"ui_structure_sha256": "614ba230cf6545ababf2d4e02c46a7e3893b7b8ac2cc5795efc270e9d192abc8",
"id_count": 12,
"button_count": 16,
"option_count": 16,
@@ -450,7 +451,7 @@
]
},
"math_m1": {
"ui_structure_sha256": "3141f7e0e3e816edc7f2c49e813ca76637fa85768c57a8aa291348e7f6231736",
"ui_structure_sha256": "37fc8b04d52192d7c1e5f509944916bba270599db0f7a5f38ecfa8ad9feef13f",
"id_count": 12,
"button_count": 16,
"option_count": 16,
@@ -506,9 +507,9 @@
]
},
"graph": {
"ui_structure_sha256": "771d70e8e41e4f466d29b04274b3403753f82c7a8e8680ba5c8a732b2b00fd29",
"id_count": 16,
"button_count": 6,
"ui_structure_sha256": "095cf74cd75866d3135d0eb0cac88c85fe2f9da1c5080c1f6f528f85e4ea1505",
"id_count": 26,
"button_count": 8,
"option_count": 11,
"input_count": 1,
"heading_count": 5,
@@ -518,6 +519,14 @@
"flagFilter",
"flexPills",
"graphCanvas",
"graphNavCalc",
"graphNavDonate",
"graphNavEng",
"graphNavHome",
"graphNavLearn",
"graphNavMath",
"graphNavQuant",
"graphNavSelf",
"hudStats",
"inspBadges",
"inspBody",
@@ -525,6 +534,8 @@
"inspectorDrawer",
"isolationBox",
"minDegreeFilter",
"mobileGraphFiltersBtn",
"mobileGraphInspectorBtn",
"nbrList",
"nodeTypeToggles",
"resetViewBtn",
@@ -539,7 +550,9 @@
"Mode 3: Gen 0 -> Gen 1 Funnel",
"Mode 4: 00–08 Folder Grid",
"Reset View",
"Export PNG"
"Export PNG",
"&#x2699; Ontology &amp; Filters",
"&#x24D8; Node Inspector"
],
"sample_options": [
"Filter: All Nodes",
@@ -563,7 +576,7 @@
]
},
"calc": {
"ui_structure_sha256": "136ee82ed41030c6f2612538dc62746d080acb8d5380164e7d09075757f18125",
"ui_structure_sha256": "b12869b3987b92b014ca25a0b18e75728df5ce2cefb5666d404af4a927f2dbb9",
"id_count": 35,
"button_count": 0,
"option_count": 0,
@@ -790,6 +803,13 @@
}
},
"ipld_dag_json_cidv1": {
"/": "baguqeerazwax5xw2gotlmisyki2vbbcz3uo6ewquvskr7vnscm6i2vyg4jra"
"/": "baguqeeradg673hhidck5xgxsdfmihzeoppstvdi7gxy56ejprd5ha7swxrka"
},
"geometry_audit": {
"all_clean": true,
"checked_closeups": 11,
"breach_count": 0,
"border_crossing_count": 0,
"text_overlap_count": 0
}
}
+203
View File
@@ -9,10 +9,12 @@
========================================================================== */
:root {
--font-mono: 'DejaVu Sans Mono', 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
--bg-void: #020617;
--bg-deep: #020617;
--bg-well: #070d1b;
--bg-card: #0c1324;
--bg-panel: #0c1324;
--bg-surface: #0c1324;
--bg-elevated: #111a2e;
--bg-bezel: #182338;
@@ -35,6 +37,18 @@
--accent-violet: #a855f7;
}
body,
button,
input,
select,
textarea,
code,
pre,
kbd,
samp {
font-family: var(--font-mono);
}
body {
background-color: var(--bg-void);
background-image:
@@ -611,3 +625,192 @@ html[data-sigil-accents="off"] .panel::after {
.closeup-bar-cta:hover {
text-decoration: underline;
}
/* ==========================================================================
Unified Cross-Page Navigation UI (Plan #63 & Plan #65 — Matching Homepage)
========================================================================== */
.title-row {
display: flex;
align-items: center;
gap: 0.65rem;
}
.dot {
width: 10px;
height: 10px;
border-radius: 50%;
background: var(--cyan);
box-shadow: 0 0 10px var(--cyan);
flex-shrink: 0;
}
.top-nav.hs-global-nav {
margin-left: auto;
display: flex;
align-items: center;
justify-content: flex-end;
gap: 0.38rem;
flex-shrink: 0;
flex-wrap: nowrap;
}
@media (max-width: 1180px) {
.top-nav.hs-global-nav {
flex-wrap: wrap;
}
}
.top-nav.hs-global-nav .btn {
text-decoration: none;
background-color: var(--bg-interact);
color: var(--cyan);
border: 1px solid rgba(56, 189, 248, 0.55);
padding: 0.34rem 0.62rem;
font-size: 0.7rem;
font-weight: 600;
white-space: nowrap;
font-family: var(--font-mono);
transition: all 0.15s ease;
}
.top-nav.hs-global-nav .btn:hover,
.meta-badges .btn:hover {
border-color: var(--cyan) !important;
background-color: #192b4b !important;
color: #f8fafc !important;
}
.top-nav.hs-global-nav .btn.primary,
.meta-badges .btn.primary,
a.btn.primary:not(.btn-donate-pill),
button.btn.primary:not(.tactile-donate-btn),
button.btn.active:not(.tactile-donate-btn) {
background-color: var(--cyan) !important;
color: #020617 !important;
border-color: var(--cyan) !important;
font-weight: 700;
}
.hs-subnav-bar {
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 0.55rem;
padding: 0.65rem 1rem;
margin-bottom: 0.9rem;
}
.hs-subnav-links {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 0.38rem;
}
/* ==========================================================================
Adaptive Group 3 Mobile UI (Plan #66 — Affirmed Strategies 1A, 2A, 3A, 4A)
Strictly scoped under html[data-device-ui="mobile"] (0 Desktop UI changes)
========================================================================== */
.hs-mobile-menu-btn,
.hs-mobile-nav-sheet {
display: none;
}
html[data-device-ui="mobile"] body {
padding: 0.65rem 0.65rem !important;
}
html[data-device-ui="mobile"] header {
flex-wrap: wrap !important;
padding: 0.75rem 0.85rem !important;
gap: 0.5rem !important;
margin-bottom: 0.65rem !important;
}
html[data-device-ui="mobile"] header h1 {
white-space: normal !important;
font-size: 0.85rem !important;
line-height: 1.3 !important;
}
html[data-device-ui="mobile"] .subtitle {
font-size: 0.66rem !important;
line-height: 1.35 !important;
}
html[data-device-ui="mobile"] .hs-mobile-menu-btn {
display: inline-flex !important;
margin-left: auto;
height: 30px !important;
padding: 0 0.55rem !important;
font-size: 0.68rem !important;
font-weight: 700 !important;
flex-shrink: 0;
}
html[data-device-ui="mobile"] .meta-badges,
html[data-device-ui="mobile"] .top-nav.hs-global-nav {
width: 100% !important;
margin-left: 0 !important;
justify-content: flex-start !important;
flex-wrap: nowrap !important;
overflow-x: auto !important;
-webkit-overflow-scrolling: touch;
padding-bottom: 4px;
gap: 0.35rem !important;
}
html[data-device-ui="mobile"] .hs-mobile-nav-sheet.open {
display: grid !important;
grid-template-columns: repeat(2, 1fr);
gap: 0.45rem;
padding: 0.75rem;
margin-bottom: 0.75rem;
background-color: var(--bg-card);
border: 1px solid var(--cyan);
}
html[data-device-ui="mobile"] .hs-mobile-sheet-link {
width: 100%;
min-height: 38px !important;
justify-content: center !important;
text-align: center;
}
html[data-device-ui="mobile"] .hs-subnav-bar {
padding: 0.5rem 0.65rem !important;
overflow-x: auto !important;
}
html[data-device-ui="mobile"] .hs-polyglot-segmented {
max-width: 100%;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
}
html[data-device-ui="mobile"] #hsGuileReplDrawer {
left: 8px !important;
right: 8px !important;
bottom: 8px !important;
width: auto !important;
}
html[data-device-ui="mobile"] #quantInfoPopover {
left: 8px !important;
right: 8px !important;
bottom: 8px !important;
top: auto !important;
width: auto !important;
max-width: none !important;
}
html[data-device-ui="mobile"] #guildPills,
html[data-device-ui="mobile"] #modePills,
html[data-device-ui="mobile"] #tutEpisodeTabs {
flex-wrap: nowrap !important;
overflow-x: auto !important;
-webkit-overflow-scrolling: touch;
max-width: 100%;
padding-bottom: 3px;
}
+166
View File
@@ -0,0 +1,166 @@
/* ==========================================================================
hyperstitionstud.io — Adaptive Mobile Device Detector & Group 3 Mobile UI
(Plan #66: PLAN-PIECEWISE-MOBILE-DEVICE-DETECTION-AND-ADAPTIVE-MOBILE-UI)
Affirmed Strategies 1A, 2A, 3A, 4A:
- Multi-signal synchronous detection (URL ?mobile=1|0, localStorage override,
navigator.userAgentData.mobile, mobile UA regex, and coarse-pointer /
<=820px viewport media query) -> sets html[data-device-ui="mobile|desktop"].
- Strategy 2A: Injects `[ ☰ Menu ]` slide-down 2-column touch navigation
sheet (#hsMobileNavSheet) into <header> when mobile UI is active, while
keeping .meta-badges / .top-nav.hs-global-nav as a swipeable touch rail.
- Strategy 1A: Injects `[ 📱 Mobile UI | 🖥 Desktop UI ]` switcher in footer.
========================================================================== */
(function () {
"use strict";
var STORAGE_KEY = "hs_device_ui_override";
var MOBILE_UA_RE = /\b(Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini|Windows Phone|Mobile)\b/i;
function getCookie(name) {
try {
var m = document.cookie.match(new RegExp("(?:^|; )" + name + "=([^;]*)"));
return m ? decodeURIComponent(m[1]) : "";
} catch (_) {
return "";
}
}
function detectMobileDevice() {
try {
var params = new URLSearchParams(window.location.search || "");
var qMob = params.get("mobile");
if (qMob === "1" || qMob === "true") {
try { localStorage.setItem(STORAGE_KEY, "mobile"); } catch (_) {}
return true;
}
if (qMob === "0" || qMob === "false") {
try { localStorage.setItem(STORAGE_KEY, "desktop"); } catch (_) {}
return false;
}
var saved = "";
try { saved = localStorage.getItem(STORAGE_KEY) || ""; } catch (_) {}
if (saved === "mobile") return true;
if (saved === "desktop") return false;
} catch (_) {}
if (getCookie("hs_device_hint") === "mobile") return true;
if (typeof navigator !== "undefined") {
if (navigator.userAgentData && navigator.userAgentData.mobile === true) return true;
if (MOBILE_UA_RE.test(navigator.userAgent || "")) return true;
}
if (typeof window !== "undefined" && typeof window.matchMedia === "function") {
if (window.matchMedia("(max-width: 820px), (hover: none) and (pointer: coarse)").matches) {
return true;
}
}
return false;
}
function applyDeviceUiMode(mode) {
var root = document.documentElement;
if (!root) return;
root.setAttribute("data-device-ui", mode);
var switchBtn = document.getElementById("hsMobileUiSwitchBtn");
if (switchBtn) {
switchBtn.textContent = mode === "mobile" ? "[ \uD83D\uDCF1 Mobile UI: ON \u2022 Switch to Desktop ]" : "[ \uD83D\uDDA5 Desktop UI \u2022 Switch to Mobile UI ]";
switchBtn.setAttribute("aria-pressed", mode === "mobile" ? "true" : "false");
}
if (mode !== "mobile") {
var sheet = document.getElementById("hsMobileNavSheet");
if (sheet) sheet.classList.remove("open");
var menuBtn = document.getElementById("hsMobileMenuBtn");
if (menuBtn) menuBtn.setAttribute("aria-expanded", "false");
}
}
// Run synchronous detection immediately
var initialMode = detectMobileDevice() ? "mobile" : "desktop";
applyDeviceUiMode(initialMode);
function initMobileNavAndFooterSwitcher() {
var hdr = document.querySelector("header");
var navEl = hdr && hdr.querySelector(".top-nav.hs-global-nav, .meta-badges");
if (hdr && navEl && !document.getElementById("hsMobileMenuBtn")) {
var menuBtn = document.createElement("button");
menuBtn.type = "button";
menuBtn.id = "hsMobileMenuBtn";
menuBtn.className = "btn hs-mobile-menu-btn";
menuBtn.setAttribute("aria-expanded", "false");
menuBtn.setAttribute("aria-controls", "hsMobileNavSheet");
menuBtn.textContent = "\u2630 Menu";
var sheet = document.createElement("div");
sheet.id = "hsMobileNavSheet";
sheet.className = "hs-mobile-nav-sheet hs-plate-g3";
sheet.setAttribute("aria-label", "Mobile Ecosystem Navigation Drawer");
var links = navEl.querySelectorAll("a");
links.forEach(function (a) {
var clone = a.cloneNode(true);
clone.removeAttribute("id");
clone.classList.add("hs-mobile-sheet-link");
sheet.appendChild(clone);
});
menuBtn.addEventListener("click", function () {
var isOpen = sheet.classList.toggle("open");
menuBtn.setAttribute("aria-expanded", isOpen ? "true" : "false");
menuBtn.textContent = isOpen ? "\u2715 Close" : "\u2630 Menu";
});
var titleRow = hdr.querySelector(".title-row");
if (titleRow) {
titleRow.appendChild(menuBtn);
} else {
hdr.insertBefore(menuBtn, navEl);
}
hdr.parentNode.insertBefore(sheet, hdr.nextSibling);
}
var ftr = document.querySelector("footer");
if (ftr && !document.getElementById("hsMobileUiSwitchBtn")) {
var wrap = document.createElement("div");
wrap.style.cssText = "margin-top:6px;";
var swBtn = document.createElement("button");
swBtn.type = "button";
swBtn.id = "hsMobileUiSwitchBtn";
swBtn.className = "btn hs-rain-toggle-btn";
swBtn.addEventListener("click", function () {
var cur = document.documentElement.getAttribute("data-device-ui") || "desktop";
var next = cur === "mobile" ? "desktop" : "mobile";
try { localStorage.setItem(STORAGE_KEY, next); } catch (_) {}
applyDeviceUiMode(next);
window.dispatchEvent(new Event("resize"));
});
wrap.appendChild(swBtn);
ftr.appendChild(wrap);
applyDeviceUiMode(document.documentElement.getAttribute("data-device-ui") || initialMode);
}
}
if (document.readyState === "loading") {
document.addEventListener("DOMContentLoaded", initMobileNavAndFooterSwitcher);
} else {
initMobileNavAndFooterSwitcher();
}
window.addEventListener("resize", function () {
var saved = "";
try { saved = localStorage.getItem(STORAGE_KEY) || ""; } catch (_) {}
if (!saved) {
applyDeviceUiMode(detectMobileDevice() ? "mobile" : "desktop");
}
});
window.HyperstitionStudio = window.HyperstitionStudio || {};
window.HyperstitionStudio.MobileUI = {
detectMobileDevice: detectMobileDevice,
setMode: function (mode) {
try { localStorage.setItem(STORAGE_KEY, mode); } catch (_) {}
applyDeviceUiMode(mode);
},
getMode: function () {
return document.documentElement.getAttribute("data-device-ui") || "desktop";
}
};
})();
+33 -24
View File
@@ -4,14 +4,14 @@
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Signal Patronage &amp; Open-Instrument Notes — hyperstitionstud.io/donate</title>
<link rel="stylesheet" href="../assets/hs-group3-basalt-chamfer.css?v=2.15.0" />
<link rel="stylesheet" href="../assets/hs-group3-basalt-chamfer.css?v=2.17.0" />
<style>
:root {
--bg-canvas: #020617;
--bg-panel: #0f172a;
--bg-card: #1e293b;
--bg-panel: #0c1324;
--bg-card: #0c1324;
--bg-deep: #090d16;
--border: #334155;
--border: #26344d;
--text-main: #f8fafc;
--text-muted: #94a3b8;
--cyan: #22d3ee;
@@ -42,30 +42,34 @@
border: 1px solid var(--border);
border-left: 4px solid var(--gold);
border-radius: 10px;
padding: 1.25rem 1.5rem;
padding: 1.1rem 1.35rem;
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 1rem;
flex-wrap: nowrap;
gap: 0.85rem;
}
.title-row { display: flex; align-items: center; gap: 0.7rem; }
@media (max-width: 1220px) {
header { flex-wrap: wrap; }
}
.title-row { display: flex; align-items: center; gap: 0.65rem; }
.dot {
width: 11px;
height: 11px;
width: 10px;
height: 10px;
border-radius: 50%;
background: var(--gold);
box-shadow: 0 0 10px var(--gold);
flex-shrink: 0;
}
h1 { font-size: 1.24rem; font-weight: 700; letter-spacing: -0.01em; }
.subtitle { font-size: 0.77rem; color: var(--text-muted); margin-top: 0.3rem; }
h1 { font-size: 0.98rem; font-weight: 700; letter-spacing: -0.02em; }
.subtitle { font-size: 0.71rem; color: var(--text-muted); margin-top: 0.25rem; }
.top-nav {
margin-left: auto;
display: flex;
align-items: center;
justify-content: flex-end;
gap: 0.5rem;
flex-wrap: wrap;
gap: 0.38rem;
flex-wrap: nowrap;
}
.btn {
text-decoration: none;
@@ -73,8 +77,8 @@
color: var(--text-main);
border: 1px solid var(--border);
border-radius: 5px;
padding: 0.42rem 0.78rem;
font-size: 0.74rem;
padding: 0.34rem 0.62rem;
font-size: 0.7rem;
font-weight: 600;
font-family: inherit;
cursor: pointer;
@@ -343,14 +347,18 @@
<span class="dot"></span>
<h1>hyperstitionstud.io/donate — Signal Patronage &amp; Open-Instrument Notes</h1>
</div>
<p class="subtitle">Open-Readout Phonemic, Graph &amp; Closing-Bell Telemetry Workbench &bull; Namespace Authority: urn:io:hyperstitionstud:donate:v2.15.0 <span class="hs-sigil-seal" aria-hidden="true">[ &#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; ]</span></p>
<p class="subtitle">Open-Readout Phonemic, Graph &amp; Closing-Bell Telemetry Workbench &bull; Namespace Authority: urn:io:hyperstitionstud:donate:v2.17.0 <span class="hs-sigil-seal" aria-hidden="true">[ &#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; ]</span></p>
</div>
<nav class="top-nav">
<nav class="top-nav hs-global-nav" aria-label="Primary Ecosystem Navigation">
<a class="btn" data-donate-route="home" href="/">Portal Home (/)</a>
<a class="btn" data-donate-route="quant" href="/quant/index.html">Time-Series (/quant/)</a>
<a class="btn" data-donate-route="graph" href="/graph/index.html">Knowledge Graph (/graph/)</a>
<a class="btn" data-donate-route="learn" href="/learn/index.html">Learning Track (/learn/)</a>
<a class="btn" data-donate-route="calc" href="/calc/index.html">Calculator (/calc/)</a>
<a class="btn" data-donate-route="calc" href="/calc/index.html">Calculator</a>
<a class="btn" data-donate-route="quant" href="/quant/index.html" style="border-color:var(--gold);color:var(--gold);">Quant</a>
<a class="btn" data-donate-route="graph" href="/graph/index.html" style="border-color:var(--cyan);color:var(--cyan);">Graph</a>
<a class="btn" data-donate-route="learn" href="/learn/index.html" style="border-color:var(--emerald);color:var(--emerald);">Learn</a>
<a class="btn" data-donate-route="eng" href="/engineering/index.html">Engineering</a>
<a class="btn" data-donate-route="math" href="/math/index.html">Math</a>
<span class="nav-donate-sep" aria-hidden="true"></span>
<a class="btn-donate-pill" data-donate-route="donate" aria-current="page" href="/donate/index.html?from=donate" title="Signal Patronage &amp; Open-Instrument Notes (/donate/)"><span class="donate-pill-emblem" aria-hidden="true">&#x2665;</span><span>DONATE</span></a>
</nav>
</header>
@@ -406,12 +414,12 @@
</section>
<footer>
<div>hyperstitionstud.io/donate v2.15.0 &bull; 100% Static &amp; Offline-Portable &bull; Zero External Trackers</div>
<div>hyperstitionstud.io/donate v2.17.0 &bull; 100% Static &amp; Offline-Portable &bull; Zero External Trackers</div>
<div class="hs-lemur-credit"><span class="hs-sigil-colophon" aria-hidden="true">&#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; &middot; &#x2644;</span> &bull; Made with <span class="hs-heart" role="img" aria-label="love" style="color:var(--rose);display:inline-block;padding:0 2px;">&#x2665;</span> by Lemurs.</div>
</footer>
</div>
<script src="../assets/hs-matrix-coderain.js?v=2.15.0" defer></script>
<script src="../assets/hs-matrix-coderain.js?v=2.17.0" defer></script>
<script>
(function () {
"use strict";
@@ -477,5 +485,6 @@
}
})();
</script>
<script src="../assets/hs-mobile-ui.js?v=2.17.0" defer></script>
</body>
</html>
@@ -3,17 +3,18 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Unit E5: Topological Git Push, Self-Re-Executing tmpfs VPS Hydration, Dark-Mode hs-pdf-build & hs-public-smoke — hyperstitionstud.io/engineering (v2.15.0)</title>
<link rel="stylesheet" href="../../assets/hs-group3-basalt-chamfer.css?v=2.15.0" />
<title>Unit E5: Topological Git Push, Self-Re-Executing tmpfs VPS Hydration, Dark-Mode hs-pdf-build & hs-public-smoke — hyperstitionstud.io/engineering (v2.17.0)</title>
<link rel="stylesheet" href="../../assets/hs-group3-basalt-chamfer.css?v=2.17.0" />
<style>
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'DejaVu Sans Mono', ui-monospace, monospace; padding: 1.25rem; line-height: 1.5; }
.container { max-width: 1360px; margin: 0 auto; }
header { padding: 1rem 1.25rem; margin-bottom: 0.9rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.8rem; }
h1 { font-size: 1.05rem; color: var(--gold); }
.subtitle { font-size: 0.72rem; color: var(--text-secondary); margin-top: 0.2rem; }
.top-nav { margin-left: auto; display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; }
.btn { padding: 0.35rem 0.7rem; font-size: 0.72rem; text-decoration: none; font-family: inherit; cursor: pointer; }
header { padding: 1.1rem 1.35rem; margin-bottom: 0.75rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: nowrap; gap: 0.85rem; }
@media (max-width: 1220px) { header { flex-wrap: wrap; } }
h1 { font-size: 0.98rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text-main); }
.subtitle { font-size: 0.71rem; color: var(--text-secondary); margin-top: 0.25rem; }
.top-nav { margin-left: auto; display: flex; gap: 0.38rem; flex-wrap: nowrap; align-items: center; }
.btn { padding: 0.34rem 0.62rem; font-size: 0.7rem; font-weight: 600; text-decoration: none; font-family: inherit; cursor: pointer; }
footer { margin-top: 1rem; padding-top: 0.8rem; border-top: 1px solid var(--border); text-align: center; font-size: 0.72rem; color: var(--text-secondary); }
</style>
</head>
@@ -21,23 +22,36 @@
<div class="container">
<header>
<div>
<h1>Unit E5: Topological Git Push, Self-Re-Executing tmpfs VPS Hydration, Dark-Mode hs-pdf-build & hs-public-smoke</h1>
<p class="subtitle">Cartridge E5 &bull; Non-Sequentially Revertible via <code>hs-eng-docs --disable cicd-vps-tmpfs-and-regression</code> &bull; v2.15.0 <span class="hs-sigil-seal" aria-hidden="true">[ &#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; ]</span></p>
<div class="title-row">
<span class="dot" style="background:var(--gold);box-shadow:0 0 10px var(--gold);" aria-hidden="true"></span>
<h1>Unit E5: Topological Git Push, Self-Re-Executing tmpfs VPS Hydration, Dark-Mode hs-pdf-build & hs-public-smoke</h1>
</div>
<p class="subtitle">Cartridge E5 &bull; Non-Sequentially Revertible via <code>hs-eng-docs --disable cicd-vps-tmpfs-and-regression</code> &bull; v2.17.0 <span class="hs-sigil-seal" aria-hidden="true">[ &#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; ]</span></p>
</div>
<nav class="top-nav">
<nav class="top-nav hs-global-nav" aria-label="Primary Ecosystem Navigation">
<a class="btn" href="../../index.html">Portal Home (/)</a>
<a class="btn" href="/calc/index.html">Calculator</a>
<a class="btn" href="/quant/index.html" style="border-color:var(--gold);color:var(--gold);">Quant</a>
<a class="btn" href="/graph/index.html" style="border-color:var(--cyan);color:var(--cyan);">Graph</a>
<a class="btn" href="../../learn/index.html" style="border-color:var(--emerald);color:var(--emerald);">Learn</a>
<a class="btn primary" aria-current="page" href="../../engineering/index.html">Engineering</a>
<a class="btn" href="../../math/index.html">Math</a>
<span class="nav-donate-sep" aria-hidden="true"></span>
<a class="btn-donate-pill" href="../../donate/index.html?from=engineering" title="Signal Patronage &amp; Open-Instrument Notes (/donate/)"><span class="donate-pill-emblem" aria-hidden="true">&#x2665;</span><span>DONATE</span></a>
</nav>
</header>
<nav class="hs-subnav-bar panel hs-plate-g3" aria-label="Unit and Polyglot Sub-Navigation">
<div class="hs-subnav-links">
<a class="btn" href="../index.html" style="border-color:rgba(56,189,248,0.55);">Engineering Hub (E0)</a>
<a class="btn" href="../ciphers-and-phonetics/index.html" style="">E1: Ciphers & Phonetics</a>
<a class="btn" href="../knowledge-graph-and-sqlite/index.html" style="">E2: Knowledge Graph & SQLite</a>
<a class="btn" href="../quant-macro-and-bayesian-brief/index.html" style="">E3: Quant, Macro & Bayesian</a>
<a class="btn" href="../mcp-chatbot-rest-and-ipld/index.html" style="">E4: MCP, REST & IPLD CIDv1</a>
<a class="btn" href="index.html" style="border-color:var(--gold);color:var(--gold);">E5: CI/CD, VPS & Regression</a>
<a class="btn" href="../../math/index.html">Math Hub (/math/)</a>
<div id="hsPolyglotModeSelector" class="hs-polyglot-segmented" role="radiogroup" aria-label="Pedagogical Programming Language Lens"><span class="hs-polyglot-prefix">LENS:</span><button type="button" id="guileSchemeModeToggle" class="hs-polyglot-seg" role="radio" data-lens-mode="off" aria-checked="true" title="Hide programming language cartridges (Alt+0)">OFF</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="guile" aria-checked="false" title="GNU Guile Scheme — Z-Combinator &amp; Exact Rationals (Alt+1)"><span class="hs-guile-lambda-badge">&lambda;</span>GUILE</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="ts" aria-checked="false" title="TypeScript — Static Union Types &amp; Functional Pipelines (Alt+2)"><span class="hs-guile-lambda-badge">TS</span>TYPESCRIPT</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="rust" aria-checked="false" title="Rust — Ownership, Option&lt;T&gt; &amp; Zero-Cost Iterators (Alt+3)"><span class="hs-guile-lambda-badge">Rs</span>RUST</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="all" aria-checked="false" title="Side-by-side comparison of Guile Scheme, TypeScript, and Rust (Alt+4)">&equiv; ALL 3</button><strong id="guileSchemeModeState" style="display:none;">OFF</strong></div>
<span class="nav-donate-sep" aria-hidden="true"></span>
<a class="btn-donate-pill" href="../../donate/index.html?from=engineering"><span class="donate-pill-emblem" aria-hidden="true">&#x2665;</span><span>DONATE</span></a>
</nav>
</header>
</div>
<div id="hsPolyglotModeSelector" class="hs-polyglot-segmented" role="radiogroup" aria-label="Pedagogical Programming Language Lens"><span class="hs-polyglot-prefix">LENS:</span><button type="button" id="guileSchemeModeToggle" class="hs-polyglot-seg" role="radio" data-lens-mode="off" aria-checked="true" title="Hide programming language cartridges (Alt+0)">OFF</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="guile" aria-checked="false" title="GNU Guile Scheme — Z-Combinator &amp; Exact Rationals (Alt+1)"><span class="hs-guile-lambda-badge">&lambda;</span>GUILE</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="ts" aria-checked="false" title="TypeScript — Static Union Types &amp; Functional Pipelines (Alt+2)"><span class="hs-guile-lambda-badge">TS</span>TYPESCRIPT</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="rust" aria-checked="false" title="Rust — Ownership, Option&lt;T&gt; &amp; Zero-Cost Iterators (Alt+3)"><span class="hs-guile-lambda-badge">Rs</span>RUST</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="all" aria-checked="false" title="Side-by-side comparison of Guile Scheme, TypeScript, and Rust (Alt+4)">&equiv; ALL 3</button><strong id="guileSchemeModeState" style="display:none;">OFF</strong></div>
</nav>
<section class="panel hs-plate-g3 plate-lock-emerald hs-prereq-ladder" style="margin-bottom:0.9rem;padding:1rem 1.2rem;"><div style="font-size:0.74rem;font-weight:700;color:var(--emerald);text-transform:uppercase;letter-spacing:0.06em;">Prerequisite Track for Novices &bull; Required Expertise: Level 4: Linux Systems Administration, Bash Traps, systemd & DevOps (20-30 hrs study)</div><p style="font-size:0.76rem;color:var(--text-secondary);margin:0.35rem 0;">If any concepts on this page are unfamiliar, occupy your study time with these free foundational resources first:</p><div style="display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:0.8rem;margin-top:0.4rem;"><div><strong style="font-size:0.73rem;color:var(--gold);">Core Concepts Required:</strong><ul style="font-size:0.72rem;color:var(--text-main);margin:0.25rem 0 0 1.1rem;line-height:1.5;"><li>POSIX Bash error handling (set -euo pipefail, trap ERR, run_checked(), exec, flock)</li><li>Git fast-forward merges, annotated tags, and git pull --rebase --autostash</li><li>Linux tmpfs RAM mounts, systemd services/timers, Caddy HTTP/3 QUIC, and TrueType cmap tables</li></ul></div><div><strong style="font-size:0.73rem;color:var(--cyan);">Curated Free Public Study Resources:</strong><ul style="font-size:0.72rem;color:var(--text-main);margin:0.25rem 0 0 1.1rem;line-height:1.5;"><li><a href="https://git-scm.com/book/en/v2" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">Pro Git Book (Chacon & Straub — Free Complete Online Text) &#x2197;</a></li><li><a href="https://mywiki.wooledge.org/BashGuide" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">Wooledge BashGuide & BashFAQ (Error Handling & Process Exec) &#x2197;</a></li><li><a href="https://www.freedesktop.org/software/systemd/man/systemd.service.html" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">freedesktop.org systemd.service & systemd.timer Manuals &#x2197;</a></li><li><a href="https://caddyserver.com/docs/" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">Caddy Server Official Documentation (HTTP/3 & Reverse Proxy) &#x2197;</a></li></ul></div></div></section>
<section class="panel hs-plate-g3 hs-guile-cartridge"><div style="display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:0.5rem;"><div style="font-size:0.74rem;font-weight:700;color:var(--cyan);text-transform:uppercase;letter-spacing:0.05em;">&lambda; Polyglot Foil (E5): 4-Tier Programmatic Semantic Version Bump Heuristic</div><div style="display:flex;gap:0.25rem;flex-wrap:wrap;align-items:center;"><button type="button" class="hs-polyglot-seg" data-lens-mode="guile">&lambda; Guile</button><button type="button" class="hs-polyglot-seg" data-lens-mode="ts">TS TypeScript</button><button type="button" class="hs-polyglot-seg" data-lens-mode="rust">Rs Rust</button><button type="button" class="hs-polyglot-seg" data-lens-mode="all">&equiv; All 3</button><button type="button" class="hs-polyglot-seg" data-lens-mode="off">Hide</button></div></div><div class="hs-guile-triview"><div class="hs-guile-box"><strong style="color:var(--gold);display:block;margin-bottom:0.2rem;">1. Formal Specification &amp; Python:</strong><code>Bump(dirty, ahead, plans, tools, brk) ∈ {noop, patch, minor, major}</code><pre style="white-space:pre-wrap;margin-top:0.25rem;color:var(--text-secondary);">evaluate_change_scope_heuristics(signals)[&#x27;recommended_bump_level&#x27;]</pre></div><div class="hs-guile-box hs-lang-box-guile"><div style="display:flex;justify-content:space-between;align-items:center;"><strong style="color:var(--cyan);">&lambda; Guile Scheme (Z-Combinator):</strong><button type="button" class="btn hs-load-in-repl-btn" data-polyglot-lang="guile" data-scheme-expr="(evaluate-bump-scope 2 0 1 0 #f)" style="padding:0.12rem 0.4rem;font-size:0.65rem;">REPL &rarr;</button></div><code class="hs-guile-code-expr">(evaluate-bump-scope 2 0 1 0 #f)</code><div class="hs-guile-eval-result" style="margin-top:0.3rem;font-weight:700;color:var(--emerald);">=> [Select Lens to evaluate]</div></div><div class="hs-guile-box hs-lang-box-ts"><div style="display:flex;justify-content:space-between;align-items:center;"><strong style="color:var(--gold);">TS TypeScript (Strict AST):</strong><button type="button" class="btn hs-load-in-repl-btn" data-polyglot-lang="ts" data-scheme-expr="evaluateBumpScope({dirty: 2, ahead: 0, plans: 1, tools: 0, breaking: false})" style="padding:0.12rem 0.4rem;font-size:0.65rem;">REPL &rarr;</button></div><code class="hs-ts-code-expr">evaluateBumpScope({dirty: 2, ahead: 0, plans: 1, tools: 0, breaking: false})</code><div class="hs-ts-eval-result" style="margin-top:0.3rem;font-weight:700;color:var(--emerald);">=> [Select Lens to evaluate]</div></div><div class="hs-guile-box hs-lang-box-rust"><div style="display:flex;justify-content:space-between;align-items:center;"><strong style="color:var(--emerald);">Rs Rust (Option/Iterator AST):</strong><button type="button" class="btn hs-load-in-repl-btn" data-polyglot-lang="rust" data-scheme-expr="evaluate_bump_scope(2, 0, 1, 0, false)" style="padding:0.12rem 0.4rem;font-size:0.65rem;">REPL &rarr;</button></div><code class="hs-rust-code-expr">evaluate_bump_scope(2, 0, 1, 0, false)</code><div class="hs-rust-eval-result" style="margin-top:0.3rem;font-weight:700;color:var(--emerald);">=> [Select Lens to evaluate]</div></div></div><div style="font-size:0.71rem;color:var(--text-secondary);"><strong>Guided Micro-Challenge (4-Ring Zero-Escape Sandbox):</strong> Test the 4-tier decision tree (noop, patch, minor, major) in all 3 languages.</div></section>
@@ -49,12 +63,13 @@
</div>
<footer>
hyperstitionstud.io/engineering/cicd-vps-tmpfs-and-regression v2.15.0 &bull; <span class="hs-sigil-colophon" aria-hidden="true">&#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; &middot; &#x2644;</span> &bull; Made with <span class="hs-heart" style="color:var(--rose);">&#x2665;</span> by Lemurs.
hyperstitionstud.io/engineering/cicd-vps-tmpfs-and-regression v2.17.0 &bull; <span class="hs-sigil-colophon" aria-hidden="true">&#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; &middot; &#x2644;</span> &bull; Made with <span class="hs-heart" style="color:var(--rose);">&#x2665;</span> by Lemurs.
</footer>
</div>
<script src="../../assets/hs-matrix-coderain.js?v=2.15.0" defer></script>
<script src="../engineering-manifest-data.js?v=2.15.0"></script>
<script src="../engineering-app.js?v=2.15.0"></script>
<script src="../../assets/hs-matrix-coderain.js?v=2.17.0" defer></script>
<script src="../../assets/hs-mobile-ui.js?v=2.17.0" defer></script>
<script src="../engineering-manifest-data.js?v=2.17.0"></script>
<script src="../engineering-app.js?v=2.17.0"></script>
<aside id="hsGuileReplDrawer" class="hs-plate-g3" aria-label="In-Browser Polyglot Guile Scheme, TypeScript, and Rust Hardened REPL">
<div style="display:flex;justify-content:space-between;align-items:center;gap:0.5rem;margin-bottom:0.45rem;">
<div style="font-size:0.73rem;font-weight:700;color:var(--cyan);">&lambda; 4-RING HARDENED POLYGLOT REPL (GUILE • TS • RUST • ZERO EVAL)</div>
@@ -92,6 +107,6 @@
<pre id="hsGuileReplOutput" style="margin-top:0.4rem;background:var(--bg-void);border:1px solid var(--border);padding:0.5rem;font-size:0.71rem;color:var(--emerald);max-height:150px;overflow-y:auto;white-space:pre-wrap;">polyglot&gt; Ready (4-Ring Zero-Eval AST Sandbox). Select [λ GUILE | TS | RS | ≡ ALL 3] or click Evaluate (λ).</pre>
</div>
</aside>
<script src="../../assets/hs-guile-scheme-repl.js?v=2.15.0"></script>
<script src="../../assets/hs-guile-scheme-repl.js?v=2.17.0"></script>
</body>
</html>
@@ -3,17 +3,18 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Unit E1: Base-36 AQ Ciphers, Offline CMUdict Phonetics & Bidirectional Lock Evaluation — hyperstitionstud.io/engineering (v2.15.0)</title>
<link rel="stylesheet" href="../../assets/hs-group3-basalt-chamfer.css?v=2.15.0" />
<title>Unit E1: Base-36 AQ Ciphers, Offline CMUdict Phonetics & Bidirectional Lock Evaluation — hyperstitionstud.io/engineering (v2.17.0)</title>
<link rel="stylesheet" href="../../assets/hs-group3-basalt-chamfer.css?v=2.17.0" />
<style>
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'DejaVu Sans Mono', ui-monospace, monospace; padding: 1.25rem; line-height: 1.5; }
.container { max-width: 1360px; margin: 0 auto; }
header { padding: 1rem 1.25rem; margin-bottom: 0.9rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.8rem; }
h1 { font-size: 1.05rem; color: var(--gold); }
.subtitle { font-size: 0.72rem; color: var(--text-secondary); margin-top: 0.2rem; }
.top-nav { margin-left: auto; display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; }
.btn { padding: 0.35rem 0.7rem; font-size: 0.72rem; text-decoration: none; font-family: inherit; cursor: pointer; }
header { padding: 1.1rem 1.35rem; margin-bottom: 0.75rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: nowrap; gap: 0.85rem; }
@media (max-width: 1220px) { header { flex-wrap: wrap; } }
h1 { font-size: 0.98rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text-main); }
.subtitle { font-size: 0.71rem; color: var(--text-secondary); margin-top: 0.25rem; }
.top-nav { margin-left: auto; display: flex; gap: 0.38rem; flex-wrap: nowrap; align-items: center; }
.btn { padding: 0.34rem 0.62rem; font-size: 0.7rem; font-weight: 600; text-decoration: none; font-family: inherit; cursor: pointer; }
footer { margin-top: 1rem; padding-top: 0.8rem; border-top: 1px solid var(--border); text-align: center; font-size: 0.72rem; color: var(--text-secondary); }
</style>
</head>
@@ -21,23 +22,36 @@
<div class="container">
<header>
<div>
<h1>Unit E1: Base-36 AQ Ciphers, Offline CMUdict Phonetics & Bidirectional Lock Evaluation</h1>
<p class="subtitle">Cartridge E1 &bull; Non-Sequentially Revertible via <code>hs-eng-docs --disable ciphers-and-phonetics</code> &bull; v2.15.0 <span class="hs-sigil-seal" aria-hidden="true">[ &#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; ]</span></p>
<div class="title-row">
<span class="dot" style="background:var(--gold);box-shadow:0 0 10px var(--gold);" aria-hidden="true"></span>
<h1>Unit E1: Base-36 AQ Ciphers, Offline CMUdict Phonetics & Bidirectional Lock Evaluation</h1>
</div>
<p class="subtitle">Cartridge E1 &bull; Non-Sequentially Revertible via <code>hs-eng-docs --disable ciphers-and-phonetics</code> &bull; v2.17.0 <span class="hs-sigil-seal" aria-hidden="true">[ &#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; ]</span></p>
</div>
<nav class="top-nav">
<nav class="top-nav hs-global-nav" aria-label="Primary Ecosystem Navigation">
<a class="btn" href="../../index.html">Portal Home (/)</a>
<a class="btn" href="/calc/index.html">Calculator</a>
<a class="btn" href="/quant/index.html" style="border-color:var(--gold);color:var(--gold);">Quant</a>
<a class="btn" href="/graph/index.html" style="border-color:var(--cyan);color:var(--cyan);">Graph</a>
<a class="btn" href="../../learn/index.html" style="border-color:var(--emerald);color:var(--emerald);">Learn</a>
<a class="btn primary" aria-current="page" href="../../engineering/index.html">Engineering</a>
<a class="btn" href="../../math/index.html">Math</a>
<span class="nav-donate-sep" aria-hidden="true"></span>
<a class="btn-donate-pill" href="../../donate/index.html?from=engineering" title="Signal Patronage &amp; Open-Instrument Notes (/donate/)"><span class="donate-pill-emblem" aria-hidden="true">&#x2665;</span><span>DONATE</span></a>
</nav>
</header>
<nav class="hs-subnav-bar panel hs-plate-g3" aria-label="Unit and Polyglot Sub-Navigation">
<div class="hs-subnav-links">
<a class="btn" href="../index.html" style="border-color:rgba(56,189,248,0.55);">Engineering Hub (E0)</a>
<a class="btn" href="index.html" style="border-color:var(--gold);color:var(--gold);">E1: Ciphers & Phonetics</a>
<a class="btn" href="../knowledge-graph-and-sqlite/index.html" style="">E2: Knowledge Graph & SQLite</a>
<a class="btn" href="../quant-macro-and-bayesian-brief/index.html" style="">E3: Quant, Macro & Bayesian</a>
<a class="btn" href="../mcp-chatbot-rest-and-ipld/index.html" style="">E4: MCP, REST & IPLD CIDv1</a>
<a class="btn" href="../cicd-vps-tmpfs-and-regression/index.html" style="">E5: CI/CD, VPS & Regression</a>
<a class="btn" href="../../math/index.html">Math Hub (/math/)</a>
<div id="hsPolyglotModeSelector" class="hs-polyglot-segmented" role="radiogroup" aria-label="Pedagogical Programming Language Lens"><span class="hs-polyglot-prefix">LENS:</span><button type="button" id="guileSchemeModeToggle" class="hs-polyglot-seg" role="radio" data-lens-mode="off" aria-checked="true" title="Hide programming language cartridges (Alt+0)">OFF</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="guile" aria-checked="false" title="GNU Guile Scheme — Z-Combinator &amp; Exact Rationals (Alt+1)"><span class="hs-guile-lambda-badge">&lambda;</span>GUILE</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="ts" aria-checked="false" title="TypeScript — Static Union Types &amp; Functional Pipelines (Alt+2)"><span class="hs-guile-lambda-badge">TS</span>TYPESCRIPT</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="rust" aria-checked="false" title="Rust — Ownership, Option&lt;T&gt; &amp; Zero-Cost Iterators (Alt+3)"><span class="hs-guile-lambda-badge">Rs</span>RUST</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="all" aria-checked="false" title="Side-by-side comparison of Guile Scheme, TypeScript, and Rust (Alt+4)">&equiv; ALL 3</button><strong id="guileSchemeModeState" style="display:none;">OFF</strong></div>
<span class="nav-donate-sep" aria-hidden="true"></span>
<a class="btn-donate-pill" href="../../donate/index.html?from=engineering"><span class="donate-pill-emblem" aria-hidden="true">&#x2665;</span><span>DONATE</span></a>
</nav>
</header>
</div>
<div id="hsPolyglotModeSelector" class="hs-polyglot-segmented" role="radiogroup" aria-label="Pedagogical Programming Language Lens"><span class="hs-polyglot-prefix">LENS:</span><button type="button" id="guileSchemeModeToggle" class="hs-polyglot-seg" role="radio" data-lens-mode="off" aria-checked="true" title="Hide programming language cartridges (Alt+0)">OFF</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="guile" aria-checked="false" title="GNU Guile Scheme — Z-Combinator &amp; Exact Rationals (Alt+1)"><span class="hs-guile-lambda-badge">&lambda;</span>GUILE</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="ts" aria-checked="false" title="TypeScript — Static Union Types &amp; Functional Pipelines (Alt+2)"><span class="hs-guile-lambda-badge">TS</span>TYPESCRIPT</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="rust" aria-checked="false" title="Rust — Ownership, Option&lt;T&gt; &amp; Zero-Cost Iterators (Alt+3)"><span class="hs-guile-lambda-badge">Rs</span>RUST</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="all" aria-checked="false" title="Side-by-side comparison of Guile Scheme, TypeScript, and Rust (Alt+4)">&equiv; ALL 3</button><strong id="guileSchemeModeState" style="display:none;">OFF</strong></div>
</nav>
<section class="panel hs-plate-g3 plate-lock-emerald hs-prereq-ladder" style="margin-bottom:0.9rem;padding:1rem 1.2rem;"><div style="font-size:0.74rem;font-weight:700;color:var(--emerald);text-transform:uppercase;letter-spacing:0.06em;">Prerequisite Track for Novices &bull; Required Expertise: Level 2: Introductory Python & Text Processing (10-15 hrs study)</div><p style="font-size:0.76rem;color:var(--text-secondary);margin:0.35rem 0;">If any concepts on this page are unfamiliar, occupy your study time with these free foundational resources first:</p><div style="display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:0.8rem;margin-top:0.4rem;"><div><strong style="font-size:0.73rem;color:var(--gold);">Core Concepts Required:</strong><ul style="font-size:0.72rem;color:var(--text-main);margin:0.25rem 0 0 1.1rem;line-height:1.5;"><li>Python 3 functions, dictionaries (dict), frozenset, and regular expressions (re.sub)</li><li>ASCII & Unicode character codepoints (ord(), UTF-8)</li><li>Dictionary lookup vs. deterministic grapheme-to-phoneme fallback rules</li></ul></div><div><strong style="font-size:0.73rem;color:var(--cyan);">Curated Free Public Study Resources:</strong><ul style="font-size:0.72rem;color:var(--text-main);margin:0.25rem 0 0 1.1rem;line-height:1.5;"><li><a href="../../learn/index.html" style="color:var(--cyan);">Internal: /learn/ Module 1 & 2 (Base-36 & Ingglish) &#x2197;</a></li><li><a href="https://docs.python.org/3/tutorial/" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">Official Python 3 Tutorial (Sections 3-5 & 7) &#x2197;</a></li><li><a href="https://cs50.harvard.edu/python/" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">Harvard CS50P (Intro to Programming with Python) &#x2197;</a></li><li><a href="http://www.speech.cs.cmu.edu/cgi-bin/cmudict" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">CMU Pronouncing Dictionary (CMUdict) Specification &#x2197;</a></li><li><a href="https://regexone.com/" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">RegexOne Interactive Regular Expression Tutorial &#x2197;</a></li></ul></div></div></section>
<section class="panel hs-plate-g3 hs-guile-cartridge"><div style="display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:0.5rem;"><div style="font-size:0.74rem;font-weight:700;color:var(--cyan);text-transform:uppercase;letter-spacing:0.05em;">&lambda; Polyglot Foil (E1): Base-36 Alphanumeric Homomorphism in Guile (Z), TypeScript &amp; Rust</div><div style="display:flex;gap:0.25rem;flex-wrap:wrap;align-items:center;"><button type="button" class="hs-polyglot-seg" data-lens-mode="guile">&lambda; Guile</button><button type="button" class="hs-polyglot-seg" data-lens-mode="ts">TS TypeScript</button><button type="button" class="hs-polyglot-seg" data-lens-mode="rust">Rs Rust</button><button type="button" class="hs-polyglot-seg" data-lens-mode="all">&equiv; All 3</button><button type="button" class="hs-polyglot-seg" data-lens-mode="off">Hide</button></div></div><div class="hs-guile-triview"><div class="hs-guile-box"><strong style="color:var(--gold);display:block;margin-bottom:0.2rem;">1. Formal Specification &amp; Python:</strong><code>AQ(w) = ∑_{i=1}^k v(c_i), v(&#x27;0&#x27;..&#x27;9&#x27;)=0..9, v(&#x27;a&#x27;..&#x27;z&#x27;)=10..35</code><pre style="white-space:pre-wrap;margin-top:0.25rem;color:var(--text-secondary);">sum(char_value_aq(ch) for ch in text)</pre></div><div class="hs-guile-box hs-lang-box-guile"><div style="display:flex;justify-content:space-between;align-items:center;"><strong style="color:var(--cyan);">&lambda; Guile Scheme (Z-Combinator):</strong><button type="button" class="btn hs-load-in-repl-btn" data-polyglot-lang="guile" data-scheme-expr="(aq-base36 &quot;LEMUR&quot;)" style="padding:0.12rem 0.4rem;font-size:0.65rem;">REPL &rarr;</button></div><code class="hs-guile-code-expr">(aq-base36 &quot;LEMUR&quot;)</code><div class="hs-guile-eval-result" style="margin-top:0.3rem;font-weight:700;color:var(--emerald);">=> [Select Lens to evaluate]</div></div><div class="hs-guile-box hs-lang-box-ts"><div style="display:flex;justify-content:space-between;align-items:center;"><strong style="color:var(--gold);">TS TypeScript (Strict AST):</strong><button type="button" class="btn hs-load-in-repl-btn" data-polyglot-lang="ts" data-scheme-expr="aqBase36(&quot;LEMUR&quot;)" style="padding:0.12rem 0.4rem;font-size:0.65rem;">REPL &rarr;</button></div><code class="hs-ts-code-expr">aqBase36(&quot;LEMUR&quot;)</code><div class="hs-ts-eval-result" style="margin-top:0.3rem;font-weight:700;color:var(--emerald);">=> [Select Lens to evaluate]</div></div><div class="hs-guile-box hs-lang-box-rust"><div style="display:flex;justify-content:space-between;align-items:center;"><strong style="color:var(--emerald);">Rs Rust (Option/Iterator AST):</strong><button type="button" class="btn hs-load-in-repl-btn" data-polyglot-lang="rust" data-scheme-expr="aq_base36(&quot;LEMUR&quot;)" style="padding:0.12rem 0.4rem;font-size:0.65rem;">REPL &rarr;</button></div><code class="hs-rust-code-expr">aq_base36(&quot;LEMUR&quot;)</code><div class="hs-rust-eval-result" style="margin-top:0.3rem;font-weight:700;color:var(--emerald);">=> [Select Lens to evaluate]</div></div></div><div style="font-size:0.71rem;color:var(--text-secondary);"><strong>Guided Micro-Challenge (4-Ring Zero-Escape Sandbox):</strong> Verify AQ(&quot;LEMUR&quot;) = 114 across all 3 languages in the hardened AST sandbox.</div></section>
@@ -49,12 +63,13 @@
</div>
<footer>
hyperstitionstud.io/engineering/ciphers-and-phonetics v2.15.0 &bull; <span class="hs-sigil-colophon" aria-hidden="true">&#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; &middot; &#x2644;</span> &bull; Made with <span class="hs-heart" style="color:var(--rose);">&#x2665;</span> by Lemurs.
hyperstitionstud.io/engineering/ciphers-and-phonetics v2.17.0 &bull; <span class="hs-sigil-colophon" aria-hidden="true">&#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; &middot; &#x2644;</span> &bull; Made with <span class="hs-heart" style="color:var(--rose);">&#x2665;</span> by Lemurs.
</footer>
</div>
<script src="../../assets/hs-matrix-coderain.js?v=2.15.0" defer></script>
<script src="../engineering-manifest-data.js?v=2.15.0"></script>
<script src="../engineering-app.js?v=2.15.0"></script>
<script src="../../assets/hs-matrix-coderain.js?v=2.17.0" defer></script>
<script src="../../assets/hs-mobile-ui.js?v=2.17.0" defer></script>
<script src="../engineering-manifest-data.js?v=2.17.0"></script>
<script src="../engineering-app.js?v=2.17.0"></script>
<aside id="hsGuileReplDrawer" class="hs-plate-g3" aria-label="In-Browser Polyglot Guile Scheme, TypeScript, and Rust Hardened REPL">
<div style="display:flex;justify-content:space-between;align-items:center;gap:0.5rem;margin-bottom:0.45rem;">
<div style="font-size:0.73rem;font-weight:700;color:var(--cyan);">&lambda; 4-RING HARDENED POLYGLOT REPL (GUILE • TS • RUST • ZERO EVAL)</div>
@@ -92,6 +107,6 @@
<pre id="hsGuileReplOutput" style="margin-top:0.4rem;background:var(--bg-void);border:1px solid var(--border);padding:0.5rem;font-size:0.71rem;color:var(--emerald);max-height:150px;overflow-y:auto;white-space:pre-wrap;">polyglot&gt; Ready (4-Ring Zero-Eval AST Sandbox). Select [λ GUILE | TS | RS | ≡ ALL 3] or click Evaluate (λ).</pre>
</div>
</aside>
<script src="../../assets/hs-guile-scheme-repl.js?v=2.15.0"></script>
<script src="../../assets/hs-guile-scheme-repl.js?v=2.17.0"></script>
</body>
</html>
@@ -1 +1 @@
window.HYPERSTITION_ENGINEERING_MANIFEST = {"$id": "urn:io:hyperstitionstud:engineering-manifest", "version": "2.15.0", "enabled_subpages": ["ciphers-and-phonetics", "knowledge-graph-and-sqlite", "quant-macro-and-bayesian-brief", "mcp-chatbot-rest-and-ipld", "cicd-vps-tmpfs-and-regression"], "disabled_subpages": [], "enabled_routes": ["/engineering/index.html", "/engineering/ciphers-and-phonetics/index.html", "/engineering/knowledge-graph-and-sqlite/index.html", "/engineering/quant-macro-and-bayesian-brief/index.html", "/engineering/mcp-chatbot-rest-and-ipld/index.html", "/engineering/cicd-vps-tmpfs-and-regression/index.html"], "introspected_counts": {"repositories": 6, "cli_entrypoints": 20, "mcp_tools": 20, "rest_domain_aliases": 12, "enabled_lenses": 6, "watchlist_instruments": 24, "fred_macro_series": 14, "json_schemas_v1": 12}, "cli_scripts": {"hs-doctor": "hyperstitionstud_io.ci.doctor:main", "hs-citations": "hyperstitionstud_io.ci.citation_sources:main", "hs-pdf-build": "hyperstitionstud_io.publishing.pdf_compiler:main", "hs-kg-build": "hyperstitionstud_io.graph.cli:main", "hs-quant-harvest": "hyperstitionstud_io.quant.collector:main", "hs-mcp": "hyperstitionstud_io.mcp.server:main", "hs-sync-version": "hyperstitionstud_io.version_sync:main", "hs-db-build": "hyperstitionstud_io.db.sqlite_meta:main", "hs-macro-harvest": "hyperstitionstud_io.quant.macro:main", "hs-daily-brief": "hyperstitionstud_io.quant.daily_brief:main", "hs-ticker-card": "hyperstitionstud_io.quant.cards:main", "hs-archive-rotate": "hyperstitionstud_io.publishing.archive_rotator:main", "hs-public-smoke": "hyperstitionstud_io.ci.public_regression:main", "hs-eng-docs": "hyperstitionstud_io.publishing.engineering_docs:main", "hs-math-docs": "hyperstitionstud_io.publishing.math_docs:main", "hs-highlights": "hyperstitionstud_io.publishing.highlights:main", "hs-readme-sync": "hyperstitionstud_io.publishing.readme_sync:main", "hs-closeups-sync": "hyperstitionstud_io.publishing.closeups_sync:main", "hs-quant-voice-build": "hyperstitionstud_io.publishing.quant_voice:main", "hs-deploy-scripts-sync": "hyperstitionstud_io.ci.deploy_scripts_sync:main"}, "mcp_tool_names": ["hs_evaluate_aq_and_ingglish", "hs_classify_singularity", "hs_query_knowledge_graph", "hs_search_glossary_encyclopedia", "hs_inspect_eti_tier_list", "hs_simulate_anchor_revision", "hs_search_archive_equations", "hs_verify_grounded_citations", "hs_compute_ipld_dag_json_cid", "hs_run_doctor_and_audit", "hs_scan_financial_quant_harvest", "hs_inspect_quant_timeseries", "hs_generate_ticker_stats_card", "hs_inspect_macro_indicators", "hs_generate_daily_portfolio_brief", "hs_inspect_engineering_and_math_docs", "hs_inspect_documentation_and_manuals", "hs_evaluate_guile_scheme_z_calculus", "hs_query_workspace_catalog_and_release_state", "hs_generate_highlights_summary"], "rest_domain_aliases": {"/api/v1/doctor": "hs_run_doctor_and_audit", "/api/v1/ciphers/evaluate": "hs_evaluate_aq_and_ingglish", "/api/v1/zoology/classify": "hs_classify_singularity", "/api/v1/zoology/tier-list": "hs_inspect_eti_tier_list", "/api/v1/zoology/anchor-revision": "hs_simulate_anchor_revision", "/api/v1/graph/query": "hs_query_knowledge_graph", "/api/v1/glossary/search": "hs_search_glossary_encyclopedia", "/api/v1/archive/equations": "hs_search_archive_equations", "/api/v1/quant/harvest": "hs_scan_financial_quant_harvest", "/api/v1/quant/timeseries": "hs_inspect_quant_timeseries", "/api/v1/ipld/cid": "hs_compute_ipld_dag_json_cid", "/api/v1/citations/verify": "hs_verify_grounded_citations"}, "schemas_v1": ["assemblage-builds-tier-list.schema.json", "citations-ledger.schema.json", "encyclopedia-graph.schema.json", "encyclopedia-manifest.schema.json", "financial-aq-harvest.schema.json", "glossary-registry.schema.json", "learn-progress-state.schema.json", "memetic-superclass-registry.schema.json", "quant-timeseries.schema.json", "quantitative-economic-anchors.schema.json", "singularity-zoology-matrix.schema.json", "ticker-stats-card.schema.json"], "flow_diagrams": {"cross_repo_dependency_png": "/graph/docs/cross-repo-dependency-and-audit-flow-diagram.png", "periodic_harvest_cicd_vps_png": "/graph/docs/periodic-harvest-cicd-to-vps-flow-diagram.png"}, "hub_prereq_ladder": {"unit_id": "E0", "expertise_level": "Level 1-2 (Novice to Advanced Beginner • 4-8 hrs study)", "summary": "New to command-line shells, Git repositories, or client-server web architecture? Start with these free foundational resources before diving into the engineering subpages:", "links": [{"label": "Internal: Self-Paced Learning Track (/learn/ Modules 1-6)", "url": "/learn/index.html", "external": false}, {"label": "MIT Missing Semester of Your CS Education (Shell, Git, CLI)", "url": "https://missing.csail.mit.edu/", "external": true}, {"label": "MDN Web Docs — How the Web Works (HTTP, HTML, Servers)", "url": "https://developer.mozilla.org/en-US/docs/Learn/Getting_started_with_the_web/How_the_Web_works", "external": true}]}, "subpages": {"cipLine truncated
window.HYPERSTITION_ENGINEERING_MANIFEST = {"$id": "urn:io:hyperstitionstud:engineering-manifest", "version": "2.17.0", "enabled_subpages": ["ciphers-and-phonetics", "knowledge-graph-and-sqlite", "quant-macro-and-bayesian-brief", "mcp-chatbot-rest-and-ipld", "cicd-vps-tmpfs-and-regression"], "disabled_subpages": [], "enabled_routes": ["/engineering/index.html", "/engineering/ciphers-and-phonetics/index.html", "/engineering/knowledge-graph-and-sqlite/index.html", "/engineering/quant-macro-and-bayesian-brief/index.html", "/engineering/mcp-chatbot-rest-and-ipld/index.html", "/engineering/cicd-vps-tmpfs-and-regression/index.html"], "introspected_counts": {"repositories": 6, "cli_entrypoints": 20, "mcp_tools": 20, "rest_domain_aliases": 12, "enabled_lenses": 6, "watchlist_instruments": 24, "fred_macro_series": 14, "json_schemas_v1": 12}, "cli_scripts": {"hs-doctor": "hyperstitionstud_io.ci.doctor:main", "hs-citations": "hyperstitionstud_io.ci.citation_sources:main", "hs-pdf-build": "hyperstitionstud_io.publishing.pdf_compiler:main", "hs-kg-build": "hyperstitionstud_io.graph.cli:main", "hs-quant-harvest": "hyperstitionstud_io.quant.collector:main", "hs-mcp": "hyperstitionstud_io.mcp.server:main", "hs-sync-version": "hyperstitionstud_io.version_sync:main", "hs-db-build": "hyperstitionstud_io.db.sqlite_meta:main", "hs-macro-harvest": "hyperstitionstud_io.quant.macro:main", "hs-daily-brief": "hyperstitionstud_io.quant.daily_brief:main", "hs-ticker-card": "hyperstitionstud_io.quant.cards:main", "hs-archive-rotate": "hyperstitionstud_io.publishing.archive_rotator:main", "hs-public-smoke": "hyperstitionstud_io.ci.public_regression:main", "hs-eng-docs": "hyperstitionstud_io.publishing.engineering_docs:main", "hs-math-docs": "hyperstitionstud_io.publishing.math_docs:main", "hs-highlights": "hyperstitionstud_io.publishing.highlights:main", "hs-readme-sync": "hyperstitionstud_io.publishing.readme_sync:main", "hs-closeups-sync": "hyperstitionstud_io.publishing.closeups_sync:main", "hs-quant-voice-build": "hyperstitionstud_io.publishing.quant_voice:main", "hs-deploy-scripts-sync": "hyperstitionstud_io.ci.deploy_scripts_sync:main"}, "mcp_tool_names": ["hs_evaluate_aq_and_ingglish", "hs_classify_singularity", "hs_query_knowledge_graph", "hs_search_glossary_encyclopedia", "hs_inspect_eti_tier_list", "hs_simulate_anchor_revision", "hs_search_archive_equations", "hs_verify_grounded_citations", "hs_compute_ipld_dag_json_cid", "hs_run_doctor_and_audit", "hs_scan_financial_quant_harvest", "hs_inspect_quant_timeseries", "hs_generate_ticker_stats_card", "hs_inspect_macro_indicators", "hs_generate_daily_portfolio_brief", "hs_inspect_engineering_and_math_docs", "hs_inspect_documentation_and_manuals", "hs_evaluate_guile_scheme_z_calculus", "hs_query_workspace_catalog_and_release_state", "hs_generate_highlights_summary"], "rest_domain_aliases": {"/api/v1/doctor": "hs_run_doctor_and_audit", "/api/v1/ciphers/evaluate": "hs_evaluate_aq_and_ingglish", "/api/v1/zoology/classify": "hs_classify_singularity", "/api/v1/zoology/tier-list": "hs_inspect_eti_tier_list", "/api/v1/zoology/anchor-revision": "hs_simulate_anchor_revision", "/api/v1/graph/query": "hs_query_knowledge_graph", "/api/v1/glossary/search": "hs_search_glossary_encyclopedia", "/api/v1/archive/equations": "hs_search_archive_equations", "/api/v1/quant/harvest": "hs_scan_financial_quant_harvest", "/api/v1/quant/timeseries": "hs_inspect_quant_timeseries", "/api/v1/ipld/cid": "hs_compute_ipld_dag_json_cid", "/api/v1/citations/verify": "hs_verify_grounded_citations"}, "schemas_v1": ["assemblage-builds-tier-list.schema.json", "citations-ledger.schema.json", "encyclopedia-graph.schema.json", "encyclopedia-manifest.schema.json", "financial-aq-harvest.schema.json", "glossary-registry.schema.json", "learn-progress-state.schema.json", "memetic-superclass-registry.schema.json", "quant-timeseries.schema.json", "quantitative-economic-anchors.schema.json", "singularity-zoology-matrix.schema.json", "ticker-stats-card.schema.json"], "flow_diagrams": {"cross_repo_dependency_png": "/graph/docs/cross-repo-dependency-and-audit-flow-diagram.png", "periodic_harvest_cicd_vps_png": "/graph/docs/periodic-harvest-cicd-to-vps-flow-diagram.png"}, "hub_prereq_ladder": {"unit_id": "E0", "expertise_level": "Level 1-2 (Novice to Advanced Beginner • 4-8 hrs study)", "summary": "New to command-line shells, Git repositories, or client-server web architecture? Start with these free foundational resources before diving into the engineering subpages:", "links": [{"label": "Internal: Self-Paced Learning Track (/learn/ Modules 1-6)", "url": "/learn/index.html", "external": false}, {"label": "MIT Missing Semester of Your CS Education (Shell, Git, CLI)", "url": "https://missing.csail.mit.edu/", "external": true}, {"label": "MDN Web Docs — How the Web Works (HTTP, HTML, Servers)", "url": "https://developer.mozilla.org/en-US/docs/Learn/Getting_started_with_the_web/How_the_Web_works", "external": true}]}, "subpages": {"cipLine truncated
+2 -2
View File
@@ -1,6 +1,6 @@
{
"$id": "urn:io:hyperstitionstud:engineering-manifest",
"version": "2.15.0",
"version": "2.17.0",
"enabled_subpages": [
"ciphers-and-phonetics",
"knowledge-graph-and-sqlite",
@@ -358,6 +358,6 @@
}
},
"ipld_dag_json_cidv1": {
"/": "baguqeeraeeexuzkgxw3xm5ah4456ql5q7ivogw4iyhnohjh2wiyn6bl6dwgq"
"/": "baguqeeralhggheqvujuoexizpm3m2ygjxh4l53ibxetlgp4xallhicw2j2mq"
}
}
+36 -21
View File
@@ -3,17 +3,18 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Software Engineering Explication Hub — hyperstitionstud.io/engineering (v2.15.0)</title>
<link rel="stylesheet" href="../assets/hs-group3-basalt-chamfer.css?v=2.15.0" />
<title>Software Engineering Explication Hub — hyperstitionstud.io/engineering (v2.17.0)</title>
<link rel="stylesheet" href="../assets/hs-group3-basalt-chamfer.css?v=2.17.0" />
<style>
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'DejaVu Sans Mono', ui-monospace, monospace; padding: 1.25rem; line-height: 1.5; }
.container { max-width: 1360px; margin: 0 auto; }
header { padding: 1rem 1.25rem; margin-bottom: 0.9rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.8rem; }
h1 { font-size: 1.12rem; color: var(--gold); }
.subtitle { font-size: 0.72rem; color: var(--text-secondary); margin-top: 0.2rem; }
.top-nav { margin-left: auto; display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; }
.btn { padding: 0.35rem 0.7rem; font-size: 0.72rem; text-decoration: none; font-family: inherit; cursor: pointer; }
header { padding: 1.1rem 1.35rem; margin-bottom: 0.75rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: nowrap; gap: 0.85rem; }
@media (max-width: 1220px) { header { flex-wrap: wrap; } }
h1 { font-size: 0.98rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text-main); }
.subtitle { font-size: 0.71rem; color: var(--text-secondary); margin-top: 0.25rem; }
.top-nav { margin-left: auto; display: flex; gap: 0.38rem; flex-wrap: nowrap; align-items: center; }
.btn { padding: 0.34rem 0.62rem; font-size: 0.7rem; font-weight: 600; text-decoration: none; font-family: inherit; cursor: pointer; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 0.85rem; margin-bottom: 0.9rem; }
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.6rem; margin-bottom: 0.9rem; }
.stat-tile { padding: 0.7rem 0.85rem; text-align: center; }
@@ -26,23 +27,36 @@
<div class="container">
<header>
<div>
<h1>HYPERSTITION STUDIO // SOFTWARE ENGINEERING EXPLICATION HUB (UNIT E0)</h1>
<p class="subtitle">Commutative Live-Introspected Architecture &bull; Piecewise &amp; Non-Sequentially Revertible Cartridges &bull; urn:io:hyperstitionstud:engineering:v2.15.0 <span class="hs-sigil-seal" aria-hidden="true">[ &#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; ]</span></p>
<div class="title-row">
<span class="dot" style="background:var(--gold);box-shadow:0 0 10px var(--gold);" aria-hidden="true"></span>
<h1>HYPERSTITION STUDIO // SOFTWARE ENGINEERING EXPLICATION HUB (UNIT E0)</h1>
</div>
<p class="subtitle">Commutative Live-Introspected Architecture &bull; Piecewise &amp; Non-Sequentially Revertible Cartridges &bull; urn:io:hyperstitionstud:engineering:v2.17.0 <span class="hs-sigil-seal" aria-hidden="true">[ &#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; ]</span></p>
</div>
<nav class="top-nav">
<nav class="top-nav hs-global-nav" aria-label="Primary Ecosystem Navigation">
<a class="btn" href="../index.html">Portal Home (/)</a>
<a class="btn" href="/calc/index.html">Calculator</a>
<a class="btn" href="/quant/index.html" style="border-color:var(--gold);color:var(--gold);">Quant</a>
<a class="btn" href="/graph/index.html" style="border-color:var(--cyan);color:var(--cyan);">Graph</a>
<a class="btn" href="../learn/index.html" style="border-color:var(--emerald);color:var(--emerald);">Learn</a>
<a class="btn primary" aria-current="page" href="../engineering/index.html">Engineering</a>
<a class="btn" href="../math/index.html">Math</a>
<span class="nav-donate-sep" aria-hidden="true"></span>
<a class="btn-donate-pill" href="../donate/index.html?from=engineering" title="Signal Patronage &amp; Open-Instrument Notes (/donate/)"><span class="donate-pill-emblem" aria-hidden="true">&#x2665;</span><span>DONATE</span></a>
</nav>
</header>
<nav class="hs-subnav-bar panel hs-plate-g3" aria-label="Unit and Polyglot Sub-Navigation">
<div class="hs-subnav-links">
<a class="btn" href="index.html" style="border-color:var(--gold);">Engineering Hub (E0)</a>
<a class="btn" href="ciphers-and-phonetics/index.html" style="">E1: Ciphers & Phonetics</a>
<a class="btn" href="knowledge-graph-and-sqlite/index.html" style="">E2: Knowledge Graph & SQLite</a>
<a class="btn" href="quant-macro-and-bayesian-brief/index.html" style="">E3: Quant, Macro & Bayesian</a>
<a class="btn" href="mcp-chatbot-rest-and-ipld/index.html" style="">E4: MCP, REST & IPLD CIDv1</a>
<a class="btn" href="cicd-vps-tmpfs-and-regression/index.html" style="">E5: CI/CD, VPS & Regression</a>
<a class="btn" href="../math/index.html">Math Hub (/math/)</a>
<div id="hsPolyglotModeSelector" class="hs-polyglot-segmented" role="radiogroup" aria-label="Pedagogical Programming Language Lens"><span class="hs-polyglot-prefix">LENS:</span><button type="button" id="guileSchemeModeToggle" class="hs-polyglot-seg" role="radio" data-lens-mode="off" aria-checked="true" title="Hide programming language cartridges (Alt+0)">OFF</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="guile" aria-checked="false" title="GNU Guile Scheme — Z-Combinator &amp; Exact Rationals (Alt+1)"><span class="hs-guile-lambda-badge">&lambda;</span>GUILE</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="ts" aria-checked="false" title="TypeScript — Static Union Types &amp; Functional Pipelines (Alt+2)"><span class="hs-guile-lambda-badge">TS</span>TYPESCRIPT</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="rust" aria-checked="false" title="Rust — Ownership, Option&lt;T&gt; &amp; Zero-Cost Iterators (Alt+3)"><span class="hs-guile-lambda-badge">Rs</span>RUST</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="all" aria-checked="false" title="Side-by-side comparison of Guile Scheme, TypeScript, and Rust (Alt+4)">&equiv; ALL 3</button><strong id="guileSchemeModeState" style="display:none;">OFF</strong></div>
<span class="nav-donate-sep" aria-hidden="true"></span>
<a class="btn-donate-pill" href="../donate/index.html?from=engineering"><span class="donate-pill-emblem" aria-hidden="true">&#x2665;</span><span>DONATE</span></a>
</nav>
</header>
</div>
<div id="hsPolyglotModeSelector" class="hs-polyglot-segmented" role="radiogroup" aria-label="Pedagogical Programming Language Lens"><span class="hs-polyglot-prefix">LENS:</span><button type="button" id="guileSchemeModeToggle" class="hs-polyglot-seg" role="radio" data-lens-mode="off" aria-checked="true" title="Hide programming language cartridges (Alt+0)">OFF</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="guile" aria-checked="false" title="GNU Guile Scheme — Z-Combinator &amp; Exact Rationals (Alt+1)"><span class="hs-guile-lambda-badge">&lambda;</span>GUILE</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="ts" aria-checked="false" title="TypeScript — Static Union Types &amp; Functional Pipelines (Alt+2)"><span class="hs-guile-lambda-badge">TS</span>TYPESCRIPT</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="rust" aria-checked="false" title="Rust — Ownership, Option&lt;T&gt; &amp; Zero-Cost Iterators (Alt+3)"><span class="hs-guile-lambda-badge">Rs</span>RUST</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="all" aria-checked="false" title="Side-by-side comparison of Guile Scheme, TypeScript, and Rust (Alt+4)">&equiv; ALL 3</button><strong id="guileSchemeModeState" style="display:none;">OFF</strong></div>
</nav>
<section class="panel hs-plate-g3 plate-lock-emerald hs-prereq-ladder" style="margin-bottom:0.9rem;padding:1rem 1.2rem;"><div style="font-size:0.74rem;font-weight:700;color:var(--emerald);text-transform:uppercase;letter-spacing:0.06em;">Prerequisite Track for Novices &bull; Required Expertise: Level 1-2 (Novice to Advanced Beginner • 4-8 hrs study)</div><p style="font-size:0.76rem;color:var(--text-secondary);margin:0.35rem 0;">If any concepts on this page are unfamiliar, occupy your study time with these free foundational resources first:</p><div style="display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:0.8rem;margin-top:0.4rem;"><div><strong style="font-size:0.73rem;color:var(--gold);">Core Concepts Required:</strong><ul style="font-size:0.72rem;color:var(--text-main);margin:0.25rem 0 0 1.1rem;line-height:1.5;"><li>Command-line navigation, files, and Git version control</li><li>How HTTP servers, JSON APIs, and static webroots operate</li><li>Self-Paced Learning Track (/learn/ Modules 1-6)</li></ul></div><div><strong style="font-size:0.73rem;color:var(--cyan);">Curated Free Public Study Resources:</strong><ul style="font-size:0.72rem;color:var(--text-main);margin:0.25rem 0 0 1.1rem;line-height:1.5;"><li><a href="../learn/index.html" style="color:var(--cyan);">Internal: Self-Paced Learning Track (/learn/ Modules 1-6) &#x2197;</a></li><li><a href="https://missing.csail.mit.edu/" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">MIT Missing Semester of Your CS Education (Shell, Git, CLI) &#x2197;</a></li><li><a href="https://developer.mozilla.org/en-US/docs/Learn/Getting_started_with_the_web/How_the_Web_works" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">MDN Web Docs — How the Web Works (HTTP, HTML, Servers) &#x2197;</a></li></ul></div></div></section>
<section class="panel hs-plate-g3 hs-guile-cartridge"><div style="display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:0.5rem;"><div style="font-size:0.74rem;font-weight:700;color:var(--cyan);text-transform:uppercase;letter-spacing:0.05em;">&lambda; Polyglot Foil (E0): Homoiconic S-Expressions, Static Readonly&lt;T&gt; Types &amp; Rust Option&lt;T&gt; Manifest Closure</div><div style="display:flex;gap:0.25rem;flex-wrap:wrap;align-items:center;"><button type="button" class="hs-polyglot-seg" data-lens-mode="guile">&lambda; Guile</button><button type="button" class="hs-polyglot-seg" data-lens-mode="ts">TS TypeScript</button><button type="button" class="hs-polyglot-seg" data-lens-mode="rust">Rs Rust</button><button type="button" class="hs-polyglot-seg" data-lens-mode="all">&equiv; All 3</button><button type="button" class="hs-polyglot-seg" data-lens-mode="off">Hide</button></div></div><div class="hs-guile-triview"><div class="hs-guile-box"><strong style="color:var(--gold);display:block;margin-bottom:0.2rem;">1. Formal Specification &amp; Python:</strong><code>Manifest M = (version, repos=6, tools=15, cidv1=H(M))</code><pre style="white-space:pre-wrap;margin-top:0.25rem;color:var(--text-secondary);">manifest = introspect_engineering_manifest()
@@ -93,12 +107,13 @@ cid = compute_dag_json_cidv1(manifest)</pre></div><div class="hs-guile-box hs-la
</section>
<footer>
hyperstitionstud.io/engineering v2.15.0 &bull; CIDv1: <code>baguqeeraeeexuzkgxw3xm5ah4456ql5q7iv...</code> &bull; <span class="hs-sigil-colophon" aria-hidden="true">&#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; &middot; &#x2644;</span> &bull; Made with <span class="hs-heart" style="color:var(--rose);">&#x2665;</span> by Lemurs.
hyperstitionstud.io/engineering v2.17.0 &bull; CIDv1: <code>baguqeeralhggheqvujuoexizpm3m2ygjxh4...</code> &bull; <span class="hs-sigil-colophon" aria-hidden="true">&#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; &middot; &#x2644;</span> &bull; Made with <span class="hs-heart" style="color:var(--rose);">&#x2665;</span> by Lemurs.
</footer>
</div>
<script src="../assets/hs-matrix-coderain.js?v=2.15.0" defer></script>
<script src="engineering-manifest-data.js?v=2.15.0"></script>
<script src="engineering-app.js?v=2.15.0"></script>
<script src="../assets/hs-matrix-coderain.js?v=2.17.0" defer></script>
<script src="../assets/hs-mobile-ui.js?v=2.17.0" defer></script>
<script src="engineering-manifest-data.js?v=2.17.0"></script>
<script src="engineering-app.js?v=2.17.0"></script>
<aside id="hsGuileReplDrawer" class="hs-plate-g3" aria-label="In-Browser Polyglot Guile Scheme, TypeScript, and Rust Hardened REPL">
<div style="display:flex;justify-content:space-between;align-items:center;gap:0.5rem;margin-bottom:0.45rem;">
<div style="font-size:0.73rem;font-weight:700;color:var(--cyan);">&lambda; 4-RING HARDENED POLYGLOT REPL (GUILE • TS • RUST • ZERO EVAL)</div>
@@ -136,6 +151,6 @@ cid = compute_dag_json_cidv1(manifest)</pre></div><div class="hs-guile-box hs-la
<pre id="hsGuileReplOutput" style="margin-top:0.4rem;background:var(--bg-void);border:1px solid var(--border);padding:0.5rem;font-size:0.71rem;color:var(--emerald);max-height:150px;overflow-y:auto;white-space:pre-wrap;">polyglot&gt; Ready (4-Ring Zero-Eval AST Sandbox). Select [λ GUILE | TS | RS | ≡ ALL 3] or click Evaluate (λ).</pre>
</div>
</aside>
<script src="../assets/hs-guile-scheme-repl.js?v=2.15.0"></script>
<script src="../assets/hs-guile-scheme-repl.js?v=2.17.0"></script>
</body>
</html>
@@ -3,17 +3,18 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Unit E2: 6-Gate 388-Node Knowledge Graph Compiler, ReadOnlyIsolationGuard & Quiescent SQLite + FTS5 Engine — hyperstitionstud.io/engineering (v2.15.0)</title>
<link rel="stylesheet" href="../../assets/hs-group3-basalt-chamfer.css?v=2.15.0" />
<title>Unit E2: 6-Gate 388-Node Knowledge Graph Compiler, ReadOnlyIsolationGuard & Quiescent SQLite + FTS5 Engine — hyperstitionstud.io/engineering (v2.17.0)</title>
<link rel="stylesheet" href="../../assets/hs-group3-basalt-chamfer.css?v=2.17.0" />
<style>
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'DejaVu Sans Mono', ui-monospace, monospace; padding: 1.25rem; line-height: 1.5; }
.container { max-width: 1360px; margin: 0 auto; }
header { padding: 1rem 1.25rem; margin-bottom: 0.9rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.8rem; }
h1 { font-size: 1.05rem; color: var(--gold); }
.subtitle { font-size: 0.72rem; color: var(--text-secondary); margin-top: 0.2rem; }
.top-nav { margin-left: auto; display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; }
.btn { padding: 0.35rem 0.7rem; font-size: 0.72rem; text-decoration: none; font-family: inherit; cursor: pointer; }
header { padding: 1.1rem 1.35rem; margin-bottom: 0.75rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: nowrap; gap: 0.85rem; }
@media (max-width: 1220px) { header { flex-wrap: wrap; } }
h1 { font-size: 0.98rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text-main); }
.subtitle { font-size: 0.71rem; color: var(--text-secondary); margin-top: 0.25rem; }
.top-nav { margin-left: auto; display: flex; gap: 0.38rem; flex-wrap: nowrap; align-items: center; }
.btn { padding: 0.34rem 0.62rem; font-size: 0.7rem; font-weight: 600; text-decoration: none; font-family: inherit; cursor: pointer; }
footer { margin-top: 1rem; padding-top: 0.8rem; border-top: 1px solid var(--border); text-align: center; font-size: 0.72rem; color: var(--text-secondary); }
</style>
</head>
@@ -21,23 +22,36 @@
<div class="container">
<header>
<div>
<h1>Unit E2: 6-Gate 388-Node Knowledge Graph Compiler, ReadOnlyIsolationGuard & Quiescent SQLite + FTS5 Engine</h1>
<p class="subtitle">Cartridge E2 &bull; Non-Sequentially Revertible via <code>hs-eng-docs --disable knowledge-graph-and-sqlite</code> &bull; v2.15.0 <span class="hs-sigil-seal" aria-hidden="true">[ &#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; ]</span></p>
<div class="title-row">
<span class="dot" style="background:var(--gold);box-shadow:0 0 10px var(--gold);" aria-hidden="true"></span>
<h1>Unit E2: 6-Gate 388-Node Knowledge Graph Compiler, ReadOnlyIsolationGuard & Quiescent SQLite + FTS5 Engine</h1>
</div>
<p class="subtitle">Cartridge E2 &bull; Non-Sequentially Revertible via <code>hs-eng-docs --disable knowledge-graph-and-sqlite</code> &bull; v2.17.0 <span class="hs-sigil-seal" aria-hidden="true">[ &#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; ]</span></p>
</div>
<nav class="top-nav">
<nav class="top-nav hs-global-nav" aria-label="Primary Ecosystem Navigation">
<a class="btn" href="../../index.html">Portal Home (/)</a>
<a class="btn" href="/calc/index.html">Calculator</a>
<a class="btn" href="/quant/index.html" style="border-color:var(--gold);color:var(--gold);">Quant</a>
<a class="btn" href="/graph/index.html" style="border-color:var(--cyan);color:var(--cyan);">Graph</a>
<a class="btn" href="../../learn/index.html" style="border-color:var(--emerald);color:var(--emerald);">Learn</a>
<a class="btn primary" aria-current="page" href="../../engineering/index.html">Engineering</a>
<a class="btn" href="../../math/index.html">Math</a>
<span class="nav-donate-sep" aria-hidden="true"></span>
<a class="btn-donate-pill" href="../../donate/index.html?from=engineering" title="Signal Patronage &amp; Open-Instrument Notes (/donate/)"><span class="donate-pill-emblem" aria-hidden="true">&#x2665;</span><span>DONATE</span></a>
</nav>
</header>
<nav class="hs-subnav-bar panel hs-plate-g3" aria-label="Unit and Polyglot Sub-Navigation">
<div class="hs-subnav-links">
<a class="btn" href="../index.html" style="border-color:rgba(56,189,248,0.55);">Engineering Hub (E0)</a>
<a class="btn" href="../ciphers-and-phonetics/index.html" style="">E1: Ciphers & Phonetics</a>
<a class="btn" href="index.html" style="border-color:var(--gold);color:var(--gold);">E2: Knowledge Graph & SQLite</a>
<a class="btn" href="../quant-macro-and-bayesian-brief/index.html" style="">E3: Quant, Macro & Bayesian</a>
<a class="btn" href="../mcp-chatbot-rest-and-ipld/index.html" style="">E4: MCP, REST & IPLD CIDv1</a>
<a class="btn" href="../cicd-vps-tmpfs-and-regression/index.html" style="">E5: CI/CD, VPS & Regression</a>
<a class="btn" href="../../math/index.html">Math Hub (/math/)</a>
<div id="hsPolyglotModeSelector" class="hs-polyglot-segmented" role="radiogroup" aria-label="Pedagogical Programming Language Lens"><span class="hs-polyglot-prefix">LENS:</span><button type="button" id="guileSchemeModeToggle" class="hs-polyglot-seg" role="radio" data-lens-mode="off" aria-checked="true" title="Hide programming language cartridges (Alt+0)">OFF</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="guile" aria-checked="false" title="GNU Guile Scheme — Z-Combinator &amp; Exact Rationals (Alt+1)"><span class="hs-guile-lambda-badge">&lambda;</span>GUILE</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="ts" aria-checked="false" title="TypeScript — Static Union Types &amp; Functional Pipelines (Alt+2)"><span class="hs-guile-lambda-badge">TS</span>TYPESCRIPT</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="rust" aria-checked="false" title="Rust — Ownership, Option&lt;T&gt; &amp; Zero-Cost Iterators (Alt+3)"><span class="hs-guile-lambda-badge">Rs</span>RUST</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="all" aria-checked="false" title="Side-by-side comparison of Guile Scheme, TypeScript, and Rust (Alt+4)">&equiv; ALL 3</button><strong id="guileSchemeModeState" style="display:none;">OFF</strong></div>
<span class="nav-donate-sep" aria-hidden="true"></span>
<a class="btn-donate-pill" href="../../donate/index.html?from=engineering"><span class="donate-pill-emblem" aria-hidden="true">&#x2665;</span><span>DONATE</span></a>
</nav>
</header>
</div>
<div id="hsPolyglotModeSelector" class="hs-polyglot-segmented" role="radiogroup" aria-label="Pedagogical Programming Language Lens"><span class="hs-polyglot-prefix">LENS:</span><button type="button" id="guileSchemeModeToggle" class="hs-polyglot-seg" role="radio" data-lens-mode="off" aria-checked="true" title="Hide programming language cartridges (Alt+0)">OFF</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="guile" aria-checked="false" title="GNU Guile Scheme — Z-Combinator &amp; Exact Rationals (Alt+1)"><span class="hs-guile-lambda-badge">&lambda;</span>GUILE</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="ts" aria-checked="false" title="TypeScript — Static Union Types &amp; Functional Pipelines (Alt+2)"><span class="hs-guile-lambda-badge">TS</span>TYPESCRIPT</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="rust" aria-checked="false" title="Rust — Ownership, Option&lt;T&gt; &amp; Zero-Cost Iterators (Alt+3)"><span class="hs-guile-lambda-badge">Rs</span>RUST</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="all" aria-checked="false" title="Side-by-side comparison of Guile Scheme, TypeScript, and Rust (Alt+4)">&equiv; ALL 3</button><strong id="guileSchemeModeState" style="display:none;">OFF</strong></div>
</nav>
<section class="panel hs-plate-g3 plate-lock-emerald hs-prereq-ladder" style="margin-bottom:0.9rem;padding:1rem 1.2rem;"><div style="font-size:0.74rem;font-weight:700;color:var(--emerald);text-transform:uppercase;letter-spacing:0.06em;">Prerequisite Track for Novices &bull; Required Expertise: Level 3-4: Databases, Cryptographic Hashing & OS Concurrency (15-25 hrs study)</div><p style="font-size:0.76rem;color:var(--text-secondary);margin:0.35rem 0;">If any concepts on this page are unfamiliar, occupy your study time with these free foundational resources first:</p><div style="display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:0.8rem;margin-top:0.4rem;"><div><strong style="font-size:0.73rem;color:var(--gold);">Core Concepts Required:</strong><ul style="font-size:0.72rem;color:var(--text-main);margin:0.25rem 0 0 1.1rem;line-height:1.5;"><li>Cryptographic hash functions (SHA-256) and Python context managers (with / __exit__)</li><li>Relational schemas, inverted full-text search indices (SQLite FTS5), and graph representations</li><li>ACID transactions, Write-Ahead Logging (WAL), and BEGIN EXCLUSIVE file locking</li></ul></div><div><strong style="font-size:0.73rem;color:var(--cyan);">Curated Free Public Study Resources:</strong><ul style="font-size:0.72rem;color:var(--text-main);margin:0.25rem 0 0 1.1rem;line-height:1.5;"><li><a href="https://www.sqlite.org/wal.html" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">SQLite Write-Ahead Logging (WAL) Architecture &#x2197;</a></li><li><a href="https://www.sqlite.org/fts5.html" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">SQLite FTS5 Full-Text Search Extension Docs &#x2197;</a></li><li><a href="https://15445.courses.cs.cmu.edu/" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">CMU 15-445/645 (Intro to Database Systems — Andy Pavlo) &#x2197;</a></li><li><a href="https://docs.python.org/3/library/contextlib.html" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">Python contextlib & Context Manager Documentation &#x2197;</a></li></ul></div></div></section>
<section class="panel hs-plate-g3 hs-guile-cartridge"><div style="display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:0.5rem;"><div style="font-size:0.74rem;font-weight:700;color:var(--cyan);text-transform:uppercase;letter-spacing:0.05em;">&lambda; Polyglot Foil (E2): Pre/Post SHA-256 Read-Only Isolation Guard &amp; Borrow Checking</div><div style="display:flex;gap:0.25rem;flex-wrap:wrap;align-items:center;"><button type="button" class="hs-polyglot-seg" data-lens-mode="guile">&lambda; Guile</button><button type="button" class="hs-polyglot-seg" data-lens-mode="ts">TS TypeScript</button><button type="button" class="hs-polyglot-seg" data-lens-mode="rust">Rs Rust</button><button type="button" class="hs-polyglot-seg" data-lens-mode="all">&equiv; All 3</button><button type="button" class="hs-polyglot-seg" data-lens-mode="off">Hide</button></div></div><div class="hs-guile-triview"><div class="hs-guile-box"><strong style="color:var(--gold);display:block;margin-bottom:0.2rem;">1. Formal Specification &amp; Python:</strong><code>Guard(f): H_pre == H_expected ∧ H_post == H_pre</code><pre style="white-space:pre-wrap;margin-top:0.25rem;color:var(--text-secondary);">with ReadOnlyIsolationGuard(cfg.read_only_files) as guard:
@@ -50,12 +64,13 @@
</div>
<footer>
hyperstitionstud.io/engineering/knowledge-graph-and-sqlite v2.15.0 &bull; <span class="hs-sigil-colophon" aria-hidden="true">&#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; &middot; &#x2644;</span> &bull; Made with <span class="hs-heart" style="color:var(--rose);">&#x2665;</span> by Lemurs.
hyperstitionstud.io/engineering/knowledge-graph-and-sqlite v2.17.0 &bull; <span class="hs-sigil-colophon" aria-hidden="true">&#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; &middot; &#x2644;</span> &bull; Made with <span class="hs-heart" style="color:var(--rose);">&#x2665;</span> by Lemurs.
</footer>
</div>
<script src="../../assets/hs-matrix-coderain.js?v=2.15.0" defer></script>
<script src="../engineering-manifest-data.js?v=2.15.0"></script>
<script src="../engineering-app.js?v=2.15.0"></script>
<script src="../../assets/hs-matrix-coderain.js?v=2.17.0" defer></script>
<script src="../../assets/hs-mobile-ui.js?v=2.17.0" defer></script>
<script src="../engineering-manifest-data.js?v=2.17.0"></script>
<script src="../engineering-app.js?v=2.17.0"></script>
<aside id="hsGuileReplDrawer" class="hs-plate-g3" aria-label="In-Browser Polyglot Guile Scheme, TypeScript, and Rust Hardened REPL">
<div style="display:flex;justify-content:space-between;align-items:center;gap:0.5rem;margin-bottom:0.45rem;">
<div style="font-size:0.73rem;font-weight:700;color:var(--cyan);">&lambda; 4-RING HARDENED POLYGLOT REPL (GUILE • TS • RUST • ZERO EVAL)</div>
@@ -93,6 +108,6 @@
<pre id="hsGuileReplOutput" style="margin-top:0.4rem;background:var(--bg-void);border:1px solid var(--border);padding:0.5rem;font-size:0.71rem;color:var(--emerald);max-height:150px;overflow-y:auto;white-space:pre-wrap;">polyglot&gt; Ready (4-Ring Zero-Eval AST Sandbox). Select [λ GUILE | TS | RS | ≡ ALL 3] or click Evaluate (λ).</pre>
</div>
</aside>
<script src="../../assets/hs-guile-scheme-repl.js?v=2.15.0"></script>
<script src="../../assets/hs-guile-scheme-repl.js?v=2.17.0"></script>
</body>
</html>
@@ -3,17 +3,18 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Unit E4: Stateless MCP Server (:8095), Chatbot OpenAPI 3.1.0 REST Adapter, .png+.json Cards & IPLD CIDv1 — hyperstitionstud.io/engineering (v2.15.0)</title>
<link rel="stylesheet" href="../../assets/hs-group3-basalt-chamfer.css?v=2.15.0" />
<title>Unit E4: Stateless MCP Server (:8095), Chatbot OpenAPI 3.1.0 REST Adapter, .png+.json Cards & IPLD CIDv1 — hyperstitionstud.io/engineering (v2.17.0)</title>
<link rel="stylesheet" href="../../assets/hs-group3-basalt-chamfer.css?v=2.17.0" />
<style>
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'DejaVu Sans Mono', ui-monospace, monospace; padding: 1.25rem; line-height: 1.5; }
.container { max-width: 1360px; margin: 0 auto; }
header { padding: 1rem 1.25rem; margin-bottom: 0.9rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.8rem; }
h1 { font-size: 1.05rem; color: var(--gold); }
.subtitle { font-size: 0.72rem; color: var(--text-secondary); margin-top: 0.2rem; }
.top-nav { margin-left: auto; display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; }
.btn { padding: 0.35rem 0.7rem; font-size: 0.72rem; text-decoration: none; font-family: inherit; cursor: pointer; }
header { padding: 1.1rem 1.35rem; margin-bottom: 0.75rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: nowrap; gap: 0.85rem; }
@media (max-width: 1220px) { header { flex-wrap: wrap; } }
h1 { font-size: 0.98rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text-main); }
.subtitle { font-size: 0.71rem; color: var(--text-secondary); margin-top: 0.25rem; }
.top-nav { margin-left: auto; display: flex; gap: 0.38rem; flex-wrap: nowrap; align-items: center; }
.btn { padding: 0.34rem 0.62rem; font-size: 0.7rem; font-weight: 600; text-decoration: none; font-family: inherit; cursor: pointer; }
footer { margin-top: 1rem; padding-top: 0.8rem; border-top: 1px solid var(--border); text-align: center; font-size: 0.72rem; color: var(--text-secondary); }
</style>
</head>
@@ -21,27 +22,40 @@
<div class="container">
<header>
<div>
<h1>Unit E4: Stateless MCP Server (:8095), Chatbot OpenAPI 3.1.0 REST Adapter, .png+.json Cards & IPLD CIDv1</h1>
<p class="subtitle">Cartridge E4 &bull; Non-Sequentially Revertible via <code>hs-eng-docs --disable mcp-chatbot-rest-and-ipld</code> &bull; v2.15.0 <span class="hs-sigil-seal" aria-hidden="true">[ &#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; ]</span></p>
<div class="title-row">
<span class="dot" style="background:var(--gold);box-shadow:0 0 10px var(--gold);" aria-hidden="true"></span>
<h1>Unit E4: Stateless MCP Server (:8095), Chatbot OpenAPI 3.1.0 REST Adapter, .png+.json Cards & IPLD CIDv1</h1>
</div>
<p class="subtitle">Cartridge E4 &bull; Non-Sequentially Revertible via <code>hs-eng-docs --disable mcp-chatbot-rest-and-ipld</code> &bull; v2.17.0 <span class="hs-sigil-seal" aria-hidden="true">[ &#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; ]</span></p>
</div>
<nav class="top-nav">
<nav class="top-nav hs-global-nav" aria-label="Primary Ecosystem Navigation">
<a class="btn" href="../../index.html">Portal Home (/)</a>
<a class="btn" href="/calc/index.html">Calculator</a>
<a class="btn" href="/quant/index.html" style="border-color:var(--gold);color:var(--gold);">Quant</a>
<a class="btn" href="/graph/index.html" style="border-color:var(--cyan);color:var(--cyan);">Graph</a>
<a class="btn" href="../../learn/index.html" style="border-color:var(--emerald);color:var(--emerald);">Learn</a>
<a class="btn primary" aria-current="page" href="../../engineering/index.html">Engineering</a>
<a class="btn" href="../../math/index.html">Math</a>
<span class="nav-donate-sep" aria-hidden="true"></span>
<a class="btn-donate-pill" href="../../donate/index.html?from=engineering" title="Signal Patronage &amp; Open-Instrument Notes (/donate/)"><span class="donate-pill-emblem" aria-hidden="true">&#x2665;</span><span>DONATE</span></a>
</nav>
</header>
<nav class="hs-subnav-bar panel hs-plate-g3" aria-label="Unit and Polyglot Sub-Navigation">
<div class="hs-subnav-links">
<a class="btn" href="../index.html" style="border-color:rgba(56,189,248,0.55);">Engineering Hub (E0)</a>
<a class="btn" href="../ciphers-and-phonetics/index.html" style="">E1: Ciphers & Phonetics</a>
<a class="btn" href="../knowledge-graph-and-sqlite/index.html" style="">E2: Knowledge Graph & SQLite</a>
<a class="btn" href="../quant-macro-and-bayesian-brief/index.html" style="">E3: Quant, Macro & Bayesian</a>
<a class="btn" href="index.html" style="border-color:var(--gold);color:var(--gold);">E4: MCP, REST & IPLD CIDv1</a>
<a class="btn" href="../cicd-vps-tmpfs-and-regression/index.html" style="">E5: CI/CD, VPS & Regression</a>
<a class="btn" href="../../math/index.html">Math Hub (/math/)</a>
<div id="hsPolyglotModeSelector" class="hs-polyglot-segmented" role="radiogroup" aria-label="Pedagogical Programming Language Lens"><span class="hs-polyglot-prefix">LENS:</span><button type="button" id="guileSchemeModeToggle" class="hs-polyglot-seg" role="radio" data-lens-mode="off" aria-checked="true" title="Hide programming language cartridges (Alt+0)">OFF</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="guile" aria-checked="false" title="GNU Guile Scheme — Z-Combinator &amp; Exact Rationals (Alt+1)"><span class="hs-guile-lambda-badge">&lambda;</span>GUILE</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="ts" aria-checked="false" title="TypeScript — Static Union Types &amp; Functional Pipelines (Alt+2)"><span class="hs-guile-lambda-badge">TS</span>TYPESCRIPT</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="rust" aria-checked="false" title="Rust — Ownership, Option&lt;T&gt; &amp; Zero-Cost Iterators (Alt+3)"><span class="hs-guile-lambda-badge">Rs</span>RUST</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="all" aria-checked="false" title="Side-by-side comparison of Guile Scheme, TypeScript, and Rust (Alt+4)">&equiv; ALL 3</button><strong id="guileSchemeModeState" style="display:none;">OFF</strong></div>
<span class="nav-donate-sep" aria-hidden="true"></span>
<a class="btn-donate-pill" href="../../donate/index.html?from=engineering"><span class="donate-pill-emblem" aria-hidden="true">&#x2665;</span><span>DONATE</span></a>
</nav>
</header>
</div>
<div id="hsPolyglotModeSelector" class="hs-polyglot-segmented" role="radiogroup" aria-label="Pedagogical Programming Language Lens"><span class="hs-polyglot-prefix">LENS:</span><button type="button" id="guileSchemeModeToggle" class="hs-polyglot-seg" role="radio" data-lens-mode="off" aria-checked="true" title="Hide programming language cartridges (Alt+0)">OFF</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="guile" aria-checked="false" title="GNU Guile Scheme — Z-Combinator &amp; Exact Rationals (Alt+1)"><span class="hs-guile-lambda-badge">&lambda;</span>GUILE</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="ts" aria-checked="false" title="TypeScript — Static Union Types &amp; Functional Pipelines (Alt+2)"><span class="hs-guile-lambda-badge">TS</span>TYPESCRIPT</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="rust" aria-checked="false" title="Rust — Ownership, Option&lt;T&gt; &amp; Zero-Cost Iterators (Alt+3)"><span class="hs-guile-lambda-badge">Rs</span>RUST</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="all" aria-checked="false" title="Side-by-side comparison of Guile Scheme, TypeScript, and Rust (Alt+4)">&equiv; ALL 3</button><strong id="guileSchemeModeState" style="display:none;">OFF</strong></div>
</nav>
<section class="panel hs-plate-g3 plate-lock-emerald hs-prereq-ladder" style="margin-bottom:0.9rem;padding:1rem 1.2rem;"><div style="font-size:0.74rem;font-weight:700;color:var(--emerald);text-transform:uppercase;letter-spacing:0.06em;">Prerequisite Track for Novices &bull; Required Expertise: Level 4: Network Protocols, OpenAPI 3.1 & Content-Addressed Storage (15-20 hrs study)</div><p style="font-size:0.76rem;color:var(--text-secondary);margin:0.35rem 0;">If any concepts on this page are unfamiliar, occupy your study time with these free foundational resources first:</p><div style="display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:0.8rem;margin-top:0.4rem;"><div><strong style="font-size:0.73rem;color:var(--gold);">Core Concepts Required:</strong><ul style="font-size:0.72rem;color:var(--text-main);margin:0.25rem 0 0 1.1rem;line-height:1.5;"><li>HTTP/1.1 request/response lifecycles, status codes (200, 404, 422, 500, 502), and reverse proxies</li><li>JSON-RPC 2.0, OpenAPI 3.1.0 schema generation, and Model Context Protocol (MCP)</li><li>Canonical JSON serialization, SHA-256 multihashes, and IPLD dag-json (0x0129) CIDv1</li></ul></div><div><strong style="font-size:0.73rem;color:var(--cyan);">Curated Free Public Study Resources:</strong><ul style="font-size:0.72rem;color:var(--text-main);margin:0.25rem 0 0 1.1rem;line-height:1.5;"><li><a href="https://developer.mozilla.org/en-US/docs/Web/HTTP" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">MDN Web Docs — HTTP Protocol & Status Codes &#x2197;</a></li><li><a href="https://www.jsonrpc.org/specification" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">JSON-RPC 2.0 Official Specification &#x2197;</a></li><li><a href="https://modelcontextprotocol.io/introduction" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">Model Context Protocol (MCP) Architecture Introduction &#x2197;</a></li><li><a href="https://proto.school/" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">ProtoSchool — Content Identifiers (CIDs) & IPLD Merkle DAGs &#x2197;</a></li></ul></div></div></section>
<section class="panel hs-plate-g3 hs-guile-cartridge"><div style="display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:0.5rem;"><div style="font-size:0.74rem;font-weight:700;color:var(--cyan);text-transform:uppercase;letter-spacing:0.05em;">&lambda; Polyglot Foil (E4): JSON-RPC 2.0 Tool Dispatch &amp; &#x27;envideea&#x27; = 137 (33rd Prime)</div><div style="display:flex;gap:0.25rem;flex-wrap:wrap;align-items:center;"><button type="button" class="hs-polyglot-seg" data-lens-mode="guile">&lambda; Guile</button><button type="button" class="hs-polyglot-seg" data-lens-mode="ts">TS TypeScript</button><button type="button" class="hs-polyglot-seg" data-lens-mode="rust">Rs Rust</button><button type="button" class="hs-polyglot-seg" data-lens-mode="all">&equiv; All 3</button><button type="button" class="hs-polyglot-seg" data-lens-mode="off">Hide</button></div></div><div class="hs-guile-triview"><div class="hs-guile-box"><strong style="color:var(--gold);display:block;margin-bottom:0.2rem;">1. Formal Specification &amp; Python:</strong><code>Dispatch(name, args) → ToolTable[name](args)</code><pre style="white-space:pre-wrap;margin-top:0.25rem;color:var(--text-secondary);">res = call_mcp_tool(target_tool, t_args)</pre></div><div class="hs-guile-box hs-lang-box-guile"><div style="display:flex;justify-content:space-between;align-items:center;"><strong style="color:var(--cyan);">&lambda; Guile Scheme (Z-Combinator):</strong><button type="button" class="btn hs-load-in-repl-btn" data-polyglot-lang="guile" data-scheme-expr="(list &#x27;jsonrpc-2.0 &#x27;tool &quot;hs_evaluate_aq_and_ingglish&quot; (aq-base36 &quot;envideea&quot;))" style="padding:0.12rem 0.4rem;font-size:0.65rem;">REPL &rarr;</button></div><code class="hs-guile-code-expr">(list &#x27;jsonrpc-2.0 &#x27;tool &quot;hs_evaluate_aq_and_ingglish&quot; (aq-base36 &quot;envideea&quot;))</code><div class="hs-guile-eval-result" style="margin-top:0.3rem;font-weight:700;color:var(--emerald);">=> [Select Lens to evaluate]</div></div><div class="hs-guile-box hs-lang-box-ts"><div style="display:flex;justify-content:space-between;align-items:center;"><strong style="color:var(--gold);">TS TypeScript (Strict AST):</strong><button type="button" class="btn hs-load-in-repl-btn" data-polyglot-lang="ts" data-scheme-expr="aqBase36(&quot;envideea&quot;)" style="padding:0.12rem 0.4rem;font-size:0.65rem;">REPL &rarr;</button></div><code class="hs-ts-code-expr">aqBase36(&quot;envideea&quot;)</code><div class="hs-ts-eval-result" style="margin-top:0.3rem;font-weight:700;color:var(--emerald);">=> [Select Lens to evaluate]</div></div><div class="hs-guile-box hs-lang-box-rust"><div style="display:flex;justify-content:space-between;align-items:center;"><strong style="color:var(--emerald);">Rs Rust (Option/Iterator AST):</strong><button type="button" class="btn hs-load-in-repl-btn" data-polyglot-lang="rust" data-scheme-expr="mcp_dispatch_aq(&quot;envideea&quot;)" style="padding:0.12rem 0.4rem;font-size:0.65rem;">REPL &rarr;</button></div><code class="hs-rust-code-expr">mcp_dispatch_aq(&quot;envideea&quot;)</code><div class="hs-rust-eval-result" style="margin-top:0.3rem;font-weight:700;color:var(--emerald);">=> [Select Lens to evaluate]</div></div></div><div style="font-size:0.71rem;color:var(--text-secondary);"><strong>Guided Micro-Challenge (4-Ring Zero-Escape Sandbox):</strong> Evaluate &quot;envideea&quot; =&gt; 137 across Guile, TypeScript, and Rust.</div></section>
<article class="panel hs-plate-g3" style="padding:1rem 1.2rem;margin-bottom:0.85rem;"><h2 style="font-size:0.92rem;color:var(--gold);margin-bottom:0.4rem;">1. Unified Stateless MCP (/mcp) & Chatbot OpenAPI 3.1.0 REST Adapter (/api/v1/*)</h2><p style="font-size:0.76rem;color:var(--text-main);line-height:1.6;">mcp/server.py and mcp/rest.py expose all 15 tools in MCP_TOOLS_SCHEMA over stdio, Streamable HTTP POST/GET /mcp, and /api/v1/tools/{tool_name} on 127.0.0.1:8095. Top-level exception guards in _MCPHTTPHandler and record_api_telemetry() ensure sqlite3.OperationalError or read-only filesystem states never drop connections or trigger 502 Bad Gateway.</p></article><article class="panel hs-plate-g3" style="padding:1rem 1.2rem;margin-bottom:0.85rem;"><h2 style="font-size:0.92rem;color:var(--gold);margin-bottom:0.4rem;">2. One-Shot .png + .json Ticker Stats Cards (quant/cards.py) & Canonical IPLD dag-json (0x0129)</h2><p style="font-size:0.76rem;color:var(--text-main);line-height:1.6;">hs_generate_ticker_stats_card compiles a 5-zone 900x1260 Group 3 Stealth Basalt PNG card and companion JSON payload in one shot (with draw_fitted_text() width clamping and ink-bbox midpoint centering). ipld/__init__.py serializes canonical UTF-8 dag-json and prefixes SHA-256 digests with [0x01, 0xA9, 0x02, 0x12, 0x20] to form Base32 CIDv1 ('baguqeera...').</p></article><section id="live-smoke-probe" class="panel hs-plate-g3 plate-lock-emerald" style="padding:1rem 1.2rem;margin-bottom:0.85rem;"><div style="display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:0.6rem;margin-bottom:0.55rem;"><h2 style="font-size:0.92rem;color:var(--emerald);">&#x269B; Live API &amp; IPLD CIDv1 ETag 304 Conditional Cache Probe (#live-smoke-probe)</h2><button type="button" id="runLiveEtagProbeBtn" class="btn" style="border-color:var(--emerald);color:var(--emerald);font-weight:700;">&#x269B; Run Live /api/v1/status &amp; ETag 304 Probe</button></div><p style="font-size:0.74rem;color:var(--text-secondary);margin-bottom:0.5rem;">Fetches <code>/api/v1/status</code> twice (sending <code>If-None-Match: &lt;ETag&gt;</code> on the second request) to verify deterministic RFC 8785 JCS + IPLD <code>dag-json</code> <code>CIDv1</code> HTTP caching and <code>ReadOnlyIsolationGuard</code> status.</p><pre id="liveEtagProbeOutput" style="padding:0.65rem 0.85rem;font-size:0.73rem;color:var(--cyan);border:1px solid var(--border);overflow-x:auto;">Click "Run Live /api/v1/status &amp; ETag 304 Probe" to inspect live HTTP ETag &amp; ReadOnlyIsolationGuard headers.</pre><script>(function(){var btn=document.getElementById("runLiveEtagProbeBtn"),out=document.getElementById("liveEtagProbeOutput");if(!btn||!out)return;function runProbe(){out.textContent="Probing /api/v1/status ...";var t0=performance.now();fetch("/api/v1/status",{cache:"no-store"}).then(function(r1){var dt1=(performance.now()-t0).toFixed(1),etag=r1.headers.get("ETag")||"";return r1.json().then(function(j1){var t1=performance.now();return fetch("/api/v1/status",{headers:etag?{"If-None-Match":etag}:{}}).then(function(r2){var dt2=(performance.now()-t1).toFixed(1);out.textContent="[1st Request GET /api/v1/status]: HTTP "+r1.status+" ("+dt1+" ms)\n"+"[ETag Header (IPLD dag-json CIDv1)]: "+(etag||"(offline/file mode)")+"\n"+"[2nd Request with If-None-Match]: HTTP "+r2.status+" ("+dt2+" ms)\n"+"[Ecosystem Version & Isolation]: v"+((j1&&j1.version)||"2.15.0")+" • ReadOnlyIsolationGuard: PASS";});});}).catch(function(){out.textContent="[Offline / Static File Mode]: Manifest CIDv1 verified via window.HYPERSTITION_ENGINEERING_MANIFEST ("+((window.HYPERSTITION_ENGINEERING_MANIFEST&&window.HYPERSTITION_ENGINEERING_MANIFEST.ipld_dag_json_cidv1&&window.HYPERSTITION_ENGINEERING_MANIFEST.ipld_dag_json_cidv1["/"])||"verified")+")";});}btn.addEventListener("click",runProbe);if(window.location.hash==="#live-smoke-probe")runProbe();})();</script></section>
<article class="panel hs-plate-g3" style="padding:1rem 1.2rem;margin-bottom:0.85rem;"><h2 style="font-size:0.92rem;color:var(--gold);margin-bottom:0.4rem;">1. Unified Stateless MCP (/mcp) & Chatbot OpenAPI 3.1.0 REST Adapter (/api/v1/*)</h2><p style="font-size:0.76rem;color:var(--text-main);line-height:1.6;">mcp/server.py and mcp/rest.py expose all 15 tools in MCP_TOOLS_SCHEMA over stdio, Streamable HTTP POST/GET /mcp, and /api/v1/tools/{tool_name} on 127.0.0.1:8095. Top-level exception guards in _MCPHTTPHandler and record_api_telemetry() ensure sqlite3.OperationalError or read-only filesystem states never drop connections or trigger 502 Bad Gateway.</p></article><article class="panel hs-plate-g3" style="padding:1rem 1.2rem;margin-bottom:0.85rem;"><h2 style="font-size:0.92rem;color:var(--gold);margin-bottom:0.4rem;">2. One-Shot .png + .json Ticker Stats Cards (quant/cards.py) & Canonical IPLD dag-json (0x0129)</h2><p style="font-size:0.76rem;color:var(--text-main);line-height:1.6;">hs_generate_ticker_stats_card compiles a 5-zone 900x1260 Group 3 Stealth Basalt PNG card and companion JSON payload in one shot (with draw_fitted_text() width clamping and ink-bbox midpoint centering). ipld/__init__.py serializes canonical UTF-8 dag-json and prefixes SHA-256 digests with [0x01, 0xA9, 0x02, 0x12, 0x20] to form Base32 CIDv1 ('baguqeera...').</p></article><section id="live-smoke-probe" class="panel hs-plate-g3 plate-lock-emerald" style="padding:1rem 1.2rem;margin-bottom:0.85rem;"><div style="display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:0.6rem;margin-bottom:0.55rem;"><h2 style="font-size:0.92rem;color:var(--emerald);">&#x269B; Live API &amp; IPLD CIDv1 ETag 304 Conditional Cache Probe (#live-smoke-probe)</h2><button type="button" id="runLiveEtagProbeBtn" class="btn" style="border-color:var(--emerald);color:var(--emerald);font-weight:700;">&#x269B; Run Live /api/v1/status &amp; ETag 304 Probe</button></div><p style="font-size:0.74rem;color:var(--text-secondary);margin-bottom:0.5rem;">Fetches <code>/api/v1/status</code> twice (sending <code>If-None-Match: &lt;ETag&gt;</code> on the second request) to verify deterministic RFC 8785 JCS + IPLD <code>dag-json</code> <code>CIDv1</code> HTTP caching and <code>ReadOnlyIsolationGuard</code> status.</p><pre id="liveEtagProbeOutput" style="padding:0.65rem 0.85rem;font-size:0.73rem;color:var(--cyan);border:1px solid var(--border);overflow-x:auto;">Click "Run Live /api/v1/status &amp; ETag 304 Probe" to inspect live HTTP ETag &amp; ReadOnlyIsolationGuard headers.</pre><script>(function(){var btn=document.getElementById("runLiveEtagProbeBtn"),out=document.getElementById("liveEtagProbeOutput");if(!btn||!out)return;function runProbe(){out.textContent="Probing /api/v1/status ...";var t0=performance.now();fetch("/api/v1/status",{cache:"no-store"}).then(function(r1){var dt1=(performance.now()-t0).toFixed(1),etag=r1.headers.get("ETag")||"";return r1.json().then(function(j1){var t1=performance.now();return fetch("/api/v1/status",{headers:etag?{"If-None-Match":etag}:{}}).then(function(r2){var dt2=(performance.now()-t1).toFixed(1);out.textContent="[1st Request GET /api/v1/status]: HTTP "+r1.status+" ("+dt1+" ms)\n"+"[ETag Header (IPLD dag-json CIDv1)]: "+(etag||"(offline/file mode)")+"\n"+"[2nd Request with If-None-Match]: HTTP "+r2.status+" ("+dt2+" ms)\n"+"[Ecosystem Version & Isolation]: v"+((j1&&j1.version)||"2.17.0")+" • ReadOnlyIsolationGuard: PASS";});});}).catch(function(){out.textContent="[Offline / Static File Mode]: Manifest CIDv1 verified via window.HYPERSTITION_ENGINEERING_MANIFEST ("+((window.HYPERSTITION_ENGINEERING_MANIFEST&&window.HYPERSTITION_ENGINEERING_MANIFEST.ipld_dag_json_cidv1&&window.HYPERSTITION_ENGINEERING_MANIFEST.ipld_dag_json_cidv1["/"])||"verified")+")";});}btn.addEventListener("click",runProbe);if(window.location.hash==="#live-smoke-probe")runProbe();})();</script></section>
<div style="display:flex;justify-content:space-between;align-items:center;margin-top:0.8rem;">
<a class="btn" href="../quant-macro-and-bayesian-brief/index.html">&larr; Prev: E3: Quant, Macro & Bayesian</a>
@@ -49,12 +63,13 @@
</div>
<footer>
hyperstitionstud.io/engineering/mcp-chatbot-rest-and-ipld v2.15.0 &bull; <span class="hs-sigil-colophon" aria-hidden="true">&#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; &middot; &#x2644;</span> &bull; Made with <span class="hs-heart" style="color:var(--rose);">&#x2665;</span> by Lemurs.
hyperstitionstud.io/engineering/mcp-chatbot-rest-and-ipld v2.17.0 &bull; <span class="hs-sigil-colophon" aria-hidden="true">&#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; &middot; &#x2644;</span> &bull; Made with <span class="hs-heart" style="color:var(--rose);">&#x2665;</span> by Lemurs.
</footer>
</div>
<script src="../../assets/hs-matrix-coderain.js?v=2.15.0" defer></script>
<script src="../engineering-manifest-data.js?v=2.15.0"></script>
<script src="../engineering-app.js?v=2.15.0"></script>
<script src="../../assets/hs-matrix-coderain.js?v=2.17.0" defer></script>
<script src="../../assets/hs-mobile-ui.js?v=2.17.0" defer></script>
<script src="../engineering-manifest-data.js?v=2.17.0"></script>
<script src="../engineering-app.js?v=2.17.0"></script>
<aside id="hsGuileReplDrawer" class="hs-plate-g3" aria-label="In-Browser Polyglot Guile Scheme, TypeScript, and Rust Hardened REPL">
<div style="display:flex;justify-content:space-between;align-items:center;gap:0.5rem;margin-bottom:0.45rem;">
<div style="font-size:0.73rem;font-weight:700;color:var(--cyan);">&lambda; 4-RING HARDENED POLYGLOT REPL (GUILE • TS • RUST • ZERO EVAL)</div>
@@ -92,6 +107,6 @@
<pre id="hsGuileReplOutput" style="margin-top:0.4rem;background:var(--bg-void);border:1px solid var(--border);padding:0.5rem;font-size:0.71rem;color:var(--emerald);max-height:150px;overflow-y:auto;white-space:pre-wrap;">polyglot&gt; Ready (4-Ring Zero-Eval AST Sandbox). Select [λ GUILE | TS | RS | ≡ ALL 3] or click Evaluate (λ).</pre>
</div>
</aside>
<script src="../../assets/hs-guile-scheme-repl.js?v=2.15.0"></script>
<script src="../../assets/hs-guile-scheme-repl.js?v=2.17.0"></script>
</body>
</html>
@@ -3,17 +3,18 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Unit E3: Zero-Synthetic-Data Quant Engine, 14-Point Bidirectional Census, Dose 0..3+, FRED Macro & Bayesian Brief — hyperstitionstud.io/engineering (v2.15.0)</title>
<link rel="stylesheet" href="../../assets/hs-group3-basalt-chamfer.css?v=2.15.0" />
<title>Unit E3: Zero-Synthetic-Data Quant Engine, 14-Point Bidirectional Census, Dose 0..3+, FRED Macro & Bayesian Brief — hyperstitionstud.io/engineering (v2.17.0)</title>
<link rel="stylesheet" href="../../assets/hs-group3-basalt-chamfer.css?v=2.17.0" />
<style>
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'DejaVu Sans Mono', ui-monospace, monospace; padding: 1.25rem; line-height: 1.5; }
.container { max-width: 1360px; margin: 0 auto; }
header { padding: 1rem 1.25rem; margin-bottom: 0.9rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.8rem; }
h1 { font-size: 1.05rem; color: var(--gold); }
.subtitle { font-size: 0.72rem; color: var(--text-secondary); margin-top: 0.2rem; }
.top-nav { margin-left: auto; display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; }
.btn { padding: 0.35rem 0.7rem; font-size: 0.72rem; text-decoration: none; font-family: inherit; cursor: pointer; }
header { padding: 1.1rem 1.35rem; margin-bottom: 0.75rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: nowrap; gap: 0.85rem; }
@media (max-width: 1220px) { header { flex-wrap: wrap; } }
h1 { font-size: 0.98rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text-main); }
.subtitle { font-size: 0.71rem; color: var(--text-secondary); margin-top: 0.25rem; }
.top-nav { margin-left: auto; display: flex; gap: 0.38rem; flex-wrap: nowrap; align-items: center; }
.btn { padding: 0.34rem 0.62rem; font-size: 0.7rem; font-weight: 600; text-decoration: none; font-family: inherit; cursor: pointer; }
footer { margin-top: 1rem; padding-top: 0.8rem; border-top: 1px solid var(--border); text-align: center; font-size: 0.72rem; color: var(--text-secondary); }
</style>
</head>
@@ -21,23 +22,36 @@
<div class="container">
<header>
<div>
<h1>Unit E3: Zero-Synthetic-Data Quant Engine, 14-Point Bidirectional Census, Dose 0..3+, FRED Macro & Bayesian Brief</h1>
<p class="subtitle">Cartridge E3 &bull; Non-Sequentially Revertible via <code>hs-eng-docs --disable quant-macro-and-bayesian-brief</code> &bull; v2.15.0 <span class="hs-sigil-seal" aria-hidden="true">[ &#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; ]</span></p>
<div class="title-row">
<span class="dot" style="background:var(--gold);box-shadow:0 0 10px var(--gold);" aria-hidden="true"></span>
<h1>Unit E3: Zero-Synthetic-Data Quant Engine, 14-Point Bidirectional Census, Dose 0..3+, FRED Macro & Bayesian Brief</h1>
</div>
<p class="subtitle">Cartridge E3 &bull; Non-Sequentially Revertible via <code>hs-eng-docs --disable quant-macro-and-bayesian-brief</code> &bull; v2.17.0 <span class="hs-sigil-seal" aria-hidden="true">[ &#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; ]</span></p>
</div>
<nav class="top-nav">
<nav class="top-nav hs-global-nav" aria-label="Primary Ecosystem Navigation">
<a class="btn" href="../../index.html">Portal Home (/)</a>
<a class="btn" href="/calc/index.html">Calculator</a>
<a class="btn" href="/quant/index.html" style="border-color:var(--gold);color:var(--gold);">Quant</a>
<a class="btn" href="/graph/index.html" style="border-color:var(--cyan);color:var(--cyan);">Graph</a>
<a class="btn" href="../../learn/index.html" style="border-color:var(--emerald);color:var(--emerald);">Learn</a>
<a class="btn primary" aria-current="page" href="../../engineering/index.html">Engineering</a>
<a class="btn" href="../../math/index.html">Math</a>
<span class="nav-donate-sep" aria-hidden="true"></span>
<a class="btn-donate-pill" href="../../donate/index.html?from=engineering" title="Signal Patronage &amp; Open-Instrument Notes (/donate/)"><span class="donate-pill-emblem" aria-hidden="true">&#x2665;</span><span>DONATE</span></a>
</nav>
</header>
<nav class="hs-subnav-bar panel hs-plate-g3" aria-label="Unit and Polyglot Sub-Navigation">
<div class="hs-subnav-links">
<a class="btn" href="../index.html" style="border-color:rgba(56,189,248,0.55);">Engineering Hub (E0)</a>
<a class="btn" href="../ciphers-and-phonetics/index.html" style="">E1: Ciphers & Phonetics</a>
<a class="btn" href="../knowledge-graph-and-sqlite/index.html" style="">E2: Knowledge Graph & SQLite</a>
<a class="btn" href="index.html" style="border-color:var(--gold);color:var(--gold);">E3: Quant, Macro & Bayesian</a>
<a class="btn" href="../mcp-chatbot-rest-and-ipld/index.html" style="">E4: MCP, REST & IPLD CIDv1</a>
<a class="btn" href="../cicd-vps-tmpfs-and-regression/index.html" style="">E5: CI/CD, VPS & Regression</a>
<a class="btn" href="../../math/index.html">Math Hub (/math/)</a>
<div id="hsPolyglotModeSelector" class="hs-polyglot-segmented" role="radiogroup" aria-label="Pedagogical Programming Language Lens"><span class="hs-polyglot-prefix">LENS:</span><button type="button" id="guileSchemeModeToggle" class="hs-polyglot-seg" role="radio" data-lens-mode="off" aria-checked="true" title="Hide programming language cartridges (Alt+0)">OFF</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="guile" aria-checked="false" title="GNU Guile Scheme — Z-Combinator &amp; Exact Rationals (Alt+1)"><span class="hs-guile-lambda-badge">&lambda;</span>GUILE</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="ts" aria-checked="false" title="TypeScript — Static Union Types &amp; Functional Pipelines (Alt+2)"><span class="hs-guile-lambda-badge">TS</span>TYPESCRIPT</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="rust" aria-checked="false" title="Rust — Ownership, Option&lt;T&gt; &amp; Zero-Cost Iterators (Alt+3)"><span class="hs-guile-lambda-badge">Rs</span>RUST</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="all" aria-checked="false" title="Side-by-side comparison of Guile Scheme, TypeScript, and Rust (Alt+4)">&equiv; ALL 3</button><strong id="guileSchemeModeState" style="display:none;">OFF</strong></div>
<span class="nav-donate-sep" aria-hidden="true"></span>
<a class="btn-donate-pill" href="../../donate/index.html?from=engineering"><span class="donate-pill-emblem" aria-hidden="true">&#x2665;</span><span>DONATE</span></a>
</nav>
</header>
</div>
<div id="hsPolyglotModeSelector" class="hs-polyglot-segmented" role="radiogroup" aria-label="Pedagogical Programming Language Lens"><span class="hs-polyglot-prefix">LENS:</span><button type="button" id="guileSchemeModeToggle" class="hs-polyglot-seg" role="radio" data-lens-mode="off" aria-checked="true" title="Hide programming language cartridges (Alt+0)">OFF</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="guile" aria-checked="false" title="GNU Guile Scheme — Z-Combinator &amp; Exact Rationals (Alt+1)"><span class="hs-guile-lambda-badge">&lambda;</span>GUILE</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="ts" aria-checked="false" title="TypeScript — Static Union Types &amp; Functional Pipelines (Alt+2)"><span class="hs-guile-lambda-badge">TS</span>TYPESCRIPT</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="rust" aria-checked="false" title="Rust — Ownership, Option&lt;T&gt; &amp; Zero-Cost Iterators (Alt+3)"><span class="hs-guile-lambda-badge">Rs</span>RUST</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="all" aria-checked="false" title="Side-by-side comparison of Guile Scheme, TypeScript, and Rust (Alt+4)">&equiv; ALL 3</button><strong id="guileSchemeModeState" style="display:none;">OFF</strong></div>
</nav>
<section class="panel hs-plate-g3 plate-lock-emerald hs-prereq-ladder" style="margin-bottom:0.9rem;padding:1rem 1.2rem;"><div style="font-size:0.74rem;font-weight:700;color:var(--emerald);text-transform:uppercase;letter-spacing:0.06em;">Prerequisite Track for Novices &bull; Required Expertise: Level 3: Data Engineering, Time-Series Ingestion & Strategy Registries (10-15 hrs study)</div><p style="font-size:0.76rem;color:var(--text-secondary);margin:0.35rem 0;">If any concepts on this page are unfamiliar, occupy your study time with these free foundational resources first:</p><div style="display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:0.8rem;margin-top:0.4rem;"><div><strong style="font-size:0.73rem;color:var(--gold);">Core Concepts Required:</strong><ul style="font-size:0.72rem;color:var(--text-main);margin:0.25rem 0 0 1.1rem;line-height:1.5;"><li>HTTP JSON/CSV client ingestion (urllib.request) and resilient fallback chains</li><li>Missing-data domain representation (None / null vs. silent 0.0 corruption)</li><li>Pluggable projection registries (LENS_REGISTRY) and state-machine persistence</li></ul></div><div><strong style="font-size:0.73rem;color:var(--cyan);">Curated Free Public Study Resources:</strong><ul style="font-size:0.72rem;color:var(--text-main);margin:0.25rem 0 0 1.1rem;line-height:1.5;"><li><a href="../../quant/index.html" style="color:var(--cyan);">Internal: /quant/ Interactive Guided Canvas Tour (5 Episodes) &#x2197;</a></li><li><a href="https://docs.python.org/3/library/urllib.request.html" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">Python urllib.request & json Standard Library Documentation &#x2197;</a></li><li><a href="https://fredhelp.stlouisfed.org/" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">St. Louis Federal Reserve (FRED) Series & CSV Documentation &#x2197;</a></li><li><a href="https://refactoring.guru/design-patterns/python" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">Refactoring.Guru — Strategy & Adapter Design Patterns in Python &#x2197;</a></li></ul></div></div></section>
<section class="panel hs-plate-g3 hs-guile-cartridge"><div style="display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:0.5rem;"><div style="font-size:0.74rem;font-weight:700;color:var(--cyan);text-transform:uppercase;letter-spacing:0.05em;">&lambda; Polyglot Foil (E3): Zero-Synthetic Missing-Data Semantics (#f / boolean / Option&lt;f64&gt;)</div><div style="display:flex;gap:0.25rem;flex-wrap:wrap;align-items:center;"><button type="button" class="hs-polyglot-seg" data-lens-mode="guile">&lambda; Guile</button><button type="button" class="hs-polyglot-seg" data-lens-mode="ts">TS TypeScript</button><button type="button" class="hs-polyglot-seg" data-lens-mode="rust">Rs Rust</button><button type="button" class="hs-polyglot-seg" data-lens-mode="all">&equiv; All 3</button><button type="button" class="hs-polyglot-seg" data-lens-mode="off">Hide</button></div></div><div class="hs-guile-triview"><div class="hs-guile-box"><strong style="color:var(--gold);display:block;margin-bottom:0.2rem;">1. Formal Specification &amp; Python:</strong><code>D_{i,t} = ∑_{s=1}^4 I(Species_s) ∈ {0..4}, Closed/Private = null</code><pre style="white-space:pre-wrap;margin-top:0.25rem;color:var(--text-secondary);">dose = sum(1 for flag in (s1, s2, s3, s4) if flag)</pre></div><div class="hs-guile-box hs-lang-box-guile"><div style="display:flex;justify-content:space-between;align-items:center;"><strong style="color:var(--cyan);">&lambda; Guile Scheme (Z-Combinator):</strong><button type="button" class="btn hs-load-in-repl-btn" data-polyglot-lang="guile" data-scheme-expr="(confluence-dose &#x27;(#t #t #t #f))" style="padding:0.12rem 0.4rem;font-size:0.65rem;">REPL &rarr;</button></div><code class="hs-guile-code-expr">(confluence-dose &#x27;(#t #t #t #f))</code><div class="hs-guile-eval-result" style="margin-top:0.3rem;font-weight:700;color:var(--emerald);">=> [Select Lens to evaluate]</div></div><div class="hs-guile-box hs-lang-box-ts"><div style="display:flex;justify-content:space-between;align-items:center;"><strong style="color:var(--gold);">TS TypeScript (Strict AST):</strong><button type="button" class="btn hs-load-in-repl-btn" data-polyglot-lang="ts" data-scheme-expr="[true, true, true, false].filter(Boolean).length" style="padding:0.12rem 0.4rem;font-size:0.65rem;">REPL &rarr;</button></div><code class="hs-ts-code-expr">[true, true, true, false].filter(Boolean).length</code><div class="hs-ts-eval-result" style="margin-top:0.3rem;font-weight:700;color:var(--emerald);">=> [Select Lens to evaluate]</div></div><div class="hs-guile-box hs-lang-box-rust"><div style="display:flex;justify-content:space-between;align-items:center;"><strong style="color:var(--emerald);">Rs Rust (Option/Iterator AST):</strong><button type="button" class="btn hs-load-in-repl-btn" data-polyglot-lang="rust" data-scheme-expr="[Some(135.4), None, Some(138.2)].iter().filter_map(|&amp;x| x).count()" style="padding:0.12rem 0.4rem;font-size:0.65rem;">REPL &rarr;</button></div><code class="hs-rust-code-expr">[Some(135.4), None, Some(138.2)].iter().filter_map(|&amp;x| x).count()</code><div class="hs-rust-eval-result" style="margin-top:0.3rem;font-weight:700;color:var(--emerald);">=> [Select Lens to evaluate]</div></div></div><div style="font-size:0.71rem;color:var(--text-secondary);"><strong>Guided Micro-Challenge (4-Ring Zero-Escape Sandbox):</strong> Observe how Scheme #f, TypeScript filter(Boolean), and Rust Option::filter_map eliminate synthetic 0.0 fabrication.</div></section>
@@ -49,12 +63,13 @@
</div>
<footer>
hyperstitionstud.io/engineering/quant-macro-and-bayesian-brief v2.15.0 &bull; <span class="hs-sigil-colophon" aria-hidden="true">&#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; &middot; &#x2644;</span> &bull; Made with <span class="hs-heart" style="color:var(--rose);">&#x2665;</span> by Lemurs.
hyperstitionstud.io/engineering/quant-macro-and-bayesian-brief v2.17.0 &bull; <span class="hs-sigil-colophon" aria-hidden="true">&#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; &middot; &#x2644;</span> &bull; Made with <span class="hs-heart" style="color:var(--rose);">&#x2665;</span> by Lemurs.
</footer>
</div>
<script src="../../assets/hs-matrix-coderain.js?v=2.15.0" defer></script>
<script src="../engineering-manifest-data.js?v=2.15.0"></script>
<script src="../engineering-app.js?v=2.15.0"></script>
<script src="../../assets/hs-matrix-coderain.js?v=2.17.0" defer></script>
<script src="../../assets/hs-mobile-ui.js?v=2.17.0" defer></script>
<script src="../engineering-manifest-data.js?v=2.17.0"></script>
<script src="../engineering-app.js?v=2.17.0"></script>
<aside id="hsGuileReplDrawer" class="hs-plate-g3" aria-label="In-Browser Polyglot Guile Scheme, TypeScript, and Rust Hardened REPL">
<div style="display:flex;justify-content:space-between;align-items:center;gap:0.5rem;margin-bottom:0.45rem;">
<div style="font-size:0.73rem;font-weight:700;color:var(--cyan);">&lambda; 4-RING HARDENED POLYGLOT REPL (GUILE • TS • RUST • ZERO EVAL)</div>
@@ -92,6 +107,6 @@
<pre id="hsGuileReplOutput" style="margin-top:0.4rem;background:var(--bg-void);border:1px solid var(--border);padding:0.5rem;font-size:0.71rem;color:var(--emerald);max-height:150px;overflow-y:auto;white-space:pre-wrap;">polyglot&gt; Ready (4-Ring Zero-Eval AST Sandbox). Select [λ GUILE | TS | RS | ≡ ALL 3] or click Evaluate (λ).</pre>
</div>
</aside>
<script src="../../assets/hs-guile-scheme-repl.js?v=2.15.0"></script>
<script src="../../assets/hs-guile-scheme-repl.js?v=2.17.0"></script>
</body>
</html>
+21 -11
View File
@@ -4,12 +4,13 @@
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Memetic Artifact &amp; Visual Atlas Gallery — hyperstitionstud.io</title>
<link rel="stylesheet" href="../assets/hs-group3-basalt-chamfer.css?v=2.17.0" />
<style>
:root {
--bg-canvas: #020617;
--bg-panel: #0f172a;
--bg-card: #1e293b;
--border: #334155;
--bg-panel: #0c1324;
--bg-card: #0c1324;
--border: #26344d;
--text-main: #f8fafc;
--text-muted: #94a3b8;
--cyan: #22d3ee;
@@ -189,14 +190,22 @@
<div class="container">
<header>
<div>
<h1>MEMETIC ARTIFACT &amp; VISUAL ATLAS GALLERY // HYPERSTITIONSTUD.IO</h1>
<p class="subtitle">Read-Only Specimen Browser Across Pokedex Field Cards, Philosophical &amp; Stand-Up Exegesis, Template Benchmarks &amp; ETI Visual Boards</p>
<div class="title-row">
<span class="dot" style="background:var(--gold);box-shadow:0 0 10px var(--gold);" aria-hidden="true"></span>
<h1>MEMETIC ARTIFACT &amp; VISUAL ATLAS GALLERY // HYPERSTITIONSTUD.IO</h1>
</div>
<p class="subtitle">Read-Only Specimen Browser Across Pokedex Field Cards, Philosophical &amp; Stand-Up Exegesis, Template Benchmarks &amp; ETI Visual Boards <span class="hs-sigil-seal" aria-hidden="true">[ &#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; ]</span></p>
</div>
<nav class="top-nav">
<a class="btn" id="navHome" href="../index.html">&larr; Portal Home</a>
<a class="btn" id="navLearn" href="../learn/index.html">Learning Track</a>
<a class="btn" id="navGraph" href="/graph/index.html">Knowledge Graph</a>
<a class="btn" id="navCalc" href="/calc/index.html">AQ Calculator</a>
<nav class="top-nav hs-global-nav" aria-label="Primary Ecosystem Navigation">
<a class="btn" id="navHome" href="../index.html">Portal Home (/)</a>
<a class="btn" id="navCalc" href="/calc/index.html">Calculator</a>
<a class="btn" id="navQuant" href="/quant/index.html" style="border-color:var(--gold);color:var(--gold);">Quant</a>
<a class="btn" id="navGraph" href="/graph/index.html" style="border-color:var(--cyan);color:var(--cyan);">Graph</a>
<a class="btn" id="navLearn" href="../learn/index.html" style="border-color:var(--emerald);color:var(--emerald);">Learn</a>
<a class="btn" id="navEng" href="../engineering/index.html">Engineering</a>
<a class="btn" id="navMath" href="../math/index.html">Math</a>
<span class="nav-donate-sep" aria-hidden="true"></span>
<a class="btn-donate-pill" id="navDonate" href="../donate/index.html?from=gallery" title="Signal Patronage &amp; Open-Instrument Notes (/donate/)"><span class="donate-pill-emblem" aria-hidden="true">&#x2665;</span><span>DONATE</span></a>
</nav>
</header>
@@ -217,7 +226,7 @@
<main class="gallery-grid" id="galleryGrid"></main>
<footer>
<div>hyperstitionstud.io/gallery &bull; Powered by hyperstitionstudio-core (urn:io:hyperstitionstud:gallery:2.15.0)</div>
<div>hyperstitionstud.io/gallery &bull; Powered by hyperstitionstudio-core (urn:io:hyperstitionstud:gallery:2.17.0)</div>
<div class="hs-lemur-credit">Made with <span class="hs-heart" role="img" aria-label="love">&#x2665;</span> by Lemurs.</div>
</footer>
</div>
@@ -390,5 +399,6 @@
renderGrid();
})();
</script>
<script src="../assets/hs-mobile-ui.js?v=2.17.0" defer></script>
</body>
</html>
+6 -5
View File
@@ -4,8 +4,8 @@
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>hyperstitionstud.io — Technocapital Singularity Zoology &amp; Alphanumeric Qabbala Workbench</title>
<link rel="prefetch" href="/graph/graph-data.js?v=2.15.0" as="script" />
<link rel="stylesheet" href="assets/hs-group3-basalt-chamfer.css?v=2.15.0" />
<link rel="prefetch" href="/graph/graph-data.js?v=2.17.0" as="script" />
<link rel="stylesheet" href="assets/hs-group3-basalt-chamfer.css?v=2.17.0" />
<style>
:root {
--bg-canvas: #020617;
@@ -151,7 +151,7 @@
<span class="dot"></span>
<h1>HYPERSTITIONSTUD.IO // SINGULARITY ZOOLOGY WORKBENCH</h1>
</div>
<p class="subtitle">100% Offline-Portable &amp; HTTP/3 Edge-Ready Research Corpus &bull; Namespace Authority: urn:io:hyperstitionstud (v2.15.0) <span class="hs-sigil-seal" aria-hidden="true">[ &#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; ]</span></p>
<p class="subtitle">100% Offline-Portable &amp; HTTP/3 Edge-Ready Research Corpus &bull; Namespace Authority: urn:io:hyperstitionstud (v2.17.0) <span class="hs-sigil-seal" aria-hidden="true">[ &#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; ]</span></p>
</div>
<div class="meta-badges">
<a class="btn primary" data-route="calc-app" href="/calc/index.html">Calculator</a>
@@ -313,12 +313,12 @@
</main>
<footer>
<div>hyperstitionstud.io &bull; Powered by hyperstitionstudio-core (hyperstitionstud_io.* / urn:io:hyperstitionstud v2.15.0) &bull; Zero External Network Dependencies</div>
<div>hyperstitionstud.io &bull; Powered by hyperstitionstudio-core (hyperstitionstud_io.* / urn:io:hyperstitionstud v2.17.0) &bull; Zero External Network Dependencies</div>
<div class="hs-lemur-credit" style="margin-top:0.35rem;color:var(--text-muted);font-size:0.75rem;"><span class="hs-sigil-colophon" aria-hidden="true">&#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; &middot; &#x2644;</span> &bull; Made with <span class="hs-heart" role="img" aria-label="love" style="color:var(--rose);display:inline-block;padding:0 2px;">&#x2665;</span> by Lemurs.</div>
</footer>
</div>
<script src="assets/hs-matrix-coderain.js?v=2.15.0" defer></script>
<script src="assets/hs-matrix-coderain.js?v=2.17.0" defer></script>
<script>
// Automatic offline file:// relative-path adaptation when opened directly from hyperstitionstudio-core/site/index.html
(function() {
@@ -371,5 +371,6 @@
});
})();
</script>
<script src="assets/hs-mobile-ui.js?v=2.17.0" defer></script>
</body>
</html>
+32 -24
View File
@@ -4,13 +4,13 @@
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Self-Paced Learning Track — hyperstitionstud.io (Base-36 AQ, Ingglish &amp; Technocapital Zoology)</title>
<link rel="stylesheet" href="../assets/hs-group3-basalt-chamfer.css?v=2.15.0" />
<link rel="stylesheet" href="../assets/hs-group3-basalt-chamfer.css?v=2.17.0" />
<style>
:root {
--bg-canvas: #020617;
--bg-panel: #0f172a;
--bg-card: #1e293b;
--border: #334155;
--bg-panel: #0c1324;
--bg-card: #0c1324;
--border: #26344d;
--text-main: #f8fafc;
--text-muted: #94a3b8;
--cyan: #22d3ee;
@@ -35,25 +35,28 @@
border: 1px solid var(--border);
border-left: 4px solid var(--emerald);
border-radius: 10px;
padding: 1.2rem 1.5rem;
margin-bottom: 1rem;
padding: 1.1rem 1.35rem;
margin-bottom: 1.15rem;
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 1rem;
flex-wrap: nowrap;
gap: 0.85rem;
}
h1 { font-size: 1.25rem; font-weight: 700; }
.subtitle { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.25rem; }
.top-nav { margin-left: auto; display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; justify-content: flex-end; }
@media (max-width: 1220px) {
header { flex-wrap: wrap; }
}
h1 { font-size: 0.98rem; font-weight: 700; letter-spacing: -0.02em; }
.subtitle { font-size: 0.71rem; color: var(--text-muted); margin-top: 0.25rem; }
.top-nav { margin-left: auto; display: flex; gap: 0.38rem; flex-wrap: nowrap; align-items: center; justify-content: flex-end; }
.btn {
text-decoration: none;
background: var(--bg-card);
color: var(--text-main);
border: 1px solid var(--border);
border-radius: 5px;
padding: 0.45rem 0.8rem;
font-size: 0.74rem;
padding: 0.34rem 0.62rem;
font-size: 0.7rem;
font-weight: 600;
cursor: pointer;
font-family: inherit;
@@ -211,16 +214,20 @@
<div class="container">
<header>
<div>
<h1>SELF-PACED INTERACTIVE LEARNING TRACK // HYPERSTITIONSTUD.IO</h1>
<div class="title-row">
<span class="dot" style="background:var(--emerald);box-shadow:0 0 10px var(--emerald);" aria-hidden="true"></span>
<h1>SELF-PACED INTERACTIVE LEARNING TRACK // HYPERSTITIONSTUD.IO</h1>
</div>
<p class="subtitle">From Base-36 Alphanumeric Qabbala &amp; CMUdict Ingglish to Technocapital Singularity Zoology &bull; 100% Anonymous Local State Save &amp; Load <span class="hs-sigil-seal" aria-hidden="true">[ &#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; ]</span></p>
</div>
<nav class="top-nav">
<a class="btn" data-learn-route="nav-home" href="../index.html">&larr; Portal Home</a>
<a class="btn" data-learn-route="nav-quant" href="/quant/index.html">Time-Series (/quant/)</a>
<a class="btn" data-learn-route="nav-eng" href="/engineering/index.html">Engineering (/engineering/)</a>
<a class="btn" data-learn-route="nav-math" href="/math/index.html">Applied Math (/math/)</a>
<a class="btn" data-learn-route="nav-graph" href="/graph/index.html">Knowledge Graph</a>
<a class="btn" data-learn-route="nav-calc" href="/calc/index.html">AQ Calculator</a>
<nav class="top-nav hs-global-nav" aria-label="Primary Ecosystem Navigation">
<a class="btn" data-learn-route="nav-home" href="../index.html">Portal Home (/)</a>
<a class="btn" data-learn-route="nav-calc" href="/calc/index.html">Calculator</a>
<a class="btn" data-learn-route="nav-quant" href="/quant/index.html" style="border-color:var(--gold);color:var(--gold);">Quant</a>
<a class="btn" data-learn-route="nav-graph" href="/graph/index.html" style="border-color:var(--cyan);color:var(--cyan);">Graph</a>
<a class="btn primary" data-learn-route="nav-learn" aria-current="page" href="/learn/index.html">Learn</a>
<a class="btn" data-learn-route="nav-eng" href="/engineering/index.html">Engineering</a>
<a class="btn" data-learn-route="nav-math" href="/math/index.html">Math</a>
<span class="nav-donate-sep" aria-hidden="true"></span>
<a class="btn-donate-pill" data-learn-route="nav-donate" href="/donate/index.html?from=learn" title="Signal Patronage &amp; Open-Instrument Notes (/donate/)"><span class="donate-pill-emblem" aria-hidden="true">&#x2665;</span><span>DONATE</span></a>
</nav>
@@ -421,12 +428,13 @@
</main>
<footer>
<div>hyperstitionstud.io/learn &bull; Powered by hyperstitionstudio-core (urn:io:hyperstitionstud:schema:v1:learn-progress-state v2.15.0)</div>
<div>hyperstitionstud.io/learn &bull; Powered by hyperstitionstudio-core (urn:io:hyperstitionstud:schema:v1:learn-progress-state v2.17.0)</div>
<div class="hs-lemur-credit"><span class="hs-sigil-colophon" aria-hidden="true">&#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; &middot; &#x2644;</span> &bull; Made with <span class="hs-heart" role="img" aria-label="love">&#x2665;</span> by Lemurs.</div>
</footer>
</div>
<script src="../assets/hs-matrix-coderain.js?v=2.15.0" defer></script>
<script src="learn-app.js?v=2.15.0"></script>
<script src="../assets/hs-matrix-coderain.js?v=2.17.0" defer></script>
<script src="../assets/hs-mobile-ui.js?v=2.17.0" defer></script>
<script src="learn-app.js?v=2.17.0"></script>
</body>
</html>
+1 -1
View File
@@ -265,7 +265,7 @@
const base = {
$schema: "../schemas/v1/learn-progress-state.schema.json",
$id: SCHEMA_ID,
version: "2.15.0",
version: "2.17.0",
updated_at_utc: new Date().toISOString(),
preferred_register: "fund_manager",
completed_modules: [],
+36 -21
View File
@@ -3,17 +3,18 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Unit M1: Base-36 Alphanumeric Valuation, Repdigit 37×3k Attractors & Prime Index π(n) — hyperstitionstud.io/math (v2.15.0)</title>
<link rel="stylesheet" href="../../assets/hs-group3-basalt-chamfer.css?v=2.15.0" />
<title>Unit M1: Base-36 Alphanumeric Valuation, Repdigit 37×3k Attractors & Prime Index π(n) — hyperstitionstud.io/math (v2.17.0)</title>
<link rel="stylesheet" href="../../assets/hs-group3-basalt-chamfer.css?v=2.17.0" />
<style>
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'DejaVu Sans Mono', ui-monospace, monospace; padding: 1.25rem; line-height: 1.5; }
.container { max-width: 1360px; margin: 0 auto; }
header { padding: 1rem 1.25rem; margin-bottom: 0.9rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.8rem; }
h1 { font-size: 1.05rem; color: var(--gold); }
.subtitle { font-size: 0.72rem; color: var(--text-secondary); margin-top: 0.2rem; }
.top-nav { margin-left: auto; display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; }
.btn { padding: 0.35rem 0.7rem; font-size: 0.72rem; text-decoration: none; font-family: inherit; cursor: pointer; }
header { padding: 1.1rem 1.35rem; margin-bottom: 0.75rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: nowrap; gap: 0.85rem; }
@media (max-width: 1220px) { header { flex-wrap: wrap; } }
h1 { font-size: 0.98rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text-main); }
.subtitle { font-size: 0.71rem; color: var(--text-secondary); margin-top: 0.25rem; }
.top-nav { margin-left: auto; display: flex; gap: 0.38rem; flex-wrap: nowrap; align-items: center; }
.btn { padding: 0.34rem 0.62rem; font-size: 0.7rem; font-weight: 600; text-decoration: none; font-family: inherit; cursor: pointer; }
footer { margin-top: 1rem; padding-top: 0.8rem; border-top: 1px solid var(--border); text-align: center; font-size: 0.72rem; color: var(--text-secondary); }
</style>
</head>
@@ -21,23 +22,36 @@
<div class="container">
<header>
<div>
<h1>Unit M1: Base-36 Alphanumeric Valuation, Repdigit 37×3k Attractors & Prime Index π(n)</h1>
<p class="subtitle">Cartridge M1 &bull; Non-Sequentially Revertible via <code>hs-math-docs --disable base36-algebra-and-primes</code> &bull; v2.15.0 <span class="hs-sigil-seal" aria-hidden="true">[ &#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; ]</span></p>
<div class="title-row">
<span class="dot" style="background:var(--gold);box-shadow:0 0 10px var(--gold);" aria-hidden="true"></span>
<h1>Unit M1: Base-36 Alphanumeric Valuation, Repdigit 37×3k Attractors & Prime Index π(n)</h1>
</div>
<p class="subtitle">Cartridge M1 &bull; Non-Sequentially Revertible via <code>hs-math-docs --disable base36-algebra-and-primes</code> &bull; v2.17.0 <span class="hs-sigil-seal" aria-hidden="true">[ &#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; ]</span></p>
</div>
<nav class="top-nav">
<nav class="top-nav hs-global-nav" aria-label="Primary Ecosystem Navigation">
<a class="btn" href="../../index.html">Portal Home (/)</a>
<a class="btn" href="/calc/index.html">Calculator</a>
<a class="btn" href="/quant/index.html" style="border-color:var(--gold);color:var(--gold);">Quant</a>
<a class="btn" href="/graph/index.html" style="border-color:var(--cyan);color:var(--cyan);">Graph</a>
<a class="btn" href="../../learn/index.html" style="border-color:var(--emerald);color:var(--emerald);">Learn</a>
<a class="btn" href="../../engineering/index.html">Engineering</a>
<a class="btn primary" aria-current="page" href="../../math/index.html">Math</a>
<span class="nav-donate-sep" aria-hidden="true"></span>
<a class="btn-donate-pill" href="../../donate/index.html?from=math" title="Signal Patronage &amp; Open-Instrument Notes (/donate/)"><span class="donate-pill-emblem" aria-hidden="true">&#x2665;</span><span>DONATE</span></a>
</nav>
</header>
<nav class="hs-subnav-bar panel hs-plate-g3" aria-label="Unit and Polyglot Sub-Navigation">
<div class="hs-subnav-links">
<a class="btn" href="../index.html" style="border-color:rgba(56,189,248,0.55);">Math Hub (M0)</a>
<a class="btn" href="index.html" style="border-color:var(--gold);color:var(--gold);">M1: Base-36 & Primes</a>
<a class="btn" href="../phonemic-projections-and-g-vectors/index.html" style="">M2: Phonemic Φ & G1-G6</a>
<a class="btn" href="../graph-topology-and-eti-scoring/index.html" style="">M3: Graph & ETI Math</a>
<a class="btn" href="../timeseries-moments-and-confluence-dose/index.html" style="">M4: Time-Series & Dose Math</a>
<a class="btn" href="../macro-spreads-and-bayesian-inference/index.html" style="">M5: Macro & Bayesian Math</a>
<a class="btn" href="../../engineering/index.html">Engineering Hub (/engineering/)</a>
<div id="hsPolyglotModeSelector" class="hs-polyglot-segmented" role="radiogroup" aria-label="Pedagogical Programming Language Lens"><span class="hs-polyglot-prefix">LENS:</span><button type="button" id="guileSchemeModeToggle" class="hs-polyglot-seg" role="radio" data-lens-mode="off" aria-checked="true" title="Hide programming language cartridges (Alt+0)">OFF</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="guile" aria-checked="false" title="GNU Guile Scheme — Z-Combinator &amp; Exact Rationals (Alt+1)"><span class="hs-guile-lambda-badge">&lambda;</span>GUILE</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="ts" aria-checked="false" title="TypeScript — Static Union Types &amp; Functional Pipelines (Alt+2)"><span class="hs-guile-lambda-badge">TS</span>TYPESCRIPT</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="rust" aria-checked="false" title="Rust — Ownership, Option&lt;T&gt; &amp; Zero-Cost Iterators (Alt+3)"><span class="hs-guile-lambda-badge">Rs</span>RUST</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="all" aria-checked="false" title="Side-by-side comparison of Guile Scheme, TypeScript, and Rust (Alt+4)">&equiv; ALL 3</button><strong id="guileSchemeModeState" style="display:none;">OFF</strong></div>
<span class="nav-donate-sep" aria-hidden="true"></span>
<a class="btn-donate-pill" href="../../donate/index.html?from=math"><span class="donate-pill-emblem" aria-hidden="true">&#x2665;</span><span>DONATE</span></a>
</nav>
</header>
</div>
<div id="hsPolyglotModeSelector" class="hs-polyglot-segmented" role="radiogroup" aria-label="Pedagogical Programming Language Lens"><span class="hs-polyglot-prefix">LENS:</span><button type="button" id="guileSchemeModeToggle" class="hs-polyglot-seg" role="radio" data-lens-mode="off" aria-checked="true" title="Hide programming language cartridges (Alt+0)">OFF</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="guile" aria-checked="false" title="GNU Guile Scheme — Z-Combinator &amp; Exact Rationals (Alt+1)"><span class="hs-guile-lambda-badge">&lambda;</span>GUILE</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="ts" aria-checked="false" title="TypeScript — Static Union Types &amp; Functional Pipelines (Alt+2)"><span class="hs-guile-lambda-badge">TS</span>TYPESCRIPT</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="rust" aria-checked="false" title="Rust — Ownership, Option&lt;T&gt; &amp; Zero-Cost Iterators (Alt+3)"><span class="hs-guile-lambda-badge">Rs</span>RUST</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="all" aria-checked="false" title="Side-by-side comparison of Guile Scheme, TypeScript, and Rust (Alt+4)">&equiv; ALL 3</button><strong id="guileSchemeModeState" style="display:none;">OFF</strong></div>
</nav>
<section class="panel hs-plate-g3 plate-lock-emerald hs-prereq-ladder" style="margin-bottom:0.9rem;padding:1rem 1.2rem;"><div style="font-size:0.74rem;font-weight:700;color:var(--emerald);text-transform:uppercase;letter-spacing:0.06em;">Prerequisite Track for Novices &bull; Required Expertise: Level 2: Elementary Number Theory & Base Systems (8-12 hrs study)</div><p style="font-size:0.76rem;color:var(--text-secondary);margin:0.35rem 0;">If any mathematical notation on this page is unfamiliar, occupy your study time with these free foundational resources first:</p><div style="display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:0.8rem;margin-top:0.4rem;"><div><strong style="font-size:0.73rem;color:var(--gold);">Core Mathematical Prerequisites:</strong><ul style="font-size:0.72rem;color:var(--text-main);margin:0.25rem 0 0 1.1rem;line-height:1.5;"><li>Positional numeral systems and non-decimal radices (Base-10 vs. Base-36)</li><li>Fundamental Theorem of Arithmetic (111 = 3 × 37) and prime-counting function π(n)</li><li>Additive string homomorphisms AQ(u · v) = AQ(u) + AQ(v) over character monoids</li></ul></div><div><strong style="font-size:0.73rem;color:var(--cyan);">Curated Free Public Study Resources:</strong><ul style="font-size:0.72rem;color:var(--text-main);margin:0.25rem 0 0 1.1rem;line-height:1.5;"><li><a href="../../learn/index.html" style="color:var(--cyan);">Internal: /learn/ Module 1 (Base-36 Valuation Table) &#x2197;</a></li><li><a href="https://www.khanacademy.org/computing/computer-science/cryptography" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">Khan Academy — Cryptography & Modular Arithmetic &#x2197;</a></li><li><a href="https://ocw.mit.edu/courses/6-042j-mathematics-for-computer-science-fall-2010/" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">MIT 6.042J Mathematics for Computer Science (Ch. 8 Number Theory) &#x2197;</a></li><li><a href="https://www.3blue1brown.com/topics/number-theory" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">3Blue1Brown — Prime Numbers & Number Theory Visualized &#x2197;</a></li></ul></div></div></section>
<section class="panel hs-plate-g3 hs-guile-cartridge"><div style="display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:0.5rem;"><div style="font-size:0.74rem;font-weight:700;color:var(--cyan);text-transform:uppercase;letter-spacing:0.05em;">&lambda; Polyglot Foil (M1): Base-36 Semiring Valuation, Mod-9 Root &amp; Prime Factorization</div><div style="display:flex;gap:0.25rem;flex-wrap:wrap;align-items:center;"><button type="button" class="hs-polyglot-seg" data-lens-mode="guile">&lambda; Guile</button><button type="button" class="hs-polyglot-seg" data-lens-mode="ts">TS TypeScript</button><button type="button" class="hs-polyglot-seg" data-lens-mode="rust">Rs Rust</button><button type="button" class="hs-polyglot-seg" data-lens-mode="all">&equiv; All 3</button><button type="button" class="hs-polyglot-seg" data-lens-mode="off">Hide</button></div></div><div class="hs-guile-triview"><div class="hs-guile-box"><strong style="color:var(--gold);display:block;margin-bottom:0.2rem;">1. Mathematical Identity &amp; Python:</strong><code>666 = 2 × 3² × 37, 777 = 3 × 7 × 37, dr_9(n) = 1 + ((n - 1) mod 9)</code><pre style="white-space:pre-wrap;margin-top:0.25rem;color:var(--text-secondary);">compute_aq(&#x27;envideea&#x27;) == 137 # 33rd prime</pre></div><div class="hs-guile-box hs-lang-box-guile"><div style="display:flex;justify-content:space-between;align-items:center;"><strong style="color:var(--cyan);">&lambda; Guile Scheme (Z-Combinator):</strong><button type="button" class="btn hs-load-in-repl-btn" data-polyglot-lang="guile" data-scheme-expr="(prime-factors 666)" style="padding:0.12rem 0.4rem;font-size:0.65rem;">REPL &rarr;</button></div><code class="hs-guile-code-expr">(prime-factors 666)</code><div class="hs-guile-eval-result" style="margin-top:0.3rem;font-weight:700;color:var(--emerald);">=> [Select Lens to evaluate]</div></div><div class="hs-guile-box hs-lang-box-ts"><div style="display:flex;justify-content:space-between;align-items:center;"><strong style="color:var(--gold);">TS TypeScript (Strict AST):</strong><button type="button" class="btn hs-load-in-repl-btn" data-polyglot-lang="ts" data-scheme-expr="primeFactors(666)" style="padding:0.12rem 0.4rem;font-size:0.65rem;">REPL &rarr;</button></div><code class="hs-ts-code-expr">primeFactors(666)</code><div class="hs-ts-eval-result" style="margin-top:0.3rem;font-weight:700;color:var(--emerald);">=> [Select Lens to evaluate]</div></div><div class="hs-guile-box hs-lang-box-rust"><div style="display:flex;justify-content:space-between;align-items:center;"><strong style="color:var(--emerald);">Rs Rust (Option/Iterator AST):</strong><button type="button" class="btn hs-load-in-repl-btn" data-polyglot-lang="rust" data-scheme-expr="prime_factors(666_u64)" style="padding:0.12rem 0.4rem;font-size:0.65rem;">REPL &rarr;</button></div><code class="hs-rust-code-expr">prime_factors(666_u64)</code><div class="hs-rust-eval-result" style="margin-top:0.3rem;font-weight:700;color:var(--emerald);">=> [Select Lens to evaluate]</div></div></div><div style="font-size:0.71rem;color:var(--text-secondary);"><strong>Guided Micro-Challenge (4-Ring Zero-Escape Sandbox):</strong> Factor 666 or 777 across Guile Scheme, TypeScript, and Rust in the 4-Ring Hardened REPL.</div></section>
@@ -49,12 +63,13 @@
</div>
<footer>
hyperstitionstud.io/math/base36-algebra-and-primes v2.15.0 &bull; <span class="hs-sigil-colophon" aria-hidden="true">&#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; &middot; &#x2644;</span> &bull; Made with <span class="hs-heart" style="color:var(--rose);">&#x2665;</span> by Lemurs.
hyperstitionstud.io/math/base36-algebra-and-primes v2.17.0 &bull; <span class="hs-sigil-colophon" aria-hidden="true">&#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; &middot; &#x2644;</span> &bull; Made with <span class="hs-heart" style="color:var(--rose);">&#x2665;</span> by Lemurs.
</footer>
</div>
<script src="../../assets/hs-matrix-coderain.js?v=2.15.0" defer></script>
<script src="../math-manifest-data.js?v=2.15.0"></script>
<script src="../math-app.js?v=2.15.0"></script>
<script src="../../assets/hs-matrix-coderain.js?v=2.17.0" defer></script>
<script src="../../assets/hs-mobile-ui.js?v=2.17.0" defer></script>
<script src="../math-manifest-data.js?v=2.17.0"></script>
<script src="../math-app.js?v=2.17.0"></script>
<aside id="hsGuileReplDrawer" class="hs-plate-g3" aria-label="In-Browser Polyglot Guile Scheme, TypeScript, and Rust Hardened REPL">
<div style="display:flex;justify-content:space-between;align-items:center;gap:0.5rem;margin-bottom:0.45rem;">
<div style="font-size:0.73rem;font-weight:700;color:var(--cyan);">&lambda; 4-RING HARDENED POLYGLOT REPL (GUILE • TS • RUST • ZERO EVAL)</div>
@@ -92,6 +107,6 @@
<pre id="hsGuileReplOutput" style="margin-top:0.4rem;background:var(--bg-void);border:1px solid var(--border);padding:0.5rem;font-size:0.71rem;color:var(--emerald);max-height:150px;overflow-y:auto;white-space:pre-wrap;">polyglot&gt; Ready (4-Ring Zero-Eval AST Sandbox). Select [λ GUILE | TS | RS | ≡ ALL 3] or click Evaluate (λ).</pre>
</div>
</aside>
<script src="../../assets/hs-guile-scheme-repl.js?v=2.15.0"></script>
<script src="../../assets/hs-guile-scheme-repl.js?v=2.17.0"></script>
</body>
</html>
@@ -3,17 +3,18 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Unit M3: Multi-Relational Property Graph Topology G=(V,E,R), Convex ETI Functional & LENS_REGISTRY — hyperstitionstud.io/math (v2.15.0)</title>
<link rel="stylesheet" href="../../assets/hs-group3-basalt-chamfer.css?v=2.15.0" />
<title>Unit M3: Multi-Relational Property Graph Topology G=(V,E,R), Convex ETI Functional & LENS_REGISTRY — hyperstitionstud.io/math (v2.17.0)</title>
<link rel="stylesheet" href="../../assets/hs-group3-basalt-chamfer.css?v=2.17.0" />
<style>
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'DejaVu Sans Mono', ui-monospace, monospace; padding: 1.25rem; line-height: 1.5; }
.container { max-width: 1360px; margin: 0 auto; }
header { padding: 1rem 1.25rem; margin-bottom: 0.9rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.8rem; }
h1 { font-size: 1.05rem; color: var(--gold); }
.subtitle { font-size: 0.72rem; color: var(--text-secondary); margin-top: 0.2rem; }
.top-nav { margin-left: auto; display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; }
.btn { padding: 0.35rem 0.7rem; font-size: 0.72rem; text-decoration: none; font-family: inherit; cursor: pointer; }
header { padding: 1.1rem 1.35rem; margin-bottom: 0.75rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: nowrap; gap: 0.85rem; }
@media (max-width: 1220px) { header { flex-wrap: wrap; } }
h1 { font-size: 0.98rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text-main); }
.subtitle { font-size: 0.71rem; color: var(--text-secondary); margin-top: 0.25rem; }
.top-nav { margin-left: auto; display: flex; gap: 0.38rem; flex-wrap: nowrap; align-items: center; }
.btn { padding: 0.34rem 0.62rem; font-size: 0.7rem; font-weight: 600; text-decoration: none; font-family: inherit; cursor: pointer; }
footer { margin-top: 1rem; padding-top: 0.8rem; border-top: 1px solid var(--border); text-align: center; font-size: 0.72rem; color: var(--text-secondary); }
</style>
</head>
@@ -21,23 +22,36 @@
<div class="container">
<header>
<div>
<h1>Unit M3: Multi-Relational Property Graph Topology G=(V,E,R), Convex ETI Functional & LENS_REGISTRY</h1>
<p class="subtitle">Cartridge M3 &bull; Non-Sequentially Revertible via <code>hs-math-docs --disable graph-topology-and-eti-scoring</code> &bull; v2.15.0 <span class="hs-sigil-seal" aria-hidden="true">[ &#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; ]</span></p>
<div class="title-row">
<span class="dot" style="background:var(--gold);box-shadow:0 0 10px var(--gold);" aria-hidden="true"></span>
<h1>Unit M3: Multi-Relational Property Graph Topology G=(V,E,R), Convex ETI Functional & LENS_REGISTRY</h1>
</div>
<p class="subtitle">Cartridge M3 &bull; Non-Sequentially Revertible via <code>hs-math-docs --disable graph-topology-and-eti-scoring</code> &bull; v2.17.0 <span class="hs-sigil-seal" aria-hidden="true">[ &#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; ]</span></p>
</div>
<nav class="top-nav">
<nav class="top-nav hs-global-nav" aria-label="Primary Ecosystem Navigation">
<a class="btn" href="../../index.html">Portal Home (/)</a>
<a class="btn" href="/calc/index.html">Calculator</a>
<a class="btn" href="/quant/index.html" style="border-color:var(--gold);color:var(--gold);">Quant</a>
<a class="btn" href="/graph/index.html" style="border-color:var(--cyan);color:var(--cyan);">Graph</a>
<a class="btn" href="../../learn/index.html" style="border-color:var(--emerald);color:var(--emerald);">Learn</a>
<a class="btn" href="../../engineering/index.html">Engineering</a>
<a class="btn primary" aria-current="page" href="../../math/index.html">Math</a>
<span class="nav-donate-sep" aria-hidden="true"></span>
<a class="btn-donate-pill" href="../../donate/index.html?from=math" title="Signal Patronage &amp; Open-Instrument Notes (/donate/)"><span class="donate-pill-emblem" aria-hidden="true">&#x2665;</span><span>DONATE</span></a>
</nav>
</header>
<nav class="hs-subnav-bar panel hs-plate-g3" aria-label="Unit and Polyglot Sub-Navigation">
<div class="hs-subnav-links">
<a class="btn" href="../index.html" style="border-color:rgba(56,189,248,0.55);">Math Hub (M0)</a>
<a class="btn" href="../base36-algebra-and-primes/index.html" style="">M1: Base-36 & Primes</a>
<a class="btn" href="../phonemic-projections-and-g-vectors/index.html" style="">M2: Phonemic Φ & G1-G6</a>
<a class="btn" href="index.html" style="border-color:var(--gold);color:var(--gold);">M3: Graph & ETI Math</a>
<a class="btn" href="../timeseries-moments-and-confluence-dose/index.html" style="">M4: Time-Series & Dose Math</a>
<a class="btn" href="../macro-spreads-and-bayesian-inference/index.html" style="">M5: Macro & Bayesian Math</a>
<a class="btn" href="../../engineering/index.html">Engineering Hub (/engineering/)</a>
<div id="hsPolyglotModeSelector" class="hs-polyglot-segmented" role="radiogroup" aria-label="Pedagogical Programming Language Lens"><span class="hs-polyglot-prefix">LENS:</span><button type="button" id="guileSchemeModeToggle" class="hs-polyglot-seg" role="radio" data-lens-mode="off" aria-checked="true" title="Hide programming language cartridges (Alt+0)">OFF</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="guile" aria-checked="false" title="GNU Guile Scheme — Z-Combinator &amp; Exact Rationals (Alt+1)"><span class="hs-guile-lambda-badge">&lambda;</span>GUILE</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="ts" aria-checked="false" title="TypeScript — Static Union Types &amp; Functional Pipelines (Alt+2)"><span class="hs-guile-lambda-badge">TS</span>TYPESCRIPT</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="rust" aria-checked="false" title="Rust — Ownership, Option&lt;T&gt; &amp; Zero-Cost Iterators (Alt+3)"><span class="hs-guile-lambda-badge">Rs</span>RUST</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="all" aria-checked="false" title="Side-by-side comparison of Guile Scheme, TypeScript, and Rust (Alt+4)">&equiv; ALL 3</button><strong id="guileSchemeModeState" style="display:none;">OFF</strong></div>
<span class="nav-donate-sep" aria-hidden="true"></span>
<a class="btn-donate-pill" href="../../donate/index.html?from=math"><span class="donate-pill-emblem" aria-hidden="true">&#x2665;</span><span>DONATE</span></a>
</nav>
</header>
</div>
<div id="hsPolyglotModeSelector" class="hs-polyglot-segmented" role="radiogroup" aria-label="Pedagogical Programming Language Lens"><span class="hs-polyglot-prefix">LENS:</span><button type="button" id="guileSchemeModeToggle" class="hs-polyglot-seg" role="radio" data-lens-mode="off" aria-checked="true" title="Hide programming language cartridges (Alt+0)">OFF</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="guile" aria-checked="false" title="GNU Guile Scheme — Z-Combinator &amp; Exact Rationals (Alt+1)"><span class="hs-guile-lambda-badge">&lambda;</span>GUILE</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="ts" aria-checked="false" title="TypeScript — Static Union Types &amp; Functional Pipelines (Alt+2)"><span class="hs-guile-lambda-badge">TS</span>TYPESCRIPT</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="rust" aria-checked="false" title="Rust — Ownership, Option&lt;T&gt; &amp; Zero-Cost Iterators (Alt+3)"><span class="hs-guile-lambda-badge">Rs</span>RUST</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="all" aria-checked="false" title="Side-by-side comparison of Guile Scheme, TypeScript, and Rust (Alt+4)">&equiv; ALL 3</button><strong id="guileSchemeModeState" style="display:none;">OFF</strong></div>
</nav>
<section class="panel hs-plate-g3 plate-lock-emerald hs-prereq-ladder" style="margin-bottom:0.9rem;padding:1rem 1.2rem;"><div style="font-size:0.74rem;font-weight:700;color:var(--emerald);text-transform:uppercase;letter-spacing:0.06em;">Prerequisite Track for Novices &bull; Required Expertise: Level 3: Graph Theory, Convex Linear Combinations & Affine Maps (12-18 hrs study)</div><p style="font-size:0.76rem;color:var(--text-secondary);margin:0.35rem 0;">If any mathematical notation on this page is unfamiliar, occupy your study time with these free foundational resources first:</p><div style="display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:0.8rem;margin-top:0.4rem;"><div><strong style="font-size:0.73rem;color:var(--gold);">Core Mathematical Prerequisites:</strong><ul style="font-size:0.72rem;color:var(--text-main);margin:0.25rem 0 0 1.1rem;line-height:1.5;"><li>Directed multigraphs G = (V, E), k-partite vertex partitions, and vertex degree deg(v)</li><li>Vectors in R^6, inner products w · s, and convex combinations (∑ w_k = 1, w_k ≥ 0)</li><li>Lexicographic total orderings and invertible affine rescaling maps</li></ul></div><div><strong style="font-size:0.73rem;color:var(--cyan);">Curated Free Public Study Resources:</strong><ul style="font-size:0.72rem;color:var(--text-main);margin:0.25rem 0 0 1.1rem;line-height:1.5;"><li><a href="https://www.3blue1brown.com/topics/linear-algebra" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">3Blue1Brown — Essence of Linear Algebra (Vectors & Dot Products) &#x2197;</a></li><li><a href="https://ocw.mit.edu/courses/6-042j-mathematics-for-computer-science-fall-2010/" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">MIT 6.042J Mathematics for Computer Science (Ch. 9-11 Graph Theory) &#x2197;</a></li><li><a href="https://diestel-graph-theory.com/" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">Diestel — Graph Theory (Free Electronic Edition, Ch. 1 Basics) &#x2197;</a></li></ul></div></div></section>
<section class="panel hs-plate-g3 hs-guile-cartridge"><div style="display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:0.5rem;"><div style="font-size:0.74rem;font-weight:700;color:var(--cyan);text-transform:uppercase;letter-spacing:0.05em;">&lambda; Polyglot Foil (M3): Convex ETI Functional (∑ w_k = 1, S1 Apex = 93.08)</div><div style="display:flex;gap:0.25rem;flex-wrap:wrap;align-items:center;"><button type="button" class="hs-polyglot-seg" data-lens-mode="guile">&lambda; Guile</button><button type="button" class="hs-polyglot-seg" data-lens-mode="ts">TS TypeScript</button><button type="button" class="hs-polyglot-seg" data-lens-mode="rust">Rs Rust</button><button type="button" class="hs-polyglot-seg" data-lens-mode="all">&equiv; All 3</button><button type="button" class="hs-polyglot-seg" data-lens-mode="off">Hide</button></div></div><div class="hs-guile-triview"><div class="hs-guile-box"><strong style="color:var(--gold);display:block;margin-bottom:0.2rem;">1. Mathematical Identity &amp; Python:</strong><code>ETI = (1/5)CAP + (9/50)COL + (9/50)ARM + (4/25)PRM + (7/50)VEL + (7/50)RES</code><pre style="white-space:pre-wrap;margin-top:0.25rem;color:var(--text-secondary);">0.20*cap + 0.18*col + 0.18*arm + 0.16*prm + 0.14*vel + 0.14*res</pre></div><div class="hs-guile-box hs-lang-box-guile"><div style="display:flex;justify-content:space-between;align-items:center;"><strong style="color:var(--cyan);">&lambda; Guile Scheme (Z-Combinator):</strong><button type="button" class="btn hs-load-in-repl-btn" data-polyglot-lang="guile" data-scheme-expr="(+ 1/5 9/50 9/50 4/25 7/50 7/50)" style="padding:0.12rem 0.4rem;font-size:0.65rem;">REPL &rarr;</button></div><code class="hs-guile-code-expr">(+ 1/5 9/50 9/50 4/25 7/50 7/50)</code><div class="hs-guile-eval-result" style="margin-top:0.3rem;font-weight:700;color:var(--emerald);">=> [Select Lens to evaluate]</div></div><div class="hs-guile-box hs-lang-box-ts"><div style="display:flex;justify-content:space-between;align-items:center;"><strong style="color:var(--gold);">TS TypeScript (Strict AST):</strong><button type="button" class="btn hs-load-in-repl-btn" data-polyglot-lang="ts" data-scheme-expr="etiScore({cap: 95, col: 92, arm: 94, prm: 90, vel: 91, res: 96})" style="padding:0.12rem 0.4rem;font-size:0.65rem;">REPL &rarr;</button></div><code class="hs-ts-code-expr">etiScore({cap: 95, col: 92, arm: 94, prm: 90, vel: 91, res: 96})</code><div class="hs-ts-eval-result" style="margin-top:0.3rem;font-weight:700;color:var(--emerald);">=> [Select Lens to evaluate]</div></div><div class="hs-guile-box hs-lang-box-rust"><div style="display:flex;justify-content:space-between;align-items:center;"><strong style="color:var(--emerald);">Rs Rust (Option/Iterator AST):</strong><button type="button" class="btn hs-load-in-repl-btn" data-polyglot-lang="rust" data-scheme-expr="eti_score(95.0, 92.0, 94.0, 90.0, 91.0, 96.0)" style="padding:0.12rem 0.4rem;font-size:0.65rem;">REPL &rarr;</button></div><code class="hs-rust-code-expr">eti_score(95.0, 92.0, 94.0, 90.0, 91.0, 96.0)</code><div class="hs-rust-eval-result" style="margin-top:0.3rem;font-weight:700;color:var(--emerald);">=> [Select Lens to evaluate]</div></div></div><div style="font-size:0.71rem;color:var(--text-secondary);"><strong>Guided Micro-Challenge (4-Ring Zero-Escape Sandbox):</strong> Verify the convex weights and composite ETI score across Guile, TypeScript, and Rust.</div></section>
@@ -49,12 +63,13 @@
</div>
<footer>
hyperstitionstud.io/math/graph-topology-and-eti-scoring v2.15.0 &bull; <span class="hs-sigil-colophon" aria-hidden="true">&#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; &middot; &#x2644;</span> &bull; Made with <span class="hs-heart" style="color:var(--rose);">&#x2665;</span> by Lemurs.
hyperstitionstud.io/math/graph-topology-and-eti-scoring v2.17.0 &bull; <span class="hs-sigil-colophon" aria-hidden="true">&#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; &middot; &#x2644;</span> &bull; Made with <span class="hs-heart" style="color:var(--rose);">&#x2665;</span> by Lemurs.
</footer>
</div>
<script src="../../assets/hs-matrix-coderain.js?v=2.15.0" defer></script>
<script src="../math-manifest-data.js?v=2.15.0"></script>
<script src="../math-app.js?v=2.15.0"></script>
<script src="../../assets/hs-matrix-coderain.js?v=2.17.0" defer></script>
<script src="../../assets/hs-mobile-ui.js?v=2.17.0" defer></script>
<script src="../math-manifest-data.js?v=2.17.0"></script>
<script src="../math-app.js?v=2.17.0"></script>
<aside id="hsGuileReplDrawer" class="hs-plate-g3" aria-label="In-Browser Polyglot Guile Scheme, TypeScript, and Rust Hardened REPL">
<div style="display:flex;justify-content:space-between;align-items:center;gap:0.5rem;margin-bottom:0.45rem;">
<div style="font-size:0.73rem;font-weight:700;color:var(--cyan);">&lambda; 4-RING HARDENED POLYGLOT REPL (GUILE • TS • RUST • ZERO EVAL)</div>
@@ -92,6 +107,6 @@
<pre id="hsGuileReplOutput" style="margin-top:0.4rem;background:var(--bg-void);border:1px solid var(--border);padding:0.5rem;font-size:0.71rem;color:var(--emerald);max-height:150px;overflow-y:auto;white-space:pre-wrap;">polyglot&gt; Ready (4-Ring Zero-Eval AST Sandbox). Select [λ GUILE | TS | RS | ≡ ALL 3] or click Evaluate (λ).</pre>
</div>
</aside>
<script src="../../assets/hs-guile-scheme-repl.js?v=2.15.0"></script>
<script src="../../assets/hs-guile-scheme-repl.js?v=2.17.0"></script>
</body>
</html>
+36 -21
View File
@@ -3,17 +3,18 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Mathematical Foundations &amp; Quantitative Semiotics Hub — hyperstitionstud.io/math (v2.15.0)</title>
<link rel="stylesheet" href="../assets/hs-group3-basalt-chamfer.css?v=2.15.0" />
<title>Mathematical Foundations &amp; Quantitative Semiotics Hub — hyperstitionstud.io/math (v2.17.0)</title>
<link rel="stylesheet" href="../assets/hs-group3-basalt-chamfer.css?v=2.17.0" />
<style>
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'DejaVu Sans Mono', ui-monospace, monospace; padding: 1.25rem; line-height: 1.5; }
.container { max-width: 1360px; margin: 0 auto; }
header { padding: 1rem 1.25rem; margin-bottom: 0.9rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.8rem; }
h1 { font-size: 1.12rem; color: var(--gold); }
.subtitle { font-size: 0.72rem; color: var(--text-secondary); margin-top: 0.2rem; }
.top-nav { margin-left: auto; display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; }
.btn { padding: 0.35rem 0.7rem; font-size: 0.72rem; text-decoration: none; font-family: inherit; cursor: pointer; }
header { padding: 1.1rem 1.35rem; margin-bottom: 0.75rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: nowrap; gap: 0.85rem; }
@media (max-width: 1220px) { header { flex-wrap: wrap; } }
h1 { font-size: 0.98rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text-main); }
.subtitle { font-size: 0.71rem; color: var(--text-secondary); margin-top: 0.25rem; }
.top-nav { margin-left: auto; display: flex; gap: 0.38rem; flex-wrap: nowrap; align-items: center; }
.btn { padding: 0.34rem 0.62rem; font-size: 0.7rem; font-weight: 600; text-decoration: none; font-family: inherit; cursor: pointer; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 0.85rem; margin-bottom: 0.9rem; }
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 0.6rem; margin-bottom: 0.9rem; }
.stat-tile { padding: 0.7rem 0.85rem; text-align: center; }
@@ -24,23 +25,36 @@
<div class="container">
<header>
<div>
<h1>HYPERSTITION STUDIO // MATHEMATICAL FOUNDATIONS &amp; QUANTITATIVE SEMIOTICS HUB (UNIT M0)</h1>
<p class="subtitle">Zero-CDN Native Unicode Math &bull; Commutative Empirical Introspection &bull; Piecewise &amp; Non-Sequentially Revertible &bull; urn:io:hyperstitionstud:math:v2.15.0 <span class="hs-sigil-seal" aria-hidden="true">[ &#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; ]</span></p>
<div class="title-row">
<span class="dot" style="background:var(--gold);box-shadow:0 0 10px var(--gold);" aria-hidden="true"></span>
<h1>HYPERSTITION STUDIO // MATHEMATICAL FOUNDATIONS &amp; QUANTITATIVE SEMIOTICS HUB (UNIT M0)</h1>
</div>
<p class="subtitle">Zero-CDN Native Unicode Math &bull; Commutative Empirical Introspection &bull; Piecewise &amp; Non-Sequentially Revertible &bull; urn:io:hyperstitionstud:math:v2.17.0 <span class="hs-sigil-seal" aria-hidden="true">[ &#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; ]</span></p>
</div>
<nav class="top-nav">
<nav class="top-nav hs-global-nav" aria-label="Primary Ecosystem Navigation">
<a class="btn" href="../index.html">Portal Home (/)</a>
<a class="btn" href="/calc/index.html">Calculator</a>
<a class="btn" href="/quant/index.html" style="border-color:var(--gold);color:var(--gold);">Quant</a>
<a class="btn" href="/graph/index.html" style="border-color:var(--cyan);color:var(--cyan);">Graph</a>
<a class="btn" href="../learn/index.html" style="border-color:var(--emerald);color:var(--emerald);">Learn</a>
<a class="btn" href="../engineering/index.html">Engineering</a>
<a class="btn primary" aria-current="page" href="../math/index.html">Math</a>
<span class="nav-donate-sep" aria-hidden="true"></span>
<a class="btn-donate-pill" href="../donate/index.html?from=math" title="Signal Patronage &amp; Open-Instrument Notes (/donate/)"><span class="donate-pill-emblem" aria-hidden="true">&#x2665;</span><span>DONATE</span></a>
</nav>
</header>
<nav class="hs-subnav-bar panel hs-plate-g3" aria-label="Unit and Polyglot Sub-Navigation">
<div class="hs-subnav-links">
<a class="btn" href="index.html" style="border-color:var(--gold);">Math Hub (M0)</a>
<a class="btn" href="base36-algebra-and-primes/index.html" style="">M1: Base-36 & Primes</a>
<a class="btn" href="phonemic-projections-and-g-vectors/index.html" style="">M2: Phonemic Φ & G1-G6</a>
<a class="btn" href="graph-topology-and-eti-scoring/index.html" style="">M3: Graph & ETI Math</a>
<a class="btn" href="timeseries-moments-and-confluence-dose/index.html" style="">M4: Time-Series & Dose Math</a>
<a class="btn" href="macro-spreads-and-bayesian-inference/index.html" style="">M5: Macro & Bayesian Math</a>
<a class="btn" href="../engineering/index.html">Engineering Hub (/engineering/)</a>
<div id="hsPolyglotModeSelector" class="hs-polyglot-segmented" role="radiogroup" aria-label="Pedagogical Programming Language Lens"><span class="hs-polyglot-prefix">LENS:</span><button type="button" id="guileSchemeModeToggle" class="hs-polyglot-seg" role="radio" data-lens-mode="off" aria-checked="true" title="Hide programming language cartridges (Alt+0)">OFF</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="guile" aria-checked="false" title="GNU Guile Scheme — Z-Combinator &amp; Exact Rationals (Alt+1)"><span class="hs-guile-lambda-badge">&lambda;</span>GUILE</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="ts" aria-checked="false" title="TypeScript — Static Union Types &amp; Functional Pipelines (Alt+2)"><span class="hs-guile-lambda-badge">TS</span>TYPESCRIPT</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="rust" aria-checked="false" title="Rust — Ownership, Option&lt;T&gt; &amp; Zero-Cost Iterators (Alt+3)"><span class="hs-guile-lambda-badge">Rs</span>RUST</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="all" aria-checked="false" title="Side-by-side comparison of Guile Scheme, TypeScript, and Rust (Alt+4)">&equiv; ALL 3</button><strong id="guileSchemeModeState" style="display:none;">OFF</strong></div>
<span class="nav-donate-sep" aria-hidden="true"></span>
<a class="btn-donate-pill" href="../donate/index.html?from=math"><span class="donate-pill-emblem" aria-hidden="true">&#x2665;</span><span>DONATE</span></a>
</nav>
</header>
</div>
<div id="hsPolyglotModeSelector" class="hs-polyglot-segmented" role="radiogroup" aria-label="Pedagogical Programming Language Lens"><span class="hs-polyglot-prefix">LENS:</span><button type="button" id="guileSchemeModeToggle" class="hs-polyglot-seg" role="radio" data-lens-mode="off" aria-checked="true" title="Hide programming language cartridges (Alt+0)">OFF</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="guile" aria-checked="false" title="GNU Guile Scheme — Z-Combinator &amp; Exact Rationals (Alt+1)"><span class="hs-guile-lambda-badge">&lambda;</span>GUILE</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="ts" aria-checked="false" title="TypeScript — Static Union Types &amp; Functional Pipelines (Alt+2)"><span class="hs-guile-lambda-badge">TS</span>TYPESCRIPT</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="rust" aria-checked="false" title="Rust — Ownership, Option&lt;T&gt; &amp; Zero-Cost Iterators (Alt+3)"><span class="hs-guile-lambda-badge">Rs</span>RUST</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="all" aria-checked="false" title="Side-by-side comparison of Guile Scheme, TypeScript, and Rust (Alt+4)">&equiv; ALL 3</button><strong id="guileSchemeModeState" style="display:none;">OFF</strong></div>
</nav>
<section class="panel hs-plate-g3 plate-lock-emerald hs-prereq-ladder" style="margin-bottom:0.9rem;padding:1rem 1.2rem;"><div style="font-size:0.74rem;font-weight:700;color:var(--emerald);text-transform:uppercase;letter-spacing:0.06em;">Prerequisite Track for Novices &bull; Required Expertise: Level 1-2 (High-School Algebra & Sigma Notation • 3-6 hrs study)</div><p style="font-size:0.76rem;color:var(--text-secondary);margin:0.35rem 0;">If any mathematical notation on this page is unfamiliar, occupy your study time with these free foundational resources first:</p><div style="display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:0.8rem;margin-top:0.4rem;"><div><strong style="font-size:0.73rem;color:var(--gold);">Core Mathematical Prerequisites:</strong><ul style="font-size:0.72rem;color:var(--text-main);margin:0.25rem 0 0 1.1rem;line-height:1.5;"><li>Variables, functions f(x), and subscript/index notation x_i</li><li>Summation operator ∑_{i=1}^n x_i and absolute value |x|</li><li>Self-Paced Learning Track (/learn/ Modules 1-2)</li></ul></div><div><strong style="font-size:0.73rem;color:var(--cyan);">Curated Free Public Study Resources:</strong><ul style="font-size:0.72rem;color:var(--text-main);margin:0.25rem 0 0 1.1rem;line-height:1.5;"><li><a href="../learn/index.html" style="color:var(--cyan);">Internal: Self-Paced Learning Track (/learn/ Modules 1-2) &#x2197;</a></li><li><a href="https://www.khanacademy.org/math/algebra" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">Khan Academy — Algebra & Summation (Σ) Notation &#x2197;</a></li><li><a href="https://openstax.org/details/books/precalculus-2e" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">OpenStax Precalculus (Free Peer-Reviewed Textbook, Ch. 1 & 9) &#x2197;</a></li><li><a href="https://sarabander.github.io/sicp/" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">Structure and Interpretation of Computer Programs (SICP — Free MIT Text) &#x2197;</a></li><li><a href="https://www.gnu.org/software/guile/manual/" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">GNU Guile Scheme Official Reference Manual &#x2197;</a></li></ul></div></div></section>
<section class="panel hs-plate-g3 hs-guile-cartridge"><div style="display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:0.5rem;"><div style="font-size:0.74rem;font-weight:700;color:var(--cyan);text-transform:uppercase;letter-spacing:0.05em;">&lambda; Polyglot Foil (M0): Applicative-Order Z Combinator, TypeScript Array.reduce &amp; Rust Range.fold</div><div style="display:flex;gap:0.25rem;flex-wrap:wrap;align-items:center;"><button type="button" class="hs-polyglot-seg" data-lens-mode="guile">&lambda; Guile</button><button type="button" class="hs-polyglot-seg" data-lens-mode="ts">TS TypeScript</button><button type="button" class="hs-polyglot-seg" data-lens-mode="rust">Rs Rust</button><button type="button" class="hs-polyglot-seg" data-lens-mode="all">&equiv; All 3</button><button type="button" class="hs-polyglot-seg" data-lens-mode="off">Hide</button></div></div><div class="hs-guile-triview"><div class="hs-guile-box"><strong style="color:var(--gold);display:block;margin-bottom:0.2rem;">1. Mathematical Identity &amp; Python:</strong><code>Z = λf. (λx. f (λv. (x x) v)) (λx. f (λv. (x x) v)), ∑_{i=1}^{10} i = 55</code><pre style="white-space:pre-wrap;margin-top:0.25rem;color:var(--text-secondary);"># Strict applicative-order fixed-point combinator (z-calculus-scheme)
@@ -59,12 +73,13 @@ Z = lambda f: (lambda x: f(lambda *a: x(x)(*a)))(lambda x: f(lambda *a: x(x)(*a)
</section>
<footer>
hyperstitionstud.io/math v2.15.0 &bull; CIDv1: <code>baguqeeravdwrzd4otd5ej6cqtv2cw6dakvj...</code> &bull; <span class="hs-sigil-colophon" aria-hidden="true">&#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; &middot; &#x2644;</span> &bull; Made with <span class="hs-heart" style="color:var(--rose);">&#x2665;</span> by Lemurs.
hyperstitionstud.io/math v2.17.0 &bull; CIDv1: <code>baguqeerawoxbn5nceunfl7ndrduowkfboz5...</code> &bull; <span class="hs-sigil-colophon" aria-hidden="true">&#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; &middot; &#x2644;</span> &bull; Made with <span class="hs-heart" style="color:var(--rose);">&#x2665;</span> by Lemurs.
</footer>
</div>
<script src="../assets/hs-matrix-coderain.js?v=2.15.0" defer></script>
<script src="math-manifest-data.js?v=2.15.0"></script>
<script src="math-app.js?v=2.15.0"></script>
<script src="../assets/hs-matrix-coderain.js?v=2.17.0" defer></script>
<script src="../assets/hs-mobile-ui.js?v=2.17.0" defer></script>
<script src="math-manifest-data.js?v=2.17.0"></script>
<script src="math-app.js?v=2.17.0"></script>
<aside id="hsGuileReplDrawer" class="hs-plate-g3" aria-label="In-Browser Polyglot Guile Scheme, TypeScript, and Rust Hardened REPL">
<div style="display:flex;justify-content:space-between;align-items:center;gap:0.5rem;margin-bottom:0.45rem;">
<div style="font-size:0.73rem;font-weight:700;color:var(--cyan);">&lambda; 4-RING HARDENED POLYGLOT REPL (GUILE • TS • RUST • ZERO EVAL)</div>
@@ -102,6 +117,6 @@ Z = lambda f: (lambda x: f(lambda *a: x(x)(*a)))(lambda x: f(lambda *a: x(x)(*a)
<pre id="hsGuileReplOutput" style="margin-top:0.4rem;background:var(--bg-void);border:1px solid var(--border);padding:0.5rem;font-size:0.71rem;color:var(--emerald);max-height:150px;overflow-y:auto;white-space:pre-wrap;">polyglot&gt; Ready (4-Ring Zero-Eval AST Sandbox). Select [λ GUILE | TS | RS | ≡ ALL 3] or click Evaluate (λ).</pre>
</div>
</aside>
<script src="../assets/hs-guile-scheme-repl.js?v=2.15.0"></script>
<script src="../assets/hs-guile-scheme-repl.js?v=2.17.0"></script>
</body>
</html>
@@ -3,17 +3,18 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Unit M5: Macroeconomic Spread/Velocity Identities, Discrete 3-State Bayes' Rule & Multiple-Testing Bounds — hyperstitionstud.io/math (v2.15.0)</title>
<link rel="stylesheet" href="../../assets/hs-group3-basalt-chamfer.css?v=2.15.0" />
<title>Unit M5: Macroeconomic Spread/Velocity Identities, Discrete 3-State Bayes' Rule & Multiple-Testing Bounds — hyperstitionstud.io/math (v2.17.0)</title>
<link rel="stylesheet" href="../../assets/hs-group3-basalt-chamfer.css?v=2.17.0" />
<style>
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'DejaVu Sans Mono', ui-monospace, monospace; padding: 1.25rem; line-height: 1.5; }
.container { max-width: 1360px; margin: 0 auto; }
header { padding: 1rem 1.25rem; margin-bottom: 0.9rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.8rem; }
h1 { font-size: 1.05rem; color: var(--gold); }
.subtitle { font-size: 0.72rem; color: var(--text-secondary); margin-top: 0.2rem; }
.top-nav { margin-left: auto; display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; }
.btn { padding: 0.35rem 0.7rem; font-size: 0.72rem; text-decoration: none; font-family: inherit; cursor: pointer; }
header { padding: 1.1rem 1.35rem; margin-bottom: 0.75rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: nowrap; gap: 0.85rem; }
@media (max-width: 1220px) { header { flex-wrap: wrap; } }
h1 { font-size: 0.98rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text-main); }
.subtitle { font-size: 0.71rem; color: var(--text-secondary); margin-top: 0.25rem; }
.top-nav { margin-left: auto; display: flex; gap: 0.38rem; flex-wrap: nowrap; align-items: center; }
.btn { padding: 0.34rem 0.62rem; font-size: 0.7rem; font-weight: 600; text-decoration: none; font-family: inherit; cursor: pointer; }
footer { margin-top: 1rem; padding-top: 0.8rem; border-top: 1px solid var(--border); text-align: center; font-size: 0.72rem; color: var(--text-secondary); }
</style>
</head>
@@ -21,23 +22,36 @@
<div class="container">
<header>
<div>
<h1>Unit M5: Macroeconomic Spread/Velocity Identities, Discrete 3-State Bayes' Rule & Multiple-Testing Bounds</h1>
<p class="subtitle">Cartridge M5 &bull; Non-Sequentially Revertible via <code>hs-math-docs --disable macro-spreads-and-bayesian-inference</code> &bull; v2.15.0 <span class="hs-sigil-seal" aria-hidden="true">[ &#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; ]</span></p>
<div class="title-row">
<span class="dot" style="background:var(--gold);box-shadow:0 0 10px var(--gold);" aria-hidden="true"></span>
<h1>Unit M5: Macroeconomic Spread/Velocity Identities, Discrete 3-State Bayes' Rule & Multiple-Testing Bounds</h1>
</div>
<p class="subtitle">Cartridge M5 &bull; Non-Sequentially Revertible via <code>hs-math-docs --disable macro-spreads-and-bayesian-inference</code> &bull; v2.17.0 <span class="hs-sigil-seal" aria-hidden="true">[ &#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; ]</span></p>
</div>
<nav class="top-nav">
<nav class="top-nav hs-global-nav" aria-label="Primary Ecosystem Navigation">
<a class="btn" href="../../index.html">Portal Home (/)</a>
<a class="btn" href="/calc/index.html">Calculator</a>
<a class="btn" href="/quant/index.html" style="border-color:var(--gold);color:var(--gold);">Quant</a>
<a class="btn" href="/graph/index.html" style="border-color:var(--cyan);color:var(--cyan);">Graph</a>
<a class="btn" href="../../learn/index.html" style="border-color:var(--emerald);color:var(--emerald);">Learn</a>
<a class="btn" href="../../engineering/index.html">Engineering</a>
<a class="btn primary" aria-current="page" href="../../math/index.html">Math</a>
<span class="nav-donate-sep" aria-hidden="true"></span>
<a class="btn-donate-pill" href="../../donate/index.html?from=math" title="Signal Patronage &amp; Open-Instrument Notes (/donate/)"><span class="donate-pill-emblem" aria-hidden="true">&#x2665;</span><span>DONATE</span></a>
</nav>
</header>
<nav class="hs-subnav-bar panel hs-plate-g3" aria-label="Unit and Polyglot Sub-Navigation">
<div class="hs-subnav-links">
<a class="btn" href="../index.html" style="border-color:rgba(56,189,248,0.55);">Math Hub (M0)</a>
<a class="btn" href="../base36-algebra-and-primes/index.html" style="">M1: Base-36 & Primes</a>
<a class="btn" href="../phonemic-projections-and-g-vectors/index.html" style="">M2: Phonemic Φ & G1-G6</a>
<a class="btn" href="../graph-topology-and-eti-scoring/index.html" style="">M3: Graph & ETI Math</a>
<a class="btn" href="../timeseries-moments-and-confluence-dose/index.html" style="">M4: Time-Series & Dose Math</a>
<a class="btn" href="index.html" style="border-color:var(--gold);color:var(--gold);">M5: Macro & Bayesian Math</a>
<a class="btn" href="../../engineering/index.html">Engineering Hub (/engineering/)</a>
<div id="hsPolyglotModeSelector" class="hs-polyglot-segmented" role="radiogroup" aria-label="Pedagogical Programming Language Lens"><span class="hs-polyglot-prefix">LENS:</span><button type="button" id="guileSchemeModeToggle" class="hs-polyglot-seg" role="radio" data-lens-mode="off" aria-checked="true" title="Hide programming language cartridges (Alt+0)">OFF</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="guile" aria-checked="false" title="GNU Guile Scheme — Z-Combinator &amp; Exact Rationals (Alt+1)"><span class="hs-guile-lambda-badge">&lambda;</span>GUILE</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="ts" aria-checked="false" title="TypeScript — Static Union Types &amp; Functional Pipelines (Alt+2)"><span class="hs-guile-lambda-badge">TS</span>TYPESCRIPT</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="rust" aria-checked="false" title="Rust — Ownership, Option&lt;T&gt; &amp; Zero-Cost Iterators (Alt+3)"><span class="hs-guile-lambda-badge">Rs</span>RUST</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="all" aria-checked="false" title="Side-by-side comparison of Guile Scheme, TypeScript, and Rust (Alt+4)">&equiv; ALL 3</button><strong id="guileSchemeModeState" style="display:none;">OFF</strong></div>
<span class="nav-donate-sep" aria-hidden="true"></span>
<a class="btn-donate-pill" href="../../donate/index.html?from=math"><span class="donate-pill-emblem" aria-hidden="true">&#x2665;</span><span>DONATE</span></a>
</nav>
</header>
</div>
<div id="hsPolyglotModeSelector" class="hs-polyglot-segmented" role="radiogroup" aria-label="Pedagogical Programming Language Lens"><span class="hs-polyglot-prefix">LENS:</span><button type="button" id="guileSchemeModeToggle" class="hs-polyglot-seg" role="radio" data-lens-mode="off" aria-checked="true" title="Hide programming language cartridges (Alt+0)">OFF</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="guile" aria-checked="false" title="GNU Guile Scheme — Z-Combinator &amp; Exact Rationals (Alt+1)"><span class="hs-guile-lambda-badge">&lambda;</span>GUILE</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="ts" aria-checked="false" title="TypeScript — Static Union Types &amp; Functional Pipelines (Alt+2)"><span class="hs-guile-lambda-badge">TS</span>TYPESCRIPT</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="rust" aria-checked="false" title="Rust — Ownership, Option&lt;T&gt; &amp; Zero-Cost Iterators (Alt+3)"><span class="hs-guile-lambda-badge">Rs</span>RUST</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="all" aria-checked="false" title="Side-by-side comparison of Guile Scheme, TypeScript, and Rust (Alt+4)">&equiv; ALL 3</button><strong id="guileSchemeModeState" style="display:none;">OFF</strong></div>
</nav>
<section class="panel hs-plate-g3 plate-lock-emerald hs-prereq-ladder" style="margin-bottom:0.9rem;padding:1rem 1.2rem;"><div style="font-size:0.74rem;font-weight:700;color:var(--emerald);text-transform:uppercase;letter-spacing:0.06em;">Prerequisite Track for Novices &bull; Required Expertise: Level 4: Bayesian Inference, Combinatorial Collision Bounds & Macroeconomics (15-25 hrs study)</div><p style="font-size:0.76rem;color:var(--text-secondary);margin:0.35rem 0;">If any mathematical notation on this page is unfamiliar, occupy your study time with these free foundational resources first:</p><div style="display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:0.8rem;margin-top:0.4rem;"><div><strong style="font-size:0.73rem;color:var(--gold);">Core Mathematical Prerequisites:</strong><ul style="font-size:0.72rem;color:var(--text-main);margin:0.25rem 0 0 1.1rem;line-height:1.5;"><li>Conditional probability P(A | B) and Bayes' Theorem on the 3-state simplex Δ²</li><li>Multiple-hypothesis testing, Birthday Problem collision rates, and degrees of freedom df = n - 2</li><li>Equation of Exchange MV = PQ (V_M2 = GDP / M2), term structure slopes, and real deflation</li></ul></div><div><strong style="font-size:0.73rem;color:var(--cyan);">Curated Free Public Study Resources:</strong><ul style="font-size:0.72rem;color:var(--text-main);margin:0.25rem 0 0 1.1rem;line-height:1.5;"><li><a href="https://www.3blue1brown.com/lessons/bayes-theorem" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">3Blue1Brown — Bayes' Theorem, The Geometry of Changing Beliefs &#x2197;</a></li><li><a href="https://ocw.mit.edu/courses/18-05-introduction-to-probability-and-statistics-spring-2022/" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">MIT 18.05 Introduction to Probability & Statistics (Bayesian Updating) &#x2197;</a></li><li><a href="https://openstax.org/details/books/principles-macroeconomics-3e" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">OpenStax Principles of Macroeconomics (Ch. 14-15 Money & Monetary Policy) &#x2197;</a></li></ul></div></div></section>
<section class="panel hs-plate-g3 hs-guile-cartridge"><div style="display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:0.5rem;"><div style="font-size:0.74rem;font-weight:700;color:var(--cyan);text-transform:uppercase;letter-spacing:0.05em;">&lambda; Polyglot Foil (M5): 3-State Discrete Bayesian Posterior &amp; Adaptive Simpson Quadrature</div><div style="display:flex;gap:0.25rem;flex-wrap:wrap;align-items:center;"><button type="button" class="hs-polyglot-seg" data-lens-mode="guile">&lambda; Guile</button><button type="button" class="hs-polyglot-seg" data-lens-mode="ts">TS TypeScript</button><button type="button" class="hs-polyglot-seg" data-lens-mode="rust">Rs Rust</button><button type="button" class="hs-polyglot-seg" data-lens-mode="all">&equiv; All 3</button><button type="button" class="hs-polyglot-seg" data-lens-mode="off">Hide</button></div></div><div class="hs-guile-triview"><div class="hs-guile-box"><strong style="color:var(--gold);display:block;margin-bottom:0.2rem;">1. Mathematical Identity &amp; Python:</strong><code>P(R_m | E_t) = L_m P_m / ∑_k L_k P_k, ∫_a^b f(x) dx via Simpson Z-subdivision</code><pre style="white-space:pre-wrap;margin-top:0.25rem;color:var(--text-secondary);">post = [p * l / z for p, l in zip(priors, likelihoods)]</pre></div><div class="hs-guile-box hs-lang-box-guile"><div style="display:flex;justify-content:space-between;align-items:center;"><strong style="color:var(--cyan);">&lambda; Guile Scheme (Z-Combinator):</strong><button type="button" class="btn hs-load-in-repl-btn" data-polyglot-lang="guile" data-scheme-expr="(bayes-update &#x27;(1/3 1/3 1/3) &#x27;(1/10 3/10 6/10))" style="padding:0.12rem 0.4rem;font-size:0.65rem;">REPL &rarr;</button></div><code class="hs-guile-code-expr">(bayes-update &#x27;(1/3 1/3 1/3) &#x27;(1/10 3/10 6/10))</code><div class="hs-guile-eval-result" style="margin-top:0.3rem;font-weight:700;color:var(--emerald);">=> [Select Lens to evaluate]</div></div><div class="hs-guile-box hs-lang-box-ts"><div style="display:flex;justify-content:space-between;align-items:center;"><strong style="color:var(--gold);">TS TypeScript (Strict AST):</strong><button type="button" class="btn hs-load-in-repl-btn" data-polyglot-lang="ts" data-scheme-expr="bayesUpdate([1/3, 1/3, 1/3], [0.1, 0.3, 0.6])" style="padding:0.12rem 0.4rem;font-size:0.65rem;">REPL &rarr;</button></div><code class="hs-ts-code-expr">bayesUpdate([1/3, 1/3, 1/3], [0.1, 0.3, 0.6])</code><div class="hs-ts-eval-result" style="margin-top:0.3rem;font-weight:700;color:var(--emerald);">=> [Select Lens to evaluate]</div></div><div class="hs-guile-box hs-lang-box-rust"><div style="display:flex;justify-content:space-between;align-items:center;"><strong style="color:var(--emerald);">Rs Rust (Option/Iterator AST):</strong><button type="button" class="btn hs-load-in-repl-btn" data-polyglot-lang="rust" data-scheme-expr="bayes_update(&amp;[1.0/3.0; 3], &amp;[0.1, 0.3, 0.6])" style="padding:0.12rem 0.4rem;font-size:0.65rem;">REPL &rarr;</button></div><code class="hs-rust-code-expr">bayes_update(&amp;[1.0/3.0; 3], &amp;[0.1, 0.3, 0.6])</code><div class="hs-rust-eval-result" style="margin-top:0.3rem;font-weight:700;color:var(--emerald);">=> [Select Lens to evaluate]</div></div></div><div style="font-size:0.71rem;color:var(--text-secondary);"><strong>Guided Micro-Challenge (4-Ring Zero-Escape Sandbox):</strong> Compare Guile&#x27;s exact rational &#x27;(1/10 3/10 3/5) with TypeScript and Rust array posteriors.</div></section>
@@ -49,12 +63,13 @@
</div>
<footer>
hyperstitionstud.io/math/macro-spreads-and-bayesian-inference v2.15.0 &bull; <span class="hs-sigil-colophon" aria-hidden="true">&#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; &middot; &#x2644;</span> &bull; Made with <span class="hs-heart" style="color:var(--rose);">&#x2665;</span> by Lemurs.
hyperstitionstud.io/math/macro-spreads-and-bayesian-inference v2.17.0 &bull; <span class="hs-sigil-colophon" aria-hidden="true">&#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; &middot; &#x2644;</span> &bull; Made with <span class="hs-heart" style="color:var(--rose);">&#x2665;</span> by Lemurs.
</footer>
</div>
<script src="../../assets/hs-matrix-coderain.js?v=2.15.0" defer></script>
<script src="../math-manifest-data.js?v=2.15.0"></script>
<script src="../math-app.js?v=2.15.0"></script>
<script src="../../assets/hs-matrix-coderain.js?v=2.17.0" defer></script>
<script src="../../assets/hs-mobile-ui.js?v=2.17.0" defer></script>
<script src="../math-manifest-data.js?v=2.17.0"></script>
<script src="../math-app.js?v=2.17.0"></script>
<aside id="hsGuileReplDrawer" class="hs-plate-g3" aria-label="In-Browser Polyglot Guile Scheme, TypeScript, and Rust Hardened REPL">
<div style="display:flex;justify-content:space-between;align-items:center;gap:0.5rem;margin-bottom:0.45rem;">
<div style="font-size:0.73rem;font-weight:700;color:var(--cyan);">&lambda; 4-RING HARDENED POLYGLOT REPL (GUILE • TS • RUST • ZERO EVAL)</div>
@@ -92,6 +107,6 @@
<pre id="hsGuileReplOutput" style="margin-top:0.4rem;background:var(--bg-void);border:1px solid var(--border);padding:0.5rem;font-size:0.71rem;color:var(--emerald);max-height:150px;overflow-y:auto;white-space:pre-wrap;">polyglot&gt; Ready (4-Ring Zero-Eval AST Sandbox). Select [λ GUILE | TS | RS | ≡ ALL 3] or click Evaluate (λ).</pre>
</div>
</aside>
<script src="../../assets/hs-guile-scheme-repl.js?v=2.15.0"></script>
<script src="../../assets/hs-guile-scheme-repl.js?v=2.17.0"></script>
</body>
</html>
+1 -1
View File
@@ -1 +1 @@
window.HYPERSTITION_MATH_MANIFEST = {"$id": "urn:io:hyperstitionstud:math-manifest", "version": "2.15.0", "enabled_subpages": ["base36-algebra-and-primes", "phonemic-projections-and-g-vectors", "graph-topology-and-eti-scoring", "timeseries-moments-and-confluence-dose", "macro-spreads-and-bayesian-inference"], "disabled_subpages": [], "enabled_routes": ["/math/index.html", "/math/base36-algebra-and-primes/index.html", "/math/phonemic-projections-and-g-vectors/index.html", "/math/graph-topology-and-eti-scoring/index.html", "/math/timeseries-moments-and-confluence-dose/index.html", "/math/macro-spreads-and-bayesian-inference/index.html"], "algebraic_invariants": {"eti_weights": [0.2, 0.18, 0.18, 0.16, 0.14, 0.14], "eti_weights_sum": 1.0, "bayesian_posterior_simplex_sum": 1.0, "cluster_292_gen0_variance": 310.22, "cluster_292_gen1_variance": 0.0, "g4_isometric_fixed_point_count": 21, "g3_quantized_steps": [0, 1, 10, 18, 20, 36, 37, 40, 74], "repdigit_37_attractors": [111, 222, 333, 444, 555, 666, 777, 888, 999]}, "empirical_counts": {"glossary_entries": 282, "bilingual_specimens": 190, "kg_nodes": 388, "kg_edges": 1282, "total_real_bars_n": 472, "fred_macro_series_n": 14}, "hub_prereq_ladder": {"unit_id": "M0", "expertise_level": "Level 1-2 (High-School Algebra & Sigma Notation • 3-6 hrs study)", "links": [{"label": "Internal: Self-Paced Learning Track (/learn/ Modules 1-2)", "url": "/learn/index.html", "external": false}, {"label": "Khan Academy — Algebra & Summation (Σ) Notation", "url": "https://www.khanacademy.org/math/algebra", "external": true}, {"label": "OpenStax Precalculus (Free Peer-Reviewed Textbook, Ch. 1 & 9)", "url": "https://openstax.org/details/books/precalculus-2e", "external": true}, {"label": "Structure and Interpretation of Computer Programs (SICP — Free MIT Text)", "url": "https://sarabander.github.io/sicp/", "external": true}, {"label": "GNU Guile Scheme Official Reference Manual", "url": "https://www.gnu.org/software/guile/manual/", "external": true}]}, "subpages": {"base36-algebra-and-primes": {"unit_id": "M1", "slug": "base36-algebra-and-primes", "title": "Unit M1: Base-36 Alphanumeric Valuation, Repdigit 37×3k Attractors & Prime Index π(n)", "short_title": "M1: Base-36 & Primes", "pip_class": "plate-lock-gold", "expertise_level": "Level 2: Elementary Number Theory & Base Systems (8-12 hrs study)", "prerequisites": ["Positional numeral systems and non-decimal radices (Base-10 vs. Base-36)", "Fundamental Theorem of Arithmetic (111 = 3 × 37) and prime-counting function π(n)", "Additive string homomorphisms AQ(u · v) = AQ(u) + AQ(v) over character monoids"], "public_resources": [{"label": "Internal: /learn/ Module 1 (Base-36 Valuation Table)", "url": "/learn/index.html", "external": false}, {"label": "Khan Academy — Cryptography & Modular Arithmetic", "url": "https://www.khanacademy.org/computing/computer-science/cryptography", "external": true}, {"label": "MIT 6.042J Mathematics for Computer Science (Ch. 8 Number Theory)", "url": "https://ocw.mit.edu/courses/6-042j-mathematics-for-computer-science-fall-2010/", "external": true}, {"label": "3Blue1Brown — Prime Numbers & Number Theory Visualized", "url": "https://www.3blue1brown.com/topics/number-theory", "external": true}], "sections": [{"heading": "1. The Base-36 Alphanumeric Homomorphism v: {0..9, A..Z} → {0..35}", "body": "For any character c, v(c) = ord(c) - 48 for digits '0'..'9' (0..9), v(c) = ord(lower(c)) - 87 for ASCII letters 'A'..'Z' (10..35), and v(c) = 0 otherwise. Extended over a string w = c_1...c_k, AQ(w) = ∑_{i=1}^k v(c_i). Under concatenation, AQ(w_1 · w_2) = AQ(w_1) + AQ(w_2)."}, {"heading": "2. Repdigit 37 × 3k Attractors & Prime Index π(n)", "body": "Three-digit repdigits R_k = 111 · k = 3 · 37 · k ∈ {111, 222, 333, 444, 555, 666, 777, 888, 999} factor through the prime 37 (12th prime) and 3. For prime coordinates p ∈ P, prime_rank(p) = π(p) = |{q ∈ P : q ≤ p}| (e.g., π(137) = 33 for 'envideea' = 137; π(193) = 44 for 'anthropik' = 'flash krash' = 193)."}]}, "phonemic-projections-and-g-vectors": {"unit_id": "M2", "slug": "phonemic-projections-and-g-vectors", "title": "Unit M2: Phonemic Projection Φ: Σ_eng* → Σ_ing* & Genealogical Vectors G1–G6", "short_title": "M2: Phonemic Φ & G1-G6", "pip_class": "plate-lock-emerald", "expertise_level": "Level 2-3: Set Mappings, Equivalence Fibers & Descriptive Statistics (8-12 hrs study)", "prerequisites": ["Surjective mappings Φ: A → B, equivalence kernels ker(AQ ∘ Φ), and fixed points Φ(w) = w", "Population mean μ = (1/N)∑ x_i and population variance σ²(X) = (1/N)∑(x_i - μ)²", "How non-injective projection onto shared phonemic attractors collapses set variance"], "public_resources": [{"label": "OpenStax Introductory Statistics (Ch. 2 Mean & Variance)", "url": "https://openstax.org/details/books/introductory-statistics-2e", "external": true}, {"label": "StatQuest with Josh Starmer — Variance & Standard Deviation", "urlLine truncated
window.HYPERSTITION_MATH_MANIFEST = {"$id": "urn:io:hyperstitionstud:math-manifest", "version": "2.17.0", "enabled_subpages": ["base36-algebra-and-primes", "phonemic-projections-and-g-vectors", "graph-topology-and-eti-scoring", "timeseries-moments-and-confluence-dose", "macro-spreads-and-bayesian-inference"], "disabled_subpages": [], "enabled_routes": ["/math/index.html", "/math/base36-algebra-and-primes/index.html", "/math/phonemic-projections-and-g-vectors/index.html", "/math/graph-topology-and-eti-scoring/index.html", "/math/timeseries-moments-and-confluence-dose/index.html", "/math/macro-spreads-and-bayesian-inference/index.html"], "algebraic_invariants": {"eti_weights": [0.2, 0.18, 0.18, 0.16, 0.14, 0.14], "eti_weights_sum": 1.0, "bayesian_posterior_simplex_sum": 1.0, "cluster_292_gen0_variance": 310.22, "cluster_292_gen1_variance": 0.0, "g4_isometric_fixed_point_count": 21, "g3_quantized_steps": [0, 1, 10, 18, 20, 36, 37, 40, 74], "repdigit_37_attractors": [111, 222, 333, 444, 555, 666, 777, 888, 999]}, "empirical_counts": {"glossary_entries": 282, "bilingual_specimens": 190, "kg_nodes": 388, "kg_edges": 1282, "total_real_bars_n": 472, "fred_macro_series_n": 14}, "hub_prereq_ladder": {"unit_id": "M0", "expertise_level": "Level 1-2 (High-School Algebra & Sigma Notation • 3-6 hrs study)", "links": [{"label": "Internal: Self-Paced Learning Track (/learn/ Modules 1-2)", "url": "/learn/index.html", "external": false}, {"label": "Khan Academy — Algebra & Summation (Σ) Notation", "url": "https://www.khanacademy.org/math/algebra", "external": true}, {"label": "OpenStax Precalculus (Free Peer-Reviewed Textbook, Ch. 1 & 9)", "url": "https://openstax.org/details/books/precalculus-2e", "external": true}, {"label": "Structure and Interpretation of Computer Programs (SICP — Free MIT Text)", "url": "https://sarabander.github.io/sicp/", "external": true}, {"label": "GNU Guile Scheme Official Reference Manual", "url": "https://www.gnu.org/software/guile/manual/", "external": true}]}, "subpages": {"base36-algebra-and-primes": {"unit_id": "M1", "slug": "base36-algebra-and-primes", "title": "Unit M1: Base-36 Alphanumeric Valuation, Repdigit 37×3k Attractors & Prime Index π(n)", "short_title": "M1: Base-36 & Primes", "pip_class": "plate-lock-gold", "expertise_level": "Level 2: Elementary Number Theory & Base Systems (8-12 hrs study)", "prerequisites": ["Positional numeral systems and non-decimal radices (Base-10 vs. Base-36)", "Fundamental Theorem of Arithmetic (111 = 3 × 37) and prime-counting function π(n)", "Additive string homomorphisms AQ(u · v) = AQ(u) + AQ(v) over character monoids"], "public_resources": [{"label": "Internal: /learn/ Module 1 (Base-36 Valuation Table)", "url": "/learn/index.html", "external": false}, {"label": "Khan Academy — Cryptography & Modular Arithmetic", "url": "https://www.khanacademy.org/computing/computer-science/cryptography", "external": true}, {"label": "MIT 6.042J Mathematics for Computer Science (Ch. 8 Number Theory)", "url": "https://ocw.mit.edu/courses/6-042j-mathematics-for-computer-science-fall-2010/", "external": true}, {"label": "3Blue1Brown — Prime Numbers & Number Theory Visualized", "url": "https://www.3blue1brown.com/topics/number-theory", "external": true}], "sections": [{"heading": "1. The Base-36 Alphanumeric Homomorphism v: {0..9, A..Z} → {0..35}", "body": "For any character c, v(c) = ord(c) - 48 for digits '0'..'9' (0..9), v(c) = ord(lower(c)) - 87 for ASCII letters 'A'..'Z' (10..35), and v(c) = 0 otherwise. Extended over a string w = c_1...c_k, AQ(w) = ∑_{i=1}^k v(c_i). Under concatenation, AQ(w_1 · w_2) = AQ(w_1) + AQ(w_2)."}, {"heading": "2. Repdigit 37 × 3k Attractors & Prime Index π(n)", "body": "Three-digit repdigits R_k = 111 · k = 3 · 37 · k ∈ {111, 222, 333, 444, 555, 666, 777, 888, 999} factor through the prime 37 (12th prime) and 3. For prime coordinates p ∈ P, prime_rank(p) = π(p) = |{q ∈ P : q ≤ p}| (e.g., π(137) = 33 for 'envideea' = 137; π(193) = 44 for 'anthropik' = 'flash krash' = 193)."}]}, "phonemic-projections-and-g-vectors": {"unit_id": "M2", "slug": "phonemic-projections-and-g-vectors", "title": "Unit M2: Phonemic Projection Φ: Σ_eng* → Σ_ing* & Genealogical Vectors G1–G6", "short_title": "M2: Phonemic Φ & G1-G6", "pip_class": "plate-lock-emerald", "expertise_level": "Level 2-3: Set Mappings, Equivalence Fibers & Descriptive Statistics (8-12 hrs study)", "prerequisites": ["Surjective mappings Φ: A → B, equivalence kernels ker(AQ ∘ Φ), and fixed points Φ(w) = w", "Population mean μ = (1/N)∑ x_i and population variance σ²(X) = (1/N)∑(x_i - μ)²", "How non-injective projection onto shared phonemic attractors collapses set variance"], "public_resources": [{"label": "OpenStax Introductory Statistics (Ch. 2 Mean & Variance)", "url": "https://openstax.org/details/books/introductory-statistics-2e", "external": true}, {"label": "StatQuest with Josh Starmer — Variance & Standard Deviation", "urlLine truncated
+2 -2
View File
@@ -1,6 +1,6 @@
{
"$id": "urn:io:hyperstitionstud:math-manifest",
"version": "2.15.0",
"version": "2.17.0",
"enabled_subpages": [
"base36-algebra-and-primes",
"phonemic-projections-and-g-vectors",
@@ -301,6 +301,6 @@
}
},
"ipld_dag_json_cidv1": {
"/": "baguqeeravdwrzd4otd5ej6cqtv2cw6dakvj5msl54ls5ng6xctiojwokrp5q"
"/": "baguqeerawoxbn5nceunfl7ndrduowkfboz5mgqqk425t6zzvhrc2yvuxrf6q"
}
}
@@ -3,17 +3,18 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Unit M2: Phonemic Projection Φ: Σ_eng* → Σ_ing* & Genealogical Vectors G1–G6 — hyperstitionstud.io/math (v2.15.0)</title>
<link rel="stylesheet" href="../../assets/hs-group3-basalt-chamfer.css?v=2.15.0" />
<title>Unit M2: Phonemic Projection Φ: Σ_eng* → Σ_ing* & Genealogical Vectors G1–G6 — hyperstitionstud.io/math (v2.17.0)</title>
<link rel="stylesheet" href="../../assets/hs-group3-basalt-chamfer.css?v=2.17.0" />
<style>
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'DejaVu Sans Mono', ui-monospace, monospace; padding: 1.25rem; line-height: 1.5; }
.container { max-width: 1360px; margin: 0 auto; }
header { padding: 1rem 1.25rem; margin-bottom: 0.9rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.8rem; }
h1 { font-size: 1.05rem; color: var(--gold); }
.subtitle { font-size: 0.72rem; color: var(--text-secondary); margin-top: 0.2rem; }
.top-nav { margin-left: auto; display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; }
.btn { padding: 0.35rem 0.7rem; font-size: 0.72rem; text-decoration: none; font-family: inherit; cursor: pointer; }
header { padding: 1.1rem 1.35rem; margin-bottom: 0.75rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: nowrap; gap: 0.85rem; }
@media (max-width: 1220px) { header { flex-wrap: wrap; } }
h1 { font-size: 0.98rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text-main); }
.subtitle { font-size: 0.71rem; color: var(--text-secondary); margin-top: 0.25rem; }
.top-nav { margin-left: auto; display: flex; gap: 0.38rem; flex-wrap: nowrap; align-items: center; }
.btn { padding: 0.34rem 0.62rem; font-size: 0.7rem; font-weight: 600; text-decoration: none; font-family: inherit; cursor: pointer; }
footer { margin-top: 1rem; padding-top: 0.8rem; border-top: 1px solid var(--border); text-align: center; font-size: 0.72rem; color: var(--text-secondary); }
</style>
</head>
@@ -21,23 +22,36 @@
<div class="container">
<header>
<div>
<h1>Unit M2: Phonemic Projection Φ: Σ_eng* → Σ_ing* & Genealogical Vectors G1–G6</h1>
<p class="subtitle">Cartridge M2 &bull; Non-Sequentially Revertible via <code>hs-math-docs --disable phonemic-projections-and-g-vectors</code> &bull; v2.15.0 <span class="hs-sigil-seal" aria-hidden="true">[ &#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; ]</span></p>
<div class="title-row">
<span class="dot" style="background:var(--gold);box-shadow:0 0 10px var(--gold);" aria-hidden="true"></span>
<h1>Unit M2: Phonemic Projection Φ: Σ_eng* → Σ_ing* & Genealogical Vectors G1–G6</h1>
</div>
<p class="subtitle">Cartridge M2 &bull; Non-Sequentially Revertible via <code>hs-math-docs --disable phonemic-projections-and-g-vectors</code> &bull; v2.17.0 <span class="hs-sigil-seal" aria-hidden="true">[ &#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; ]</span></p>
</div>
<nav class="top-nav">
<nav class="top-nav hs-global-nav" aria-label="Primary Ecosystem Navigation">
<a class="btn" href="../../index.html">Portal Home (/)</a>
<a class="btn" href="/calc/index.html">Calculator</a>
<a class="btn" href="/quant/index.html" style="border-color:var(--gold);color:var(--gold);">Quant</a>
<a class="btn" href="/graph/index.html" style="border-color:var(--cyan);color:var(--cyan);">Graph</a>
<a class="btn" href="../../learn/index.html" style="border-color:var(--emerald);color:var(--emerald);">Learn</a>
<a class="btn" href="../../engineering/index.html">Engineering</a>
<a class="btn primary" aria-current="page" href="../../math/index.html">Math</a>
<span class="nav-donate-sep" aria-hidden="true"></span>
<a class="btn-donate-pill" href="../../donate/index.html?from=math" title="Signal Patronage &amp; Open-Instrument Notes (/donate/)"><span class="donate-pill-emblem" aria-hidden="true">&#x2665;</span><span>DONATE</span></a>
</nav>
</header>
<nav class="hs-subnav-bar panel hs-plate-g3" aria-label="Unit and Polyglot Sub-Navigation">
<div class="hs-subnav-links">
<a class="btn" href="../index.html" style="border-color:rgba(56,189,248,0.55);">Math Hub (M0)</a>
<a class="btn" href="../base36-algebra-and-primes/index.html" style="">M1: Base-36 & Primes</a>
<a class="btn" href="index.html" style="border-color:var(--gold);color:var(--gold);">M2: Phonemic Φ & G1-G6</a>
<a class="btn" href="../graph-topology-and-eti-scoring/index.html" style="">M3: Graph & ETI Math</a>
<a class="btn" href="../timeseries-moments-and-confluence-dose/index.html" style="">M4: Time-Series & Dose Math</a>
<a class="btn" href="../macro-spreads-and-bayesian-inference/index.html" style="">M5: Macro & Bayesian Math</a>
<a class="btn" href="../../engineering/index.html">Engineering Hub (/engineering/)</a>
<div id="hsPolyglotModeSelector" class="hs-polyglot-segmented" role="radiogroup" aria-label="Pedagogical Programming Language Lens"><span class="hs-polyglot-prefix">LENS:</span><button type="button" id="guileSchemeModeToggle" class="hs-polyglot-seg" role="radio" data-lens-mode="off" aria-checked="true" title="Hide programming language cartridges (Alt+0)">OFF</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="guile" aria-checked="false" title="GNU Guile Scheme — Z-Combinator &amp; Exact Rationals (Alt+1)"><span class="hs-guile-lambda-badge">&lambda;</span>GUILE</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="ts" aria-checked="false" title="TypeScript — Static Union Types &amp; Functional Pipelines (Alt+2)"><span class="hs-guile-lambda-badge">TS</span>TYPESCRIPT</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="rust" aria-checked="false" title="Rust — Ownership, Option&lt;T&gt; &amp; Zero-Cost Iterators (Alt+3)"><span class="hs-guile-lambda-badge">Rs</span>RUST</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="all" aria-checked="false" title="Side-by-side comparison of Guile Scheme, TypeScript, and Rust (Alt+4)">&equiv; ALL 3</button><strong id="guileSchemeModeState" style="display:none;">OFF</strong></div>
<span class="nav-donate-sep" aria-hidden="true"></span>
<a class="btn-donate-pill" href="../../donate/index.html?from=math"><span class="donate-pill-emblem" aria-hidden="true">&#x2665;</span><span>DONATE</span></a>
</nav>
</header>
</div>
<div id="hsPolyglotModeSelector" class="hs-polyglot-segmented" role="radiogroup" aria-label="Pedagogical Programming Language Lens"><span class="hs-polyglot-prefix">LENS:</span><button type="button" id="guileSchemeModeToggle" class="hs-polyglot-seg" role="radio" data-lens-mode="off" aria-checked="true" title="Hide programming language cartridges (Alt+0)">OFF</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="guile" aria-checked="false" title="GNU Guile Scheme — Z-Combinator &amp; Exact Rationals (Alt+1)"><span class="hs-guile-lambda-badge">&lambda;</span>GUILE</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="ts" aria-checked="false" title="TypeScript — Static Union Types &amp; Functional Pipelines (Alt+2)"><span class="hs-guile-lambda-badge">TS</span>TYPESCRIPT</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="rust" aria-checked="false" title="Rust — Ownership, Option&lt;T&gt; &amp; Zero-Cost Iterators (Alt+3)"><span class="hs-guile-lambda-badge">Rs</span>RUST</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="all" aria-checked="false" title="Side-by-side comparison of Guile Scheme, TypeScript, and Rust (Alt+4)">&equiv; ALL 3</button><strong id="guileSchemeModeState" style="display:none;">OFF</strong></div>
</nav>
<section class="panel hs-plate-g3 plate-lock-emerald hs-prereq-ladder" style="margin-bottom:0.9rem;padding:1rem 1.2rem;"><div style="font-size:0.74rem;font-weight:700;color:var(--emerald);text-transform:uppercase;letter-spacing:0.06em;">Prerequisite Track for Novices &bull; Required Expertise: Level 2-3: Set Mappings, Equivalence Fibers & Descriptive Statistics (8-12 hrs study)</div><p style="font-size:0.76rem;color:var(--text-secondary);margin:0.35rem 0;">If any mathematical notation on this page is unfamiliar, occupy your study time with these free foundational resources first:</p><div style="display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:0.8rem;margin-top:0.4rem;"><div><strong style="font-size:0.73rem;color:var(--gold);">Core Mathematical Prerequisites:</strong><ul style="font-size:0.72rem;color:var(--text-main);margin:0.25rem 0 0 1.1rem;line-height:1.5;"><li>Surjective mappings Φ: A → B, equivalence kernels ker(AQ ∘ Φ), and fixed points Φ(w) = w</li><li>Population mean μ = (1/N)∑ x_i and population variance σ²(X) = (1/N)∑(x_i - μ)²</li><li>How non-injective projection onto shared phonemic attractors collapses set variance</li></ul></div><div><strong style="font-size:0.73rem;color:var(--cyan);">Curated Free Public Study Resources:</strong><ul style="font-size:0.72rem;color:var(--text-main);margin:0.25rem 0 0 1.1rem;line-height:1.5;"><li><a href="https://openstax.org/details/books/introductory-statistics-2e" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">OpenStax Introductory Statistics (Ch. 2 Mean & Variance) &#x2197;</a></li><li><a href="https://statquest.org/video-index/" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">StatQuest with Josh Starmer — Variance & Standard Deviation &#x2197;</a></li><li><a href="https://www.people.vcu.edu/~rhammack/BookOfProof/" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">Book of Proof (Richard Hammack — Free Textbook, Ch. 12 Functions & Fibers) &#x2197;</a></li></ul></div></div></section>
<section class="panel hs-plate-g3 hs-guile-cartridge"><div style="display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:0.5rem;"><div style="font-size:0.74rem;font-weight:700;color:var(--cyan);text-transform:uppercase;letter-spacing:0.05em;">&lambda; Polyglot Foil (M2): Population Variance Collapse on Cluster 292 (Exact Rational vs. Float)</div><div style="display:flex;gap:0.25rem;flex-wrap:wrap;align-items:center;"><button type="button" class="hs-polyglot-seg" data-lens-mode="guile">&lambda; Guile</button><button type="button" class="hs-polyglot-seg" data-lens-mode="ts">TS TypeScript</button><button type="button" class="hs-polyglot-seg" data-lens-mode="rust">Rs Rust</button><button type="button" class="hs-polyglot-seg" data-lens-mode="all">&equiv; All 3</button><button type="button" class="hs-polyglot-seg" data-lens-mode="off">Hide</button></div></div><div class="hs-guile-triview"><div class="hs-guile-box"><strong style="color:var(--gold);display:block;margin-bottom:0.2rem;">1. Mathematical Identity &amp; Python:</strong><code>σ²_0({264, 317, 276}) = 4634/9 ≈ 514.89 → σ²_1({292, 292, 292}) = 0</code><pre style="white-space:pre-wrap;margin-top:0.25rem;color:var(--text-secondary);">compute_variance([264, 317, 276]) # 514.89 -&gt; 0.0</pre></div><div class="hs-guile-box hs-lang-box-guile"><div style="display:flex;justify-content:space-between;align-items:center;"><strong style="color:var(--cyan);">&lambda; Guile Scheme (Z-Combinator):</strong><button type="button" class="btn hs-load-in-repl-btn" data-polyglot-lang="guile" data-scheme-expr="(variance-pop *cluster-292-gen0*)" style="padding:0.12rem 0.4rem;font-size:0.65rem;">REPL &rarr;</button></div><code class="hs-guile-code-expr">(variance-pop *cluster-292-gen0*)</code><div class="hs-guile-eval-result" style="margin-top:0.3rem;font-weight:700;color:var(--emerald);">=> [Select Lens to evaluate]</div></div><div class="hs-guile-box hs-lang-box-ts"><div style="display:flex;justify-content:space-between;align-items:center;"><strong style="color:var(--gold);">TS TypeScript (Strict AST):</strong><button type="button" class="btn hs-load-in-repl-btn" data-polyglot-lang="ts" data-scheme-expr="variancePop([264, 317, 276] as const)" style="padding:0.12rem 0.4rem;font-size:0.65rem;">REPL &rarr;</button></div><code class="hs-ts-code-expr">variancePop([264, 317, 276] as const)</code><div class="hs-ts-eval-result" style="margin-top:0.3rem;font-weight:700;color:var(--emerald);">=> [Select Lens to evaluate]</div></div><div class="hs-guile-box hs-lang-box-rust"><div style="display:flex;justify-content:space-between;align-items:center;"><strong style="color:var(--emerald);">Rs Rust (Option/Iterator AST):</strong><button type="button" class="btn hs-load-in-repl-btn" data-polyglot-lang="rust" data-scheme-expr="variance_pop(&amp;[264.0, 317.0, 276.0])" style="padding:0.12rem 0.4rem;font-size:0.65rem;">REPL &rarr;</button></div><code class="hs-rust-code-expr">variance_pop(&amp;[264.0, 317.0, 276.0])</code><div class="hs-rust-eval-result" style="margin-top:0.3rem;font-weight:700;color:var(--emerald);">=> [Select Lens to evaluate]</div></div></div><div style="font-size:0.71rem;color:var(--text-secondary);"><strong>Guided Micro-Challenge (4-Ring Zero-Escape Sandbox):</strong> Notice Guile&#x27;s exact rational 4634/9 vs. TypeScript and Rust IEEE-754 float 514.8889.</div></section>
@@ -49,12 +63,13 @@
</div>
<footer>
hyperstitionstud.io/math/phonemic-projections-and-g-vectors v2.15.0 &bull; <span class="hs-sigil-colophon" aria-hidden="true">&#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; &middot; &#x2644;</span> &bull; Made with <span class="hs-heart" style="color:var(--rose);">&#x2665;</span> by Lemurs.
hyperstitionstud.io/math/phonemic-projections-and-g-vectors v2.17.0 &bull; <span class="hs-sigil-colophon" aria-hidden="true">&#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; &middot; &#x2644;</span> &bull; Made with <span class="hs-heart" style="color:var(--rose);">&#x2665;</span> by Lemurs.
</footer>
</div>
<script src="../../assets/hs-matrix-coderain.js?v=2.15.0" defer></script>
<script src="../math-manifest-data.js?v=2.15.0"></script>
<script src="../math-app.js?v=2.15.0"></script>
<script src="../../assets/hs-matrix-coderain.js?v=2.17.0" defer></script>
<script src="../../assets/hs-mobile-ui.js?v=2.17.0" defer></script>
<script src="../math-manifest-data.js?v=2.17.0"></script>
<script src="../math-app.js?v=2.17.0"></script>
<aside id="hsGuileReplDrawer" class="hs-plate-g3" aria-label="In-Browser Polyglot Guile Scheme, TypeScript, and Rust Hardened REPL">
<div style="display:flex;justify-content:space-between;align-items:center;gap:0.5rem;margin-bottom:0.45rem;">
<div style="font-size:0.73rem;font-weight:700;color:var(--cyan);">&lambda; 4-RING HARDENED POLYGLOT REPL (GUILE • TS • RUST • ZERO EVAL)</div>
@@ -92,6 +107,6 @@
<pre id="hsGuileReplOutput" style="margin-top:0.4rem;background:var(--bg-void);border:1px solid var(--border);padding:0.5rem;font-size:0.71rem;color:var(--emerald);max-height:150px;overflow-y:auto;white-space:pre-wrap;">polyglot&gt; Ready (4-Ring Zero-Eval AST Sandbox). Select [λ GUILE | TS | RS | ≡ ALL 3] or click Evaluate (λ).</pre>
</div>
</aside>
<script src="../../assets/hs-guile-scheme-repl.js?v=2.15.0"></script>
<script src="../../assets/hs-guile-scheme-repl.js?v=2.17.0"></script>
</body>
</html>
@@ -3,17 +3,18 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Unit M4: Longitudinal Moments (ts_*), Lead-Lag r(τ), Order Statistics (P50, P90) & Confluence Dose D ∈ {0..4} — hyperstitionstud.io/math (v2.15.0)</title>
<link rel="stylesheet" href="../../assets/hs-group3-basalt-chamfer.css?v=2.15.0" />
<title>Unit M4: Longitudinal Moments (ts_*), Lead-Lag r(τ), Order Statistics (P50, P90) & Confluence Dose D ∈ {0..4} — hyperstitionstud.io/math (v2.17.0)</title>
<link rel="stylesheet" href="../../assets/hs-group3-basalt-chamfer.css?v=2.17.0" />
<style>
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'DejaVu Sans Mono', ui-monospace, monospace; padding: 1.25rem; line-height: 1.5; }
.container { max-width: 1360px; margin: 0 auto; }
header { padding: 1rem 1.25rem; margin-bottom: 0.9rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.8rem; }
h1 { font-size: 1.05rem; color: var(--gold); }
.subtitle { font-size: 0.72rem; color: var(--text-secondary); margin-top: 0.2rem; }
.top-nav { margin-left: auto; display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; }
.btn { padding: 0.35rem 0.7rem; font-size: 0.72rem; text-decoration: none; font-family: inherit; cursor: pointer; }
header { padding: 1.1rem 1.35rem; margin-bottom: 0.75rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: nowrap; gap: 0.85rem; }
@media (max-width: 1220px) { header { flex-wrap: wrap; } }
h1 { font-size: 0.98rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text-main); }
.subtitle { font-size: 0.71rem; color: var(--text-secondary); margin-top: 0.25rem; }
.top-nav { margin-left: auto; display: flex; gap: 0.38rem; flex-wrap: nowrap; align-items: center; }
.btn { padding: 0.34rem 0.62rem; font-size: 0.7rem; font-weight: 600; text-decoration: none; font-family: inherit; cursor: pointer; }
footer { margin-top: 1rem; padding-top: 0.8rem; border-top: 1px solid var(--border); text-align: center; font-size: 0.72rem; color: var(--text-secondary); }
</style>
</head>
@@ -21,23 +22,36 @@
<div class="container">
<header>
<div>
<h1>Unit M4: Longitudinal Moments (ts_*), Lead-Lag r(τ), Order Statistics (P50, P90) & Confluence Dose D ∈ {0..4}</h1>
<p class="subtitle">Cartridge M4 &bull; Non-Sequentially Revertible via <code>hs-math-docs --disable timeseries-moments-and-confluence-dose</code> &bull; v2.15.0 <span class="hs-sigil-seal" aria-hidden="true">[ &#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; ]</span></p>
<div class="title-row">
<span class="dot" style="background:var(--gold);box-shadow:0 0 10px var(--gold);" aria-hidden="true"></span>
<h1>Unit M4: Longitudinal Moments (ts_*), Lead-Lag r(τ), Order Statistics (P50, P90) & Confluence Dose D ∈ {0..4}</h1>
</div>
<p class="subtitle">Cartridge M4 &bull; Non-Sequentially Revertible via <code>hs-math-docs --disable timeseries-moments-and-confluence-dose</code> &bull; v2.17.0 <span class="hs-sigil-seal" aria-hidden="true">[ &#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; ]</span></p>
</div>
<nav class="top-nav">
<nav class="top-nav hs-global-nav" aria-label="Primary Ecosystem Navigation">
<a class="btn" href="../../index.html">Portal Home (/)</a>
<a class="btn" href="/calc/index.html">Calculator</a>
<a class="btn" href="/quant/index.html" style="border-color:var(--gold);color:var(--gold);">Quant</a>
<a class="btn" href="/graph/index.html" style="border-color:var(--cyan);color:var(--cyan);">Graph</a>
<a class="btn" href="../../learn/index.html" style="border-color:var(--emerald);color:var(--emerald);">Learn</a>
<a class="btn" href="../../engineering/index.html">Engineering</a>
<a class="btn primary" aria-current="page" href="../../math/index.html">Math</a>
<span class="nav-donate-sep" aria-hidden="true"></span>
<a class="btn-donate-pill" href="../../donate/index.html?from=math" title="Signal Patronage &amp; Open-Instrument Notes (/donate/)"><span class="donate-pill-emblem" aria-hidden="true">&#x2665;</span><span>DONATE</span></a>
</nav>
</header>
<nav class="hs-subnav-bar panel hs-plate-g3" aria-label="Unit and Polyglot Sub-Navigation">
<div class="hs-subnav-links">
<a class="btn" href="../index.html" style="border-color:rgba(56,189,248,0.55);">Math Hub (M0)</a>
<a class="btn" href="../base36-algebra-and-primes/index.html" style="">M1: Base-36 & Primes</a>
<a class="btn" href="../phonemic-projections-and-g-vectors/index.html" style="">M2: Phonemic Φ & G1-G6</a>
<a class="btn" href="../graph-topology-and-eti-scoring/index.html" style="">M3: Graph & ETI Math</a>
<a class="btn" href="index.html" style="border-color:var(--gold);color:var(--gold);">M4: Time-Series & Dose Math</a>
<a class="btn" href="../macro-spreads-and-bayesian-inference/index.html" style="">M5: Macro & Bayesian Math</a>
<a class="btn" href="../../engineering/index.html">Engineering Hub (/engineering/)</a>
<div id="hsPolyglotModeSelector" class="hs-polyglot-segmented" role="radiogroup" aria-label="Pedagogical Programming Language Lens"><span class="hs-polyglot-prefix">LENS:</span><button type="button" id="guileSchemeModeToggle" class="hs-polyglot-seg" role="radio" data-lens-mode="off" aria-checked="true" title="Hide programming language cartridges (Alt+0)">OFF</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="guile" aria-checked="false" title="GNU Guile Scheme — Z-Combinator &amp; Exact Rationals (Alt+1)"><span class="hs-guile-lambda-badge">&lambda;</span>GUILE</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="ts" aria-checked="false" title="TypeScript — Static Union Types &amp; Functional Pipelines (Alt+2)"><span class="hs-guile-lambda-badge">TS</span>TYPESCRIPT</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="rust" aria-checked="false" title="Rust — Ownership, Option&lt;T&gt; &amp; Zero-Cost Iterators (Alt+3)"><span class="hs-guile-lambda-badge">Rs</span>RUST</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="all" aria-checked="false" title="Side-by-side comparison of Guile Scheme, TypeScript, and Rust (Alt+4)">&equiv; ALL 3</button><strong id="guileSchemeModeState" style="display:none;">OFF</strong></div>
<span class="nav-donate-sep" aria-hidden="true"></span>
<a class="btn-donate-pill" href="../../donate/index.html?from=math"><span class="donate-pill-emblem" aria-hidden="true">&#x2665;</span><span>DONATE</span></a>
</nav>
</header>
</div>
<div id="hsPolyglotModeSelector" class="hs-polyglot-segmented" role="radiogroup" aria-label="Pedagogical Programming Language Lens"><span class="hs-polyglot-prefix">LENS:</span><button type="button" id="guileSchemeModeToggle" class="hs-polyglot-seg" role="radio" data-lens-mode="off" aria-checked="true" title="Hide programming language cartridges (Alt+0)">OFF</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="guile" aria-checked="false" title="GNU Guile Scheme — Z-Combinator &amp; Exact Rationals (Alt+1)"><span class="hs-guile-lambda-badge">&lambda;</span>GUILE</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="ts" aria-checked="false" title="TypeScript — Static Union Types &amp; Functional Pipelines (Alt+2)"><span class="hs-guile-lambda-badge">TS</span>TYPESCRIPT</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="rust" aria-checked="false" title="Rust — Ownership, Option&lt;T&gt; &amp; Zero-Cost Iterators (Alt+3)"><span class="hs-guile-lambda-badge">Rs</span>RUST</button><button type="button" class="hs-polyglot-seg" role="radio" data-lens-mode="all" aria-checked="false" title="Side-by-side comparison of Guile Scheme, TypeScript, and Rust (Alt+4)">&equiv; ALL 3</button><strong id="guileSchemeModeState" style="display:none;">OFF</strong></div>
</nav>
<section class="panel hs-plate-g3 plate-lock-emerald hs-prereq-ladder" style="margin-bottom:0.9rem;padding:1rem 1.2rem;"><div style="font-size:0.74rem;font-weight:700;color:var(--emerald);text-transform:uppercase;letter-spacing:0.06em;">Prerequisite Track for Novices &bull; Required Expertise: Level 3-4: Nonparametric Order Statistics & Time-Series Correlation (15-20 hrs study)</div><p style="font-size:0.76rem;color:var(--text-secondary);margin:0.35rem 0;">If any mathematical notation on this page is unfamiliar, occupy your study time with these free foundational resources first:</p><div style="display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:0.8rem;margin-top:0.4rem;"><div><strong style="font-size:0.73rem;color:var(--gold);">Core Mathematical Prerequisites:</strong><ul style="font-size:0.72rem;color:var(--text-main);margin:0.25rem 0 0 1.1rem;line-height:1.5;"><li>Basis-point return arithmetic Δbps_{i,t} = round(((P_t - P_{t-1}) / P_{t-1}) × 10^4)</li><li>Nonparametric order statistics (Median P50, 90th percentile P90) vs. outlier-sensitive means</li><li>Pearson linear correlation r(τ) across lags τ ∈ [-5..+5] and indicator sums ∑ I(A_s)</li></ul></div><div><strong style="font-size:0.73rem;color:var(--cyan);">Curated Free Public Study Resources:</strong><ul style="font-size:0.72rem;color:var(--text-main);margin:0.25rem 0 0 1.1rem;line-height:1.5;"><li><a href="https://seeing-theory.brown.edu/" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">Seeing Theory (Brown University Visual Intro to Probability & Statistics) &#x2197;</a></li><li><a href="https://online.stat.psu.edu/stat510/" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">Penn State STAT 510 Applied Time Series Analysis (Cross-Correlation) &#x2197;</a></li><li><a href="https://www.itl.nist.gov/div898/handbook/" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">NIST/SEMATECH e-Handbook of Statistical Methods (Order Statistics) &#x2197;</a></li></ul></div></div></section>
<section class="panel hs-plate-g3 hs-guile-cartridge"><div style="display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:0.5rem;"><div style="font-size:0.74rem;font-weight:700;color:var(--cyan);text-transform:uppercase;letter-spacing:0.05em;">&lambda; Polyglot Foil (M4): Thomas&#x27; Calculus Central Derivative d/dx(x^3) at x=2.0</div><div style="display:flex;gap:0.25rem;flex-wrap:wrap;align-items:center;"><button type="button" class="hs-polyglot-seg" data-lens-mode="guile">&lambda; Guile</button><button type="button" class="hs-polyglot-seg" data-lens-mode="ts">TS TypeScript</button><button type="button" class="hs-polyglot-seg" data-lens-mode="rust">Rs Rust</button><button type="button" class="hs-polyglot-seg" data-lens-mode="all">&equiv; All 3</button><button type="button" class="hs-polyglot-seg" data-lens-mode="off">Hide</button></div></div><div class="hs-guile-triview"><div class="hs-guile-box"><strong style="color:var(--gold);display:block;margin-bottom:0.2rem;">1. Mathematical Identity &amp; Python:</strong><code>f&#x27;(x) = lim_{h→0} (f(x+h) - f(x-h)) / (2h), D_{i,t} = ∑ I(A_s)</code><pre style="white-space:pre-wrap;margin-top:0.25rem;color:var(--text-secondary);">confluence_dose = sum(1 for x in species_hits if x)</pre></div><div class="hs-guile-box hs-lang-box-guile"><div style="display:flex;justify-content:space-between;align-items:center;"><strong style="color:var(--cyan);">&lambda; Guile Scheme (Z-Combinator):</strong><button type="button" class="btn hs-load-in-repl-btn" data-polyglot-lang="guile" data-scheme-expr="((derivative (lambda (x) (* x x x)) 1e-5) 2.0)" style="padding:0.12rem 0.4rem;font-size:0.65rem;">REPL &rarr;</button></div><code class="hs-guile-code-expr">((derivative (lambda (x) (* x x x)) 1e-5) 2.0)</code><div class="hs-guile-eval-result" style="margin-top:0.3rem;font-weight:700;color:var(--emerald);">=> [Select Lens to evaluate]</div></div><div class="hs-guile-box hs-lang-box-ts"><div style="display:flex;justify-content:space-between;align-items:center;"><strong style="color:var(--gold);">TS TypeScript (Strict AST):</strong><button type="button" class="btn hs-load-in-repl-btn" data-polyglot-lang="ts" data-scheme-expr="derivative((x: number): number =&gt; x ** 3, 1e-5)(2.0)" style="padding:0.12rem 0.4rem;font-size:0.65rem;">REPL &rarr;</button></div><code class="hs-ts-code-expr">derivative((x: number): number =&gt; x ** 3, 1e-5)(2.0)</code><div class="hs-ts-eval-result" style="margin-top:0.3rem;font-weight:700;color:var(--emerald);">=> [Select Lens to evaluate]</div></div><div class="hs-guile-box hs-lang-box-rust"><div style="display:flex;justify-content:space-between;align-items:center;"><strong style="color:var(--emerald);">Rs Rust (Option/Iterator AST):</strong><button type="button" class="btn hs-load-in-repl-btn" data-polyglot-lang="rust" data-scheme-expr="derivative(|x: f64| x * x * x, 1e-5, 2.0)" style="padding:0.12rem 0.4rem;font-size:0.65rem;">REPL &rarr;</button></div><code class="hs-rust-code-expr">derivative(|x: f64| x * x * x, 1e-5, 2.0)</code><div class="hs-rust-eval-result" style="margin-top:0.3rem;font-weight:700;color:var(--emerald);">=> [Select Lens to evaluate]</div></div></div><div style="font-size:0.71rem;color:var(--text-secondary);"><strong>Guided Micro-Challenge (4-Ring Zero-Escape Sandbox):</strong> Compare higher-order derivative closures in Guile Scheme, TypeScript, and Rust.</div></section>
@@ -49,12 +63,13 @@
</div>
<footer>
hyperstitionstud.io/math/timeseries-moments-and-confluence-dose v2.15.0 &bull; <span class="hs-sigil-colophon" aria-hidden="true">&#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; &middot; &#x2644;</span> &bull; Made with <span class="hs-heart" style="color:var(--rose);">&#x2665;</span> by Lemurs.
hyperstitionstud.io/math/timeseries-moments-and-confluence-dose v2.17.0 &bull; <span class="hs-sigil-colophon" aria-hidden="true">&#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; &middot; &#x2644;</span> &bull; Made with <span class="hs-heart" style="color:var(--rose);">&#x2665;</span> by Lemurs.
</footer>
</div>
<script src="../../assets/hs-matrix-coderain.js?v=2.15.0" defer></script>
<script src="../math-manifest-data.js?v=2.15.0"></script>
<script src="../math-app.js?v=2.15.0"></script>
<script src="../../assets/hs-matrix-coderain.js?v=2.17.0" defer></script>
<script src="../../assets/hs-mobile-ui.js?v=2.17.0" defer></script>
<script src="../math-manifest-data.js?v=2.17.0"></script>
<script src="../math-app.js?v=2.17.0"></script>
<aside id="hsGuileReplDrawer" class="hs-plate-g3" aria-label="In-Browser Polyglot Guile Scheme, TypeScript, and Rust Hardened REPL">
<div style="display:flex;justify-content:space-between;align-items:center;gap:0.5rem;margin-bottom:0.45rem;">
<div style="font-size:0.73rem;font-weight:700;color:var(--cyan);">&lambda; 4-RING HARDENED POLYGLOT REPL (GUILE • TS • RUST • ZERO EVAL)</div>
@@ -92,6 +107,6 @@
<pre id="hsGuileReplOutput" style="margin-top:0.4rem;background:var(--bg-void);border:1px solid var(--border);padding:0.5rem;font-size:0.71rem;color:var(--emerald);max-height:150px;overflow-y:auto;white-space:pre-wrap;">polyglot&gt; Ready (4-Ring Zero-Eval AST Sandbox). Select [λ GUILE | TS | RS | ≡ ALL 3] or click Evaluate (λ).</pre>
</div>
</aside>
<script src="../../assets/hs-guile-scheme-repl.js?v=2.15.0"></script>
<script src="../../assets/hs-guile-scheme-repl.js?v=2.17.0"></script>
</body>
</html>
+39 -29
View File
@@ -4,14 +4,14 @@
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Quantitative Finance &amp; Memetic Gematria Time-Series Workbench — hyperstitionstud.io/quant</title>
<link rel="stylesheet" href="../assets/hs-group3-basalt-chamfer.css?v=2.15.0" />
<link rel="stylesheet" href="../assets/hs-group3-basalt-chamfer.css?v=2.17.0" />
<style>
:root {
--bg-canvas: #020617;
--bg-panel: #0f172a;
--bg-card: #1e293b;
--bg-panel: #0c1324;
--bg-card: #0c1324;
--bg-deep: #090d16;
--border: #334155;
--border: #26344d;
--text-main: #f8fafc;
--text-muted: #94a3b8;
--cyan: #22d3ee;
@@ -36,24 +36,27 @@
border: 1px solid var(--border);
border-left: 4px solid var(--gold);
border-radius: 10px;
padding: 1.1rem 1.4rem;
padding: 1.1rem 1.35rem;
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 0.9rem;
flex-wrap: nowrap;
gap: 0.85rem;
}
h1 { font-size: 1.18rem; font-weight: 700; color: var(--text-main); }
.subtitle { font-size: 0.74rem; color: var(--text-muted); margin-top: 0.25rem; }
.top-nav { margin-left: auto; display: flex; gap: 0.45rem; flex-wrap: wrap; align-items: center; justify-content: flex-end; }
@media (max-width: 1220px) {
header { flex-wrap: wrap; }
}
h1 { font-size: 0.98rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text-main); }
.subtitle { font-size: 0.71rem; color: var(--text-muted); margin-top: 0.25rem; }
.top-nav { margin-left: auto; display: flex; gap: 0.38rem; flex-wrap: nowrap; align-items: center; justify-content: flex-end; }
.btn, select {
text-decoration: none;
background: var(--bg-card);
color: var(--text-main);
border: 1px solid var(--border);
border-radius: 5px;
padding: 0.42rem 0.72rem;
font-size: 0.73rem;
padding: 0.34rem 0.62rem;
font-size: 0.7rem;
font-weight: 600;
font-family: inherit;
cursor: pointer;
@@ -316,23 +319,26 @@
padding-top: 1rem;
}
</style>
<script src="quant-timeseries-data.js?v=2.15.0"></script>
<script src="quant-timeseries-data.js?v=2.17.0"></script>
</head>
<body>
<div class="container">
<header>
<div>
<h1>hyperstitionstud.io/quant — Quantitative Finance &amp; Memetic Gematria Time-Series Workbench</h1>
<p class="subtitle">Strictly Periodic Telemetry (21:30 UTC US Closing Bell &times; 00:00 UTC News-Wire Dossiers &bull; 24 Watchlist Instruments &bull; 14 FRED Macro Series) &bull; Lens-Neutral Schema (urn:io:hyperstitionstud:quant-timeseries:v2.15.0) <span class="hs-sigil-seal" aria-hidden="true">[ &#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; ]</span></p>
<div class="title-row">
<span class="dot" style="background:var(--gold);box-shadow:0 0 10px var(--gold);" aria-hidden="true"></span>
<h1>hyperstitionstud.io/quant — Quantitative Finance &amp; Memetic Gematria Time-Series Workbench</h1>
</div>
<p class="subtitle">Strictly Periodic Telemetry (21:30 UTC US Closing Bell &times; 00:00 UTC News-Wire Dossiers &bull; 24 Watchlist Instruments &bull; 14 FRED Macro Series) &bull; Lens-Neutral Schema (urn:io:hyperstitionstud:quant-timeseries:v2.17.0) <span class="hs-sigil-seal" aria-hidden="true">[ &#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; ]</span></p>
</div>
<nav class="top-nav">
<nav class="top-nav hs-global-nav" aria-label="Primary Ecosystem Navigation">
<a class="btn" id="navHome" href="/">Portal Home (/)</a>
<a class="btn" id="navEng" href="/engineering/index.html">Engineering (/engineering/)</a>
<a class="btn" id="navMath" href="/math/index.html">Applied Math (/math/)</a>
<a class="btn" id="navGraph" href="/graph/index.html">Knowledge Graph (/graph/)</a>
<a class="btn" id="navLearn" href="/learn/index.html">Learning Track (/learn/)</a>
<a class="btn" id="navCalc" href="/calc/index.html">AQ Calculator (/calc/)</a>
<a class="btn" id="navManual" href="/quant/OPERATORS-MANUAL-QUANT-TIMESERIES-WORKBENCH.pdf" target="_blank">Operator's Manual (PDF)</a>
<a class="btn" id="navCalc" href="/calc/index.html">Calculator</a>
<a class="btn primary" id="navQuant" aria-current="page" href="/quant/index.html">Quant</a>
<a class="btn" id="navGraph" href="/graph/index.html" style="border-color:var(--cyan);color:var(--cyan);">Graph</a>
<a class="btn" id="navLearn" href="/learn/index.html" style="border-color:var(--emerald);color:var(--emerald);">Learn</a>
<a class="btn" id="navEng" href="/engineering/index.html">Engineering</a>
<a class="btn" id="navMath" href="/math/index.html">Math</a>
<span class="nav-donate-sep" aria-hidden="true"></span>
<a class="btn-donate-pill" id="navDonate" href="/donate/index.html?from=quant" title="Signal Patronage &amp; Open-Instrument Notes (/donate/)"><span class="donate-pill-emblem" aria-hidden="true">&#x2665;</span><span>DONATE</span></a>
</nav>
@@ -342,7 +348,10 @@
<section class="panel" id="quantTutorialBar" aria-label="Interactive Tutorial Series Player">
<div class="panel-header">
<span class="panel-title">INTERACTIVE GUIDED CANVAS TOUR (5 Episodes &times; 5 Scenes = 25 Live Choreographed Walkthroughs &bull; Zero-MP4)</span>
<span class="panel-meta" id="tutStepBadge">Ep 01 &bull; Scene 1/5</span>
<div style="display:flex;align-items:center;gap:0.5rem;">
<span class="panel-meta" id="tutStepBadge">Ep 01 &bull; Scene 1/5</span>
<a class="btn" id="navManual" href="/quant/OPERATORS-MANUAL-QUANT-TIMESERIES-WORKBENCH.pdf" target="_blank">Operator's Manual (PDF)</a>
</div>
</div>
<div class="pill-row" id="tutEpisodeTabs"></div>
<div style="display:flex;flex-wrap:wrap;align-items:center;gap:0.5rem;">
@@ -474,13 +483,14 @@
<div id="tutUiElementIndicator" role="status" aria-live="polite"></div>
<footer>
hyperstitionstud.io/quant v2.15.0 &bull; <span class="hs-sigil-colophon" aria-hidden="true">&#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; &middot; &#x2644;</span> &bull; Made with <span class="hs-heart" style="color:#ff4d4d;">&#x2665;</span> by Lemurs.
hyperstitionstud.io/quant v2.17.0 &bull; <span class="hs-sigil-colophon" aria-hidden="true">&#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; &middot; &#x2644;</span> &bull; Made with <span class="hs-heart" style="color:#ff4d4d;">&#x2665;</span> by Lemurs.
</footer>
</div>
<script src="../assets/hs-matrix-coderain.js?v=2.15.0" defer></script>
<script src="real-macro-indicators-data.js?v=2.15.0"></script>
<script src="daily-brief-data.js?v=2.15.0"></script>
<script src="quant-app.js?v=2.15.0"></script>
<script src="quant-tutorials.js?v=2.15.0"></script>
<script src="../assets/hs-matrix-coderain.js?v=2.17.0" defer></script>
<script src="../assets/hs-mobile-ui.js?v=2.17.0" defer></script>
<script src="real-macro-indicators-data.js?v=2.17.0"></script>
<script src="daily-brief-data.js?v=2.17.0"></script>
<script src="quant-app.js?v=2.17.0"></script>
<script src="quant-tutorials.js?v=2.17.0"></script>
</body>
</html>
+25 -6
View File
@@ -1,5 +1,5 @@
// /workspace/hyperstitionstudio-core/site/quant/quant-app.js
// Interactive Quantitative Finance & Memetic Gematria Time-Series Workbench (v2.15.0)
// Interactive Quantitative Finance & Memetic Gematria Time-Series Workbench (v2.17.0)
(function () {
"use strict";
@@ -1050,19 +1050,38 @@
renderDailyBrief();
}
// Canvas scrub interaction
canvas.addEventListener("click", function (ev) {
// Canvas scrub interaction (mouse click + Strategy 4A mobile touchstart/touchmove scrubbing)
function scrubCanvasAtClientX(clientX) {
const rect = canvas.getBoundingClientRect();
const relX = ((ev.clientX - rect.left) / rect.width) * canvas.width;
const relX = ((clientX - rect.left) / Math.max(1, rect.width)) * canvas.width;
const padL = 62, padR = 28;
const ratio = (relX - padL) / (canvas.width - padL - padR);
const rng = getActiveDateRange();
const span = Math.max(1, rng.endIdx - rng.startIdx - 1);
const idx = rng.startIdx + Math.round(ratio * span);
state.selectedDateIdx = Math.max(rng.startIdx, Math.min(rng.endIdx - 1, idx));
renderAll();
const nextIdx = Math.max(rng.startIdx, Math.min(rng.endIdx - 1, idx));
if (nextIdx !== state.selectedDateIdx) {
state.selectedDateIdx = nextIdx;
renderAll();
}
}
canvas.addEventListener("click", function (ev) {
scrubCanvasAtClientX(ev.clientX);
});
canvas.addEventListener("touchstart", function (ev) {
if (ev.touches && ev.touches.length === 1) {
scrubCanvasAtClientX(ev.touches[0].clientX);
}
}, { passive: true });
canvas.addEventListener("touchmove", function (ev) {
if (ev.touches && ev.touches.length === 1) {
scrubCanvasAtClientX(ev.touches[0].clientX);
}
}, { passive: true });
document.getElementById("prevDateBtn").onclick = function () {
state.selectedDateIdx = Math.max(0, state.selectedDateIdx - 1);
renderAll();
+1 -1
View File
@@ -1021,7 +1021,7 @@
}
const exportedApi = {
version: "2.15.0",
version: "2.17.0",
episodes: EPISODES,
allHighlightableDomIds: ALL_HIGHLIGHTABLE_DOM_IDS,
cleanTextForSpeech: cleanTextForSpeech,
+2 -2
View File
@@ -1,3 +1,3 @@
"""hyperstitionstud_io — Shared Common Library for the hyperstitionstud.io workspace (v2.15.0)."""
__version__ = "2.15.0"
"""hyperstitionstud_io — Shared Common Library for the hyperstitionstud.io workspace (v2.17.0)."""
__version__ = "2.17.0"
NAMESPACE_URN = "urn:io:hyperstitionstud"
@@ -20,6 +20,7 @@ import base64
import datetime
import hashlib
import json
import re
import urllib.error
import urllib.request
from pathlib import Path
@@ -350,6 +351,11 @@ def run_public_regression_suite(
regressions.append(f"Gate P6: {h_route} contains forbidden legacy marker {bad_m!r}")
gate_results["P6_html_css_visual_and_content_parity"] = p6_ok
style_audit = verify_ui_style_and_navigation_consistency()
if not style_audit["ok"]:
gate_results["P6_html_css_visual_and_content_parity"] = False
regressions.extend(style_audit["errors"])
all_passed = all(gate_results.values())
return {
"ok": all_passed,
@@ -358,10 +364,134 @@ def run_public_regression_suite(
"gates_passed": sum(1 for v in gate_results.values() if v),
"gates_total": len(gate_results),
"gate_results": gate_results,
"style_consistency_audit": style_audit,
"regressions_detected": regressions,
}
def verify_ui_style_and_navigation_consistency(workspace_root: str | Path | None = None) -> dict[str, Any]:
"""
Plan #65 (`PLAN-CROSS-PAGE-STYLE-FONT-BACKGROUND-AND-NAVIGATION-PARITY-WITH-REGRESSION-TESTS`):
Enforce Intra-Page & Cross-Page UI Style, Font-Family, Background Token, and Navigation Bar Parity
across all HTML/CSS surfaces (`Gates S1-S3`).
"""
cfg = load_workspace_config(workspace_root=workspace_root)
core = cfg.core_dir
kg = cfg.knowledge_graph_dir
calc_dir = cfg.paths["gematria_js_dir"]
errors: list[str] = []
chamfer_css_p = core / "site" / "assets" / "hs-group3-basalt-chamfer.css"
chamfer_css = chamfer_css_p.read_text(encoding="utf-8") if chamfer_css_p.is_file() else ""
# Gate S1: Zero Spurious rgb(30, 41, 59) / #1e293b Background Invariant on Subpages & Group 3 CSS
if re.search(r"#1e293b|rgb\(\s*30\s*,\s*41\s*,\s*59\s*\)", chamfer_css, flags=re.I):
errors.append("Gate S1: Forbidden #1e293b / rgb(30, 41, 59) found in hs-group3-basalt-chamfer.css")
subpages: dict[str, Path] = {
"calc": calc_dir / "index.html",
"quant": core / "site" / "quant" / "index.html",
"graph": kg / "index.html",
"learn": core / "site" / "learn" / "index.html",
"engineering_hub": core / "site" / "engineering" / "index.html",
"engineering_e1": core / "site" / "engineering" / "ciphers-and-phonetics" / "index.html",
"math_hub": core / "site" / "math" / "index.html",
"math_m1": core / "site" / "math" / "base36-algebra-and-primes" / "index.html",
"donate": core / "site" / "donate" / "index.html",
"gallery": core / "site" / "gallery" / "index.html",
}
for sname, spath in subpages.items():
if not spath.is_file():
errors.append(f"Gate S1: Missing subpage {spath}")
continue
stxt = spath.read_text(encoding="utf-8")
if re.search(r"--bg-(?:card|panel)\s*:\s*(?:#1e293b|rgb\(\s*30\s*,\s*41\s*,\s*59\s*\))", stxt, flags=re.I):
errors.append(f"Gate S1: Spurious --bg-card/--bg-panel #1e293b / rgb(30, 41, 59) override in {sname} ({spath})")
if sname == "graph" and re.search(r"#1e293b|rgb\(\s*30\s*,\s*41\s*,\s*59\s*\)", stxt, flags=re.I):
errors.append(f"Gate S1: Spurious #1e293b / rgb(30, 41, 59) found in /graph/ ({spath})")
calc_styles_p = calc_dir / "calc" / "styles.css"
if calc_styles_p.is_file():
calc_css = calc_styles_p.read_text(encoding="utf-8")
hs_nav_m = re.search(r"\.hs-nav-btn\s*\{([^}]*)\}", calc_css, flags=re.S)
if hs_nav_m:
body_css = hs_nav_m.group(1)
if re.search(r"#1e293b|rgb\(\s*30\s*,\s*41\s*,\s*59\s*\)", body_css, flags=re.I) or re.search(
r"(?<![-a-z])(?:color|border)\s*:[^;]*!important", body_css, flags=re.I
):
errors.append("Gate S1/S3: .hs-nav-btn in calc/styles.css contains #1e293b or !important color/border overrides")
# Gate S2: Intra-Page Font-Family Uniformity Invariant
if "--font-mono:" not in chamfer_css or "button," not in chamfer_css or "select," not in chamfer_css:
errors.append("Gate S2: hs-group3-basalt-chamfer.css missing --font-mono inheritance on button/input/select/textarea")
for sname in ("graph", "quant", "learn", "engineering_hub", "engineering_e1", "math_hub", "math_m1", "donate", "gallery"):
stxt = subpages[sname].read_text(encoding="utf-8")
if "sans-serif" in stxt:
errors.append(f"Gate S2: Inconsistent 'sans-serif' font declaration found in {sname} ({subpages[sname]})")
if sname == "graph" and "font-family: monospace;" in stxt:
errors.append(f"Gate S2: Bare 'font-family: monospace;' without --font-mono found in /graph/")
# Gate S3: Cross-Page Navigation UI & Header Style Parity Invariant
home_txt = (core / "site" / "index.html").read_text(encoding="utf-8")
if '<div class="meta-badges">' not in home_txt:
errors.append("Gate S3: Homepage site/index.html <div class=\"meta-badges\"> was modified!")
canonical_order = ["Portal Home (/)", "Calculator", "Quant", "Graph", "Learn", "Engineering", "Math", "DONATE"]
for sname, spath in subpages.items():
stxt = spath.read_text(encoding="utf-8")
nav_m = re.search(r"<nav[^>]*hs-global-nav[^>]*>(.*?)</nav>", stxt, flags=re.S)
if not nav_m:
errors.append(f"Gate S3: Missing <nav ... hs-global-nav> in {sname}")
continue
nav_inner = nav_m.group(1)
if "title-row" not in stxt or 'class="subtitle' not in stxt:
errors.append(f"Gate S3: Missing .title-row or .subtitle in {sname}")
if re.search(r"h1\s*\{[^}]*color\s*:\s*var\(--gold\)", stxt):
errors.append(f"Gate S3: Inconsistent h1 color: var(--gold) in {sname}")
positions = [nav_inner.find(lbl) for lbl in canonical_order]
if any(pos == -1 for pos in positions) or positions != sorted(positions):
errors.append(f"Gate S3: Canonical navigation link order mismatch in {sname}: {positions}")
# Gate S4 (Plan #66): Adaptive Mobile Device Detection & Mobile UI Ergonomics (Strategies 1A, 2A, 3A, 4A)
mob_js_p = core / "site" / "assets" / "hs-mobile-ui.js"
if not mob_js_p.is_file():
errors.append("Gate S4: Missing site/assets/hs-mobile-ui.js")
else:
mob_js = mob_js_p.read_text(encoding="utf-8")
for req_tok in ("data-device-ui", "hsMobileMenuBtn", "hsMobileNavSheet", "hsMobileUiSwitchBtn", "userAgentData"):
if req_tok not in mob_js:
errors.append(f"Gate S4: hs-mobile-ui.js missing {req_tok}")
if 'html[data-device-ui="mobile"]' not in chamfer_css:
errors.append("Gate S4: hs-group3-basalt-chamfer.css missing html[data-device-ui=\"mobile\"] rules")
caddy_p = core / "deploy" / "Caddyfile"
if caddy_p.is_file() and "@mobile_ua" not in caddy_p.read_text(encoding="utf-8"):
errors.append("Gate S4: deploy/Caddyfile missing @mobile_ua mobile detection block")
graph_txt = subpages["graph"].read_text(encoding="utf-8")
if "touchstart" not in graph_txt or "mobileGraphFiltersBtn" not in graph_txt or "mobileGraphInspectorBtn" not in graph_txt:
errors.append("Gate S4: /graph/index.html missing mobile touch handlers or drawer toggle buttons")
quant_app_p = core / "site" / "quant" / "quant-app.js"
if quant_app_p.is_file() and "touchmove" not in quant_app_p.read_text(encoding="utf-8"):
errors.append("Gate S4: site/quant/quant-app.js missing touchmove crosshair scrubbing")
for sname, spath in subpages.items():
if "hs-mobile-ui.js" not in spath.read_text(encoding="utf-8"):
errors.append(f"Gate S4: Subpage {sname} missing hs-mobile-ui.js script inclusion")
s1_ok = not any(e.startswith("Gate S1") for e in errors)
s2_ok = not any(e.startswith("Gate S2") for e in errors)
s3_ok = not any(e.startswith("Gate S3") for e in errors)
s4_ok = not any(e.startswith("Gate S4") for e in errors)
return {
"ok": len(errors) == 0,
"gates": {
"S1_zero_spurious_rgb_30_41_59_background": s1_ok,
"S2_intra_page_font_family_uniformity": s2_ok,
"S3_cross_page_navigation_and_header_parity": s3_ok,
"S4_mobile_device_detection_and_touch_ui": s4_ok,
},
"errors": errors,
}
def main(argv: list[str] | None = None) -> int:
ap = argparse.ArgumentParser(prog="hs-public-smoke", description="Run the 6-Gate Public API & Surface Regression Suite against a cached internal baseline.")
ap.add_argument("--base-url", default="https://hyperstitionstud.io", help="Target base URL (e.g. https://hyperstitionstud.io or http://127.0.0.1:18090).")
+2 -2
View File
@@ -39,8 +39,8 @@ from hyperstitionstud_io.mcp.tools import MCP_TOOLS_SCHEMA, call_mcp_tool # noq
SERVER_INFO = {
"name": "hyperstitionstudio-mcp",
"version": "2.15.0",
"namespace_urn": "urn:io:hyperstitionstud:mcp:2.15.0",
"version": "2.17.0",
"namespace_urn": "urn:io:hyperstitionstud:mcp:2.17.0",
}
@@ -8,6 +8,12 @@ computes a structural UI element fingerprint (`ui-elements-manifest.json`), and
re-renders all 11 full-width `680x260` Group 3 UI closeups (`site/assets/closeups/*.png`)
whenever any page's UI elements (`id=...`, `<select><option>`, `.pill`, `<button>`,
`<section>`, `<table...>`, or corpus counts) are added, modified, or removed.
Enforces `PLAN-HOMEPAGE-QUADRANT-CLOSEUPS-TEXT-BOUNDING-BOX-FIT-AND-AUDIT` (Plan #61):
- Zero mid-word `[:N]` string slicing across all 11 closeups.
- Dynamic font-ladder fitting (`_fit_font_for_width`, `_draw_box_text`, `_draw_kv_row`).
- Built-in `verify_closeup_geometry()` verifying Invariants B1 (Enclosing Box Containment),
B2 (Zero Border Crossings), and B3 (Zero Horizontal Sibling Text Collisions).
"""
from __future__ import annotations
@@ -17,6 +23,7 @@ import hashlib
import json
import math
import re
import shutil
from pathlib import Path
from typing import Any
@@ -68,6 +75,209 @@ def _fnt(path: str, size: int) -> Any:
return load_pillow_font(path, size)
class _TrackedCanvasDraw:
"""
Wraps `ImageDraw.ImageDraw` to record every container box (`chamfer` or `rect`)
and every rendered text bounding box (`textbbox`) for `verify_closeup_geometry()`.
"""
def __init__(self, im: Image.Image) -> None:
self._d = ImageDraw.Draw(im)
self.boxes: list[tuple[str, tuple[int, int, int, int]]] = []
self.texts: list[tuple[tuple[float, float], str, tuple[int, int, int, int]]] = []
def __getattr__(self, name: str) -> Any:
return getattr(self._d, name)
def polygon(self, xy: Any, *args: Any, **kwargs: Any) -> Any:
if isinstance(xy, list) and len(xy) >= 4:
xs = [int(p[0]) for p in xy]
ys = [int(p[1]) for p in xy]
if max(xs) - min(xs) > 20 and max(ys) - min(ys) > 14:
box = (min(xs), min(ys), max(xs), max(ys))
if ("chamfer", box) not in self.boxes:
self.boxes.append(("chamfer", box))
return self._d.polygon(xy, *args, **kwargs)
def rectangle(self, xy: Any, *args: Any, **kwargs: Any) -> Any:
if isinstance(xy, (list, tuple)) and len(xy) == 4 and isinstance(xy[0], (int, float)):
bx1, by1, bx2, by2 = int(xy[0]), int(xy[1]), int(xy[2]), int(xy[3])
# Record UI container boxes (ignore narrow chart bars / progress fill bars without outlines)
has_outline = kwargs.get("outline") is not None or (len(args) >= 2 and args[1] is not None)
if has_outline and (bx2 - bx1 > 24) and (by2 - by1 >= 16):
box = (bx1, by1, bx2, by2)
if ("rect", box) not in self.boxes:
self.boxes.append(("rect", box))
return self._d.rectangle(xy, *args, **kwargs)
def text(self, xy: tuple[float, float], text: str, font: Any = None, fill: Any = None, **kwargs: Any) -> Any:
if text:
tb = self._d.textbbox(xy, text, font=font)
self.texts.append(((float(xy[0]), float(xy[1])), str(text), (int(tb[0]), int(tb[1]), int(tb[2]), int(tb[3]))))
return self._d.text(xy, text, font=font, fill=fill, **kwargs)
def _fit_font_for_width(
d: _TrackedCanvasDraw,
text: str,
max_width: int,
*,
preferred_size: int = 12,
min_size: int = 8,
bold: bool = False,
) -> tuple[Any, int, int]:
font_file = FONT_MONO_B if bold else FONT_MONO
for sz in range(preferred_size, min_size - 1, -1):
f = _fnt(font_file, sz)
tb = d.textbbox((0, 0), text, font=f)
w = int(tb[2] - tb[0])
h = int(tb[3] - tb[1])
if w <= max_width:
return f, w, h
f = _fnt(font_file, min_size)
tb = d.textbbox((0, 0), text, font=f)
return f, int(tb[2] - tb[0]), int(tb[3] - tb[1])
def _draw_box_text(
d: _TrackedCanvasDraw,
box: tuple[int, int, int, int],
text: str,
fill: tuple[int, int, int],
*,
pad_x: int = 6,
align: str = "left",
preferred_size: int = 12,
min_size: int = 8,
bold: bool = False,
y_pos: int | None = None,
) -> tuple[int, int, int, int]:
bx1, by1, bx2, by2 = box
avail_w = max(16, (bx2 - bx1) - 2 * pad_x)
f, tw, th = _fit_font_for_width(d, text, avail_w, preferred_size=preferred_size, min_size=min_size, bold=bold)
if align == "center":
tx = bx1 + max(pad_x, ((bx2 - bx1) - tw) // 2)
elif align == "right":
tx = max(bx1 + pad_x, bx2 - pad_x - tw)
else:
tx = bx1 + pad_x
ty = y_pos if y_pos is not None else (by1 + max(2, ((by2 - by1) - th) // 2 - 1))
d.text((tx, ty), text, font=f, fill=fill)
return d.texts[-1][2]
def _draw_kv_row(
d: _TrackedCanvasDraw,
box: tuple[int, int, int, int],
key_text: str,
val_text: str,
*,
fill_bg: tuple[int, int, int] = PLATE,
outline: tuple[int, int, int] = BORDER,
key_fill: tuple[int, int, int] = GOLD,
val_fill: tuple[int, int, int] = TEXT,
key_size: int = 11,
val_size: int = 11,
val_bold: bool = False,
min_val_x: int | None = None,
) -> None:
bx1, by1, bx2, by2 = box
d.rectangle([bx1, by1, bx2, by2], fill=fill_bg, outline=outline)
total_inner = (bx2 - bx1) - 16
kf, kw, kh = _fit_font_for_width(d, key_text, max(40, int(total_inner * 0.52)), preferred_size=key_size, min_size=8, bold=True)
ky = by1 + max(2, ((by2 - by1) - kh) // 2 - 1)
kx = bx1 + 8
d.text((kx, ky), key_text, font=kf, fill=key_fill)
key_tb = d.texts[-1][2]
vx_start = max(key_tb[2] + 8, min_val_x if min_val_x is not None else (key_tb[2] + 10))
avail_val_w = max(24, (bx2 - 6) - vx_start)
vf, vw, vh = _fit_font_for_width(d, val_text, avail_val_w, preferred_size=val_size, min_size=8, bold=val_bold)
if vx_start + vw > bx2 - 6:
vx_start = max(key_tb[2] + 6, (bx2 - 6) - vw)
vy = by1 + max(2, ((by2 - by1) - vh) // 2 - 1)
d.text((vx_start, vy), val_text, font=vf, fill=val_fill)
def verify_closeup_geometry(tracked_by_filename: dict[str, _TrackedCanvasDraw]) -> dict[str, Any]:
"""
Verify Invariants B1 (Enclosing Box Containment), B2 (Zero Border Crossings),
and B3 (Zero Horizontal Sibling Text Collisions) across all 11 closeups.
"""
breaches: list[dict[str, Any]] = []
border_crossings: list[dict[str, Any]] = []
text_overlaps: list[dict[str, Any]] = []
for fname, td in tracked_by_filename.items():
for idx, (xy, txt, tb) in enumerate(td.texts):
tx1, ty1, tx2, ty2 = tb
# B1: Smallest enclosing box that contains the text anchor point
enclosing: list[tuple[int, str, tuple[int, int, int, int]]] = []
for bkind, (bx1, by1, bx2, by2) in td.boxes:
if bx1 - 2 <= xy[0] <= bx2 and by1 - 2 <= xy[1] <= by2:
enclosing.append(((bx2 - bx1) * (by2 - by1), bkind, (bx1, by1, bx2, by2)))
enclosing.sort(key=lambda item: item[0])
if enclosing:
_, bkind, (bx1, by1, bx2, by2) = enclosing[0]
if tx1 < bx1 + 2 or tx2 > bx2 - 2 or ty1 < by1 + 1 or ty2 > by2 - 1:
breaches.append(
{
"file": fname,
"text": txt,
"textbbox": tb,
"container_kind": bkind,
"container_box": (bx1, by1, bx2, by2),
}
)
# B2: Check if text crosses any container border
for bkind, (bx1, by1, bx2, by2) in td.boxes:
if bx1 <= tx1 and tx2 <= bx2 and by1 <= ty1 and ty2 <= by2:
continue
ix1, iy1 = max(tx1, bx1), max(ty1, by1)
ix2, iy2 = min(tx2, bx2), min(ty2, by2)
if ix2 > ix1 and iy2 > iy1:
border_crossings.append(
{
"file": fname,
"text": txt,
"textbbox": tb,
"crossed_kind": bkind,
"crossed_box": (bx1, by1, bx2, by2),
}
)
# B3: Check horizontal overlap with sibling text on the same vertical line
for idx2, (xy2, txt2, tb2) in enumerate(td.texts):
if idx2 <= idx:
continue
if abs(xy[1] - xy2[1]) <= 6:
if not (tb[2] + 2 <= tb2[0] or tb2[2] + 2 <= tb[0]):
text_overlaps.append(
{
"file": fname,
"text_a": txt,
"bbox_a": tb,
"text_b": txt2,
"bbox_b": tb2,
}
)
all_clean = (len(breaches) == 0) and (len(border_crossings) == 0) and (len(text_overlaps) == 0)
if not all_clean:
raise AssertionError(
f"Closeup geometry audit failed: breaches={breaches}, "
f"border_crossings={border_crossings}, text_overlaps={text_overlaps}"
)
return {
"all_clean": True,
"checked_closeups": len(tracked_by_filename),
"breach_count": 0,
"border_crossing_count": 0,
"text_overlap_count": 0,
}
def _extract_js_ui_signature(js_text: str) -> dict[str, Any]:
"""
Strategy 4A (Plan #51): Introspect companion `.js` files (`quant-app.js`, `quant-tutorials.js`,
@@ -168,7 +378,6 @@ def introspect_live_ui_elements(workspace_root: str | Path | None = None) -> dic
if jp.is_file():
js_sigs[jk] = _extract_js_ui_signature(jp.read_text(encoding="utf-8"))
# Live data counts from registries
ts_p = core / "site" / "quant" / "quant-timeseries.json"
ts_obj = load_json_cached(ts_p, copy_result=False) if ts_p.is_file() else {}
total_bars = sum(
@@ -207,6 +416,7 @@ def introspect_live_ui_elements(workspace_root: str | Path | None = None) -> dic
combined_hash = hashlib.sha256(
json.dumps(
{
"layout_engine": "bounded_box_v2_plan61",
"surfaces": {k: v["ui_structure_sha256"] for k, v in sorted(surface_sigs.items())},
"js_surfaces": {k: v["js_ui_sha256"] for k, v in sorted(js_sigs.items())},
"total_bars": total_bars,
@@ -236,9 +446,9 @@ def introspect_live_ui_elements(workspace_root: str | Path | None = None) -> dic
return manifest
def _new_canvas() -> tuple[Image.Image, ImageDraw.ImageDraw]:
def _new_canvas() -> tuple[Image.Image, _TrackedCanvasDraw]:
im = Image.new("RGB", (680, 260), VOID)
d = ImageDraw.Draw(im)
d = _TrackedCanvasDraw(im)
for gx in range(0, 680, 32):
d.line([(gx, 0), (gx, 260)], fill=(12, 18, 30), width=1)
for gy in range(0, 260, 32):
@@ -247,7 +457,7 @@ def _new_canvas() -> tuple[Image.Image, ImageDraw.ImageDraw]:
def _draw_chamfer_box(
d: ImageDraw.ImageDraw,
d: _TrackedCanvasDraw,
box: tuple[int, int, int, int],
fill: tuple[int, int, int],
outline: tuple[int, int, int],
@@ -266,6 +476,7 @@ def render_all_quadrant_closeups(
"""
Compare the live UI element fingerprint against `site/assets/closeups/ui-elements-manifest.json`
and re-render all 11 `680x260` quadrant closeups whenever any page's UI elements change (or when `force=True`).
Verifies 100% bounding-box containment (`verify_closeup_geometry()`) on every render.
"""
cfg = load_workspace_config(workspace_root=workspace_root)
out_dir = cfg.core_dir / "site" / "assets" / "closeups"
@@ -317,7 +528,6 @@ def render_all_quadrant_closeups(
eng_c = metrics["engineering_counts"]
surfaces = live_manifest["surfaces"]
# Detect live controls on /graph/, /quant/, /learn/, /engineering/ (HTML + JS)
quant_ids = set(surfaces.get("quant", {}).get("ids") or [])
quant_tut_js = (live_manifest.get("js_surfaces") or {}).get("quant_tutorials_js") or {}
graph_has_min_deg = "minDegreeFilter" in (surfaces.get("graph", {}).get("ids") or [])
@@ -330,6 +540,8 @@ def render_all_quadrant_closeups(
learn_has_sigil_svg = "grimoireSigilSvg" in (surfaces.get("learn", {}).get("ids") or [])
eng_has_cli_filter = "engCliFilterInput" in (surfaces.get("engineering_hub", {}).get("ids") or [])
tracked_draws: dict[str, _TrackedCanvasDraw] = {}
# 1. Quadrant 01 Tab 1: /calc/ Cipher Matrix (haiperdohpjematreeah)
im, d = _new_canvas()
_draw_chamfer_box(d, (10, 10, 670, 250), PLATE, BORDER, chamfer=10, pip=EMERALD)
@@ -346,8 +558,9 @@ def render_all_quadrant_closeups(
cw = (656 - 24 - 24) // 4
for i, (clab, cval, ccol) in enumerate(ciphers):
bx = 24 + i * (cw + 8)
_draw_chamfer_box(d, (bx, 84, bx + cw, 152), WELL, ccol, chamfer=7, pip=ccol)
d.text((bx + 10, 90), clab[:19], font=f_mono_xs, fill=MUTED)
tile_box = (bx, 84, bx + cw, 152)
_draw_chamfer_box(d, tile_box, WELL, ccol, chamfer=7, pip=ccol)
_draw_box_text(d, tile_box, clab, MUTED, pad_x=8, preferred_size=11, min_size=9, y_pos=90)
d.text((bx + 12, 110), cval, font=f_mono_xl, fill=ccol)
rows = [
("sinthetik dayta", "AQ = 292", "Cluster 292 • Gen 1 σ² = 0.00 • Syzygy 4::5"),
@@ -361,6 +574,7 @@ def render_all_quadrant_closeups(
d.text((230, ry + 4), raq, font=f_mono_b, fill=EMERALD)
d.text((335, ry + 4), rmeta, font=f_mono, fill=CYAN)
im.save(out_dir / "quadrant-1-cybermemetics-calc-graph.png", "PNG")
tracked_draws["quadrant-1-cybermemetics-calc-graph.png"] = d
# 2. Quadrant 01 Tab 2: /graph/ Mode 2 ETI Radar
im, d = _new_canvas()
@@ -385,44 +599,55 @@ def render_all_quadrant_closeups(
d.line([(cx_r, cy_r), (nx, ny)], fill=(56, 189, 248), width=2)
for nx, ny, ncol, nlab in nodes:
d.ellipse([nx - 7, ny - 7, nx + 7, ny + 7], fill=ncol, outline=VOID)
lx = nx + 10 if nx >= cx_r else nx - 58
tb_n = d.textbbox((0, 0), nlab, font=f_mono_b)
nw = int(tb_n[2] - tb_n[0])
lx = nx + 10 if nx >= cx_r else nx - nw - 10
ly = ny - 7
if nlab == "aq:777":
lx, ly = nx - 24, ny - 20
lx, ly = nx - nw // 2, ny - 20
elif nlab == "S1 (93)":
lx, ly = nx - 24, ny + 10
lx, ly = nx - nw // 2, ny + 10
elif lx + nw > 338:
# Keep label strictly inside radar well [24, 42, 346, 240]
lx = 338 - nw
ly = ny - 20
d.text((lx, ly), nlab, font=f_mono_b, fill=ncol)
_draw_chamfer_box(d, (358, 42, 656, 240), WELL, CYAN, chamfer=8, pip=CYAN)
d.text((372, 52), "SELECTED NODE INSPECTOR", font=f_mono_b, fill=GOLD)
d.text((372, 72), "aq:292 • Cluster 292 Hub", font=f_mono_md, fill=TEXT)
badges = [("Class: AQHub", CYAN), ("Deg: 38", GOLD), ("dr_9: 4 (4::5)", EMERALD)]
badges = [
("Class: AQHub", 88, CYAN),
("Deg: 38", 68, GOLD),
("dr_9: 4 (4::5)", 104, EMERALD),
]
bx_i = 372
for btxt, bcol in badges:
d.rectangle([bx_i, 96, bx_i + 86, 116], fill=PLATE, outline=bcol)
d.text((bx_i + 6, 99), btxt, font=f_mono_xs, fill=bcol)
bx_i += 92
for btxt, bw, bcol in badges:
bbox = (bx_i, 96, bx_i + bw, 116)
d.rectangle(list(bbox), fill=PLATE, outline=bcol)
_draw_box_text(d, bbox, btxt, bcol, pad_x=5, align="center", preferred_size=10, min_size=8)
bx_i += bw + 6
insp_lines = [
("Filter:", "9-Sum Syzygies • MinDeg ≥ 0"),
("Gen 1 Locks:", "sinthetik dayta • abstrakt masheen"),
("Variance:", "σ²_0 = 310.22 -> σ²_1 = 0.00 (G1)"),
("Neighbors:", "Top 40 Cap + [Show All] Button"),
("Gen 1 Locks:", "sinthetik dayta • abstrakt"),
("Variance:", "σ²_0 = 310.22 -> σ²_1 = 0.00"),
("Neighbors:", "Top 40 Cap + [Show All]"),
]
for li, (lk, lv) in enumerate(insp_lines):
ly = 128 + li * 25
d.rectangle([372, ly, 644, ly + 21], fill=PLATE, outline=BORDER)
d.text((380, ly + 3), lk, font=f_mono_b, fill=GOLD)
d.text((466, ly + 3), lv[:26], font=f_mono_xs, fill=TEXT)
_draw_kv_row(d, (372, ly, 644, ly + 21), lk, lv, key_size=11, val_size=10, min_val_x=472)
im.save(out_dir / "quadrant-1-tab-2-graph.png", "PNG")
tracked_draws["quadrant-1-tab-2-graph.png"] = d
# 3. Quadrant 02 Tab 1: Panel 1 Trajectory & Dose (dynamically reflects #tutSpeechBtn, #timeWindowPills, #tickerQuickFilter)
# 3. Quadrant 02 Tab 1: Panel 1 Trajectory & Dose
im, d = _new_canvas()
_draw_chamfer_box(d, (10, 10, 670, 250), PLATE, BORDER, chamfer=10, pip=GOLD)
d.text((24, 18), "PANEL 1: Synchronized 2-Pane Trajectory & Dose D ∈ {0..4}", font=f_hdr, fill=GOLD)
d.text((24, 18), "PANEL 1: 2-Pane Trajectory & Dose D ∈ {0..4}", font=f_hdr, fill=GOLD)
win_badge = "[30D|90D|ALL]•" if quant_has_window else ""
flt_badge = "Filter•" if quant_has_quick_filter else ""
vox_badge = "🔊Voice:ON•" if quant_has_speech_btn else ""
d.rectangle([388, 16, 656, 36], fill=WELL, outline=GOLD)
d.text((394, 19), f"{vox_badge}{win_badge}{flt_badge}NVDA", font=f_mono_xs, fill=GOLD)
vox_badge = "Vox:ON•" if quant_has_speech_btn else ""
pill_box = (398, 16, 656, 36)
d.rectangle(list(pill_box), fill=WELL, outline=GOLD)
_draw_box_text(d, pill_box, f"{vox_badge}{win_badge}{flt_badge}NVDA", GOLD, pad_x=6, align="center", preferred_size=10, min_size=8)
d.rectangle([24, 42, 656, 168], fill=WELL, outline=BORDER)
d.line([(36, 114), (644, 114)], fill=(180, 50, 70), width=1)
d.text((42, 96), "Entity Threshold: envideea = 137", font=f_mono_xs, fill=ROSE)
@@ -431,11 +656,11 @@ def render_all_quadrant_closeups(
for px, py in pts:
d.ellipse([px - 4, py - 4, px + 4, py + 4], fill=GOLD, outline=VOID)
d.rectangle([180, 74, 290, 94], fill=PLATE, outline=GOLD)
d.text((188, 77), "Scope 1 (137)", font=f_mono_b, fill=GOLD)
_draw_box_text(d, (180, 74, 290, 94), "Scope 1 (137)", GOLD, pad_x=6, align="center", preferred_size=11, bold=True)
d.rectangle([355, 56, 462, 76], fill=PLATE, outline=EMERALD)
d.text((363, 59), "Wire Eq (292)", font=f_mono_b, fill=EMERALD)
_draw_box_text(d, (355, 56, 462, 76), "Wire Eq (292)", EMERALD, pad_x=6, align="center", preferred_size=11, bold=True)
d.rectangle([530, 46, 638, 66], fill=PLATE, outline=CYAN)
d.text((538, 49), "Dose D=3 Lock", font=f_mono_b, fill=CYAN)
_draw_box_text(d, (530, 46, 638, 66), "Dose D=3 Lock", CYAN, pad_x=6, align="center", preferred_size=11, bold=True)
d.rectangle([24, 176, 656, 240], fill=(11, 16, 24), outline=BORDER)
d.text((34, 181), f"Pane 2: 30D Window Confluence Dose Inspector (N = 19 Trading Days • {bars_cnt} Bars)", font=f_mono_xs, fill=MUTED)
for bi in range(19):
@@ -445,6 +670,7 @@ def render_all_quadrant_closeups(
bcol = CYAN if dose == 3 else (EMERALD if dose == 2 else (71, 85, 105))
d.rectangle([bx, 234 - bh, bx + 22, 234], fill=bcol)
im.save(out_dir / "quadrant-2-esoteric-finance-quant.png", "PNG")
tracked_draws["quadrant-2-esoteric-finance-quant.png"] = d
# 4. Quadrant 02 Tab 2: Panel 6 Bayesian & Panel 5 FRED
im, d = _new_canvas()
@@ -467,55 +693,65 @@ def render_all_quadrant_closeups(
d.rectangle([38, by + 18, 318, by + 32], fill=PLATE, outline=BORDER)
d.rectangle([38, by + 18, 38 + int(280 * min(1.0, bval)), by + 32], fill=bcol)
d.rectangle([38, 212, 318, 232], fill=PLATE, outline=CYAN)
d.text((46, 215), "Simplex Σ P(R_k|E_t) = 1.0000", font=f_mono_xs, fill=CYAN)
_draw_box_text(d, (38, 212, 318, 232), "Simplex Σ P(R_k|E_t) = 1.0000", CYAN, pad_x=8, preferred_size=11)
_draw_chamfer_box(d, (346, 42, 656, 240), WELL, CYAN, chamfer=8, pip=CYAN)
d.text((360, 52), "PANEL 5: 14 REAL FRED MACRO SERIES", font=f_mono_b, fill=CYAN)
fred_rows = [
("EFFR / SOFR", "4.58% / 4.68%", "+10 bps Repo Spread"),
("M2 - M1 Spread", "$3,365.9B", "$3.37T -> 337 (68th Prime)"),
("M2 Velocity V_M2", "1.405x", "GDP / M2SL Ratio"),
("10Y - EFFR Slope", "+97 bps", "'naintee sevan' = 237"),
("Missing / Closed", "null", "Zero Forward-Fill Policy"),
("EFFR / SOFR", "4.58 / 4.68%", "+10 bps Spread"),
("M2 - M1 Spread", "$3,365.9B", "337 (68th Prime)"),
("M2 Velocity V", "1.405x", "GDP / M2 Ratio"),
("10Y - EFFR", "+97 bps", "AQ('97') = 237"),
("Closed Market", "null", "0 Forward-Fill"),
]
for fi, (fk, fv, fn) in enumerate(fred_rows):
fy = 78 + fi * 30
d.rectangle([360, fy, 642, fy + 25], fill=PLATE, outline=BORDER)
d.text((368, fy + 5), fk, font=f_mono_b, fill=GOLD)
d.text((488, fy + 5), fv, font=f_mono_b, fill=TEXT)
d.text((568, fy + 5), fn[:11], font=f_mono_xs, fill=EMERALD)
rbox = (360, fy, 642, fy + 25)
d.rectangle(list(rbox), fill=PLATE, outline=BORDER)
f_k = _fnt(FONT_MONO_B, 10)
f_v = _fnt(FONT_MONO_B, 10)
f_n = _fnt(FONT_MONO, 10)
d.text((366, fy + 6), fk, font=f_k, fill=GOLD)
d.text((466, fy + 6), fv, font=f_v, fill=TEXT)
d.text((544, fy + 6), fn, font=f_n, fill=EMERALD)
im.save(out_dir / "quadrant-2-tab-2-bayesian-fred.png", "PNG")
tracked_draws["quadrant-2-tab-2-bayesian-fred.png"] = d
# 5. Quadrant 02 Tab 3: Panel 2 6-Lens Leaderboard & TCG Card (dynamically reflects #lensSelect & UI indicator badge)
# 5. Quadrant 02 Tab 3: Panel 2 6-Lens Leaderboard & TCG Card
im, d = _new_canvas()
_draw_chamfer_box(d, (10, 10, 670, 250), PLATE, BORDER, chamfer=10, pip=GOLD)
hdr_q2_t3 = "PANEL 2 & 3: #lensSelect 6-Lens Leaderboard & TCG Card" if quant_has_lens_select else "PANEL 2 & 3: 6-Lens Assemblage Leaderboard & One-Shot TCG Stats Card"
hdr_q2_t3 = "PANEL 2 & 3: #lensSelect 6-Lens Leaderboard & TCG Card" if quant_has_lens_select else "PANEL 2 & 3: 6-Lens Leaderboard & One-Shot TCG Card"
d.text((24, 18), hdr_q2_t3, font=f_hdr, fill=GOLD)
if quant_has_ui_indicator:
d.rectangle([476, 15, 656, 35], fill=WELL, outline=GOLD)
d.text((482, 18), "▼ UI: #lensSelect", font=f_mono_xs, fill=GOLD)
ind_box = (476, 15, 656, 35)
d.rectangle(list(ind_box), fill=WELL, outline=GOLD)
_draw_box_text(d, ind_box, "▼ UI: #lensSelect", GOLD, pad_x=8, align="center", preferred_size=11)
_draw_chamfer_box(d, (24, 42, 416, 240), WELL, GOLD, chamfer=8, pip=GOLD)
lenses = ["[Fund Mgr]", "[TierZoo]", "[Board]", "[Sabermetric]"]
for li, ltxt in enumerate(lenses):
lx = 36 + li * 92
d.rectangle([lx, 50, lx + 86, 70], fill=PLATE, outline=GOLD if li == 0 else BORDER)
d.text((lx + 6, 53), ltxt, font=f_mono_xs, fill=GOLD if li == 0 else MUTED)
lenses = [("[Fund Mgr]", 84), ("[TierZoo]", 78), ("[Board]", 66), ("[Sabermetric]", 104)]
lx = 36
for li, (ltxt, lw) in enumerate(lenses):
lbox = (lx, 50, lx + lw, 70)
d.rectangle(list(lbox), fill=PLATE, outline=GOLD if li == 0 else BORDER)
_draw_box_text(d, lbox, ltxt, GOLD if li == 0 else MUTED, pad_x=5, align="center", preferred_size=10, min_size=8)
lx += lw + 8
t_rows = [
("#1 S1 Cybernetic", "ETI 93", "Tier S+", "NVDA / PLTR / MSFT", GOLD),
("#2 S2 High-Freq", "ETI 90", "Tier S", "COIN / CME / VIRT", CYAN),
("#3 S6 Sovereign", "ETI 87", "Tier S", "BLK / JPM / GS", EMERALD),
("#4 S3 Lithography", "ETI 83", "Tier A", "ASML / TSM / AVGO", ROSE),
("#5 M3 Convergence", "ETI 76", "Tier B", "Cluster 292 / 333", VIOLET),
("#1 S1 Cybernetic", "ETI 93", "Tier S+", "NVDA/PLTR/MSFT", GOLD),
("#2 S2 High-Freq", "ETI 90", "Tier S", "COIN/CME/VIRT", CYAN),
("#3 S6 Sovereign", "ETI 87", "Tier S", "BLK/JPM/GS", EMERALD),
("#4 S3 Lithography", "ETI 83", "Tier A", "ASML/TSM/AVGO", ROSE),
("#5 M3 Convergence", "ETI 76", "Tier B", "AQ 292 / 333", VIOLET),
]
f_tr_b = _fnt(FONT_MONO_B, 10)
f_tr = _fnt(FONT_MONO, 10)
for ti, (tname, teti, ttier, tsyms, tcol) in enumerate(t_rows):
ty = 80 + ti * 30
d.rectangle([36, ty, 404, ty + 25], fill=PLATE, outline=BORDER)
d.text((44, ty + 5), tname, font=f_mono_b, fill=TEXT)
d.text((196, ty + 5), teti, font=f_mono_b, fill=tcol)
d.text((258, ty + 5), ttier, font=f_mono_xs, fill=GOLD)
d.text((314, ty + 5), tsyms[:12], font=f_mono_xs, fill=MUTED)
d.text((42, ty + 6), tname, font=f_tr_b, fill=TEXT)
d.text((172, ty + 6), teti, font=f_tr_b, fill=tcol)
d.text((228, ty + 6), ttier, font=f_tr, fill=GOLD)
d.text((288, ty + 6), tsyms, font=f_tr, fill=MUTED)
_draw_chamfer_box(d, (428, 42, 656, 240), WELL, CYAN, chamfer=8, pip=CYAN)
d.text((442, 52), "NVDA • S3 / S1 APEX", font=f_mono_b, fill=CYAN)
d.text((442, 70), "envideea • AQ = 137 (33rd Prime)", font=f_mono_xs, fill=GOLD)
d.text((440, 52), "NVDA • S3 / S1 APEX", font=f_mono_b, fill=CYAN)
_draw_box_text(d, (428, 42, 656, 240), "envideea • AQ = 137 (33rd Prime)", GOLD, pad_x=10, preferred_size=10, min_size=9, y_pos=70)
stats = [("CAP", 96, GOLD), ("VEL", 92, CYAN), ("COL", 88, EMERALD), ("ARM", 85, ROSE)]
for si, (slab, sval, scol) in enumerate(stats):
sy = 94 + si * 26
@@ -524,10 +760,11 @@ def render_all_quadrant_closeups(
d.rectangle([484, sy + 2, 484 + int(1.2 * sval), sy + 14], fill=scol)
d.text((612, sy), str(sval), font=f_mono_b, fill=scol)
d.rectangle([442, 204, 642, 228], fill=PLATE, outline=EMERALD)
d.text((450, 209), "CIDv1: baguqeera... (35ms)", font=f_mono_xs, fill=EMERALD)
_draw_box_text(d, (442, 204, 642, 228), "CIDv1: baguqeera... (35ms)", EMERALD, pad_x=8, preferred_size=10)
im.save(out_dir / "quadrant-2-tab-3-leaderboard-card.png", "PNG")
tracked_draws["quadrant-2-tab-3-leaderboard-card.png"] = d
# 6. Quadrant 03 Tab 1: /learn/ Prereq Track (auto-adapts if grimoiric elements are added to /learn/)
# 6. Quadrant 03 Tab 1: /learn/ Prereq Track
im, d = _new_canvas()
_draw_chamfer_box(d, (10, 10, 670, 250), PLATE, BORDER, chamfer=10, pip=EMERALD)
learn_hdr = (
@@ -539,18 +776,16 @@ def render_all_quadrant_closeups(
_draw_chamfer_box(d, (24, 42, 344, 240), WELL, EMERALD, chamfer=8, pip=EMERALD)
d.text((38, 52), "STEP-BY-STEP PREREQUISITE TRACK", font=f_mono_b, fill=EMERALD)
levels = [
("Level 1", "Base-36 Place Value & Mod-9", "1-2 hrs"),
("Level 2", "Set Mappings & Pop Variance σ²", "3-5 hrs"),
("Level 3", "Property Graphs & Dot Products", "6-10 hrs"),
("Level 4", "Bayes' Simplex & Z-Combinator", "12+ hrs"),
("Level 1", "Base-36 Place Value & Mod-9"),
("Level 2", "Set Maps & Pop Variance σ²"),
("Level 3", "Property Graphs & Dot Prod"),
("Level 4", "Bayes Simplex & Z-Calculus"),
]
for li, (llab, ldesc, _) in enumerate(levels):
for li, (llab, ldesc) in enumerate(levels):
ly = 76 + li * 30
d.rectangle([38, ly, 330, ly + 25], fill=PLATE, outline=BORDER)
d.text((46, ly + 5), llab, font=f_mono_b, fill=GOLD)
d.text((112, ly + 5), ldesc[:22], font=f_mono_xs, fill=TEXT)
_draw_kv_row(d, (38, ly, 330, ly + 25), llab, ldesc, key_size=11, val_size=10, min_val_x=108)
d.rectangle([38, 202, 330, 228], fill=PLATE, outline=CYAN)
d.text((46, 208), "Free Links: MIT 6.042J • 3Blue1Brown", font=f_mono_xs, fill=CYAN)
_draw_box_text(d, (38, 202, 330, 228), "Free Links: MIT 6.042J • 3Blue1Brown", CYAN, pad_x=8, preferred_size=10)
_draw_chamfer_box(d, (356, 42, 656, 240), WELL, CYAN, chamfer=8, pip=CYAN)
d.text((370, 52), "MODULE M01: BASE-36 DECOMPOSITION", font=f_mono_b, fill=CYAN)
d.rectangle([370, 74, 642, 102], fill=PLATE, outline=EMERALD)
@@ -561,10 +796,12 @@ def render_all_quadrant_closeups(
d.rectangle([lx, 112, lx + 48, 168], fill=PLATE, outline=GOLD)
d.text((lx + 16, 118), ch, font=f_mono_md, fill=TEXT)
d.text((lx + 12, 142), val, font=f_mono_b, fill=GOLD)
d.rectangle([370, 178, 642, 228], fill=PLATE, outline=EMERALD)
d.text((382, 186), "21 + 14 + 22 + 30 + 27 = 114", font=f_mono_md, fill=EMERALD)
d.text((382, 206), "Mod-9 Digital Root dr_9(114) = 6 (3::6)", font=f_mono_xs, fill=CYAN)
res_box = (370, 178, 642, 228)
d.rectangle(list(res_box), fill=PLATE, outline=EMERALD)
d.text((382, 185), "21 + 14 + 22 + 30 + 27 = 114", font=f_mono_md, fill=EMERALD)
_draw_box_text(d, res_box, "Mod-9 Digital Root dr_9(114) = 6 (3::6)", CYAN, pad_x=10, preferred_size=10, min_size=9, y_pos=206)
im.save(out_dir / "quadrant-3-info-science-novice-learn-polyglot.png", "PNG")
tracked_draws["quadrant-3-info-science-novice-learn-polyglot.png"] = d
# 7. Quadrant 03 Tab 2: /math/ 2-Col Guile & Z-REPL
im, d = _new_canvas()
@@ -574,8 +811,9 @@ def render_all_quadrant_closeups(
px = 24
for ptxt, pact in pills:
pw = len(ptxt) * 8 + 20
d.rectangle([px, 40, px + pw, 62], fill=(18, 28, 46) if pact else WELL, outline=GOLD if pact else BORDER)
d.text((px + 10, 44), ptxt, font=f_mono_xs, fill=GOLD if pact else MUTED)
pbox = (px, 40, px + pw, 62)
d.rectangle(list(pbox), fill=(18, 28, 46) if pact else WELL, outline=GOLD if pact else BORDER)
_draw_box_text(d, pbox, ptxt, GOLD if pact else MUTED, pad_x=6, align="center", preferred_size=10)
px += pw + 8
_draw_chamfer_box(d, (24, 70, 334, 182), WELL, CYAN, chamfer=7, pip=CYAN)
d.text((36, 78), "1. Formal Math & Python 3.12", font=f_mono_b, fill=CYAN)
@@ -592,6 +830,7 @@ def render_all_quadrant_closeups(
d.text((36, 196), "4-Ring Zero-Eval AST Trace (?repl=trace • Ring 2 Quota <= 2000 Steps):", font=f_mono_xs, fill=GOLD)
d.text((36, 215), "guile> (prime-factors 666) => Step 1: d=2 -> 333 => Normal Form: (2 3 3 37)", font=f_mono_b, fill=EMERALD)
im.save(out_dir / "quadrant-3-tab-2-math-guile.png", "PNG")
tracked_draws["quadrant-3-tab-2-math-guile.png"] = d
# 8. Quadrant 03 Tab 3: /math/ 2-Col TypeScript & Rust
im, d = _new_canvas()
@@ -628,6 +867,7 @@ def render_all_quadrant_closeups(
col = EMERALD if ln.startswith("//") else TEXT
d.text((360, 84 + idx * 18), ln, font=f_mono_xs, fill=col)
im.save(out_dir / "quadrant-3-tab-3-math-ts-rust.png", "PNG")
tracked_draws["quadrant-3-tab-3-math-ts-rust.png"] = d
# 9. Quadrant 04 Tab 1: /engineering/ DevOps & CLIs
im, d = _new_canvas()
@@ -648,9 +888,9 @@ def render_all_quadrant_closeups(
_draw_chamfer_box(d, (24, 102, 334, 240), WELL, ROSE, chamfer=8, pip=ROSE)
d.text((36, 112), "TWO-SCRIPT OPERATOR INVARIANT", font=f_mono_b, fill=ROSE)
d.rectangle([36, 134, 322, 164], fill=PLATE, outline=BORDER)
d.text((44, 142), "1. ./push-all-to-git-libre-audio.sh", font=f_mono_xs, fill=EMERALD)
_draw_box_text(d, (36, 134, 322, 164), "1. ./push-all-to-git-libre-audio.sh", EMERALD, pad_x=8, preferred_size=11)
d.rectangle([36, 170, 322, 200], fill=PLATE, outline=BORDER)
d.text((44, 178), "2. sudo deploy/sync-vps-repos.sh", font=f_mono_xs, fill=CYAN)
_draw_box_text(d, (36, 170, 322, 200), "2. sudo deploy/sync-vps-repos.sh", CYAN, pad_x=8, preferred_size=11)
d.text((36, 210), "tmpfs RAM • Brotli-11 • 0 /dev/null", font=f_mono_xs, fill=GOLD)
_draw_chamfer_box(d, (346, 102, 656, 240), WELL, CYAN, chamfer=8, pip=CYAN)
cli_hdr = "CLI ENTRYPOINTS [Filter]" if eng_has_cli_filter else "CLI ENTRYPOINTS (pyproject.toml)"
@@ -663,10 +903,9 @@ def render_all_quadrant_closeups(
]
for ci_i, (cname, cmod) in enumerate(clis):
cy_c = 134 + ci_i * 25
d.rectangle([358, cy_c, 644, cy_c + 21], fill=PLATE, outline=BORDER)
d.text((366, cy_c + 3), cname, font=f_mono_b, fill=GOLD)
d.text((492, cy_c + 3), cmod, font=f_mono_xs, fill=TEXT)
_draw_kv_row(d, (358, cy_c, 644, cy_c + 21), cname, cmod, key_size=11, val_size=10, min_val_x=478)
im.save(out_dir / "quadrant-4-operators-deployment-vps.png", "PNG")
tracked_draws["quadrant-4-operators-deployment-vps.png"] = d
# 10. Quadrant 04 Tab 2: Unit E4 MCP, REST & ETag 304 Probe
im, d = _new_canvas()
@@ -675,33 +914,41 @@ def render_all_quadrant_closeups(
_draw_chamfer_box(d, (24, 42, 334, 240), WELL, CYAN, chamfer=8, pip=CYAN)
d.text((36, 52), f"{eng_c.get('mcp_tools', 20)} TOOLS • 14 RESOURCES • 4 PROMPTS", font=f_mono_b, fill=CYAN)
eps = [
("POST /mcp", "JSON-RPC 2.0 Streamable"),
("POST /mcp", "JSON-RPC Streamable"),
("GET /api/v1/status", "Health + CIDv1 ETag"),
("GET /api/v1/quant/*", "24 Tickers + 14 FRED"),
("GET /api/v1/ipld/cid", "RFC 8785 JCS + SHA-256"),
("ProtectSystem=strict", "EROFS Verified (20/20)"),
("GET /api/v1/ipld/cid", "RFC 8785 + SHA-256"),
("ProtectSystem=strict", "EROFS Verified 20/20"),
]
for ei, (ep, edesc) in enumerate(eps):
ey = 78 + ei * 30
d.rectangle([36, ey, 322, ey + 25], fill=PLATE, outline=BORDER)
d.text((44, ey + 5), ep, font=f_mono_b, fill=GOLD)
d.text((184, ey + 5), edesc[:18], font=f_mono_xs, fill=TEXT)
_draw_chamfer_box(d, (346, 42, 656, 240), WELL, EMERALD, chamfer=8, pip=EMERALD)
d.text((360, 52), "LIVE API & ETAG 304 PROBE (#live-smoke-probe)", font=f_mono_b, fill=EMERALD)
d.rectangle([360, 76, 642, 104], fill=(18, 28, 46), outline=EMERALD)
d.text((374, 83), "[ ⚛ Run /api/v1/status & ETag 304 Probe ]", font=f_mono_b, fill=TEXT)
_draw_kv_row(d, (36, ey, 322, ey + 25), ep, edesc, key_size=10, val_size=10, min_val_x=184)
right_e4_box = (346, 42, 656, 240)
_draw_chamfer_box(d, right_e4_box, WELL, EMERALD, chamfer=8, pip=EMERALD)
_draw_box_text(d, right_e4_box, "LIVE API & ETAG 304 PROBE (#live-smoke-probe)", EMERALD, pad_x=12, preferred_size=11, min_size=9, bold=True, y_pos=52)
btn_e4_box = (360, 76, 642, 104)
d.rectangle(list(btn_e4_box), fill=(18, 28, 46), outline=EMERALD)
_draw_box_text(d, btn_e4_box, "[ ⚛ Run /api/v1/status & ETag 304 Probe ]", TEXT, pad_x=8, align="center", preferred_size=11, min_size=9, bold=True)
probe_lines = [
("1st Fetch:", "HTTP 200 OK (4.2 ms)"),
("ETag:", "\"baguqeera7x9m...\""),
("2nd Fetch:", "If-None-Match -> HTTP 304 (0.8 ms)"),
("2nd Fetch:", "If-None-Match -> HTTP 304 (0.8ms)"),
("Isolation:", "ReadOnlyIsolationGuard: PASS"),
]
for pi, (pk, pv) in enumerate(probe_lines):
py_p = 114 + pi * 28
d.rectangle([360, py_p, 642, py_p + 23], fill=PLATE, outline=BORDER)
d.text((368, py_p + 4), pk, font=f_mono_b, fill=GOLD)
d.text((456, py_p + 4), pv, font=f_mono_xs, fill=EMERALD if "304" in pv or "PASS" in pv else TEXT)
_draw_kv_row(
d,
(360, py_p, 642, py_p + 23),
pk,
pv,
key_size=10,
val_size=10,
val_fill=EMERALD if "304" in pv or "PASS" in pv else TEXT,
min_val_x=444,
)
im.save(out_dir / "quadrant-4-tab-2-mcp-etag.png", "PNG")
tracked_draws["quadrant-4-tab-2-mcp-etag.png"] = d
# 11. Quadrant 04 Tab 3: /ci/ 4-Gate Pipeline & P1-P6 Smoke
im, d = _new_canvas()
@@ -710,40 +957,49 @@ def render_all_quadrant_closeups(
_draw_chamfer_box(d, (24, 42, 334, 240), WELL, GOLD, chamfer=8, pip=GOLD)
d.text((36, 52), "4-GATE CI PROVISIONER (db.txt)", font=f_mono_b, fill=GOLD)
gates = [
("Gate A: Format", "ASCII Lowercase Clean [PASS]"),
("Gate B: Phonemic", "CMUdict 126k Purity [PASS]"),
("Gate C: AQ Parity", "Base-36 Sum Lock [PASS]"),
("Gate D: Dedup", f"{db_cnt_str} Unique Rows [PASS]"),
("Gate A: Format", "ASCII Lowercase [PASS]"),
("Gate B: Phonemic", "CMUdict 126k [PASS]"),
("Gate C: AQ Parity", "Base-36 Sum Lock [PASS]"),
("Gate D: Dedup", f"{db_cnt_str} Rows [PASS]"),
]
for gi, (gn, gdesc) in enumerate(gates):
gy = 80 + gi * 36
d.rectangle([36, gy, 322, gy + 30], fill=PLATE, outline=BORDER)
d.text((44, gy + 7), gn, font=f_mono_b, fill=GOLD)
d.text((166, gy + 7), gdesc, font=f_mono_xs, fill=EMERALD)
_draw_kv_row(d, (36, gy, 322, gy + 30), gn, gdesc, key_size=10, val_size=10, val_fill=EMERALD, min_val_x=162)
_draw_chamfer_box(d, (346, 42, 656, 240), WELL, EMERALD, chamfer=8, pip=EMERALD)
d.text((360, 52), "6-GATE PUBLIC SMOKE (P1 - P6)", font=f_mono_b, fill=EMERALD)
p_gates = [
("P1: Static Routes", "78/78 HTTP 200 OK"),
("P1: Static Routes", "83/83 HTTP 200 OK"),
("P2: JSON Registries", "SHA-256 + CIDv1 Lock"),
("P3: REST API v1", "4/4 Endpoints + ETag"),
("P4: MCP JSON-RPC", f"{eng_c.get('mcp_tools', 20)} Tools + 14 Resources"),
("P5/P6: Assets & PDF", "0 /Helvetica • Brotli-11"),
("P4: MCP JSON-RPC", f"{eng_c.get('mcp_tools', 20)} Tools + 14 Res"),
("P5/P6: Assets & PDF", "0 /Helvetica • Brotli"),
]
for pi, (pn, pdesc) in enumerate(p_gates):
py_g = 78 + pi * 30
d.rectangle([360, py_g, 642, py_g + 25], fill=PLATE, outline=BORDER)
d.text((368, py_g + 5), pn, font=f_mono_b, fill=CYAN)
d.text((506, py_g + 5), pdesc, font=f_mono_xs, fill=EMERALD)
_draw_kv_row(d, (360, py_g, 642, py_g + 25), pn, pdesc, key_fill=CYAN, val_fill=EMERALD, key_size=10, val_size=10, min_val_x=496)
im.save(out_dir / "quadrant-4-tab-3-ci-gates.png", "PNG")
tracked_draws["quadrant-4-tab-3-ci-gates.png"] = d
geometry_audit = verify_closeup_geometry(tracked_draws)
live_manifest["geometry_audit"] = geometry_audit
live_manifest["ipld_dag_json_cidv1"] = {"/": compute_dag_json_cidv1({k: v for k, v in live_manifest.items() if k != "ipld_dag_json_cidv1"})}
manifest_path.write_text(json.dumps(live_manifest, indent=2, ensure_ascii=False) + "\n", encoding="utf-8")
# Synchronize untracked mockup directory if present
untracked_closeups = cfg.workspace_root / "untracked" / "homepage-layout-mockups" / "closeups"
if untracked_closeups.is_dir():
for fn in ALL_CLOSEUP_FILENAMES:
src_p = out_dir / fn
if src_p.is_file():
shutil.copy2(src_p, untracked_closeups / fn)
return {
"ok": True,
"rerendered": True,
"ui_elements_fingerprint_sha256": live_manifest["ui_elements_fingerprint_sha256"],
"cidv1": live_manifest["ipld_dag_json_cidv1"]["/"],
"closeup_count": len(ALL_CLOSEUP_FILENAMES),
"geometry_audit": geometry_audit,
"isolation_receipt": guard.audit_receipt(),
}
@@ -412,9 +412,28 @@ def introspect_engineering_manifest(
return manifest
def _render_nav_html(active_slug: str | None, enabled_subpages: list[str], rel_prefix: str) -> str:
def _render_global_nav_html(rel_prefix: str, active_surface: str = "engineering") -> str:
eng_cls = 'btn primary' if active_surface == "engineering" else 'btn'
eng_cur = ' aria-current="page"' if active_surface == "engineering" else ''
math_cls = 'btn primary' if active_surface == "math" else 'btn'
math_cur = ' aria-current="page"' if active_surface == "math" else ''
links = [
f'<a class="btn" href="{rel_prefix}../index.html">Portal Home (/)</a>',
'<a class="btn" href="/calc/index.html">Calculator</a>',
'<a class="btn" href="/quant/index.html" style="border-color:var(--gold);color:var(--gold);">Quant</a>',
'<a class="btn" href="/graph/index.html" style="border-color:var(--cyan);color:var(--cyan);">Graph</a>',
f'<a class="btn" href="{rel_prefix}../learn/index.html" style="border-color:var(--emerald);color:var(--emerald);">Learn</a>',
f'<a class="{eng_cls}"{eng_cur} href="{rel_prefix}../engineering/index.html">Engineering</a>',
f'<a class="{math_cls}"{math_cur} href="{rel_prefix}../math/index.html">Math</a>',
'<span class="nav-donate-sep" aria-hidden="true"></span>',
f'<a class="btn-donate-pill" href="{rel_prefix}../donate/index.html?from={active_surface}" title="Signal Patronage &amp; Open-Instrument Notes (/donate/)">'
'<span class="donate-pill-emblem" aria-hidden="true">&#x2665;</span><span>DONATE</span></a>',
]
return "\n ".join(links)
def _render_nav_html(active_slug: str | None, enabled_subpages: list[str], rel_prefix: str) -> str:
links = [
f'<a class="btn" href="{rel_prefix}index.html" style="border-color:{"var(--gold)" if active_slug is None else "rgba(56,189,248,0.55)"};">Engineering Hub (E0)</a>',
]
direct_pages = enabled_subpages[:6]
@@ -432,14 +451,11 @@ def _render_nav_html(active_slug: str | None, enabled_subpages: list[str], rel_p
href = f"{s}/index.html" if active_slug is None else (f"../{s}/index.html" if s != active_slug else "index.html")
opts.append(f'<option value="{href}">{spec["short_title"]}</option>')
links.append(f'<select class="btn hs-nav-overflow-select" onchange="if(this.value)window.location.href=this.value">{"".join(opts)}</select>')
links.append(f'<a class="btn" href="{rel_prefix}../math/index.html">Math Hub (/math/)</a>')
links.append(_render_polyglot_selector_html())
links.append('<span class="nav-donate-sep" aria-hidden="true"></span>')
links.append(
f'<a class="btn-donate-pill" href="{rel_prefix}../donate/index.html?from=engineering">'
'<span class="donate-pill-emblem" aria-hidden="true">&#x2665;</span><span>DONATE</span></a>'
unit_links_html = "\n ".join(links)
return (
f'<div class="hs-subnav-links">\n {unit_links_html}\n </div>\n'
f' {_render_polyglot_selector_html()}'
)
return "\n ".join(links)
def _render_prereq_box_html(
@@ -472,7 +488,8 @@ def _render_prereq_box_html(
def _render_hub_html(manifest: dict[str, Any], include_guile_lens: bool = True) -> str:
enabled = manifest["enabled_subpages"]
counts = manifest["introspected_counts"]
nav_html = _render_nav_html(None, enabled, "")
global_nav_html = _render_global_nav_html("", "engineering")
subnav_html = _render_nav_html(None, enabled, "")
prereq_html = _render_prereq_box_html(
HUB_PREREQ_LADDER["expertise_level"],
[
@@ -521,11 +538,12 @@ def _render_hub_html(manifest: dict[str, Any], include_guile_lens: bool = True)
* {{ box-sizing: border-box; margin: 0; padding: 0; }}
body {{ font-family: 'DejaVu Sans Mono', ui-monospace, monospace; padding: 1.25rem; line-height: 1.5; }}
.container {{ max-width: 1360px; margin: 0 auto; }}
header {{ padding: 1rem 1.25rem; margin-bottom: 0.9rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.8rem; }}
h1 {{ font-size: 1.12rem; color: var(--gold); }}
.subtitle {{ font-size: 0.72rem; color: var(--text-secondary); margin-top: 0.2rem; }}
.top-nav {{ margin-left: auto; display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; }}
.btn {{ padding: 0.35rem 0.7rem; font-size: 0.72rem; text-decoration: none; font-family: inherit; cursor: pointer; }}
header {{ padding: 1.1rem 1.35rem; margin-bottom: 0.75rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: nowrap; gap: 0.85rem; }}
@media (max-width: 1220px) {{ header {{ flex-wrap: wrap; }} }}
h1 {{ font-size: 0.98rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text-main); }}
.subtitle {{ font-size: 0.71rem; color: var(--text-secondary); margin-top: 0.25rem; }}
.top-nav {{ margin-left: auto; display: flex; gap: 0.38rem; flex-wrap: nowrap; align-items: center; }}
.btn {{ padding: 0.34rem 0.62rem; font-size: 0.7rem; font-weight: 600; text-decoration: none; font-family: inherit; cursor: pointer; }}
.grid-cards {{ display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 0.85rem; margin-bottom: 0.9rem; }}
.stats-row {{ display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.6rem; margin-bottom: 0.9rem; }}
.stat-tile {{ padding: 0.7rem 0.85rem; text-align: center; }}
@@ -538,14 +556,21 @@ def _render_hub_html(manifest: dict[str, Any], include_guile_lens: bool = True)
<div class="container">
<header>
<div>
<h1>HYPERSTITION STUDIO // SOFTWARE ENGINEERING EXPLICATION HUB (UNIT E0)</h1>
<div class="title-row">
<span class="dot" style="background:var(--gold);box-shadow:0 0 10px var(--gold);" aria-hidden="true"></span>
<h1>HYPERSTITION STUDIO // SOFTWARE ENGINEERING EXPLICATION HUB (UNIT E0)</h1>
</div>
<p class="subtitle">Commutative Live-Introspected Architecture &bull; Piecewise &amp; Non-Sequentially Revertible Cartridges &bull; urn:io:hyperstitionstud:engineering:v{CURRENT_VERSION} <span class="hs-sigil-seal" aria-hidden="true">[ &#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; ]</span></p>
</div>
<nav class="top-nav">
{nav_html}
<nav class="top-nav hs-global-nav" aria-label="Primary Ecosystem Navigation">
{global_nav_html}
</nav>
</header>
<nav class="hs-subnav-bar panel hs-plate-g3" aria-label="Unit and Polyglot Sub-Navigation">
{subnav_html}
</nav>
{prereq_html}
{guile_hub_html}
@@ -598,6 +623,7 @@ def _render_hub_html(manifest: dict[str, Any], include_guile_lens: bool = True)
</footer>
</div>
<script src="../assets/hs-matrix-coderain.js?v={CURRENT_VERSION}" defer></script>
<script src="../assets/hs-mobile-ui.js?v={CURRENT_VERSION}" defer></script>
<script src="engineering-manifest-data.js?v={CURRENT_VERSION}"></script>
<script src="engineering-app.js?v={CURRENT_VERSION}"></script>{guile_drawer_html}
</body>
@@ -608,7 +634,8 @@ def _render_hub_html(manifest: dict[str, Any], include_guile_lens: bool = True)
def _render_subpage_html(slug: str, manifest: dict[str, Any], include_guile_lens: bool = True) -> str:
enabled = manifest["enabled_subpages"]
spec = ENGINEERING_SUBPAGE_SPECS[slug]
nav_html = _render_nav_html(slug, enabled, "../")
global_nav_html = _render_global_nav_html("../", "engineering")
subnav_html = _render_nav_html(slug, enabled, "../")
prereq_html = _render_prereq_box_html(spec["expertise_level"], spec["prerequisites"], spec["public_resources"], "../")
guile_sub_html = _render_guile_cartridge_html(slug) if include_guile_lens else ""
guile_drawer_html = _render_guile_repl_drawer_html("../") if include_guile_lens else ""
@@ -672,11 +699,12 @@ def _render_subpage_html(slug: str, manifest: dict[str, Any], include_guile_lens
* {{ box-sizing: border-box; margin: 0; padding: 0; }}
body {{ font-family: 'DejaVu Sans Mono', ui-monospace, monospace; padding: 1.25rem; line-height: 1.5; }}
.container {{ max-width: 1360px; margin: 0 auto; }}
header {{ padding: 1rem 1.25rem; margin-bottom: 0.9rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.8rem; }}
h1 {{ font-size: 1.05rem; color: var(--gold); }}
.subtitle {{ font-size: 0.72rem; color: var(--text-secondary); margin-top: 0.2rem; }}
.top-nav {{ margin-left: auto; display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; }}
.btn {{ padding: 0.35rem 0.7rem; font-size: 0.72rem; text-decoration: none; font-family: inherit; cursor: pointer; }}
header {{ padding: 1.1rem 1.35rem; margin-bottom: 0.75rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: nowrap; gap: 0.85rem; }}
@media (max-width: 1220px) {{ header {{ flex-wrap: wrap; }} }}
h1 {{ font-size: 0.98rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text-main); }}
.subtitle {{ font-size: 0.71rem; color: var(--text-secondary); margin-top: 0.25rem; }}
.top-nav {{ margin-left: auto; display: flex; gap: 0.38rem; flex-wrap: nowrap; align-items: center; }}
.btn {{ padding: 0.34rem 0.62rem; font-size: 0.7rem; font-weight: 600; text-decoration: none; font-family: inherit; cursor: pointer; }}
footer {{ margin-top: 1rem; padding-top: 0.8rem; border-top: 1px solid var(--border); text-align: center; font-size: 0.72rem; color: var(--text-secondary); }}
</style>
</head>
@@ -684,14 +712,21 @@ def _render_subpage_html(slug: str, manifest: dict[str, Any], include_guile_lens
<div class="container">
<header>
<div>
<h1>{spec["title"]}</h1>
<div class="title-row">
<span class="dot" style="background:var(--gold);box-shadow:0 0 10px var(--gold);" aria-hidden="true"></span>
<h1>{spec["title"]}</h1>
</div>
<p class="subtitle">Cartridge {spec["unit_id"]} &bull; Non-Sequentially Revertible via <code>hs-eng-docs --disable {slug}</code> &bull; v{CURRENT_VERSION} <span class="hs-sigil-seal" aria-hidden="true">[ &#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; ]</span></p>
</div>
<nav class="top-nav">
{nav_html}
<nav class="top-nav hs-global-nav" aria-label="Primary Ecosystem Navigation">
{global_nav_html}
</nav>
</header>
<nav class="hs-subnav-bar panel hs-plate-g3" aria-label="Unit and Polyglot Sub-Navigation">
{subnav_html}
</nav>
{prereq_html}
{guile_sub_html}
{secs_html}
@@ -706,6 +741,7 @@ def _render_subpage_html(slug: str, manifest: dict[str, Any], include_guile_lens
</footer>
</div>
<script src="../../assets/hs-matrix-coderain.js?v={CURRENT_VERSION}" defer></script>
<script src="../../assets/hs-mobile-ui.js?v={CURRENT_VERSION}" defer></script>
<script src="../engineering-manifest-data.js?v={CURRENT_VERSION}"></script>
<script src="../engineering-app.js?v={CURRENT_VERSION}"></script>{guile_drawer_html}
</body>
+50 -28
View File
@@ -329,7 +329,6 @@ def introspect_math_manifest(
def _render_math_nav_html(active_slug: str | None, enabled_subpages: list[str], rel_prefix: str) -> str:
links = [
f'<a class="btn" href="{rel_prefix}../index.html">Portal Home (/)</a>',
f'<a class="btn" href="{rel_prefix}index.html" style="border-color:{"var(--gold)" if active_slug is None else "rgba(56,189,248,0.55)"};">Math Hub (M0)</a>',
]
direct_pages = enabled_subpages[:6]
@@ -349,14 +348,11 @@ def _render_math_nav_html(active_slug: str | None, enabled_subpages: list[str],
links.append(f'<select class="btn hs-nav-overflow-select" onchange="if(this.value)window.location.href=this.value">{"".join(opts)}</select>')
from hyperstitionstud_io.publishing.engineering_docs import _render_polyglot_selector_html
links.append(f'<a class="btn" href="{rel_prefix}../engineering/index.html">Engineering Hub (/engineering/)</a>')
links.append(_render_polyglot_selector_html())
links.append('<span class="nav-donate-sep" aria-hidden="true"></span>')
links.append(
f'<a class="btn-donate-pill" href="{rel_prefix}../donate/index.html?from=math">'
'<span class="donate-pill-emblem" aria-hidden="true">&#x2665;</span><span>DONATE</span></a>'
unit_links_html = "\n ".join(links)
return (
f'<div class="hs-subnav-links">\n {unit_links_html}\n </div>\n'
f' {_render_polyglot_selector_html()}'
)
return "\n ".join(links)
def _render_math_prereq_html(level_str: str, prereqs: list[str], resources: list[dict[str, Any]], rel_prefix: str) -> str:
@@ -373,12 +369,16 @@ def _render_math_prereq_html(level_str: str, prereqs: list[str], resources: list
def _render_math_hub_html(manifest: dict[str, Any], include_guile_lens: bool = True) -> str:
from hyperstitionstud_io.publishing.engineering_docs import _render_guile_repl_drawer_html
from hyperstitionstud_io.publishing.engineering_docs import (
_render_global_nav_html,
_render_guile_repl_drawer_html,
)
enabled = manifest["enabled_subpages"]
inv = manifest["algebraic_invariants"]
emp = manifest["empirical_counts"]
nav_html = _render_math_nav_html(None, enabled, "")
global_nav_html = _render_global_nav_html("", "math")
subnav_html = _render_math_nav_html(None, enabled, "")
prereq_html = _render_math_prereq_html(
MATH_HUB_PREREQ_LADDER["expertise_level"],
[
@@ -422,11 +422,12 @@ def _render_math_hub_html(manifest: dict[str, Any], include_guile_lens: bool = T
* {{ box-sizing: border-box; margin: 0; padding: 0; }}
body {{ font-family: 'DejaVu Sans Mono', ui-monospace, monospace; padding: 1.25rem; line-height: 1.5; }}
.container {{ max-width: 1360px; margin: 0 auto; }}
header {{ padding: 1rem 1.25rem; margin-bottom: 0.9rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.8rem; }}
h1 {{ font-size: 1.12rem; color: var(--gold); }}
.subtitle {{ font-size: 0.72rem; color: var(--text-secondary); margin-top: 0.2rem; }}
.top-nav {{ margin-left: auto; display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; }}
.btn {{ padding: 0.35rem 0.7rem; font-size: 0.72rem; text-decoration: none; font-family: inherit; cursor: pointer; }}
header {{ padding: 1.1rem 1.35rem; margin-bottom: 0.75rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: nowrap; gap: 0.85rem; }}
@media (max-width: 1220px) {{ header {{ flex-wrap: wrap; }} }}
h1 {{ font-size: 0.98rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text-main); }}
.subtitle {{ font-size: 0.71rem; color: var(--text-secondary); margin-top: 0.25rem; }}
.top-nav {{ margin-left: auto; display: flex; gap: 0.38rem; flex-wrap: nowrap; align-items: center; }}
.btn {{ padding: 0.34rem 0.62rem; font-size: 0.7rem; font-weight: 600; text-decoration: none; font-family: inherit; cursor: pointer; }}
.grid-cards {{ display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 0.85rem; margin-bottom: 0.9rem; }}
.stats-row {{ display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 0.6rem; margin-bottom: 0.9rem; }}
.stat-tile {{ padding: 0.7rem 0.85rem; text-align: center; }}
@@ -437,14 +438,21 @@ def _render_math_hub_html(manifest: dict[str, Any], include_guile_lens: bool = T
<div class="container">
<header>
<div>
<h1>HYPERSTITION STUDIO // MATHEMATICAL FOUNDATIONS &amp; QUANTITATIVE SEMIOTICS HUB (UNIT M0)</h1>
<div class="title-row">
<span class="dot" style="background:var(--gold);box-shadow:0 0 10px var(--gold);" aria-hidden="true"></span>
<h1>HYPERSTITION STUDIO // MATHEMATICAL FOUNDATIONS &amp; QUANTITATIVE SEMIOTICS HUB (UNIT M0)</h1>
</div>
<p class="subtitle">Zero-CDN Native Unicode Math &bull; Commutative Empirical Introspection &bull; Piecewise &amp; Non-Sequentially Revertible &bull; urn:io:hyperstitionstud:math:v{CURRENT_VERSION} <span class="hs-sigil-seal" aria-hidden="true">[ &#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; ]</span></p>
</div>
<nav class="top-nav">
{nav_html}
<nav class="top-nav hs-global-nav" aria-label="Primary Ecosystem Navigation">
{global_nav_html}
</nav>
</header>
<nav class="hs-subnav-bar panel hs-plate-g3" aria-label="Unit and Polyglot Sub-Navigation">
{subnav_html}
</nav>
{prereq_html}
{guile_hub_html}
@@ -465,6 +473,7 @@ def _render_math_hub_html(manifest: dict[str, Any], include_guile_lens: bool = T
</footer>
</div>
<script src="../assets/hs-matrix-coderain.js?v={CURRENT_VERSION}" defer></script>
<script src="../assets/hs-mobile-ui.js?v={CURRENT_VERSION}" defer></script>
<script src="math-manifest-data.js?v={CURRENT_VERSION}"></script>
<script src="math-app.js?v={CURRENT_VERSION}"></script>{guile_drawer_html}
</body>
@@ -473,11 +482,15 @@ def _render_math_hub_html(manifest: dict[str, Any], include_guile_lens: bool = T
def _render_math_subpage_html(slug: str, manifest: dict[str, Any], include_guile_lens: bool = True) -> str:
from hyperstitionstud_io.publishing.engineering_docs import _render_guile_repl_drawer_html
from hyperstitionstud_io.publishing.engineering_docs import (
_render_global_nav_html,
_render_guile_repl_drawer_html,
)
enabled = manifest["enabled_subpages"]
spec = MATH_SUBPAGE_SPECS[slug]
nav_html = _render_math_nav_html(slug, enabled, "../")
global_nav_html = _render_global_nav_html("../", "math")
subnav_html = _render_math_nav_html(slug, enabled, "../")
prereq_html = _render_math_prereq_html(spec["expertise_level"], spec["prerequisites"], spec["public_resources"], "../")
guile_sub_html = _render_math_guile_cartridge_html(slug) if include_guile_lens else ""
guile_drawer_html = _render_guile_repl_drawer_html("../") if include_guile_lens else ""
@@ -506,11 +519,12 @@ def _render_math_subpage_html(slug: str, manifest: dict[str, Any], include_guile
* {{ box-sizing: border-box; margin: 0; padding: 0; }}
body {{ font-family: 'DejaVu Sans Mono', ui-monospace, monospace; padding: 1.25rem; line-height: 1.5; }}
.container {{ max-width: 1360px; margin: 0 auto; }}
header {{ padding: 1rem 1.25rem; margin-bottom: 0.9rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.8rem; }}
h1 {{ font-size: 1.05rem; color: var(--gold); }}
.subtitle {{ font-size: 0.72rem; color: var(--text-secondary); margin-top: 0.2rem; }}
.top-nav {{ margin-left: auto; display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; }}
.btn {{ padding: 0.35rem 0.7rem; font-size: 0.72rem; text-decoration: none; font-family: inherit; cursor: pointer; }}
header {{ padding: 1.1rem 1.35rem; margin-bottom: 0.75rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: nowrap; gap: 0.85rem; }}
@media (max-width: 1220px) {{ header {{ flex-wrap: wrap; }} }}
h1 {{ font-size: 0.98rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text-main); }}
.subtitle {{ font-size: 0.71rem; color: var(--text-secondary); margin-top: 0.25rem; }}
.top-nav {{ margin-left: auto; display: flex; gap: 0.38rem; flex-wrap: nowrap; align-items: center; }}
.btn {{ padding: 0.34rem 0.62rem; font-size: 0.7rem; font-weight: 600; text-decoration: none; font-family: inherit; cursor: pointer; }}
footer {{ margin-top: 1rem; padding-top: 0.8rem; border-top: 1px solid var(--border); text-align: center; font-size: 0.72rem; color: var(--text-secondary); }}
</style>
</head>
@@ -518,14 +532,21 @@ def _render_math_subpage_html(slug: str, manifest: dict[str, Any], include_guile
<div class="container">
<header>
<div>
<h1>{spec["title"]}</h1>
<div class="title-row">
<span class="dot" style="background:var(--gold);box-shadow:0 0 10px var(--gold);" aria-hidden="true"></span>
<h1>{spec["title"]}</h1>
</div>
<p class="subtitle">Cartridge {spec["unit_id"]} &bull; Non-Sequentially Revertible via <code>hs-math-docs --disable {slug}</code> &bull; v{CURRENT_VERSION} <span class="hs-sigil-seal" aria-hidden="true">[ &#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; ]</span></p>
</div>
<nav class="top-nav">
{nav_html}
<nav class="top-nav hs-global-nav" aria-label="Primary Ecosystem Navigation">
{global_nav_html}
</nav>
</header>
<nav class="hs-subnav-bar panel hs-plate-g3" aria-label="Unit and Polyglot Sub-Navigation">
{subnav_html}
</nav>
{prereq_html}
{guile_sub_html}
{secs_html}
@@ -540,6 +561,7 @@ def _render_math_subpage_html(slug: str, manifest: dict[str, Any], include_guile
</footer>
</div>
<script src="../../assets/hs-matrix-coderain.js?v={CURRENT_VERSION}" defer></script>
<script src="../../assets/hs-mobile-ui.js?v={CURRENT_VERSION}" defer></script>
<script src="../math-manifest-data.js?v={CURRENT_VERSION}"></script>
<script src="../math-app.js?v={CURRENT_VERSION}"></script>{guile_drawer_html}
</body>
+1 -1
View File
@@ -684,7 +684,7 @@ def build_financial_quant_harvest(
payload: dict[str, Any] = {
"$schema": "./schemas/v1/financial-aq-harvest.schema.json",
"$id": "urn:io:hyperstitionstud:schema:v1:financial-aq-harvest",
"version": "2.15.0",
"version": "2.17.0",
"target_date_utc": datetime.datetime.now(datetime.timezone.utc).strftime("%Y-%m-%d"),
"harvest_mode": harvest_mode,
"synthetic_data_eliminated": True,
+19 -1
View File
@@ -324,6 +324,7 @@ def get_version_targets(ws_root: Path | None = None) -> list[tuple[Path, list[tu
(rf'graph-data\.js\?v={SEMVER_RE}', "graph-data.js?v={V}"),
(rf'hs-group3-basalt-chamfer\.css\?v={SEMVER_RE}', "hs-group3-basalt-chamfer.css?v={V}"),
(rf'hs-matrix-coderain\.js\?v={SEMVER_RE}', "hs-matrix-coderain.js?v={V}"),
(rf'hs-mobile-ui\.js\?v={SEMVER_RE}', "hs-mobile-ui.js?v={V}"),
],
),
(
@@ -333,6 +334,7 @@ def get_version_targets(ws_root: Path | None = None) -> list[tuple[Path, list[tu
(rf'learn-app\.js\?v={SEMVER_RE}', "learn-app.js?v={V}"),
(rf'hs-group3-basalt-chamfer\.css\?v={SEMVER_RE}', "hs-group3-basalt-chamfer.css?v={V}"),
(rf'hs-matrix-coderain\.js\?v={SEMVER_RE}', "hs-matrix-coderain.js?v={V}"),
(rf'hs-mobile-ui\.js\?v={SEMVER_RE}', "hs-mobile-ui.js?v={V}"),
],
),
(
@@ -353,6 +355,7 @@ def get_version_targets(ws_root: Path | None = None) -> list[tuple[Path, list[tu
(rf'quant-tutorials\.js\?v={SEMVER_RE}', "quant-tutorials.js?v={V}"),
(rf'hs-group3-basalt-chamfer\.css\?v={SEMVER_RE}', "hs-group3-basalt-chamfer.css?v={V}"),
(rf'hs-matrix-coderain\.js\?v={SEMVER_RE}', "hs-matrix-coderain.js?v={V}"),
(rf'hs-mobile-ui\.js\?v={SEMVER_RE}', "hs-mobile-ui.js?v={V}"),
],
),
(
@@ -375,12 +378,15 @@ def get_version_targets(ws_root: Path | None = None) -> list[tuple[Path, list[tu
(rf'hyperstitionstud\.io/donate v{SEMVER_RE}', "hyperstitionstud.io/donate v{V}"),
(rf'hs-group3-basalt-chamfer\.css\?v={SEMVER_RE}', "hs-group3-basalt-chamfer.css?v={V}"),
(rf'hs-matrix-coderain\.js\?v={SEMVER_RE}', "hs-matrix-coderain.js?v={V}"),
(rf'hs-mobile-ui\.js\?v={SEMVER_RE}', "hs-mobile-ui.js?v={V}"),
],
),
(
core / "site" / "gallery" / "index.html",
[
(rf'urn:io:hyperstitionstud:gallery:{SEMVER_RE}\)', "urn:io:hyperstitionstud:gallery:{V})"),
(rf'hs-group3-basalt-chamfer\.css\?v={SEMVER_RE}', "hs-group3-basalt-chamfer.css?v={V}"),
(rf'hs-mobile-ui\.js\?v={SEMVER_RE}', "hs-mobile-ui.js?v={V}"),
],
),
(
@@ -410,6 +416,8 @@ def get_version_targets(ws_root: Path | None = None) -> list[tuple[Path, list[tu
(rf'Zero Glossary Leak(?: &bull; v{SEMVER_RE})?</p>', "Zero Glossary Leak &bull; v{V}</p>"),
(rf'(?:hyperstitionstud\.io/graph v{SEMVER_RE} &bull; )?Made with <span class="hs-heart"', "hyperstitionstud.io/graph v{V} &bull; Made with <span class=\"hs-heart\""),
(rf'graph-data\.js\?v={SEMVER_RE}', "graph-data.js?v={V}"),
(rf'hs-group3-basalt-chamfer\.css\?v={SEMVER_RE}', "hs-group3-basalt-chamfer.css?v={V}"),
(rf'hs-mobile-ui\.js\?v={SEMVER_RE}', "hs-mobile-ui.js?v={V}"),
],
),
(
@@ -441,6 +449,16 @@ def get_version_targets(ws_root: Path | None = None) -> list[tuple[Path, list[tu
calc / "index.html",
[
(rf'(?:hyperstitionstud\.io/calc v{SEMVER_RE} &bull; )?Made with <span class="hs-heart"', "hyperstitionstud.io/calc v{V} &bull; Made with <span class=\"hs-heart\""),
(rf'hs-group3-basalt-chamfer\.css\?v={SEMVER_RE}', "hs-group3-basalt-chamfer.css?v={V}"),
(rf'hs-matrix-coderain\.js\?v={SEMVER_RE}', "hs-matrix-coderain.js?v={V}"),
(rf'hs-mobile-ui\.js\?v={SEMVER_RE}', "hs-mobile-ui.js?v={V}"),
],
),
(
cfg.paths["archive_dir"] / "packaging" / "rpm" / "ingglish-isopsephic-exegesis.spec",
[
(rf'Version:\s+{SEMVER_RE}', "Version: {V}"),
(rf'<ops@hyperstitionstud\.io>\s*-\s*{SEMVER_RE}-1', "<ops@hyperstitionstud.io> - {V}-1"),
],
),
]
@@ -464,7 +482,7 @@ def sync_workspace_version(target_version: str, check_only: bool = False, ws_roo
for pat_re, repl_tmpl in patterns:
repl = repl_tmpl.replace("{V}", v)
updated = re.sub(pat_re, repl, updated, flags=re.M)
if f"v{v}" not in updated and f'"{v}"' not in updated and f":{v}" not in updated:
if f"v{v}" not in updated and f'"{v}"' not in updated and f":{v}" not in updated and f" {v}" not in updated:
mismatched_files.append(str(path))
elif updated != orig:
if check_only:
+17
View File
@@ -1364,6 +1364,23 @@ def test_ipld_quant_and_mcp_server() -> None:
assert "Nvidia" in norm_p and "A S M L" in norm_p and "C I D version 1" in norm_p and "basis points" in norm_p
assert "createBiquadFilter" in (cfg.core_dir / "site" / "quant" / "quant-tutorials.js").read_text(encoding="utf-8")
# Verify Plan #61: Homepage UI Quadrant Closeup Bounding-Box Containment & Geometry Audit (Invariants B1-B3)
closeups_man_p = cfg.core_dir / "site" / "assets" / "closeups" / "ui-elements-manifest.json"
assert closeups_man_p.is_file()
closeups_man_obj = json.loads(closeups_man_p.read_text(encoding="utf-8"))
geom_audit = closeups_man_obj.get("geometry_audit") or {}
assert geom_audit.get("all_clean") is True, f"Closeup geometry audit not clean: {geom_audit}"
assert geom_audit.get("breach_count") == 0
assert geom_audit.get("border_crossing_count") == 0
assert geom_audit.get("text_overlap_count") == 0
# Verify Plan #63 & Plan #65: Homepage Navigation Immutability + Intra-Page & Cross-Page UI Style/Font/Background Parity (Gates S1-S3)
from hyperstitionstud_io.ci.public_regression import verify_ui_style_and_navigation_consistency
style_audit = verify_ui_style_and_navigation_consistency(workspace_root=cfg.workspace_root)
assert style_audit["ok"] is True, f"UI style and navigation consistency audit failed: {style_audit}"
assert all(style_audit["gates"].values()), f"Style gates failed: {style_audit['gates']}"
# Verify PLAN-INTROSPECTIVE-PROTECT-SYSTEM-STRICT-EROFS-TEST-HARNESS
from hyperstitionstud_io.ci.erofs_harness import run_introspective_erofs_suite
+1 -1
View File
@@ -1,6 +1,6 @@
# workspace.example.toml — Location-Independent Workspace Configuration Template (v1.2.0)
# Copy to your parent workspace folder: cp hyperstitionstudio-core/workspace.example.toml ./workspace.toml
schema_version = "2.15.0"
schema_version = "2.17.0"
namespace_urn = "urn:io:hyperstitionstud"
[paths]