Compare commits

..
2 Commits
54 changed files with 1554 additions and 647 deletions

No files matched your search

+6 -6
View File
@@ -1,11 +1,11 @@
# `hyperstitionstudio-core` (`hyperstitionstud_io.*` — `v2.14.0`)
# `hyperstitionstudio-core` (`hyperstitionstud_io.*` — `v2.16.0`)
<!-- HS-COMMIT-STATUS:START -->
> **Gitea Commit & Release Telemetry (`v2.14.0` • Namespace `urn:io:hyperstitionstud`)**
> **Gitea Commit & Release Telemetry (`v2.16.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.14.0 release state across 3 tracked module/artifact surface(s)
> - **Touched Files / Surfaces:** `deploy/sync-vps-repos.sh`, `src/hyperstitionstud_io/ci/deploy_scripts_sync.py`, `src/hyperstitionstud_io/version_sync.py`
> - **Live Verified Ecosystem Metrics (`v2.14.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.16.0 release state across 51 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-1-tab-2-graph.png` (+43 more)
> - **Live Verified Ecosystem Metrics (`v2.16.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.14.0`)
## Key Architecture & Capabilities (`v2.16.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`.
+1 -1
View File
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
# /workspace/push-all-to-git-libre-audio.sh
# Release v2.14.0: Pre-push verification & topological push of all 6 repositories to git.libre.audio.
# Release v2.16.0: Pre-push verification & topological push of all 6 repositories to git.libre.audio.
set -euo pipefail
on_error() {
+13 -10
View File
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
# /workspace/hyperstitionstudio-core/deploy/sync-vps-repos.sh
# Release v2.14.0: Self-re-executing tmpfs VPS hydration & service sync.
# Release v2.16.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
@@ -202,19 +202,22 @@ ${LIVE_SUDO} ln -sfn "hyperstitionstudio-core/site/assets" "${LIVE_REPOS}/assets
${LIVE_SUDO} ln -sfn "hyperstitionstudio-core/site/learn" "${LIVE_REPOS}/learn"
${LIVE_SUDO} ln -sfn "hyperstitionstudio-core/site/quant" "${LIVE_REPOS}/quant"
${LIVE_SUDO} ln -sfn "hyperstitionstudio-core/site/donate" "${LIVE_REPOS}/donate"
echo "[3b/5] Generating untracked deploy-time /quant/audio/*.wav spoken voice tracks (Strategy 1A, 0 audio files in Git)..."
if [[ -z "$(type -P espeak-ng || true)" ]] && [[ -z "$(type -P espeak || true)" ]] && [[ "${DO_CADDY}" -eq 1 ]]; then
if [[ -n "$(type -P dnf || true)" ]]; then
echo " -> Installing espeak-ng via dnf for natural spoken English tour narration..."
${SUDO} dnf install -y -q espeak-ng || true
elif [[ -n "$(type -P apt-get || true)" ]]; then
echo " -> Installing espeak-ng via apt-get for natural spoken English tour narration..."
${SUDO} env DEBIAN_FRONTEND=noninteractive apt-get install -y -qq espeak-ng || true
echo "[3b/5] Generating untracked deploy-time /quant/audio/*.wav spoken voice tracks (Strategies 1A & 2A: flite kal16 + background slt upgrade, 0 audio files in Git)..."
if [[ -z "$(type -P flite || true)" ]] || [[ -z "$(type -P espeak-ng || true)" ]]; then
if [[ "${DO_CADDY}" -eq 1 ]]; then
if [[ -n "$(type -P dnf || true)" ]]; then
echo " -> Installing flite & espeak-ng via dnf for natural spoken English tour narration..."
${SUDO} dnf install -y -q flite espeak-ng || true
elif [[ -n "$(type -P apt-get || true)" ]]; then
echo " -> Installing flite & espeak-ng via apt-get for natural spoken English tour narration..."
${SUDO} env DEBIAN_FRONTEND=noninteractive apt-get install -y -qq flite espeak-ng || true
fi
fi
fi
run_checked "hs-quant-voice-build" ${LIVE_SUDO} env PYTHONPATH="${REPOS_ROOT}/hyperstitionstudio-core/src" "${PYTHON_BIN}" -m hyperstitionstud_io.publishing.quant_voice \
--workspace-root "${REPOS_ROOT}" \
--out-dir "${LIVE_REPOS}/hyperstitionstudio-core/site/quant/audio"
--out-dir "${LIVE_REPOS}/hyperstitionstudio-core/site/quant/audio" \
--upgrade-slt-background
if [[ -d "${LIVE_REPOS}/hyperstitionstudio-core/site/engineering" ]]; then
${LIVE_SUDO} ln -sfn "hyperstitionstudio-core/site/engineering" "${LIVE_REPOS}/engineering"
fi
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@hyperstitionstud.io/workspace-core",
"version": "2.14.0",
"version": "2.16.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.14.0",
"version": "2.16.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.14.0"
version = "2.16.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.14.0",
"namespace_urn": "urn:io:hyperstitionstud:gallery:2.14.0",
"version": "2.16.0",
"namespace_urn": "urn:io:hyperstitionstud:gallery:2.16.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

+43 -16
View File
@@ -1,6 +1,6 @@
{
"$id": "urn:io:hyperstitionstud:closeups-ui-manifest",
"ui_elements_fingerprint_sha256": "2573b3d2e4dec4dd6c14ac904954fb35b63f3f0b1e44ec986a655959ea805352",
"ui_elements_fingerprint_sha256": "86b84c09bdef694364e6272c5e3be7b3201da28ea0d515e54238cfadc5cbd307",
"closeup_images": [
"quadrant-1-cybermemetics-calc-graph.png",
"quadrant-1-tab-2-graph.png",
@@ -24,7 +24,7 @@
},
"engineering_counts": {
"repositories": 6,
"cli_entrypoints": 19,
"cli_entrypoints": 20,
"mcp_tools": 20,
"rest_domain_aliases": 12,
"enabled_lenses": 6,
@@ -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,8 +507,8 @@
]
},
"graph": {
"ui_structure_sha256": "771d70e8e41e4f466d29b04274b3403753f82c7a8e8680ba5c8a732b2b00fd29",
"id_count": 16,
"ui_structure_sha256": "8079dbb08ce7149fbbb482829dd8628ac0d7d6ad0625b284fe02d92c0642be2d",
"id_count": 24,
"button_count": 6,
"option_count": 11,
"input_count": 1,
@@ -518,6 +519,14 @@
"flagFilter",
"flexPills",
"graphCanvas",
"graphNavCalc",
"graphNavDonate",
"graphNavEng",
"graphNavHome",
"graphNavLearn",
"graphNavMath",
"graphNavQuant",
"graphNavSelf",
"hudStats",
"inspBadges",
"inspBody",
@@ -563,12 +572,12 @@
]
},
"calc": {
"ui_structure_sha256": "a955885aeba700ece09389b80de203aff79128b8bb153d22b69993bd7ab528a6",
"id_count": 26,
"ui_structure_sha256": "b12869b3987b92b014ca25a0b18e75728df5ce2cefb5666d404af4a927f2dbb9",
"id_count": 35,
"button_count": 0,
"option_count": 0,
"input_count": 1,
"heading_count": 0,
"heading_count": 1,
"ids": [
"BreakdownDetails",
"BreakdownSpot",
@@ -578,6 +587,14 @@
"autoMatchBtn",
"calcLogo",
"calcMain",
"calcNavDonate",
"calcNavEng",
"calcNavGraph",
"calcNavHome",
"calcNavLearn",
"calcNavMath",
"calcNavQuant",
"calcNavSelf",
"calcOptionsPanel",
"canv",
"clearFilterButton",
@@ -589,6 +606,7 @@
"enterPhraseBtn",
"highlightBox",
"hltModeBtn",
"hsCalcHeader",
"hsGlobalFooter",
"inputArea",
"loadPanel",
@@ -602,7 +620,9 @@
],
"sample_buttons": [],
"sample_options": [],
"sample_headings": []
"sample_headings": [
"HYPERSTITIONSTUD.IO/CALC // HAIPERDOHPJEMATREEAH WORKBENCH"
]
}
},
"js_surfaces": {
@@ -779,6 +799,13 @@
}
},
"ipld_dag_json_cidv1": {
"/": "baguqeerar7ht56v56xlv3fpjna2a7cg7bepjvt4fjk2neckepnup24yqjwjq"
"/": "baguqeera5baatrlchklvtiktsriydquwppzhgrlkp2rc5zy2xcdkx574uchq"
},
"geometry_audit": {
"all_clean": true,
"checked_closeups": 11,
"breach_count": 0,
"border_crossing_count": 0,
"text_overlap_count": 0
}
}
+76
View File
@@ -611,3 +611,79 @@ html[data-sigil-accents="off"] .panel::after {
.closeup-bar-cta:hover {
text-decoration: underline;
}
/* ==========================================================================
Unified Cross-Page Navigation UI (Plan #63 — Matching Immutable 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: #1e293b;
color: #f8fafc;
border: 1px solid #334155;
border-radius: 5px;
padding: 0.34rem 0.62rem;
font-size: 0.7rem;
font-weight: 600;
white-space: nowrap;
font-family: 'DejaVu Sans Mono', 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
transition: all 0.15s ease;
}
.top-nav.hs-global-nav .btn:hover {
border-color: var(--cyan) !important;
color: var(--cyan) !important;
}
.top-nav.hs-global-nav .btn.primary {
background: #22d3ee !important;
color: #020617 !important;
border-color: #22d3ee !important;
}
.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;
}
+29 -21
View File
@@ -4,7 +4,7 @@
<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.14.0" />
<link rel="stylesheet" href="../assets/hs-group3-basalt-chamfer.css?v=2.16.0" />
<style>
:root {
--bg-canvas: #020617;
@@ -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.14.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.16.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.14.0 &bull; 100% Static &amp; Offline-Portable &bull; Zero External Trackers</div>
<div>hyperstitionstud.io/donate v2.16.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.14.0" defer></script>
<script src="../assets/hs-matrix-coderain.js?v=2.16.0" defer></script>
<script>
(function () {
"use strict";
@@ -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.14.0)</title>
<link rel="stylesheet" href="../../assets/hs-group3-basalt-chamfer.css?v=2.14.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.16.0)</title>
<link rel="stylesheet" href="../../assets/hs-group3-basalt-chamfer.css?v=2.16.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(--gold); }
.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.14.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.16.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,12 @@
</div>
<footer>
hyperstitionstud.io/engineering/cicd-vps-tmpfs-and-regression v2.14.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.16.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.14.0" defer></script>
<script src="../engineering-manifest-data.js?v=2.14.0"></script>
<script src="../engineering-app.js?v=2.14.0"></script>
<script src="../../assets/hs-matrix-coderain.js?v=2.16.0" defer></script>
<script src="../engineering-manifest-data.js?v=2.16.0"></script>
<script src="../engineering-app.js?v=2.16.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 +106,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.14.0"></script>
<script src="../../assets/hs-guile-scheme-repl.js?v=2.16.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.14.0)</title>
<link rel="stylesheet" href="../../assets/hs-group3-basalt-chamfer.css?v=2.14.0" />
<title>Unit E1: Base-36 AQ Ciphers, Offline CMUdict Phonetics & Bidirectional Lock Evaluation — hyperstitionstud.io/engineering (v2.16.0)</title>
<link rel="stylesheet" href="../../assets/hs-group3-basalt-chamfer.css?v=2.16.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(--gold); }
.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.14.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.16.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,12 @@
</div>
<footer>
hyperstitionstud.io/engineering/ciphers-and-phonetics v2.14.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.16.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.14.0" defer></script>
<script src="../engineering-manifest-data.js?v=2.14.0"></script>
<script src="../engineering-app.js?v=2.14.0"></script>
<script src="../../assets/hs-matrix-coderain.js?v=2.16.0" defer></script>
<script src="../engineering-manifest-data.js?v=2.16.0"></script>
<script src="../engineering-app.js?v=2.16.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 +106,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.14.0"></script>
<script src="../../assets/hs-guile-scheme-repl.js?v=2.16.0"></script>
</body>
</html>
@@ -1 +1 @@
window.HYPERSTITION_ENGINEERING_MANIFEST = {"$id": "urn:io:hyperstitionstud:engineering-manifest", "version": "2.14.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.16.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.14.0",
"version": "2.16.0",
"enabled_subpages": [
"ciphers-and-phonetics",
"knowledge-graph-and-sqlite",
@@ -358,6 +358,6 @@
}
},
"ipld_dag_json_cidv1": {
"/": "baguqeeranwhwd62zhuqpvv7bsjzyboakugquyjhaudkixto5zpcd2afksjla"
"/": "baguqeeraxx6unjcwwf63hifataibu5q3hq6xeswnw5yits3nxjlvh5tfzqia"
}
}
+35 -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.14.0)</title>
<link rel="stylesheet" href="../assets/hs-group3-basalt-chamfer.css?v=2.14.0" />
<title>Software Engineering Explication Hub — hyperstitionstud.io/engineering (v2.16.0)</title>
<link rel="stylesheet" href="../assets/hs-group3-basalt-chamfer.css?v=2.16.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(--gold); }
.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.14.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.16.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,12 @@ cid = compute_dag_json_cidv1(manifest)</pre></div><div class="hs-guile-box hs-la
</section>
<footer>
hyperstitionstud.io/engineering v2.14.0 &bull; CIDv1: <code>baguqeeranwhwd62zhuqpvv7bsjzyboakugq...</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.16.0 &bull; CIDv1: <code>baguqeeraxx6unjcwwf63hifataibu5q3hq6...</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.14.0" defer></script>
<script src="engineering-manifest-data.js?v=2.14.0"></script>
<script src="engineering-app.js?v=2.14.0"></script>
<script src="../assets/hs-matrix-coderain.js?v=2.16.0" defer></script>
<script src="engineering-manifest-data.js?v=2.16.0"></script>
<script src="engineering-app.js?v=2.16.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 +150,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.14.0"></script>
<script src="../assets/hs-guile-scheme-repl.js?v=2.16.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.14.0)</title>
<link rel="stylesheet" href="../../assets/hs-group3-basalt-chamfer.css?v=2.14.0" />
<title>Unit E2: 6-Gate 388-Node Knowledge Graph Compiler, ReadOnlyIsolationGuard & Quiescent SQLite + FTS5 Engine — hyperstitionstud.io/engineering (v2.16.0)</title>
<link rel="stylesheet" href="../../assets/hs-group3-basalt-chamfer.css?v=2.16.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(--gold); }
.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.14.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.16.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,12 @@
</div>
<footer>
hyperstitionstud.io/engineering/knowledge-graph-and-sqlite v2.14.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.16.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.14.0" defer></script>
<script src="../engineering-manifest-data.js?v=2.14.0"></script>
<script src="../engineering-app.js?v=2.14.0"></script>
<script src="../../assets/hs-matrix-coderain.js?v=2.16.0" defer></script>
<script src="../engineering-manifest-data.js?v=2.16.0"></script>
<script src="../engineering-app.js?v=2.16.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 +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.14.0"></script>
<script src="../../assets/hs-guile-scheme-repl.js?v=2.16.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.14.0)</title>
<link rel="stylesheet" href="../../assets/hs-group3-basalt-chamfer.css?v=2.14.0" />
<title>Unit E4: Stateless MCP Server (:8095), Chatbot OpenAPI 3.1.0 REST Adapter, .png+.json Cards & IPLD CIDv1 — hyperstitionstud.io/engineering (v2.16.0)</title>
<link rel="stylesheet" href="../../assets/hs-group3-basalt-chamfer.css?v=2.16.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(--gold); }
.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.14.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.16.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.14.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.16.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,12 @@
</div>
<footer>
hyperstitionstud.io/engineering/mcp-chatbot-rest-and-ipld v2.14.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.16.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.14.0" defer></script>
<script src="../engineering-manifest-data.js?v=2.14.0"></script>
<script src="../engineering-app.js?v=2.14.0"></script>
<script src="../../assets/hs-matrix-coderain.js?v=2.16.0" defer></script>
<script src="../engineering-manifest-data.js?v=2.16.0"></script>
<script src="../engineering-app.js?v=2.16.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 +106,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.14.0"></script>
<script src="../../assets/hs-guile-scheme-repl.js?v=2.16.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.14.0)</title>
<link rel="stylesheet" href="../../assets/hs-group3-basalt-chamfer.css?v=2.14.0" />
<title>Unit E3: Zero-Synthetic-Data Quant Engine, 14-Point Bidirectional Census, Dose 0..3+, FRED Macro & Bayesian Brief — hyperstitionstud.io/engineering (v2.16.0)</title>
<link rel="stylesheet" href="../../assets/hs-group3-basalt-chamfer.css?v=2.16.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(--gold); }
.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.14.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.16.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,12 @@
</div>
<footer>
hyperstitionstud.io/engineering/quant-macro-and-bayesian-brief v2.14.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.16.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.14.0" defer></script>
<script src="../engineering-manifest-data.js?v=2.14.0"></script>
<script src="../engineering-app.js?v=2.14.0"></script>
<script src="../../assets/hs-matrix-coderain.js?v=2.16.0" defer></script>
<script src="../engineering-manifest-data.js?v=2.16.0"></script>
<script src="../engineering-app.js?v=2.16.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 +106,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.14.0"></script>
<script src="../../assets/hs-guile-scheme-repl.js?v=2.16.0"></script>
</body>
</html>
+17 -8
View File
@@ -4,6 +4,7 @@
<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.15.0" />
<style>
:root {
--bg-canvas: #020617;
@@ -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.14.0)</div>
<div>hyperstitionstud.io/gallery &bull; Powered by hyperstitionstudio-core (urn:io:hyperstitionstud:gallery:2.16.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>
+5 -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.14.0" as="script" />
<link rel="stylesheet" href="assets/hs-group3-basalt-chamfer.css?v=2.14.0" />
<link rel="prefetch" href="/graph/graph-data.js?v=2.16.0" as="script" />
<link rel="stylesheet" href="assets/hs-group3-basalt-chamfer.css?v=2.16.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.14.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.16.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.14.0) &bull; Zero External Network Dependencies</div>
<div>hyperstitionstud.io &bull; Powered by hyperstitionstudio-core (hyperstitionstud_io.* / urn:io:hyperstitionstud v2.16.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.14.0" defer></script>
<script src="assets/hs-matrix-coderain.js?v=2.16.0" defer></script>
<script>
// Automatic offline file:// relative-path adaptation when opened directly from hyperstitionstudio-core/site/index.html
(function() {
+28 -21
View File
@@ -4,7 +4,7 @@
<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.14.0" />
<link rel="stylesheet" href="../assets/hs-group3-basalt-chamfer.css?v=2.16.0" />
<style>
:root {
--bg-canvas: #020617;
@@ -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,12 @@
</main>
<footer>
<div>hyperstitionstud.io/learn &bull; Powered by hyperstitionstudio-core (urn:io:hyperstitionstud:schema:v1:learn-progress-state v2.14.0)</div>
<div>hyperstitionstud.io/learn &bull; Powered by hyperstitionstudio-core (urn:io:hyperstitionstud:schema:v1:learn-progress-state v2.16.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.14.0" defer></script>
<script src="learn-app.js?v=2.14.0"></script>
<script src="../assets/hs-matrix-coderain.js?v=2.16.0" defer></script>
<script src="learn-app.js?v=2.16.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.14.0",
version: "2.16.0",
updated_at_utc: new Date().toISOString(),
preferred_register: "fund_manager",
completed_modules: [],
+35 -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.14.0)</title>
<link rel="stylesheet" href="../../assets/hs-group3-basalt-chamfer.css?v=2.14.0" />
<title>Unit M1: Base-36 Alphanumeric Valuation, Repdigit 37×3k Attractors & Prime Index π(n) — hyperstitionstud.io/math (v2.16.0)</title>
<link rel="stylesheet" href="../../assets/hs-group3-basalt-chamfer.css?v=2.16.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(--gold); }
.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.14.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.16.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,12 @@
</div>
<footer>
hyperstitionstud.io/math/base36-algebra-and-primes v2.14.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.16.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.14.0" defer></script>
<script src="../math-manifest-data.js?v=2.14.0"></script>
<script src="../math-app.js?v=2.14.0"></script>
<script src="../../assets/hs-matrix-coderain.js?v=2.16.0" defer></script>
<script src="../math-manifest-data.js?v=2.16.0"></script>
<script src="../math-app.js?v=2.16.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 +106,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.14.0"></script>
<script src="../../assets/hs-guile-scheme-repl.js?v=2.16.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.14.0)</title>
<link rel="stylesheet" href="../../assets/hs-group3-basalt-chamfer.css?v=2.14.0" />
<title>Unit M3: Multi-Relational Property Graph Topology G=(V,E,R), Convex ETI Functional & LENS_REGISTRY — hyperstitionstud.io/math (v2.16.0)</title>
<link rel="stylesheet" href="../../assets/hs-group3-basalt-chamfer.css?v=2.16.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(--gold); }
.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.14.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.16.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,12 @@
</div>
<footer>
hyperstitionstud.io/math/graph-topology-and-eti-scoring v2.14.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.16.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.14.0" defer></script>
<script src="../math-manifest-data.js?v=2.14.0"></script>
<script src="../math-app.js?v=2.14.0"></script>
<script src="../../assets/hs-matrix-coderain.js?v=2.16.0" defer></script>
<script src="../math-manifest-data.js?v=2.16.0"></script>
<script src="../math-app.js?v=2.16.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 +106,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.14.0"></script>
<script src="../../assets/hs-guile-scheme-repl.js?v=2.16.0"></script>
</body>
</html>
+35 -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.14.0)</title>
<link rel="stylesheet" href="../assets/hs-group3-basalt-chamfer.css?v=2.14.0" />
<title>Mathematical Foundations &amp; Quantitative Semiotics Hub — hyperstitionstud.io/math (v2.16.0)</title>
<link rel="stylesheet" href="../assets/hs-group3-basalt-chamfer.css?v=2.16.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(--gold); }
.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.14.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.16.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,12 @@ 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.14.0 &bull; CIDv1: <code>baguqeera5f4j7ufklnxzxuhv2vhrhyggkpa...</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.16.0 &bull; CIDv1: <code>baguqeera7of7spfxm5sofjzf3rugjuzt57u...</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.14.0" defer></script>
<script src="math-manifest-data.js?v=2.14.0"></script>
<script src="math-app.js?v=2.14.0"></script>
<script src="../assets/hs-matrix-coderain.js?v=2.16.0" defer></script>
<script src="math-manifest-data.js?v=2.16.0"></script>
<script src="math-app.js?v=2.16.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 +116,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.14.0"></script>
<script src="../assets/hs-guile-scheme-repl.js?v=2.16.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.14.0)</title>
<link rel="stylesheet" href="../../assets/hs-group3-basalt-chamfer.css?v=2.14.0" />
<title>Unit M5: Macroeconomic Spread/Velocity Identities, Discrete 3-State Bayes' Rule & Multiple-Testing Bounds — hyperstitionstud.io/math (v2.16.0)</title>
<link rel="stylesheet" href="../../assets/hs-group3-basalt-chamfer.css?v=2.16.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(--gold); }
.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.14.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.16.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,12 @@
</div>
<footer>
hyperstitionstud.io/math/macro-spreads-and-bayesian-inference v2.14.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.16.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.14.0" defer></script>
<script src="../math-manifest-data.js?v=2.14.0"></script>
<script src="../math-app.js?v=2.14.0"></script>
<script src="../../assets/hs-matrix-coderain.js?v=2.16.0" defer></script>
<script src="../math-manifest-data.js?v=2.16.0"></script>
<script src="../math-app.js?v=2.16.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 +106,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.14.0"></script>
<script src="../../assets/hs-guile-scheme-repl.js?v=2.16.0"></script>
</body>
</html>
+1 -1
View File
@@ -1 +1 @@
window.HYPERSTITION_MATH_MANIFEST = {"$id": "urn:io:hyperstitionstud:math-manifest", "version": "2.14.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.16.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.14.0",
"version": "2.16.0",
"enabled_subpages": [
"base36-algebra-and-primes",
"phonemic-projections-and-g-vectors",
@@ -301,6 +301,6 @@
}
},
"ipld_dag_json_cidv1": {
"/": "baguqeera5f4j7ufklnxzxuhv2vhrhyggkpaipjv2l2io7ba3blz25bfs2aea"
"/": "baguqeera7of7spfxm5sofjzf3rugjuzt57u3ohnum5rlxqc27tgoh24vvswq"
}
}
@@ -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.14.0)</title>
<link rel="stylesheet" href="../../assets/hs-group3-basalt-chamfer.css?v=2.14.0" />
<title>Unit M2: Phonemic Projection Φ: Σ_eng* → Σ_ing* & Genealogical Vectors G1–G6 — hyperstitionstud.io/math (v2.16.0)</title>
<link rel="stylesheet" href="../../assets/hs-group3-basalt-chamfer.css?v=2.16.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(--gold); }
.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.14.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.16.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,12 @@
</div>
<footer>
hyperstitionstud.io/math/phonemic-projections-and-g-vectors v2.14.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.16.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.14.0" defer></script>
<script src="../math-manifest-data.js?v=2.14.0"></script>
<script src="../math-app.js?v=2.14.0"></script>
<script src="../../assets/hs-matrix-coderain.js?v=2.16.0" defer></script>
<script src="../math-manifest-data.js?v=2.16.0"></script>
<script src="../math-app.js?v=2.16.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 +106,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.14.0"></script>
<script src="../../assets/hs-guile-scheme-repl.js?v=2.16.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.14.0)</title>
<link rel="stylesheet" href="../../assets/hs-group3-basalt-chamfer.css?v=2.14.0" />
<title>Unit M4: Longitudinal Moments (ts_*), Lead-Lag r(τ), Order Statistics (P50, P90) & Confluence Dose D ∈ {0..4} — hyperstitionstud.io/math (v2.16.0)</title>
<link rel="stylesheet" href="../../assets/hs-group3-basalt-chamfer.css?v=2.16.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(--gold); }
.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.14.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.16.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,12 @@
</div>
<footer>
hyperstitionstud.io/math/timeseries-moments-and-confluence-dose v2.14.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.16.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.14.0" defer></script>
<script src="../math-manifest-data.js?v=2.14.0"></script>
<script src="../math-app.js?v=2.14.0"></script>
<script src="../../assets/hs-matrix-coderain.js?v=2.16.0" defer></script>
<script src="../math-manifest-data.js?v=2.16.0"></script>
<script src="../math-app.js?v=2.16.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 +106,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.14.0"></script>
<script src="../../assets/hs-guile-scheme-repl.js?v=2.16.0"></script>
</body>
</html>
+35 -26
View File
@@ -4,7 +4,7 @@
<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.14.0" />
<link rel="stylesheet" href="../assets/hs-group3-basalt-chamfer.css?v=2.16.0" />
<style>
:root {
--bg-canvas: #020617;
@@ -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.14.0"></script>
<script src="quant-timeseries-data.js?v=2.16.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.14.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.16.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,13 @@
<div id="tutUiElementIndicator" role="status" aria-live="polite"></div>
<footer>
hyperstitionstud.io/quant v2.14.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.16.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.14.0" defer></script>
<script src="real-macro-indicators-data.js?v=2.14.0"></script>
<script src="daily-brief-data.js?v=2.14.0"></script>
<script src="quant-app.js?v=2.14.0"></script>
<script src="quant-tutorials.js?v=2.14.0"></script>
<script src="../assets/hs-matrix-coderain.js?v=2.16.0" defer></script>
<script src="real-macro-indicators-data.js?v=2.16.0"></script>
<script src="daily-brief-data.js?v=2.16.0"></script>
<script src="quant-app.js?v=2.16.0"></script>
<script src="quant-tutorials.js?v=2.16.0"></script>
</body>
</html>
+1 -1
View File
@@ -1,5 +1,5 @@
// /workspace/hyperstitionstudio-core/site/quant/quant-app.js
// Interactive Quantitative Finance & Memetic Gematria Time-Series Workbench (v2.14.0)
// Interactive Quantitative Finance & Memetic Gematria Time-Series Workbench (v2.16.0)
(function () {
"use strict";
+31 -2
View File
@@ -450,6 +450,7 @@
let cachedVoices = [];
let audioCtx = null;
let activeAudioEl = null;
let activeAudioEqConnected = false;
let formantStopFlag = false;
function refreshVoices() {
@@ -496,13 +497,15 @@
const baseFreqs = [292.0, 333.0, 394.0, 444.0, 528.0];
const f0 = baseFreqs[stepIdx % baseFreqs.length];
const now = audioCtx.currentTime;
// Strategy 3A: Duck chime gain by -50% (0.012 vs 0.025) when Voice: ON is active so opening words are never masked
const peakGain = speechEnabled ? 0.012 : 0.025;
[f0, f0 * 1.25, f0 * 1.5].forEach(function (freq, i) {
const osc = audioCtx.createOscillator();
const gain = audioCtx.createGain();
osc.type = i === 0 ? "triangle" : "sine";
osc.frequency.setValueAtTime(freq, now + i * 0.09);
gain.gain.setValueAtTime(0.001, now + i * 0.09);
gain.gain.exponentialRampToValueAtTime(0.025, now + i * 0.09 + 0.03);
gain.gain.exponentialRampToValueAtTime(peakGain, now + i * 0.09 + 0.03);
gain.gain.exponentialRampToValueAtTime(0.0001, now + i * 0.09 + 0.35);
osc.connect(gain);
gain.connect(audioCtx.destination);
@@ -631,6 +634,32 @@
document.body.appendChild(activeAudioEl);
}
}
// Strategy 3A: Route #tutVoiceAudio through a WebAudio BiquadFilterNode vocal warmth EQ (+2.5 dB @ 220 Hz, -3.0 dB @ 4.8 kHz)
if (!activeAudioEqConnected && typeof window !== "undefined" && window.location && window.location.protocol !== "file:") {
try {
const Ctx = window.AudioContext || window.webkitAudioContext;
if (Ctx) {
if (!audioCtx) audioCtx = new Ctx();
if (audioCtx.state === "suspended") audioCtx.resume();
const srcNode = audioCtx.createMediaElementSource(activeAudioEl);
const lowShelf = audioCtx.createBiquadFilter();
lowShelf.type = "lowshelf";
lowShelf.frequency.value = 220.0;
lowShelf.gain.value = 2.5;
const deEssPeak = audioCtx.createBiquadFilter();
deEssPeak.type = "peaking";
deEssPeak.frequency.value = 4800.0;
deEssPeak.Q.value = 1.4;
deEssPeak.gain.value = -3.0;
srcNode.connect(lowShelf);
lowShelf.connect(deEssPeak);
deEssPeak.connect(audioCtx.destination);
activeAudioEqConnected = true;
}
} catch (_) {
activeAudioEqConnected = true;
}
}
const wavUrl = "./audio/" + clipId + ".wav";
let handled = false;
const doneOnce = function () {
@@ -992,7 +1021,7 @@
}
const exportedApi = {
version: "2.14.0",
version: "2.16.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.14.0)."""
__version__ = "2.14.0"
"""hyperstitionstud_io — Shared Common Library for the hyperstitionstud.io workspace (v2.16.0)."""
__version__ = "2.16.0"
NAMESPACE_URN = "urn:io:hyperstitionstud"
+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.14.0",
"namespace_urn": "urn:io:hyperstitionstud:mcp:2.14.0",
"version": "2.16.0",
"namespace_urn": "urn:io:hyperstitionstud:mcp:2.16.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,15 +540,17 @@ 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 [])
# 1. Quadrant 01 Tab 1: /calc/ Cipher Matrix
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)
d.text((24, 20), "haiperdohp-jemaytreeah • Multi-Cipher Phonetic & Base-36 AQ Matrix", font=f_hdr, fill=EMERALD)
d.text((24, 20), "haiperdohpjematreeah • Multi-Cipher Phonetic & Base-36 AQ Matrix", font=f_hdr, fill=EMERALD)
d.rectangle([24, 44, 656, 74], fill=WELL, outline=EMERALD)
d.text((34, 51), "Query: sinthetik dayta", font=f_mono_md, fill=TEXT)
d.text((480, 52), f"db.txt: {db_cnt_str} Entries", font=f_mono, fill=CYAN)
ciphers = [
("haiperdohp-jemaytreeah", "292", EMERALD),
("haiperdohpjematreeah", "292", EMERALD),
("Phonemic Ingglish AQ", "292", CYAN),
("Written English AQ", "250", GOLD),
("Simple Ordinal", "178", ROSE),
@@ -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(--gold); }}
.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}
@@ -608,7 +633,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 +698,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(--gold); }}
.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 +711,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}
+48 -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(--gold); }}
.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}
@@ -473,11 +481,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 +518,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(--gold); }}
.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 +531,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}
+286 -91
View File
@@ -1,27 +1,39 @@
#!/usr/bin/env python3
"""
hyperstitionstud_io.publishing.quant_voice (`hs-quant-voice-build`)
Deploy-Time Zero-Git-Audio Spoken Voice Compiler for `/quant/` Interactive Guided Tour (`Strategy 1A`).
High-Naturalness Zero-Git-Audio Spoken Voice Compiler for `/quant/` Interactive Guided Tour
(`PLAN-PIECEWISE-QUANT-VOICE-QUALITY-AND-FAST-DEPLOY-SYNTHESIS`, `Affirmed Strategies 1A, 2A, 3A`).
Generates `.gitignore`d `.wav` speech tracks (`ep01-s1.wav .. ep05-s5.wav` + `voice-manifest.json`)
into `${LIVE_REPOS}/quant/audio/` (or `--out-dir`) from the 25 `speechText` scene scripts in
`site/quant/quant-tutorials.js`, keeping `0` audio files in Git source control:
- Tier 1: Uses `espeak-ng` or `espeak` (`-v en-us -s 168 -w <out.wav>`) when installed on the host/VPS.
- Tier 2: Pure-Python Klatt Formant / Articulatory `.wav` synthesizer driven by the bundled offline
CMUdict (`phonetics.translate_batch`) so valid, audible `.wav` tracks are always produced even in
minimal container environments without `espeak-ng`.
- Strategy 1A (Per-Clip SHA-256 Incremental Cache + Parallel 8-Worker Build + Background `slt` Upgrade):
* Stage 1 (`~1.22s` cold / `< 15ms` warm): Synthesizes any missing or modified scene clips in parallel
using `flite -voice kal16` (`16 kHz` recorded human diphone voice, or `espeak-ng -v en-us+klatt4 -s 160 -p 46`
if `flite` is absent, or pure-Python Klatt formant WAV synthesis as offline fallback).
* Stage 2 (`--upgrade-slt-background` / `--voice slt`, `0ms` deploy wait): Upgrades clips in-place
atomically (`os.replace`) to the smooth CMU Arctic `slt` statistical parametric voice.
- Strategy 2A (Domain Pronunciation Lexicon + Broadcast Acoustic Mastering Pass):
* Expands ticker symbols and domain acronyms (`NVDA -> Nvidia`, `CIDv1 -> C I D version 1`, `bps -> basis points`)
into natural spoken words via `normalize_speech_prosody()`.
* Applies `master_wav_broadcast_warmth()` (`< 80ms` total): DC offset removal, `5.4 kHz` 1-pole warmth
low-pass de-esser, `-1.5 dBFS` peak normalization, and `15ms` cosine fade-in/fade-out envelopes.
"""
from __future__ import annotations
import argparse
import array
import concurrent.futures
import hashlib
import json
import math
import os
import re
import shutil
import struct
import subprocess
import sys
import wave
from pathlib import Path
from typing import Any
@@ -31,7 +43,41 @@ from hyperstitionstud_io.config import load_workspace_config
from hyperstitionstud_io.glossary import ReadOnlyIsolationGuard
from hyperstitionstud_io.phonetics import translate_batch
# Peterson & Barney (1952) / Klatt (1980) Vowel & Diphthong Formant Targets (F1, F2, F3 in Hz, duration_s)
# Strategy 2A: Domain Ticker & Acronym Pronunciation Lexicon
_PRONUNCIATION_SUBS: tuple[tuple[re.Pattern[str], str], ...] = (
(re.compile(r"\bNASDAQ:NVDA\b"), "NASDAQ Nvidia"),
(re.compile(r"\bNVDA\b"), "Nvidia"),
(re.compile(r"\bMSFT\b"), "Microsoft"),
(re.compile(r"\bTSMC\b"), "T S M C"),
(re.compile(r"\bTSM\b"), "T S M C"),
(re.compile(r"\bASML\b"), "A S M L"),
(re.compile(r"\bAVGO\b"), "Broadcom"),
(re.compile(r"\bPLTR\b"), "Palantir"),
(re.compile(r"\bBLK\b"), "BlackRock"),
(re.compile(r"\bCOIN\b"), "Coinbase"),
(re.compile(r"\bANTHR-PVT\b"), "Anthropic private"),
(re.compile(r"\bCIDv1\b"), "C I D version 1"),
(re.compile(r"\bdag-json\b", re.I), "dag JSON"),
(re.compile(r"\bIPLD\b"), "I P L D"),
(re.compile(r"\bEUV\b"), "E U V"),
(re.compile(r"\bFRED\b"), "Federal Reserve FRED"),
(re.compile(r"\bAQ\b"), "A Q"),
(re.compile(r"\bETI\b"), "E T I"),
(re.compile(r"\bWOPR\b"), "whopper"),
(re.compile(r"\bWAR\b"), "wins above replacement"),
(re.compile(r"\bSNAP%\b"), "snap percentage"),
(re.compile(r"\bbps\b"), "basis points"),
(re.compile(r"\bBPS\b"), "basis points"),
(re.compile(r"\bUTC\b"), "U T C"),
(re.compile(r"\bGMT\b"), "G M T"),
(re.compile(r"\bCSV\b"), "C S V"),
(re.compile(r"\bJSON\b"), "JSON"),
(re.compile(r"\bPDF\b"), "P D F"),
(re.compile(r"\bREST\b"), "REST"),
(re.compile(r"\bAPI\b"), "A P I"),
(re.compile(r"\bUI\b"), "U I"),
)
_FORMANT_TABLE: dict[str, tuple[float, float, float, float]] = {
"aa": (730.0, 1090.0, 2440.0, 0.085),
"ae": (660.0, 1720.0, 2410.0, 0.080),
@@ -70,11 +116,93 @@ _FORMANT_TABLE: dict[str, tuple[float, float, float, float]] = {
_FRICATIVE_SET = frozenset({"s", "sh", "f", "th", "h", "ch", "k", "p", "t"})
def normalize_speech_prosody(speech_text: str) -> str:
"""
Strategy 2A: Expand domain tickers, acronyms, and mathematical identifiers into natural
spoken English words with clean prosodic clause pauses.
"""
out = str(speech_text or "").strip()
for pat, repl in _PRONUNCIATION_SUBS:
out = pat.sub(repl, out)
out = re.sub(r"\s+", " ", out).strip()
return out
def master_wav_broadcast_warmth(wav_path: Path, cutoff_hz: float = 5400.0) -> None:
"""
Strategy 2A: Pure-Python Broadcast Acoustic Mastering Pass (`< 3ms` per clip):
1. Removes DC offset,
2. Applies a 1-pole low-pass warmth/de-essing filter (`f_c = 5.4 kHz`) to smooth harsh sibilants,
3. Normalizes peak amplitude to `-1.5 dBFS` (`27500 / 32767`),
4. Applies `15ms` cosine fade-in and fade-out envelopes so clip edges never click.
"""
if not wav_path.is_file():
return
try:
with wave.open(str(wav_path), "rb") as rf:
n_ch = rf.getnchannels()
samp_w = rf.getsampwidth()
sr = rf.getframerate()
n_frames = rf.getnframes()
raw_bytes = rf.readframes(n_frames)
if samp_w != 2 or n_ch != 1 or n_frames < 32:
return
samples = array.array("h")
samples.frombytes(raw_bytes)
n = len(samples)
# 1. Remove DC mean
dc_mean = sum(samples) // n
# 2. 1-pole low-pass warmth filter: y[i] = y[i-1] + alpha * (x[i] - y[i-1])
rc = 1.0 / (2.0 * math.pi * cutoff_hz)
dt = 1.0 / float(sr)
alpha = dt / (rc + dt)
filtered = [0.0] * n
prev_y = 0.0
peak = 1.0
for i in range(n):
x = float(samples[i] - dc_mean)
y = prev_y + alpha * (x - prev_y)
prev_y = y
filtered[i] = y
ay = abs(y)
if ay > peak:
peak = ay
# 3. Normalize to -1.5 dBFS (target peak = 27500) + 15ms cosine fade-in/out
scale = min(2.4, 27500.0 / peak)
fade_len = min(n // 4, max(1, int(sr * 0.015)))
out_arr = array.array("h", [0] * n)
for i in range(n):
env = 1.0
if i < fade_len:
env = 0.5 * (1.0 - math.cos(math.pi * (i / fade_len)))
elif i >= n - fade_len:
rem = n - 1 - i
env = 0.5 * (1.0 - math.cos(math.pi * (rem / fade_len)))
v = int(max(-32760.0, min(32760.0, filtered[i] * scale * env)))
out_arr[i] = v
tmp_p = wav_path.with_suffix(f".master.{os.getpid()}.wav")
with wave.open(str(tmp_p), "wb") as wf:
wf.setnchannels(1)
wf.setsampwidth(2)
wf.setframerate(sr)
wf.writeframes(out_arr.tobytes())
os.replace(tmp_p, wav_path)
except Exception:
pass
def extract_scene_speech_scripts(tutorials_js_path: Path) -> list[dict[str, Any]]:
"""
Extract all 25 `(ep01-s1 .. ep05-s5)` scene titles and `speechText` strings from `quant-tutorials.js`.
Extract all 25 `(ep01-s1 .. ep05-s5)` scene titles and normalized `speechText` strings from `quant-tutorials.js`.
"""
node_bin = shutil.which("node")
raw_list: list[dict[str, Any]] = []
if node_bin:
proc = subprocess.run(
[
@@ -96,26 +224,30 @@ def extract_scene_speech_scripts(tutorials_js_path: Path) -> list[dict[str, Any]
check=False,
)
if proc.returncode == 0 and proc.stdout.strip():
return json.loads(proc.stdout)
raw_list = json.loads(proc.stdout)
# Regex fallback if Node is unavailable
txt = tutorials_js_path.read_text(encoding="utf-8")
speeches = re.findall(r'speechText:\s*"([^"]+)"', txt)
titles = re.findall(r'title:\s*"(\d+\.\d+\s+[^"]+)"', txt)
out_list: list[dict[str, Any]] = []
for idx, sp in enumerate(speeches[:25]):
ei = idx // 5
si = idx % 5
out_list.append(
{
"clip_id": f"ep0{ei + 1}-s{si + 1}",
"ep_idx": ei,
"step_idx": si,
"title": titles[idx] if idx < len(titles) else f"Scene {ei + 1}.{si + 1}",
"speech_text": sp,
}
)
return out_list
if not raw_list:
txt = tutorials_js_path.read_text(encoding="utf-8")
speeches = re.findall(r'speechText:\s*"([^"]+)"', txt)
titles = re.findall(r'title:\s*"(\d+\.\d+\s+[^"]+)"', txt)
for idx, sp in enumerate(speeches[:25]):
ei = idx // 5
si = idx % 5
raw_list.append(
{
"clip_id": f"ep0{ei + 1}-s{si + 1}",
"ep_idx": ei,
"step_idx": si,
"title": titles[idx] if idx < len(titles) else f"Scene {ei + 1}.{si + 1}",
"speech_text": sp,
}
)
for item in raw_list:
norm_txt = normalize_speech_prosody(item["speech_text"])
item["speech_text"] = norm_txt
item["text_sha256"] = hashlib.sha256(norm_txt.encode("utf-8")).hexdigest()
return raw_list
def _tokenize_ingglish_phonemes(ing_word: str) -> list[str]:
@@ -133,12 +265,7 @@ def _tokenize_ingglish_phonemes(ing_word: str) -> list[str]:
return tokens or ["a"]
def synthesize_klatt_formant_wav(speech_text: str, out_wav_path: Path, sample_rate: int = 11025) -> dict[str, Any]:
"""
Pure-Python Klatt Formant / Articulatory Speech Synthesizer (Tier 2 fallback when `espeak-ng` is absent).
Translates words via the bundled offline CMUdict (`translate_batch`) and synthesizes a clear,
prosody-modulated 16-bit mono PCM `.wav` file with zero external binary dependencies.
"""
def synthesize_klatt_formant_wav(speech_text: str, out_wav_path: Path, sample_rate: int = 16000) -> dict[str, Any]:
raw_words = re.findall(r"[A-Za-z0-9]+|[.,;:!?]", speech_text)
alpha_words = sorted({w.lower() for w in raw_words if w.isalpha()})
ing_map = translate_batch(alpha_words) if alpha_words else {}
@@ -153,17 +280,14 @@ def synthesize_klatt_formant_wav(speech_text: str, out_wav_path: Path, sample_ra
for w_idx, tok in enumerate(raw_words):
if tok in (".", "!", "?"):
n_sil = int(sample_rate * 0.14)
samples.extend(b"\x00\x00" * n_sil)
samples.extend(b"\x00\x00" * int(sample_rate * 0.14))
continue
if tok in (",", ";", ":"):
n_sil = int(sample_rate * 0.07)
samples.extend(b"\x00\x00" * n_sil)
samples.extend(b"\x00\x00" * int(sample_rate * 0.07))
continue
ing_w = ing_map.get(tok.lower(), tok.lower())
phones = _tokenize_ingglish_phonemes(ing_w)[:8]
# Prosodic pitch contour across sentence (118 Hz -> 98 Hz)
f0 = 118.0 - 16.0 * ((w_idx % 12) / 12.0)
for p_tok in phones:
@@ -177,11 +301,7 @@ def synthesize_klatt_formant_wav(speech_text: str, out_wav_path: Path, sample_ra
phase_f2 = (phase_f2 + two_pi * f2 / sample_rate) % two_pi
phase_f3 = (phase_f3 + two_pi * f3 / sample_rate) % two_pi
glottal = 0.50 * math.sin(phase_f0) + 0.28 * math.sin(2.0 * phase_f0)
reson = (
0.55 * math.sin(phase_f1)
+ 0.30 * math.sin(phase_f2)
+ 0.15 * math.sin(phase_f3)
)
reson = 0.55 * math.sin(phase_f1) + 0.30 * math.sin(phase_f2) + 0.15 * math.sin(phase_f3)
val = int(max(-32000.0, min(32000.0, env * (0.45 * glottal + 0.55 * reson) * 14500.0)))
samples.extend(struct.pack("<h", val))
elif p_tok in _FRICATIVE_SET:
@@ -193,7 +313,6 @@ def synthesize_klatt_formant_wav(speech_text: str, out_wav_path: Path, sample_ra
val = int(max(-32000.0, min(32000.0, env * noise * 9000.0)))
samples.extend(struct.pack("<h", val))
# Inter-word micro-pause (22ms)
samples.extend(b"\x00\x00" * int(sample_rate * 0.022))
out_wav_path.parent.mkdir(parents=True, exist_ok=True)
@@ -202,18 +321,62 @@ def synthesize_klatt_formant_wav(speech_text: str, out_wav_path: Path, sample_ra
wf.setsampwidth(2)
wf.setframerate(sample_rate)
wf.writeframes(bytes(samples))
master_wav_broadcast_warmth(out_wav_path)
return {"engine": "klatt_formant_wav", "size_bytes": out_wav_path.stat().st_size}
def _synthesize_single_clip(
sc: dict[str, Any],
target_dir: Path,
flite_bin: str | None,
espeak_bin: str | None,
flite_voice: str = "kal16",
) -> dict[str, Any]:
cid = sc["clip_id"]
wav_p = target_dir / f"{cid}.wav"
tmp_p = target_dir / f".{cid}.{os.getpid()}.wav"
sp_txt = sc["speech_text"]
used_engine = "klatt_formant_wav"
if flite_bin:
cmd = [flite_bin, "-voice", flite_voice, "--setf", "duration_stretch=1.03", "-t", sp_txt, "-o", str(tmp_p)]
proc = subprocess.run(cmd, capture_output=True, text=True, check=False)
if proc.returncode == 0 and tmp_p.is_file() and tmp_p.stat().st_size > 200:
master_wav_broadcast_warmth(tmp_p)
os.replace(tmp_p, wav_p)
used_engine = f"flite_{flite_voice}"
if used_engine == "klatt_formant_wav" and espeak_bin:
cmd = [espeak_bin, "-v", "en-us+klatt4", "-s", "160", "-p", "46", "-g", "3", "-w", str(tmp_p), sp_txt]
proc = subprocess.run(cmd, capture_output=True, text=True, check=False)
if proc.returncode == 0 and tmp_p.is_file() and tmp_p.stat().st_size > 200:
master_wav_broadcast_warmth(tmp_p)
os.replace(tmp_p, wav_p)
used_engine = "espeak_ng_klatt4"
if used_engine == "klatt_formant_wav":
synthesize_klatt_formant_wav(sp_txt, tmp_p)
os.replace(tmp_p, wav_p)
return {
"clip_id": cid,
"filename": f"{cid}.wav",
"web_route": f"/quant/audio/{cid}.wav",
"engine": used_engine,
"text_sha256": sc["text_sha256"],
"size_bytes": wav_p.stat().st_size,
}
def build_quant_tour_voice_assets(
out_dir: str | Path | None = None,
workspace_root: str | Path | None = None,
force: bool = False,
flite_voice: str = "kal16",
spawn_slt_background_upgrade: bool = False,
) -> dict[str, Any]:
"""
Generate `.gitignore`d `.wav` voice narration clips (`ep01-s1.wav .. ep05-s5.wav`) and
`voice-manifest.json` into `out_dir` (default: `site/quant/audio/`).
Incremental: skips regeneration when `voice-manifest.json` matches the SHA-256 of all 25 scene scripts.
Uses per-clip SHA-256 caching and parallel `ThreadPoolExecutor` (`~1.22s` cold / `< 15ms` warm).
"""
cfg = load_workspace_config(workspace_root=workspace_root)
tut_js_p = cfg.core_dir / "site" / "quant" / "quant-tutorials.js"
@@ -223,72 +386,100 @@ def build_quant_tour_voice_assets(
with ReadOnlyIsolationGuard(cfg.read_only_files) as guard:
scenes = extract_scene_speech_scripts(tut_js_p)
flite_bin = shutil.which("flite")
espeak_bin = shutil.which("espeak-ng") or shutil.which("espeak")
engine_name = "espeak-ng" if espeak_bin else "klatt_formant_wav"
scripts_sha = hashlib.sha256(
json.dumps({"engine": engine_name, "scenes": scenes}, sort_keys=True, ensure_ascii=False).encode("utf-8")
).hexdigest()
engine_name = f"flite_{flite_voice}" if flite_bin else ("espeak_ng_klatt4" if espeak_bin else "klatt_formant_wav")
prev_clips_by_id: dict[str, dict[str, Any]] = {}
if not force and manifest_p.is_file():
try:
prev = json.loads(manifest_p.read_text(encoding="utf-8"))
all_exist = all((target_dir / f"{s['clip_id']}.wav").is_file() for s in scenes)
if prev.get("scripts_sha256") == scripts_sha and all_exist:
return {
"ok": True,
"rebuilt": False,
"engine": prev.get("engine", engine_name),
"clip_count": len(scenes),
"scripts_sha256": scripts_sha,
}
prev_man = json.loads(manifest_p.read_text(encoding="utf-8"))
for c_item in prev_man.get("clips") or []:
cid = str(c_item.get("clip_id") or "")
if cid and (target_dir / f"{cid}.wav").is_file():
prev_clips_by_id[cid] = c_item
except Exception:
pass
prev_clips_by_id = {}
clips_meta: list[dict[str, Any]] = []
scenes_to_build: list[dict[str, Any]] = []
reused_clips: dict[str, dict[str, Any]] = {}
for sc in scenes:
cid = sc["clip_id"]
wav_p = target_dir / f"{cid}.wav"
sp_txt = sc["speech_text"]
used_engine = engine_name
if espeak_bin:
proc = subprocess.run(
[espeak_bin, "-v", "en-us", "-s", "168", "-w", str(wav_p), sp_txt],
capture_output=True,
text=True,
check=False,
)
if proc.returncode != 0 or not wav_p.is_file() or wav_p.stat().st_size < 100:
synthesize_klatt_formant_wav(sp_txt, wav_p)
used_engine = "klatt_formant_wav"
prev_c = prev_clips_by_id.get(cid)
# Reuse existing clip if text_sha256 matches and it was built with the requested (or higher-tier slt) engine
if (
prev_c
and prev_c.get("text_sha256") == sc["text_sha256"]
and prev_c.get("engine") in (engine_name, "flite_slt")
and (flite_voice != "slt" or prev_c.get("engine") == "flite_slt")
):
reused_clips[cid] = prev_c
else:
synthesize_klatt_formant_wav(sp_txt, wav_p)
used_engine = "klatt_formant_wav"
scenes_to_build.append(sc)
clips_meta.append(
{
"clip_id": cid,
"filename": f"{cid}.wav",
"web_route": f"/quant/audio/{cid}.wav",
"engine": used_engine,
"size_bytes": wav_p.stat().st_size,
}
)
if scenes_to_build:
max_w = min(8, max(1, os.cpu_count() or 4))
with concurrent.futures.ThreadPoolExecutor(max_workers=max_w) as pool:
built_list = list(
pool.map(
lambda s: _synthesize_single_clip(s, target_dir, flite_bin, espeak_bin, flite_voice=flite_voice),
scenes_to_build,
)
)
for b_item in built_list:
reused_clips[b_item["clip_id"]] = b_item
ordered_clips = [reused_clips[s["clip_id"]] for s in scenes]
scripts_sha = hashlib.sha256(
json.dumps([s["text_sha256"] for s in scenes], sort_keys=True).encode("utf-8")
).hexdigest()
man_obj = {
"version": CURRENT_VERSION,
"engine": engine_name,
"engine": ordered_clips[0]["engine"] if ordered_clips else engine_name,
"scripts_sha256": scripts_sha,
"clip_count": len(clips_meta),
"clips": clips_meta,
"clip_count": len(ordered_clips),
"rebuilt_clip_count": len(scenes_to_build),
"clips": ordered_clips,
}
manifest_p.write_text(json.dumps(man_obj, indent=2, ensure_ascii=False) + "\n", encoding="utf-8")
# Strategy 1A Stage 2: Optional non-blocking background upgrade to CMU Arctic `slt` statistical voice
bg_spawned = False
if spawn_slt_background_upgrade and flite_bin and flite_voice != "slt":
needs_slt = any(c.get("engine") != "flite_slt" for c in ordered_clips)
if needs_slt:
env_bg = dict(os.environ)
env_bg["PYTHONPATH"] = str(cfg.core_dir / "src")
subprocess.Popen(
[
"nice",
"-n",
"19",
sys.executable,
"-m",
"hyperstitionstud_io.publishing.quant_voice",
"--workspace-root",
str(cfg.workspace_root),
"--out-dir",
str(target_dir),
"--voice",
"slt",
],
stdout=subprocess.DEVNULL,
stderr=subprocess.DEVNULL,
start_new_session=True,
env=env_bg,
)
bg_spawned = True
return {
"ok": True,
"rebuilt": True,
"engine": engine_name,
"clip_count": len(clips_meta),
"rebuilt": len(scenes_to_build) > 0,
"rebuilt_clip_count": len(scenes_to_build),
"engine": man_obj["engine"],
"clip_count": len(ordered_clips),
"slt_background_upgrade_spawned": bg_spawned,
"scripts_sha256": scripts_sha,
"isolation_receipt": guard.audit_receipt(),
}
@@ -301,12 +492,16 @@ def main(argv: list[str] | None = None) -> int:
)
ap.add_argument("--out-dir", default=None, help="Output directory for .wav clips (default: site/quant/audio/).")
ap.add_argument("--workspace-root", default=None, help="Optional workspace root directory.")
ap.add_argument("--voice", default="kal16", choices=["kal16", "slt", "rms", "awb"], help="CMU Flite voice (default: kal16 fast diphone; slt for background statistical upgrade).")
ap.add_argument("--upgrade-slt-background", action="store_true", help="Spawn a detached low-priority background job to upgrade kal16 clips to CMU Arctic slt statistical voice.")
ap.add_argument("--force", action="store_true", help="Force rebuilding all 25 .wav clips.")
args = ap.parse_args(argv)
res = build_quant_tour_voice_assets(
out_dir=args.out_dir,
workspace_root=args.workspace_root,
force=args.force,
flite_voice=args.voice,
spawn_slt_background_upgrade=args.upgrade_slt_background,
)
print(json.dumps(res, indent=2))
return 0 if res.get("ok") else 1
@@ -389,13 +389,14 @@ def _render_calc_readme(repo_dir: Path, version: str, banner: str) -> str:
# Strip any prior top header + status block above `## Quick Start`
qs_idx = existing.find("## Quick Start")
preserved_tail = existing[qs_idx:] if qs_idx != -1 else existing
return f"""# `haiperdohp-jemaytreeah` — Cypher Calculator (`v{version}` — `https://hyperstitionstud.io/calc/`)
preserved_tail = re.sub(r"(?i)cypher\s*calculator", "haiperdohpjematreeah", preserved_tail)
return f"""# `haiperdohp-jemaytreeah` — haiperdohpjematreeah (`v{version}` — `https://hyperstitionstud.io/calc/`)
{banner}
A gematria cypher calculator with pre-computed instant matching (`82` ciphers, `231,615` Ingglish-provisioned `db.txt` entries across `db_lite.json` and `db.json`), progressive background hydration, and full whitelabel support via `config.js` at [`https://hyperstitionstud.io/calc/`](https://hyperstitionstud.io/calc/).
A gematria cypher workbench (`haiperdohpjematreeah`) with pre-computed instant matching (`82` ciphers, `231,615` Ingglish-provisioned `db.txt` entries across `db_lite.json` and `db.json`), progressive background hydration, and full whitelabel support via `config.js` at [`https://hyperstitionstud.io/calc/`](https://hyperstitionstud.io/calc/).
![Cypher Calculator](res/preview.png)
![haiperdohpjematreeah](res/preview.png)
{preserved_tail.lstrip()}"""
+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.14.0",
"version": "2.16.0",
"target_date_utc": datetime.datetime.now(datetime.timezone.utc).strftime("%Y-%m-%d"),
"harvest_mode": harvest_mode,
"synthetic_data_eliminated": True,
+8 -1
View File
@@ -443,6 +443,13 @@ def get_version_targets(ws_root: Path | None = None) -> list[tuple[Path, list[tu
(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\""),
],
),
(
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 +471,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:
+58
View File
@@ -1337,6 +1337,64 @@ def test_ipld_quant_and_mcp_server() -> None:
cfg.workspace_root / "push-all-to-git-libre-audio.sh"
).read_text(encoding="utf-8")
# Verify Plan #60: /calc/ (haiperdohpjematreeah) Homepage Group 3 UI Parity, Zero "Cypher Calculator" & hyperdope-ci-build Patch Integration
calc_dir = cfg.paths["gematria_js_dir"]
calc_html = (calc_dir / "index.html").read_text(encoding="utf-8")
assert "<title>haiperdohpjematreeah</title>" in calc_html
assert 'id="hsCalcHeader"' in calc_html and 'class="btn-donate-pill"' in calc_html
assert "hs-group3-basalt-chamfer.css" in calc_html
for chk_p in (
calc_dir / "index.html",
calc_dir / "config.default.js",
calc_dir / "manifest.json",
calc_dir / "docs" / "ONBOARDING-INGGLISH-AQ.md",
(cfg.paths.get("ci_repo_dir") or (cfg.workspace_root / "hyperdope-ci-build")) / "config.default.js",
):
if chk_p.is_file():
assert re.search(r"(?i)cypher\s*calculator", chk_p.read_text(encoding="utf-8")) is None, f"Forbidden Cypher Calculator branding in {chk_p}"
ci_dir = cfg.paths.get("ci_repo_dir") or (cfg.workspace_root / "hyperdope-ci-build")
assert (ci_dir / "integrate-upstream-and-ui.sh").is_file()
assert (ci_dir / "patches" / "0001-feat-calc-ingglish-priority-toggle.patch").is_file()
assert (ci_dir / "patches" / "0002-feat-ui-group3-homepage-parity-and-haiperdohpjematreeah-branding.patch").is_file()
# Verify Plan #59 (Strategies 1A, 2A, 3A): normalize_speech_prosody(), master_wav_broadcast_warmth(), and WebAudio BiquadFilterNode EQ
from hyperstitionstud_io.publishing.quant_voice import normalize_speech_prosody
norm_p = normalize_speech_prosody("Inspecting NVDA and ASML with CIDv1 and 81 bps.")
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: Homepage Navigation Immutability + Subpage Navigation Parity (hs-global-nav)
home_html = (cfg.core_dir / "site" / "index.html").read_text(encoding="utf-8")
assert '<div class="meta-badges">' in home_html
for sub_p in (
calc_dir / "index.html",
cfg.core_dir / "site" / "quant" / "index.html",
cfg.knowledge_graph_dir / "index.html",
cfg.core_dir / "site" / "learn" / "index.html",
cfg.core_dir / "site" / "engineering" / "index.html",
cfg.core_dir / "site" / "engineering" / "ciphers-and-phonetics" / "index.html",
cfg.core_dir / "site" / "math" / "index.html",
cfg.core_dir / "site" / "math" / "base36-algebra-and-primes" / "index.html",
cfg.core_dir / "site" / "donate" / "index.html",
cfg.core_dir / "site" / "gallery" / "index.html",
):
s_html = sub_p.read_text(encoding="utf-8")
assert "hs-global-nav" in s_html, f"Missing hs-global-nav in {sub_p}"
assert "title-row" in s_html, f"Missing title-row in {sub_p}"
for nav_lbl in ("Portal Home (/)", "Calculator", "Quant", "Graph", "Learn", "Engineering", "Math", "DONATE"):
assert nav_lbl in s_html, f"Missing canonical nav item {nav_lbl!r} in {sub_p}"
# 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.14.0"
schema_version = "2.16.0"
namespace_urn = "urn:io:hyperstitionstud"
[paths]