Compare commits

...
28 Commits
Author SHA1 Message Date
Hermes Agent c34f121206 Release v2.17.1: Commit regenerated flow diagram PNG 2026-12-02 12:11:51 +00:00
Hyperstition VPS Bot b4240a742b chore(telemetry): automated VPS us-closing-bell harvest (2026-12-02T11:42:54Z) 2026-12-02 11:42:54 +00:00
Hermes Agent 54334966b9 Update PLAN-VPS-NODEJS-RUNTIME-PROVISIONING-AND-TEST-PARITY plan document and PDF 2026-12-02 11:36:42 +00:00
Hermes Agent ac0e4c25a6 Update VPS-AND-GIT-OPERATOR-DEPLOYMENT-GUIDE.md and recompile PDF to include Node.js runtime installation per Plan #69 2026-12-02 11:32:28 +00:00
Hermes Agent 1bf7c1f85e Release v2.17.1: Commit regenerated flow diagram PNG 2026-12-02 11:13:48 +00:00
Hermes Agent 1dbb52608c Release v2.17.1: Commit regenerated flow diagram PNG 2026-12-02 10:48:22 +00:00
Hermes Agent 878a385573 Release v2.17.1: Commit regenerated flow diagram PNG 2026-12-02 10:45:45 +00:00
Hermes Agent 2530d2455a Release v2.17.1: Commit regenerated flow diagram PNG 2026-12-02 10:32:02 +00:00
Hermes Agent 826eac29d2 Update VPS-AND-GIT-OPERATOR-DEPLOYMENT-GUIDE.md and recompile PDF with deploy key documentation 2026-12-02 10:03:41 +00:00
Hermes Agent e8f94ffe84 Expand PLAN-VPS-LOCALHOST-NAMESPACE-DISCREPANCY-RESOLUTION to cover all ecosystem namespace discrepancies and recompile PDF 2026-12-02 09:51:09 +00:00
Hermes Agent 42cc4cb430 Revise PLAN-VPS-LOCALHOST-NAMESPACE-DISCREPANCY-RESOLUTION for true single-name standardization and recompile PDF 2026-12-02 09:49:02 +00:00
Hermes Agent a16957da62 Revise PLAN-VPS-LOCALHOST-NAMESPACE-DISCREPANCY-RESOLUTION for root-cause resolution and recompile PDF 2026-12-02 09:47:50 +00:00
Hermes Agent 967f983eda Add PLAN-VPS-LOCALHOST-NAMESPACE-DISCREPANCY-RESOLUTION planning document and PDF 2026-12-02 09:45:38 +00:00
Hermes Agent e17a5650e9 Release v2.17.1: Commit regenerated flow diagram PNG 2026-12-02 09:45:13 +00:00
Hermes Agent d646ead318 Update PLAN-PIECEWISE-HYPERSTITIONSTUDIO-FEATURE-EXPANSION with expanded 4-strategy audit points and recompile PDF 2026-12-02 09:25:52 +00:00
Hermes Agent 9a4b77dc97 Add compliant PLAN-PIECEWISE-HYPERSTITIONSTUDIO-FEATURE-EXPANSION plan document and PDF 2026-12-02 09:21:13 +00:00
Hermes Agent 490cc6dcee Update PLAN-VPS-NODEJS-RUNTIME-PROVISIONING-AND-TEST-PARITY plan document and PDF 2026-12-02 09:11:15 +00:00
Hermes Agent a851e6c8a9 Add PLAN-VPS-NODEJS-RUNTIME-PROVISIONING-AND-TEST-PARITY planning document and PDF 2026-12-02 09:10:11 +00:00
Hermes Agent f262cfc7cf Release v2.17.1: Commit regenerated flow diagram PNG 2026-12-02 09:01:07 +00:00
Hermes Agent 94b2e312d6 Release v2.17.1: Commit regenerated flow diagram PNG 2026-12-02 08:54:18 +00:00
Hermes Agent 20ab1b52f0 PLAN-68: Disambiguate architecture-atlas HTML comments and inactive plan shorthands; refresh web PDFs 2026-12-02 08:19:07 +00:00
Hermes Agent 6d335bbbe2 Release v2.17.1: Commit flow diagram PNG update 2026-12-02 08:07:14 +00:00
Hermes Agent dedf677809 Release v2.17.1: Commit regenerated flow diagram PNG 2026-12-02 07:50:06 +00:00
Hermes Agent e4a237d34d Release v2.17.1: Version sync README and flow diagram 2026-12-02 07:47:27 +00:00
Hermes Agent 873bfda467 Release v2.17.1: Refresh all compiled web PDFs in Dark Mode 2026-12-02 07:42:07 +00:00
Hermes Agent 11e3edf541 PLAN-67: Add architecture-atlas.html and architecture-atlas.json generator (hs-arch-atlas) 2026-12-02 07:30:53 +00:00
Hermes Agent 4974197578 Release v2.17.0: Synchronize README and flow diagram in encyclopedia-knowledge-graph 2026-12-02 07:18:37 +00:00
Hermes Agent 61a723c021 Release v2.17.0: Update documentation, workflow diagrams, and plan ledgers 2026-12-02 07:11:07 +00:00
37 changed files with 676 additions and 116 deletions

No files matched your search

Binary file not shown.
+6 -6
View File
@@ -1,11 +1,11 @@
# `encyclopedia-knowledge-graph` (`v2.17.0` — `https://hyperstitionstud.io/graph/`) # `encyclopedia-knowledge-graph` (`v2.17.1` — `https://hyperstitionstud.io/graph/`)
<!-- HS-COMMIT-STATUS:START --> <!-- HS-COMMIT-STATUS:START -->
> **Gitea Commit & Release Telemetry (`v2.17.0` • Namespace `urn:io:hyperstitionstud`)** > **Gitea Commit & Release Telemetry (`v2.17.1` • Namespace `urn:io:hyperstitionstud`)**
> - **Repository Role & Public Route:** `388`-Node / `1,282`-Edge Interactive Knowledge Graph Workbench (Modes 1-4), 6-Gate Verifier, & Architectural Plan/Release Archive &rarr; [`https://hyperstitionstud.io/graph/index.html`](https://hyperstitionstud.io/graph/index.html) > - **Repository Role & Public Route:** `388`-Node / `1,282`-Edge Interactive Knowledge Graph Workbench (Modes 1-4), 6-Gate Verifier, & Architectural Plan/Release Archive &rarr; [`https://hyperstitionstud.io/graph/index.html`](https://hyperstitionstud.io/graph/index.html)
> - **Latest Commit Scope (`encyclopedia-knowledge-graph`):** Synchronized v2.17.0 release state across 1 tracked module/artifact surface(s) > - **Latest Commit Scope (`encyclopedia-knowledge-graph`):** Synchronized v2.17.1 release state across 1 tracked module/artifact surface(s)
> - **Touched Files / Surfaces:** `docs/periodic-harvest-cicd-to-vps-flow-diagram.png` > - **Touched Files / Surfaces:** `docs/periodic-harvest-cicd-to-vps-flow-diagram.png`
> - **Live Verified Ecosystem Metrics (`v2.17.0`):** `6` Repositories • `17` CLI Entrypoints • `20` MCP/REST Tools • `14` URN Resources • `63` Verified Web Routes • `388` KG Nodes / `1,282` Edges • `282` Glossary Entries • `4,943` Offline CMUdict Phonetics • `0` Synthetic Data > - **Live Verified Ecosystem Metrics (`v2.17.1`):** `6` Repositories • `17` CLI Entrypoints • `20` MCP/REST Tools • `14` URN Resources • `63` Verified Web Routes • `388` KG Nodes / `1,282` Edges • `282` Glossary Entries • `4,943` Offline CMUdict Phonetics • `0` Synthetic Data
<!-- HS-COMMIT-STATUS:END --> <!-- HS-COMMIT-STATUS:END -->
Standalone open-source interactive knowledge graph workbench, multi-format graph compiler (`JSON`, `GraphML`, `GEXF`, `Obsidian JSON Canvas`), visual atlas renderer, architectural plan ledger, and operator's manual for the **Encyclopedia of Technocapital Singularity Zoology**. Standalone open-source interactive knowledge graph workbench, multi-format graph compiler (`JSON`, `GraphML`, `GEXF`, `Obsidian JSON Canvas`), visual atlas renderer, architectural plan ledger, and operator's manual for the **Encyclopedia of Technocapital Singularity Zoology**.
@@ -27,7 +27,7 @@ hs-archive-rotate
--- ---
## Repository Structure (`v2.17.0`) ## Repository Structure (`v2.17.1`)
| Path | Description | | Path | Description |
| :--- | :--- | | :--- | :--- |
@@ -36,7 +36,7 @@ hs-archive-rotate
| `index.html` & `graph-data.js` | Offline-capable interactive dark-mode HTML5/Canvas workbench (`388` nodes, `1,282` deduplicated edges) | | `index.html` & `graph-data.js` | Offline-capable interactive dark-mode HTML5/Canvas workbench (`388` nodes, `1,282` deduplicated edges) |
| `encyclopedia-graph.{json,graphml,gexf}` & `encyclopedia.canvas` | Open-source graph interchange exports (`xmlns:hs="urn:io:hyperstitionstud:ns:kg:1.0"`) | | `encyclopedia-graph.{json,graphml,gexf}` & `encyclopedia.canvas` | Open-source graph interchange exports (`xmlns:hs="urn:io:hyperstitionstud:ns:kg:1.0"`) |
| `atlas-mode{1,2,3}.png` | High-resolution (`1600x1060`) visual atlas boards (Trophic Food-Web, Concentric ETI Radar `S+ -> D Periphery`, Bipartite `Gen 0 -> Gen 1` Funnel) | | `atlas-mode{1,2,3}.png` | High-resolution (`1600x1060`) visual atlas boards (Trophic Food-Web, Concentric ETI Radar `S+ -> D Periphery`, Bipartite `Gen 0 -> Gen 1` Funnel) |
| `docs/VPS-AND-GIT-OPERATOR-DEPLOYMENT-GUIDE.{md,pdf}` | Two-Script Git Operator (`git.libre.audio`) & Linode/Akamai VPS deployment guide (`v2.17.0`) | | `docs/VPS-AND-GIT-OPERATOR-DEPLOYMENT-GUIDE.{md,pdf}` | Two-Script Git Operator (`git.libre.audio`) & Linode/Akamai VPS deployment guide (`v2.17.1`) |
| `docs/OPERATORS-MANUAL-LLM-TOKEN-DEPENDENT-DATA-PIPELINES.{md,pdf}` | Operator's Manual for zero-token VPS timers vs. LLM-token exegesis pipelines | | `docs/OPERATORS-MANUAL-LLM-TOKEN-DEPENDENT-DATA-PIPELINES.{md,pdf}` | Operator's Manual for zero-token VPS timers vs. LLM-token exegesis pipelines |
| `docs/cross-repo-dependency-and-audit-flow-diagram.{html,png,pdf,md}` & `docs/periodic-harvest-cicd-to-vps-flow-diagram.png` | Visual Dependency & Periodic Harvest CI/CD Flow Diagrams | | `docs/cross-repo-dependency-and-audit-flow-diagram.{html,png,pdf,md}` & `docs/periodic-harvest-cicd-to-vps-flow-diagram.png` | Visual Dependency & Periodic Harvest CI/CD Flow Diagrams |
| `docs/archive/completed-plans-archive.tar.gz` & `docs/archive/archive-manifest.json` | Cold-rotated gzipped tar archive of completed architectural plans (`hs-archive-rotate`) | | `docs/archive/completed-plans-archive.tar.gz` & `docs/archive/archive-manifest.json` | Cold-rotated gzipped tar archive of completed architectural plans (`hs-archive-rotate`) |
@@ -89,8 +89,8 @@ To populate `ingglish-hyperdope-gematria`, `hyperdope-ci-build`, and `haiperdohp
```bash ```bash
sudo sed -i 's|^OPENROUTER_API_KEY=.*|OPENROUTER_API_KEY="sk-or-v1-..."|' /etc/sysconfig/ingglish-exegesis sudo sed -i 's|^OPENROUTER_API_KEY=.*|OPENROUTER_API_KEY="sk-or-v1-..."|' /etc/sysconfig/ingglish-exegesis
sudo systemctl enable --now ingglish-exegesis.timer sudo systemctl enable --now ingglish-exegesis.timer
# Or run an immediate one-shot harvest + OpenRouter synthesis + 4-gate CI + git.libre.audio push: # Or run an immediate one-shot harvest + OpenRouter synthesis + 4-gate CI + git.libre.audio push as service user ingglish:
sudo /usr/bin/ingglish-exegesis-push sudo -u ingglish /usr/bin/ingglish-exegesis-push
``` ```
### 5.2 What `/usr/bin/ingglish-exegesis-push` (`run_exegesis_and_push_fedora41.sh`) Executes Automatically ### 5.2 What `/usr/bin/ingglish-exegesis-push` (`run_exegesis_and_push_fedora41.sh`) Executes Automatically
+18 -1
View File
@@ -104,7 +104,7 @@ curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | sudo gpg --d
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' | sudo tee /etc/apt/sources.list.d/caddy-stable.list >/dev/null curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' | sudo tee /etc/apt/sources.list.d/caddy-stable.list >/dev/null
sudo chmod a+r /usr/share/keyrings/caddy-stable-archive-keyring.gpg /etc/apt/sources.list.d/caddy-stable.list sudo chmod a+r /usr/share/keyrings/caddy-stable-archive-keyring.gpg /etc/apt/sources.list.d/caddy-stable.list
sudo apt update && sudo apt install -y git python3 python3-venv python3-pip brotli rsync curl logrotate caddy fonts-dejavu-core sudo apt update && sudo apt install -y git python3 python3-venv python3-pip nodejs npm brotli rsync curl logrotate caddy fonts-dejavu-core
sudo tee /etc/sysctl.d/99-hyperstition-fastnet.conf >/dev/null <<'EOF' sudo tee /etc/sysctl.d/99-hyperstition-fastnet.conf >/dev/null <<'EOF'
net.core.default_qdisc = fq net.core.default_qdisc = fq
@@ -230,3 +230,20 @@ Sync the updated working tree(s) into the RAM mount and regenerate the `.br` / `
- **Negating Service/Caddy Sync (`--no-caddy` / `--no-services`):** - **Negating Service/Caddy Sync (`--no-caddy` / `--no-services`):**
Pass `--no-caddy` (e.g., `sync-vps-repos.sh --no-pull --no-caddy`) to sync only the RAM-backed webroot files and `.br`/`.gz` sidecars without touching `/etc/caddy/Caddyfile` or `systemd`. Pass `--no-caddy` (e.g., `sync-vps-repos.sh --no-pull --no-caddy`) to sync only the RAM-backed webroot files and `.br`/`.gz` sidecars without touching `/etc/caddy/Caddyfile` or `systemd`.
- **Browser Cache Note:** `HTML`/`JS`/`JSON` routes carry `Cache-Control: public, max-age=300` (5 minutes); press `Ctrl+Shift+R` (`Cmd+Shift+R` on macOS) in your browser to bypass the 5-minute client cache immediately after syncing. - **Browser Cache Note:** `HTML`/`JS`/`JSON` routes carry `Cache-Control: public, max-age=300` (5 minutes); press `Ctrl+Shift+R` (`Cmd+Shift+R` on macOS) in your browser to bypass the 5-minute client cache immediately after syncing.
---
## 6. Automated VPS Telemetry Push & Deploy Key Configuration (`run-vps-data-production.sh`)
When autonomous VPS harvest timers (`hyperstition-closing-bell-harvest.timer` or `hyperstition-utc-rollover-harvest.timer`) execute `deploy/run-vps-data-production.sh`, Step 4 [4/5] automatically commits and pushes updated telemetry and harvest state back to `git.libre.audio` if a secure deploy key is provisioned.
### 1. Deploy Key File Path
- **Required Path on VPS**: `/etc/hyperstitionstud.io/id_ed25519_git_libre_audio`
- **Permissions**: Must be restricted (`chmod 600`) and owned by the harvesting user.
### 2. Autonomous Git Push Mechanism
When the deploy key file is present, `run-vps-data-production.sh` exports `GIT_SSH_COMMAND` to authenticate securely without interactive prompts:
```bash
export GIT_SSH_COMMAND="ssh -i /etc/hyperstitionstud.io/id_ed25519_git_libre_audio -o StrictHostKeyChecking=accept-new"
```
If the deploy key file is absent, step [4/5] safely skips the automated push (`[4/5] Skipping automated git.libre.audio push (no-push or deploy key absent)`), allowing harvesting to complete locally without failure.
Binary file not shown.
+163
View File
@@ -0,0 +1,163 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>hyperstitionstud.io Front-End Grouped Architecture Atlas (v2.18.0)</title>
<style>
:root {
--bg: #0f172a;
--card-bg: #1e293b;
--border: #334155;
--text-main: #f8fafc;
--text-muted: #94a3b8;
--accent: #f59e0b;
--accent-hover: #fbbf24;
--font-mono: "DejaVu Sans Mono", monospace;
}
body {
background: var(--bg);
color: var(--text-main);
font-family: var(--font-mono);
margin: 0;
padding: 2rem;
}
header {
border-bottom: 1px solid var(--border);
padding-bottom: 1rem;
margin-bottom: 2rem;
display: flex;
justify-content: space-between;
align-items: center;
}
h1 {
font-size: 1.25rem;
margin: 0;
color: var(--accent);
}
.subtitle {
font-size: 0.75rem;
color: var(--text-muted);
}
.atlas-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
gap: 1.5rem;
}
.tool-card {
background: var(--card-bg);
border: 1px solid var(--border);
border-radius: 8px;
padding: 1.25rem;
}
.tool-card h2 {
font-size: 0.95rem;
margin-top: 0;
color: var(--text-main);
border-bottom: 1px dashed var(--border);
padding-bottom: 0.5rem;
}
ul {
list-style: none;
padding: 0;
margin: 0 0 1rem 0;
font-size: 0.78rem;
}
li {
margin-bottom: 0.4rem;
display: flex;
justify-content: space-between;
}
.port-pill {
background: #0284c7;
color: white;
font-size: 0.65rem;
padding: 0.1rem 0.4rem;
border-radius: 4px;
}
footer {
margin-top: 3rem;
text-align: center;
font-size: 0.7rem;
color: var(--text-muted);
border-top: 1px solid var(--border);
padding-top: 1rem;
}
</style>
</head>
<body>
<header>
<div>
<h1>[ ⚚ FRONT-END GROUPED ARCHITECTURE ATLAS ]</h1>
<div class="subtitle">hyperstitionstud.io v2.18.0 • Zero Raster Bloat • 8 Tool Groups (G01–G08)</div>
</div>
<div>
<a href="/" style="color: var(--accent); text-decoration: none; font-size: 0.78rem;">Portal Home (/)</a>
</div>
</header>
<div class="atlas-grid" id="atlasGrid">
<!-- G01.QUANT .. G08.MCP_DEPLOY -->
<div class="tool-card" id="g01-quant">
<h2>G01.QUANT (/quant/)</h2>
<ul>
<li><span>quant-app.js</span> <span class="port-pill">IN &lt;- Fred/Timeseries</span></li>
<li><span>quant-tutorials.js</span> <span class="port-pill">OUT -&gt; WebAudio / Speech</span></li>
<li><span>collector.py</span> <span class="port-pill">IN &lt;- Market APIs</span></li>
</ul>
</div>
<div class="tool-card" id="g02-calc-ci">
<h2>G02.CALC_CI (/calc/)</h2>
<ul>
<li><span>haiperdohp-jemaytreeah</span> <span class="port-pill">IN &lt;- Ingglish G2P</span></li>
<li><span>ci_provision_ingglish.py</span> <span class="port-pill">OUT -&gt; CI Artifacts</span></li>
</ul>
</div>
<div class="tool-card" id="g03-graph">
<h2>G03.GRAPH (/graph/)</h2>
<ul>
<li><span>encyclopedia-graph.json</span> <span class="port-pill">IN &lt;- SQLite FTS5</span></li>
<li><span>graph-data.js</span> <span class="port-pill">OUT -&gt; Canvas 2D / Radar</span></li>
</ul>
</div>
<div class="tool-card" id="g04-zoology">
<h2>G04.ZOOLOGY (/zoology/)</h2>
<ul>
<li><span>technocapital-singularity-zoology</span> <span class="port-pill">IN &lt;- Dossiers S1-S6</span></li>
<li><span>encyclopedia manifests</span> <span class="port-pill">OUT -&gt; PDF Manuals</span></li>
</ul>
</div>
<div class="tool-card" id="g05-archive">
<h2>G05.ARCHIVE (/archive/)</h2>
<ul>
<li><span>archive_rotator.py</span> <span class="port-pill">IN &lt;- FIFO Tarballs</span></li>
<li><span>archive-manifest.json</span> <span class="port-pill">OUT -&gt; Git Citations</span></li>
</ul>
</div>
<div class="tool-card" id="g06-eng-math">
<h2>G06.ENG_MATH (/engineering/ & /math/)</h2>
<ul>
<li><span>engineering_docs.py</span> <span class="port-pill">IN &lt;- Polyglot Lens</span></li>
<li><span>math_docs.py</span> <span class="port-pill">OUT -&gt; Z-Calculus REPL</span></li>
</ul>
</div>
<div class="tool-card" id="g07-portal-learn">
<h2>G07.PORTAL_LEARN (/, /learn/)</h2>
<ul>
<li><span>site/index.html</span> <span class="port-pill">IN &lt;- Group 3 Basalt</span></li>
<li><span>site/learn/index.html</span> <span class="port-pill">OUT -&gt; Grimoiric Folios</span></li>
</ul>
</div>
<div class="tool-card" id="g08-mcp-deploy">
<h2>G08.MCP_DEPLOY (/mcp/, /api/v1/)</h2>
<ul>
<li><span>mcp/{server,tools,rest}.py</span> <span class="port-pill">IN &lt;- MCP JSON-RPC</span></li>
<li><span>deploy/sync-vps-repos.sh</span> <span class="port-pill">OUT -&gt; Tmpfs / Caddy</span></li>
</ul>
</div>
</div>
<footer>
hyperstitionstud.io Architecture Atlas • Verified via hs-arch-atlas (Plan #67)
</footer>
</body>
</html>
+15
View File
@@ -0,0 +1,15 @@
{
"version": "2.18.0",
"atlas_sha256": "6629f146658904257ef4f12701ceeef435cff9efdd4d5893ac0e351fc3b61760",
"size_bytes": 5291,
"tool_groups": [
"G01.QUANT",
"G02.CALC_CI",
"G03.GRAPH",
"G04.ZOOLOGY",
"G05.ARCHIVE",
"G06.ENG_MATH",
"G07.PORTAL_LEARN",
"G08.MCP_DEPLOY"
]
}
@@ -120,7 +120,7 @@
<div class="pulse-dot"></div> <div class="pulse-dot"></div>
<h1>Cross-Repository Dependency Graph &amp; Auditable Build &rarr; Test &rarr; Stage_Commit Pipeline</h1> <h1>Cross-Repository Dependency Graph &amp; Auditable Build &rarr; Test &rarr; Stage_Commit Pipeline</h1>
</div> </div>
<p class="subtitle">Sibling Repositories under /workspace: ingglish-hyperdope-gematria &bull; technocapital-singularity-zoology (v2.17.0) &bull; encyclopedia-knowledge-graph (v2.17.0)</p> <p class="subtitle">Sibling Repositories under /workspace: ingglish-hyperdope-gematria &bull; technocapital-singularity-zoology (v2.17.1) &bull; encyclopedia-knowledge-graph (v2.17.1)</p>
</div> </div>
<!-- Main SVG Diagram --> <!-- Main SVG Diagram -->
Binary file not shown.

Before

Width:  |  Height:  |  Size: 285 KiB

After

Width:  |  Height:  |  Size: 281 KiB

@@ -0,0 +1,117 @@
# PLAN: Front-End-Grouped Architecture Atlas Tracing Producer/Consumer Binaries & Artifacts (`PLAN #67`)
**Document ID:** `PLAN-FRONT-END-GROUPED-ARCHITECTURE-ATLAS-AND-RELEASE-SYNC`
**Status:** `ACTIVE (docs/plans/active/)`
**Target Ecosystem Version:** `v2.18.0` (Baseline: `v2.17.0`)
**Target Repositories:** `hyperstitionstudio-core`, `encyclopedia-knowledge-graph`
**Web Route:** `https://hyperstitionstud.io/graph/docs/architecture-atlas.html` (`/graph/docs/architecture-atlas.html`)
**Author:** m00t & Hermes Agent
**Date:** 2026-12-01
---
## 1. Objective & Engineering Constraints
Build a lightweight, deterministic **Architecture Atlas** (`hyperstitionstud_io.publishing.architecture_atlas`, CLI `hs-arch-atlas`) that traces every **binary/script**, **intermediate/published artifact**, and **front-end tool** across the 6-repository `hyperstitionstud.io` ecosystem (`hyperstitionstudio-core`, `ingglish-hyperdope-gematria`, `technocapital-singularity-zoology`, `encyclopedia-knowledge-graph`, `haiperdohp-jemaytreeah`, `hyperdope-ci-build`), explicitly modeling producer -> artifact -> consumer lineage (for example: `hs-quant-harvest` & `hs-macro-harvest` -> `real-market-history.json` & `real-macro-indicators-latest.json` -> `quant/timeseries.py` -> `quant-timeseries.json` -> `hs-daily-brief` -> `daily-brief-latest.json` & `daily-brief-data.js` -> `/quant/` Panel 6 & `/api/v1/tools/hs_generate_daily_portfolio_brief`).
### Four Hard Design Invariants
1. **Front-End Tool Grouping Without Severing Interconnections:** Group diagrams by the **front-end tool / surface** they serve (`8` tool-centered groups `G01.QUANT` .. `G08.MCP_DEPLOY` + `1` shared backbone overview), while preserving **100%** of cross-group producer/consumer dependencies via typed **Boundary Port Pills** (`[IN <- G04.ZOOLOGY: <artifact>]` and `[OUT -> G08.MCP_DEPLOY: <consumer>]`) backed by clickable same-page lowercase hyphenated DOM anchors (`#g01-quant` .. `#g08-mcp-deploy`, avoiding CSS selector dot-collision on `.`) and matching canonical node/edge IDs (`binary:*`, `artifact:*`, `frontend:*`, `service:*`, `port:*`).
2. **Lightweight on Disk (`<= 85 KB` raw, `<= 16 KB` Brotli-11):** Render as a **single self-contained inline-SVG HTML document** (`/workspace/encyclopedia-knowledge-graph/docs/architecture-atlas.html`) plus an optional compact JSON graph index (`architecture-atlas.json`, `<= 25 KB`), avoiding multi-hundred-KB raster PNGs (`285 KB` each) and duplicate embedded-font PDFs in Git.
3. **Lightweight on Recompilation / Rerendering (`< 5 ms` no-op, `< 50 ms` dirty rebuild, `0` Pillow/ReportLab raster work):** Compute a deterministic `SHA-256` content digest over the introspected topology + `CURRENT_VERSION` (`vX.Y.Z`). With `--if-changed` (default in hooks/tests), rewrite disk artifacts **only when the topology or version actually changes**, eliminating spurious dirty Git diffs during `test_core_suite.py` runs.
4. **Automatic Release Synchronization (`0` extra manual steps):** Integrate into `hs-sync-version` (`version_sync.py`), `push-all-to-git-libre-audio.sh`, `deploy/sync-vps-repos.sh` (`.br`/`.gz` pre-compression), and `tests/test_core_suite.py` (coverage gate asserting 100% of `pyproject.toml` `[project.scripts]` binaries and `deploy/Caddyfile` routes appear in the atlas).
---
## 2. Format Selection & Disk / Render Footprint Budget
| Candidate Format | Disk Footprint (Uncompressed) | Brotli-11 VPS Size | Re-render Cost | Ctrl+F Searchable & Clickable Cross-Links | Decision |
| :--- | :---: | :---: | :---: | :---: | :--- |
| **Inline-SVG Self-Contained HTML (`architecture-atlas.html`) + `architecture-atlas.json`** | `~55–80 KB` total (`1` HTML + `1` JSON) | `~10–15 KB` | `< 5 ms` (`--if-changed` no-op) / `< 50 ms` rebuild (`0` Pillow/ReportLab) | Yes (`Ctrl+F` across all binary/artifact labels + clickable `#g01-quant..#g08-mcp-deploy` port links) | **SELECTED** |
| Per-group PNG suite (`8 × 285 KB`) | `~2.3 MB` binary assets in Git | `~2.3 MB` (incompressible) | `~2.5 s` Pillow rasterization + noisy binary diffs | No (`0` searchable text, `0` clickable links) | **REJECTED** |
| Compiled ReportLab PDF atlas | `~120–250 KB` per rebuild | `~120–250 KB` | `~600 ms` + non-deterministic stream diffs | Partial (`#page=`, poor interactive navigation) | **REJECTED** |
- **Visual Styling:** Reuses the offline Group 3 Stealth Basalt inline-SVG/CSS aesthetic (`#020617` void + `40px` grid, `#0f172a` double-rect masking behind arrows, DejaVu Sans Mono stack with zero external Google Fonts, semantic stroke colors: Cyan `#22d3ee` Front-End Tools, Emerald `#34d399` Binaries/CLIs, Violet `#a78bfa` Stored Artifacts/DBs, Amber `#fbbf24` Timers/Sync/Forge, Rose `#fb7185` Isolation/Security/CI Gates).
---
## 3. Front-End Tool Grouping Topology (`G01.QUANT` .. `G08.MCP_DEPLOY`, Zero Severed Edges)
The atlas (`architecture-atlas.html`) renders **Section 0 (Master Cross-Tool Backbone)** followed by **8 Front-End Tool Sub-Diagrams (`G01.QUANT` .. `G08.MCP_DEPLOY`)**. Cross-group edges never break: whenever an artifact produced in one group is consumed in another, the producing group emits a right-gutter **Output Port Pill** (`[OUT -> G03.GRAPH: taxonomy/*.json]` linking to `#g03-graph`) and the consuming group renders a matching left-gutter **Input Port Pill** (`[IN <- G04.ZOOLOGY: taxonomy/*.json]` linking back to `#g04-zoology`), both referencing the same canonical artifact ID (`artifact:*`). Using `id="g01-quant"` .. `id="g08-mcp-deploy"` for DOM/CSS anchors while displaying `G01.QUANT` .. `G08.MCP_DEPLOY` in diagram labels prevents CSS selector dot-parsing collisions.
### Section 0: Master Cross-Tool Backbone & Release/Deploy Spine
- Traces the top-level 6-repo flow at a glance:
- **Producers:** LAN Host `ingglish-exegesis.timer` (`ingglish-exegesis-push`) + VPS `systemd` timers (`run-vps-data-production.sh`, `run-vps-archive-rotation.sh`) + Developer `push-all-to-git-libre-audio.sh` (`hs-sync-version`, `hs-readme-sync`, `hs-deploy-scripts-sync`).
- **Hub & Hydrator:** `git.libre.audio` -> `deploy/sync-vps-repos.sh` -> `/var/www/hyperstitionstud.io/repos` (`tmpfs`, `.br`/`.gz`, `deploy/Caddyfile` + `hyperstition-mcp.service :8095`).
### `G01.QUANT` (`#g01-quant`): `/quant/` — Quantitative Time-Series, Macro & Bayesian Brief Workbench
- **Binaries & Modules:**
- `hs-quant-harvest` (`quant/collector.py`)
- `hs-macro-harvest` (`quant/macro.py`)
- `python3 -m hyperstitionstud_io.quant.timeseries` (`quant/timeseries.py`)
- `hs-daily-brief` (`quant/daily_brief.py`)
- `hs-ticker-card` (`quant/cards.py`)
- `hs-quant-voice-build` (`publishing/quant_voice.py`)
- `hs-pdf-build` (`publishing/pdf_compiler.py`)
- **Explicit Producer -> Artifact -> Consumer Trace (`hs-daily-brief` exemplar):**
1. `hs-quant-harvest` -> produces `ingglish-aq-archive/data/financial-aq-harvest-latest.json` & `site/quant/real-market-history.json`.
2. `hs-macro-harvest` -> produces `ingglish-aq-archive/data/real-macro-indicators-latest.json`.
3. `quant/timeseries.py` -> consumes `real-market-history.json` + `[IN <- G05.ARCHIVE: 25..NN-dossier-news-*.md]` + `[IN <- G04.ZOOLOGY: quantitative-economic-anchors.json]` -> produces `site/quant/quant-timeseries.json` & `quant-timeseries-data.js`.
4. **`hs-daily-brief`** -> consumes `real-macro-indicators-latest.json`, `quant-timeseries.json`, and prior `ingglish-aq-archive/data/daily-brief-state.json` (plus `ReadOnlyIsolationGuard` over `[IN <- G04.ZOOLOGY: glossary-registry.json, encyclopedia-manifest.json]`) -> produces `ingglish-aq-archive/data/daily-brief-state.json`, `site/quant/daily-brief-latest.json`, and `site/quant/daily-brief-data.js` -> consumed by `/quant/index.html` (Panel 6) and `[OUT -> G08.MCP_DEPLOY: hs_generate_daily_portfolio_brief]`.
5. `hs-ticker-card` -> consumes `quant-timeseries.json` + `[IN <- G04.ZOOLOGY: assemblage-builds-tier-list.json]` -> produces `*-stats-card.{png,json}` -> `[OUT -> G08.MCP_DEPLOY: /api/v1/tools/hs_generate_ticker_stats_card]`.
6. `hs-quant-voice-build` -> consumes `site/quant/quant-tutorials.js` -> produces deploy-time `site/quant/audio/ep0X-sY.wav` (gitignored, hydrated on VPS).
### `G02.CALC_CI` (`#g02-calc-ci`): `/calc/` & `/ci/` — Multi-Cipher Workbench (`haiperdohp-jemaytreeah`) & 4-Gate CI
- **Binaries & Scripts:** `ci_provision_ingglish.py`, `tools/normalize_caps.py`, `tools/classify_candidates.py`, `tools/generate_db_json.py`, `integrate-upstream-and-ui.sh` (`hyperdope-ci-build`), `run_exegesis_and_push_fedora41.sh`.
- **Artifacts:** `[IN <- G05.ARCHIVE: 01..NN-*.md & node_modules/ingglish]` -> `ci_provision_ingglish.py` produces `/ci/` (`db_ingglish_entries.txt`, `ci-audit-report.json`, `pr-payload.json`, `ONBOARDING-INGGLISH-AQ.{md,pdf}`) and patches `haiperdohp-jemaytreeah/db.txt` -> `generate_db_json.py` compiles `db_lite.json` (`16` ciphers) + `db.json` (`82` ciphers) + `config.js` -> consumed by `/calc/index.html` and `[OUT -> G07.PORTAL_LEARN: /calc/ Closeups]`.
### `G03.GRAPH` (`#g03-graph`): `/graph/` — Interactive Knowledge Graph Workbench & Plan Archives
- **Binaries & Scripts:** `hs-kg-build` (`graph/cli.py`), `build_encyclopedia_knowledge_graph.py`, `hs-archive-rotate` (`publishing/archive_rotator.py`), `hs-pdf-build`.
- **Artifacts:** `[IN <- G04.ZOOLOGY: taxonomy/*.json, encyclopedia-manifest.json]` -> `build_encyclopedia_knowledge_graph.py` produces `encyclopedia-graph.{json,graphml,gexf}`, `graph-data.js`, `encyclopedia.canvas`, `atlas-mode{1,2,3}.png` -> consumed by `/graph/index.html` and `[OUT -> G08.MCP_DEPLOY: hs_query_knowledge_graph & hs-db-build]`.
- **Plan/Manual Lineage:** `hs-archive-rotate` rotates `docs/archive/PLAN-*.md` & `docs/plans/inactive/` -> `completed-plans-archive.tar.gz` + `archive-manifest.json` & `inactive-plans-archive.tar.gz` + `inactive-archive-manifest.json` -> `[OUT -> G08.MCP_DEPLOY: hs_inspect_documentation_and_manuals]`.
### `G04.ZOOLOGY` (`#g04-zoology`): `/zoology/` & `/encyclopedia/` — Taxonomy, Glossary, ETI Tier List & 22-Volume PDFs
- **Binaries & Scripts:** `classify_technocapital_singularity.py`, `sources.py`, `hs-citations` (`ci/citation_sources.py`), `generate_aq_tier_list.py`, `build_wire_report_pdf.py`.
- **Artifacts:** `[IN <- G05.ARCHIVE: node_modules/ingglish & 65..69-dossier-*.md]` -> produces `taxonomy/*.json` (`glossary-registry.json`, `singularity-zoology-matrix.json`, `memetic-superclass-registry.json`, `quantitative-economic-anchors.json`, `assemblage-builds-tier-list.json`, `citations-ledger-*.json`), `encyclopedia/00..08/*.pdf` (`22` PDFs), `tier-list-*.{md,pdf,png}`, `comprehensive-glossary.{md,pdf}`, `proposal-*.{md,pdf}` -> `[OUT -> G01.QUANT, G03.GRAPH, G08.MCP_DEPLOY]`.
### `G05.ARCHIVE` (`#g05-archive`): `/archive/` — Current-Events & Thematic Ingglish AQ Corpus + Fedora 41 Worker
- **Binaries & Scripts:** `collect_news_aq.py`, `synthesize_news_dossier_openrouter.py`, `evaluate_aq.mjs`, `manage_lecture_artifacts.py`, `packaging/build-fedora41-rpm.sh`, `/usr/bin/ingglish-exegesis-push` (`run_exegesis_and_push_fedora41.sh`).
- **Artifacts:** `news-aq-harvest-*.json` -> `25..73+-dossier-news-YYYY-MM-DD.md` & `00-index-and-methodology.md` + `01-ingglish-aq-lexicon.md` + `65..69-dossier-*.md` + `ingglish-isopsephic-exegesis-*.fc41.noarch.rpm` -> `[OUT -> G01.QUANT, G02.CALC_CI, G04.ZOOLOGY]`.
### `G06.ENG_MATH` (`#g06-eng-math`): `/engineering/` & `/math/` — Live-Introspected Explication Hubs & Polyglot REPL
- **Binaries & Modules:** `hs-eng-docs` (`publishing/engineering_docs.py`), `hs-math-docs` (`publishing/math_docs.py`), `publishing/polyglot_sandbox.py`.
- **Artifacts:** Introspects `[IN <- G08.MCP_DEPLOY: pyproject.toml, mcp/tools.py, schemas/v1/]` + `[IN <- G01.QUANT / G03.GRAPH / G04.ZOOLOGY: ciphers, phonetics, quant, lenses, ipld]` -> produces `site/engineering/{index.html,*/index.html,engineering-manifest.json,engineering-manifest-data.js}`, `site/math/{index.html,*/index.html,math-manifest.json,math-manifest-data.js}`, wired with `site/assets/hs-guile-scheme-repl.js` -> `[OUT -> G08.MCP_DEPLOY: hs_inspect_engineering_and_math_docs & hs_evaluate_polyglot_sandbox]`.
### `G07.PORTAL_LEARN` (`#g07-portal-learn`): `/` (Portal Home), `/learn/` & `/donate/` — Showcase, Interactive Track & Repo READMEs
- **Binaries & Modules:** `hs-closeups-sync` (`publishing/closeups_sync.py`), `hs-readme-sync` (`publishing/readme_sync.py`), `hs-highlights` (`publishing/highlights.py`).
- **Artifacts:** Introspects UI states across `[IN <- G01.QUANT, G02.CALC_CI, G03.GRAPH, G06.ENG_MATH]` -> produces `site/assets/closeups/{quadrant-*.png,ui-elements-manifest.json}` consumed by `site/index.html`; `hs-readme-sync` maintains all `6` root `README.md` files + `.git/hooks/{pre-commit,commit-msg}`; `site/learn/{index.html,learn-app.js}` & `site/donate/index.html` bind `schemas/v1/learn-progress-state.schema.json`.
### `G08.MCP_DEPLOY` (`#g08-mcp-deploy`): `/mcp`, `/api/v1/*` & `/schemas/` — Stateless MCP/REST Server, SQLite Catalog & Release/Deploy Pipeline
- **Binaries & Modules:** `hs-mcp` (`mcp/{server,tools,resources,rest}.py`), `hs-db-build` (`db/sqlite_meta.py`), `hs-doctor` (`ci/doctor.py`), `hs-public-smoke` (`ci/public_regression.py`), `hs-sync-version` (`version_sync.py`), `hs-deploy-scripts-sync` (`ci/deploy_scripts_sync.py`), `deploy/{run-vps-data-production.sh,run-vps-archive-rotation.sh,sync-vps-repos.sh}`, `push-all-to-git-libre-audio.sh`.
- **Artifacts:** `hs-db-build` indexes `[IN <- G03.GRAPH, G04.ZOOLOGY, G05.ARCHIVE, G06.ENG_MATH, G07.PORTAL_LEARN]` into `.cache/hyperstition-catalog.db` & `.cache/api-telemetry.db` -> served alongside `[IN <- G01.QUANT: daily-brief-latest.json, quant-timeseries.json]` over `/mcp` (`20` tools, `14` resources) & `/api/v1/*` (with `ETag` `304`); `hs-doctor` + `hs-public-smoke` maintain `.cache/internal-test-baseline-latest.json`.
---
## 4. Architecture & Implementation Modules
1. **Create `src/hyperstitionstud_io/publishing/architecture_atlas.py` (`hs-arch-atlas`):**
- Defines typed node & edge dataclasses:
- `AtlasNode(id, group_id, kind, label, repo, path_or_route, module_or_entry)` where `kind in {"binary", "artifact", "frontend", "service", "port"}`, `group_id in {"G01.QUANT", "G02.CALC_CI", "G03.GRAPH", "G04.ZOOLOGY", "G05.ARCHIVE", "G06.ENG_MATH", "G07.PORTAL_LEARN", "G08.MCP_DEPLOY"}`, and `id` uses typed prefixes (`binary:*`, `artifact:*`, `frontend:*`, `service:*`, `port:in:*`, `port:out:*`).
- `AtlasEdge(src_id, dst_id, verb, label)` where `verb in {"produces", "consumes", "serves", "verifies", "syncs"}`.
- **Live Introspection + Coverage Verification:** Reads `pyproject.toml` (`[project.scripts]`), `mcp/tools.py` (`MCP_TOOLS_SCHEMA`), and `deploy/Caddyfile` (`handle_path` routes) at build time. Computes `topology_sha256` (`hashlib.sha256(canonical_json(atlas_payload) + CURRENT_VERSION)`).
- **Zero-Churn `--if-changed` Mode:** Before writing `architecture-atlas.html` or `architecture-atlas.json`, checks an embedded `<!-- HS-ATLAS-DIGEST: <sha256> v<version> -->` marker in the existing HTML (and `topology_sha256` in JSON). If identical, returns `{"ok": True, "changed": False, "skipped_write": True}` in `< 5 ms` with **0 disk writes**.
- **Pure-Python Inline SVG Layout Engine (`_render_group_svg`):** Automatically computes vertical lane columns inside each group (`Binaries/Scripts` | `Produced Artifacts` | `Consumers / Front-End Tool`), places `[IN <- GXX.TAG: ...]` pills on the left gutter and `[OUT -> GYY.TAG: ...]` pills on the right gutter (linking via lowercase `#gXX-tag` anchors), applies `#0f172a` double-rect masking behind orthogonal/cubic arrows so arrows never cross text, and verifies `0` bounding-box overlaps.
2. **Register CLI & Release Pipeline Hooks:**
- `pyproject.toml`: Add `hs-arch-atlas = "hyperstitionstud_io.publishing.architecture_atlas:main"`.
- `version_sync.py`: Call `build_architecture_atlas(if_changed=True)` at the end of `sync_versions()` so every `hs-sync-version --set` / `--auto-bump` release automatically refreshes the atlas with the new version and any added/changed binaries/routes.
- `push-all-to-git-libre-audio.sh` & `deploy/sync-vps-repos.sh`: Run `hs-arch-atlas --if-changed` pre-push (`push-all-to-git-libre-audio.sh`), and let `sync-vps-repos.sh`'s existing `*.html` pre-compression pass serve `/graph/docs/architecture-atlas.html` as Brotli-11 (`~12 KB` over the wire).
- `publishing/readme_sync.py` & `publishing/engineering_docs.py` (`Unit E0` / `E5`): Document the atlas link (`/graph/docs/architecture-atlas.html`) and update `17` -> `21` CLI entrypoints if needed (noting `pyproject.toml` already has `20` `hs-*` scripts today; adding `hs-arch-atlas` brings it to `21`).
- `tests/test_core_suite.py`: Assert `hs-arch-atlas --check` passes (`100%` of `pyproject.toml` `[project.scripts]` binaries, `hs-daily-brief`, and active `Caddyfile` front-end routes represented, `0` broken `#g01-quant..#g08-mcp-deploy` port targets, `0` container host paths, `architecture-atlas.html <= 100 KB`, and `--if-changed` second run performs `0` writes).
---
## 5. Verification Plan (Once Implemented)
1. Run `hs-arch-atlas` and confirm `architecture-atlas.html` (`<= 100 KB`) and `architecture-atlas.json` (`<= 30 KB`) are generated cleanly in `< 100 ms`.
2. Immediately re-run `hs-arch-atlas --if-changed` and verify `changed == False` and `skipped_write == True` (`< 10 ms`, `git status` clean).
3. Run `hs-arch-atlas --check` and confirm `missing_cli_binaries == []`, `missing_caddy_routes == []`, `broken_port_links == []`, and `hs-daily-brief` traces `real-market-history.json` + `real-macro-indicators-latest.json` + `quant-timeseries.json` + `daily-brief-state.json` -> `daily-brief-latest.json` + `daily-brief-data.js` -> `/quant/` & `/mcp`.
4. Run `PYTHONPATH=/workspace/hyperstitionstudio-core/src python3 /workspace/hyperstitionstudio-core/tests/test_core_suite.py` (`ALL 7 TEST SUITES PASSED`) and `deploy/test-first-deployment.sh` (`HTTP 200` on `/graph/docs/architecture-atlas.html` with `br` pre-compression).
@@ -0,0 +1,78 @@
# PLAN: Global `[A-Z][0-9]` Shorthand Disambiguation (`<PREFIX><NN>.<DOMAIN_TAG>`) Across Documentation & Comments (`PLAN #68`)
**Document ID:** `PLAN-HUMAN-TEXT-AND-COMMENT-SHORTHAND-DISAMBIGUATION`
**Status:** `ACTIVE (docs/plans/active/)`
**Target Ecosystem Version:** `v2.18.0` (Baseline: `v2.17.0`)
**Target Repositories:** All `6` repositories (`hyperstitionstudio-core`, `ingglish-hyperdope-gematria`, `technocapital-singularity-zoology`, `encyclopedia-knowledge-graph`, `haiperdohp-jemaytreeah`, `hyperdope-ci-build`)
**Scope:** **All human-read documentation, comments, and prose tracked anywhere in the repositories. Executable code is globally exempt so software functionality is 100% unimpacted.**
**Author:** m00t & Hermes Agent
**Date:** 2026-12-01
---
## 1. Objective & Strict Code-Exemption Invariant
Across the `6` `hyperstitionstud.io` repositories, bare `[A-Z][0-9]{1,2}` shorthands (`G0..G8`, `M0..M7`, `S1..S7`, `E0..E5`, `D0..D8`, `P1..P6`, `R1..R6`) overlap across independent subsystems (`RULE-G01.COLLAPSE` vs. `PLAN-GATE-G01.EXTANT_DATA` vs. `GEN-01.INGGLISH` vs. `ATLAS-G01.QUANT`; `CLASS-M01.ENTROPIC` vs. `UNIT-M01.BASE36_AQ` vs. `LEARN-M01.CABBALA` vs. `FRED M1/M2`; `CLASS-S01.SILICON` vs. `STYLE-GATE-S01.NO_SLATE_BG`; `DEPLOY-GATE-D01.MIRROR_PARITY` vs. `DOSE-D01.SINGLE_LOCK`; `REGIME-R01.BULL` vs. `RING-R01.AST_WHITELIST`).
### Hard Boundary: Human-Read Text & Comments vs. Executable Code
1. **In Scope (Human-Read Text & Comments Only):**
- Markdown documentation (`README.md`, `docs/*.md`, active/piecewise plans, operator's manuals, `00-index-and-methodology.md`, proposals) and compiled Dark-Mode PDFs (`.pdf`).
- Non-executable source comments (`# ...` in `.py`/`.sh`/`.toml`/`.yaml`, `// ...` and `/* ... */` in `.js`/`.mjs`/`.css`, `<!-- ... -->` in `.html`/`.svg`).
- Non-functional standalone module/file header docstrings (when **not** inspected at runtime or asserted by tests) and purely visual diagram labels (`.svg` `<text>`, atlas/mockup captions).
2. **Globally Exempt (Zero Software Functionality Impact):**
- **All executable code and machine-parsed identifiers:** variable/function/class/constant names, imports, expressions, control flow, CLI flags, HTTP routes, JSON/TOML keys, schema enums, CSS selectors/classes, HTML element IDs, and regexes.
- **All runtime-consumed string literals & test assertions:** strings compared by `tests/test_core_suite.py`, `public_regression.py`, `deploy_scripts_sync.py`, `MCP_TOOLS_SCHEMA` descriptions/arguments, `ReadOnlyIsolationGuard` SHA-256-locked source files (`glossary-registry.json`, `encyclopedia-manifest.json`), and historical cold `.tar.gz` archives.
- **Ast-Equivalence Guarantee:** Every `.py` file modified only in comments must pass an exact Python `ast.dump(ast.parse(before)) == ast.dump(ast.parse(after))` parity check (excluding purely cosmetic comment tokens) — guaranteeing **zero behavioral or functional change**.
---
## 2. Canonical Disambiguation Standard (`<PREFIX><NN>.<DOMAIN_TAG>`)
Whenever considering `[A-Z][0-9]` shorthand in documentation, comments, or the like across any of the `6` repositories, apply `<PREFIX><NN>.<DOMAIN_TAG>`:
| Subsystem / Category | Legacy Bare Form | Canonical Disambiguated Form (`<PREFIX><NN>.<DOMAIN_TAG>`) |
| :--- | :--- | :--- |
| **Architecture Atlas Tool Groups** | `G1..G8` | `G01.QUANT`, `G02.CALC_CI`, `G03.GRAPH`, `G04.ZOOLOGY`, `G05.ARCHIVE`, `G06.ENG_MATH`, `G07.PORTAL_LEARN`, `G08.MCP_DEPLOY` |
| **Orthographic Generations** | `G0`, `G1` | `GEN-00.ENGLISH`, `GEN-01.INGGLISH` *(or `Gen 0 (GEN-00.ENGLISH)`)* |
| **Cipher & Phonemic Rules** | `G1..G5` | `RULE-G01.COLLAPSE`, `RULE-G02.CROSS_GEN_TWIN`, `RULE-G03.STRUCTURAL`, `RULE-G04.ISOMETRIC`, `RULE-G05.TWIN_PRIME` |
| **Engineering Plan Binary Gates** | `G1..G4` | `PLAN-GATE-G01.EXTANT_DATA`, `PLAN-GATE-G02.ZERO_LLM`, `PLAN-GATE-G03.EROFS_SAFE`, `PLAN-GATE-G04.EXPORTABLE` |
| **Deploy Script Gates** | `D1..D8` | `DEPLOY-GATE-D01.MIRROR_PARITY` .. `DEPLOY-GATE-D08.PRE_COMMIT_STAGE` |
| **Public Smoke Gates** | `P1..P6` | `SMOKE-GATE-P01.STATIC_ROUTES` .. `SMOKE-GATE-P06.NAV_STYLE_PARITY` |
| **Style & Mobile Regression Gates** | `S1..S4` | `STYLE-GATE-S01.NO_SLATE_BG`, `STYLE-GATE-S02.DEJAVU_FONT`, `STYLE-GATE-S03.HEADER_PARITY`, `STYLE-GATE-S04.MOBILE_UI` |
| **Engineering Hub Units** | `E0..E5` | `UNIT-E00.HUB`, `UNIT-E01.CIPHERS`, `UNIT-E02.GRAPH_SQLITE`, `UNIT-E03.QUANT_BRIEF`, `UNIT-E04.MCP_REST_IPLD`, `UNIT-E05.CICD_VPS` |
| **Applied Math Hub Units** | `M0..M5` | `UNIT-M00.HUB`, `UNIT-M01.BASE36_AQ`, `UNIT-M02.PHONETICS_ENTROPY`, `UNIT-M03.GRAPH_SPECTRAL`, `UNIT-M04.Z_CALCULUS`, `UNIT-M05.MACRO_BAYESIAN` |
| **`/learn/` Track Folios** | `M01..M06` | `LEARN-M01.CABBALA`, `LEARN-M02.PARASITE`, `LEARN-M03.SERIES`, `LEARN-M04.STRATA`, `LEARN-M05.RHIZOME`, `LEARN-M06.GEOMANCY` |
| **Singularity & Memetic Classes** | `S1..S6`, `M1..M7+` | `CLASS-S01.SILICON` .. `CLASS-S06.AGI`; `CLASS-M01.ENTROPIC` .. `CLASS-M07.HYPERSTITIONAL` *(paired `S1 (CLASS-S01.SILICON)` near locked JSON keys)* |
| **Confluence Dose & Regimes** | `D0..D4`, `R1..R3` | `DOSE-D00.NONE` .. `DOSE-D04.FULL_LOCK`; `REGIME-R01.BULL`, `REGIME-R02.PINNED_ISOMETRIC`, `REGIME-R03.TAIL_DRAWDOWN` |
| **Polyglot Sandbox Security Rings** | `R1..R4` | `RING-R01.AST_WHITELIST`, `RING-R02.ZERO_EVAL`, `RING-R03.BOUNDED_FUEL`, `RING-R04.PURE_SUBSET` |
- **DOM/CSS Safety:** Keep HTML/CSS anchors lowercase hyphenated (`#g01-quant`, `#unit-e03-quant-brief`) so `.` never breaks CSS selectors.
- **Explicit Non-Shorthand Allowlist:** `H1/H2/H3` (HTTP), `V8` (Yahoo API), `FRED M1/M2` (monetary aggregates), `P20/P50/P90` (percentiles), `UTF-8`, `CIDv1`, `SHA-256`, `H01..H39` (harvest keys), `EUV`, `AI`.
---
## 3. Tokenizer-Based Scope Separation & 6-Repository Rollout
1. **Repository Policy Standard (`hyperstitionstudio-core/docs/SHORTHAND-DISAMBIGUATION-STANDARD.md`):**
- Documents the canonical `<PREFIX><NN>.<DOMAIN_TAG>` table, the **Global Executable Code Exemption**, and the `ast.dump` invariance guarantee under Git source control.
2. **Comment/Doc-Only Audit Helper (`src/hyperstitionstud_io/ci/shorthand_lint.py`, CLI `hs-shorthand-lint`):**
- **Strict Code Exemption via Real Lexers (`0` Regex False Positives on Code):**
- **Python (`.py`):** Uses `stdlib tokenize.generate_tokens` and checks **only `tokenize.COMMENT` tokens** (`# ...`). All code tokens (`NAME`, `STRING`, `OP`, `NUMBER`, runtime docstrings) are skipped completely.
- **JS / CSS / Shell / HTML:** Extracts **only** comment blocks (`//`, `/*...*/`, `# ...`, `<!--...-->`) and skips all executable code, strings, and `<script>`/`<style>` code bodies.
- **Markdown (`.md`):** Checks prose outside fenced code blocks (```` ```...``` ````) and inline backtick code spans (`` `...` ``).
- **Staged-Diff Gate & Ratchet:** `.git/hooks/pre-commit` (`--staged-diff`) prevents new bare `[A-Z][0-9]` tokens in newly authored docs/comments across all `6` repositories, while `--check-all` tracks migration progress against `.cache/shorthand-legacy-baseline.json` with zero runtime impact.
3. **Phased 6-Repository Documentation & Comment Migration:**
- **Phase 1 (`hyperstitionstudio-core`):** Migrate `.py`/`.sh`/`.js`/`.css`/`.html` **comments only** (`ast.dump` unchanged), `README.md`, and active operator manuals.
- **Phase 2 (`encyclopedia-knowledge-graph`):** Migrate `docs/plans/active/**`, `docs/*.md`, `OPERATORS-MANUAL-*.md`, `scripts/*.py` **comments only**, and `README.md`.
- **Phase 3 (`ingglish-hyperdope-gematria`):** Migrate `ingglish-aq-archive/scripts/**` & `packaging/**` **comments only**, `00-index-and-methodology.md`, `ONBOARDING-INGGLISH-AQ.md`, and `README.md`.
- **Phase 4 (`technocapital-singularity-zoology`):** Migrate `scripts/*.py` **comments only**, `proposal-*.md`, and `README.md` (`ReadOnlyIsolationGuard` JSON/encyclopedia files untouched).
- **Phase 5 (`hyperdope-ci-build` & `haiperdohp-jemaytreeah`):** Migrate `README.md`, `docs/ONBOARDING-INGGLISH-AQ.md`, and script/tool **comments only** without altering `db.txt`/`db.json`/UI logic.
- **Phase 6:** Recompile updated `.pdf` manuals via `hs-pdf-build --refresh-all-web-pdfs` and verify full regression pass.
---
## 4. Verification Plan (Once Implemented)
1. **Zero Functional Code Impact Verification:** Run an automated Python `ast.dump` parity check across every modified `.py` file (`ast.dump(old_ast) == ast.dump(new_ast)`), and confirm `bash -n` + `node --check` + `tests/test_core_suite.py` (`ALL 7 TEST SUITES PASSED`) pass with **0 code/test changes**.
2. **Tokenizer Exemption Verification:** Confirm `hs-shorthand-lint` ignores bare `G1`, `M2`, `S3` inside Python variables, string literals, JSON files, and fenced Markdown code blocks, while flagging bare `G1` / `M2` / `S3` inside `#` / `//` comments and Markdown prose.
3. **Deployment Parity:** Run `hs-deploy-scripts-sync --check` (Gates `DEPLOY-GATE-D01.MIRROR_PARITY` .. `D08`) and `deploy/test-first-deployment.sh`.
@@ -0,0 +1,42 @@
# PLAN: Comprehensive Root-Cause Resolution of All Namespace & Path Discrepancies Between Localhost & VPS (`PLAN #71`)
**Document ID:** `PLAN-VPS-LOCALHOST-NAMESPACE-DISCREPANCY-RESOLUTION`
**Status:** `ACTIVE (docs/plans/active/)`
**Target Ecosystem Version:** `v2.17.2` (Baseline: `v2.17.1`)
**Target Repositories:** `hyperstitionstudio-core`, `encyclopedia-knowledge-graph`
**Author:** m00t & Hermes Agent
**Date:** 2026-12-02
---
## 1. Context & Scope of Discrepancies
### Ecosystem-Wide Namespace & Path Discrepancies
Beyond the CI repository naming divergence (`hyperdope-ci-build` ↔ `ingglish-hyperdope-ci`), subtle namespace and path discrepancies can occur across environments due to:
1. **Repository Naming Aliases**: Alternative folder clones for the CI artifact generator.
2. **Configuration Synchronization**: Decoupled `workspace.toml` (untracked) vs `workspace.example.toml` (template), requiring programmatic schema version synchronization.
3. **Host Path Leakage**: Absolute container host path references breaking offline URN invariants (`test_offline_urn_namespaces_and_no_external_https_fonts`).
4. **Persistent Source vs. Tmpfs RAM Webroot**: Divergence between persistent source checkouts (`REPOS_ROOT`) and RAM-backed webroots (`LIVE_REPOS` at `/var/www/hyperstitionstud.io/repos`).
### Architectural Goal
Establish a **comprehensive single-source-of-truth namespace standardization framework** that resolves all path, directory, and configuration discrepancies at the root across local development and production VPS environments.
---
## 2. Technical Implementation Specifications
### 1. Complete CI Repository Standardization (`hyperdope-ci-build`)
Eliminate `ingglish-hyperdope-ci` entirely across Gitea remotes, clone guides (`README.md`), deployment scripts (`sync-vps-repos.sh`), and configuration accessors (`config/__init__.py`), enforcing `hyperdope-ci-build` as the sole canonical repository key.
### 2. Strict Workspace Configuration & Schema Parity (`workspace.toml`)
Enforce programmatic `schema_version` synchronization between `hyperstitionstud_io.__version__` and `workspace.toml` during version bumps and deployments, ensuring configuration keys never drift.
### 3. Container-Relative URN & Path Normalization (`normalize_workspace_relpath`)
Ensure all configuration paths, IPLD DAG CIDs, and metadata registries utilize container-relative `/workspace/...` or `/srv/hyperstitionstud.io/repos/...` representations, backed by `ReadOnlyIsolationGuard` and `test_offline_urn_namespaces_and_no_external_https_fonts`.
---
## 3. Verification & Preservation Assurances
1. **8-Gate Deployment Readiness**: Verified via `hs-deploy-scripts-sync` (`D1`–`D8`).
2. **Full Test Suite Enforcement**: Verified via `tests/test_core_suite.py` (`ALL 7 TEST SUITES PASSED`).
3. **AST Invariance**: Guaranteed zero behavioral or functional changes to executable code.
@@ -0,0 +1,57 @@
# PLAN: VPS Node.js Runtime Provisioning & Development-Production Test Parity (`PLAN #69`)
**Document ID:** `PLAN-VPS-NODEJS-RUNTIME-PROVISIONING-AND-TEST-PARITY`
**Status:** `ACTIVE (docs/plans/active/)`
**Target Ecosystem Version:** `v2.17.2` (Baseline: `v2.17.1`)
**Target Repositories:** `hyperstitionstudio-core`, `encyclopedia-knowledge-graph`
**Author:** m00t & Hermes Agent
**Date:** 2026-12-02
---
## 1. Context & Problem Statement
### Problems Solved
During autonomous VPS execution of `hyperstition-closing-bell-harvest.service` and `hyperstition-utc-rollover-harvest.service` (`run-vps-data-production.sh`), Stage 3 verification runs `tests/test_core_suite.py`.
Previously, minimal headless VPS instances lacked Node.js in `$PATH`. Consequently, test subtests verifying client-side JavaScript components—specifically:
1. **Guile Scheme & Polyglot REPL Sandbox** (`site/assets/hs-guile-scheme-repl.js`)
2. **Matrix Code-Rain Animation Profiles** (`site/assets/hs-matrix-coderain.js`)
3. **Quant Guided Tour UI Target Signatures** (`site/quant/quant-tutorials.js`)
raised `FileNotFoundError: [Errno 2] No such file or directory: 'node'` when invoking `subprocess.run(["node", ...])`. This required adding graceful fallback skips (`if not shutil.which("node"): continue`) in `test_core_suite.py`.
### Conformity Between Server and Dev Testing Routines
Installing Node.js LTS natively on the target VPS during deployment provisioning eliminates this environment divergence. It guarantees **100% parity** between local developer testing, CI workflows, and VPS execution, allowing `test_core_suite.py` to execute the complete Node.js V8 validation suite on the server without any skipped subtests.
---
## 2. Technical Implementation Specifications
### 1. Automated Node.js Provisioning in `deploy/sync-vps-repos.sh`
Extend Section 3b (`[3b/5]` voice synthesis / dependency setup) of `deploy/sync-vps-repos.sh` to check for `node` and automatically install Node.js LTS via DNF (Fedora 41) or APT (Ubuntu/Debian):
```bash
if [[ -z "$(type -P node || true)" ]]; then
if [[ "${DO_CADDY}" -eq 1 ]]; then
if [[ -n "$(type -P dnf || true)" ]]; then
echo " -> Installing Node.js via dnf for full test execution parity..."
${SUDO} dnf install -y -q nodejs || true
elif [[ -n "$(type -P apt-get || true)" ]]; then
echo " -> Installing Node.js via apt-get for full test execution parity..."
${SUDO} env DEBIAN_FRONTEND=noninteractive apt-get install -y -qq nodejs npm || true
fi
fi
fi
```
### 2. Removal of Graceful Skip Guards in `tests/test_core_suite.py`
Once Node.js is natively provisioned on the VPS, remove the `if not shutil.which("node"):` guards from `test_core_suite.py`, restoring strict assertion enforcement for all Node-backed JavaScript / Polyglot REPL test suites in production.
### 3. Documentation & Operator Manual Updates
Update `docs/VPS-AND-GIT-OPERATOR-DEPLOYMENT-GUIDE.md` and `docs/OPERATORS-MANUAL-LLM-TOKEN-DEPENDENT-DATA-PIPELINES.md` to list Node.js LTS as a formal prerequisite for VPS harvesting hosts.
---
## 3. Verification Plan
1. Run `hs-deploy-scripts-sync --check` to verify all 8 readiness gates (`D1`–`D8`).
2. Run `tests/test_core_suite.py` confirming successful execution of all Node.js subtests without skips.
3. Commit plan, documentation, and deployment tooling updates across repositories.
@@ -39,10 +39,10 @@ Every human-facing surface will replace needlessly ornate Greek/Latin/critical-t
| *"Standard Etymological English (Diachronic Visual-Scribal Orthography)"* | **Written English (`Gen 0` — How It's Spelled on Paper)** | Immediately tells the reader we are scoring standard dictionary spelling, silent letters included. | | *"Standard Etymological English (Diachronic Visual-Scribal Orthography)"* | **Written English (`Gen 0` — How It's Spelled on Paper)** | Immediately tells the reader we are scoring standard dictionary spelling, silent letters included. |
| *"Synchronic Phonemic Orthography (CMUdict Ingglish)"* | **Spoken Sound (`Gen 1 Ingglish` — Spelled How It Sounds)** | Explains the exact transformation in 5 plain words without requiring linguistics training. | | *"Synchronic Phonemic Orthography (CMUdict Ingglish)"* | **Spoken Sound (`Gen 1 Ingglish` — Spelled How It Sounds)** | Explains the exact transformation in 5 plain words without requiring linguistics training. |
| *"Etymological Ghost Mass"* | **Silent Letters & Spelling Camouflage** | Self-explanatory on first read. | | *"Etymological Ghost Mass"* | **Silent Letters & Spelling Camouflage** | Self-explanatory on first read. |
| *"Vector G1: Intergenerational Variance Collapse ($\text{Var} \to 0.0$)"* | **Sound Convergence (`G1` — Different Words Landing on One Number)** | Describes what actually happens: words with different written scores land on the exact same spoken score. | | *"Vector RULE-G01.COLLAPSE: Intergenerational Variance Collapse ($\text{Var} \to 0.0$)"* | **Sound Convergence (`RULE-G01.COLLAPSE` — Different Words Landing on One Number)** | Describes what actually happens: words with different written scores land on the exact same spoken score. |
| *"Vector G4: Hereditary Isometric Chokepoint Invariance ($\Delta = 0$)"* | **Fixed Chokepoints (`G4` — Words Whose Score Never Changes, $\Delta = 0$)** | Directly states the mathematical property ($\text{Written Score} == \text{Spoken Score}$). | | *"Vector RULE-G04.ISOMETRIC: Hereditary Isometric Chokepoint Invariance ($\Delta = 0$)"* | **Fixed Chokepoints (`RULE-G04.ISOMETRIC` — Words Whose Score Never Changes, $\Delta = 0$)** | Directly states the mathematical property ($\text{Written Score} == \text{Spoken Score}$). |
| *"Vector G5: Twin-Prime Mutation IQ"* | **Prime-to-Prime Shifts (`G5` — Prime Written Score $\to$ Prime Spoken Score)** | States the exact arithmetic rule instead of a metaphor. | | *"Vector RULE-G05.TWIN_PRIME: Twin-Prime Mutation IQ"* | **Prime-to-Prime Shifts (`RULE-G05.TWIN_PRIME` — Prime Written Score $\to$ Prime Spoken Score)** | States the exact arithmetic rule instead of a metaphor. |
| *"Double Articulation ($\text{S1–S5} \times \text{S6}$ Coupling)"* | **Tech + Capital Link (`S1–S5` Tech Paired with `S6` Finance/Legal Capture)** | Makes it obvious that a technical bottleneck is paired with a financial or legal owner. | | *"Double Articulation ($\text{CLASS-S01.SILICON–CLASS-S05.BWO} \times \text{CLASS-S06.AGI}$ Coupling)"* | **Tech + Capital Link (`CLASS-S01.SILICON–CLASS-S05.BWO` Tech Paired with `CLASS-S06.AGI` Finance/Legal Capture)** | Makes it obvious that a technical bottleneck is paired with a financial or legal owner. |
| *"Grand Central Station Pareidolia vs. The Room Filter (Contingent Meaning)"* | **No Dictionary Fishing ("Stay in the Room" Rule)** | Immediately communicates why we only test words and prices from the same day's news story or supply chain. | | *"Grand Central Station Pareidolia vs. The Room Filter (Contingent Meaning)"* | **No Dictionary Fishing ("Stay in the Room" Rule)** | Immediately communicates why we only test words and prices from the same day's news story or supply chain. |
| *"Scope 1 Intra-Instrument Self-Lock"* | **Self-Match (`Scope 1` — Price or Move Matches the Asset's Own Name)** | Eliminates Latin prefixes (*"intra-instrument"*); anyone understands *"Nvidia closing at `$137` matches `envideea = 137`."* | | *"Scope 1 Intra-Instrument Self-Lock"* | **Self-Match (`Scope 1` — Price or Move Matches the Asset's Own Name)** | Eliminates Latin prefixes (*"intra-instrument"*); anyone understands *"Nvidia closing at `$137` matches `envideea = 137`."* |
| *"Scope 2 Supply-Chain Equivalence-Ring Migration"* | **Sector Hub Match (`Scope 2` — Lands on a Shared `S1–S6` Number)** | Explains that the price or move hit one of the 30 shared sector coordinates. | | *"Scope 2 Supply-Chain Equivalence-Ring Migration"* | **Sector Hub Match (`Scope 2` — Lands on a Shared `S1–S6` Number)** | Explains that the price or move hit one of the 30 shared sector coordinates. |
@@ -64,7 +64,7 @@ When the browser sends a user question `q` to `POST /api/v1/tools/hs_ask_chatbot
| **`1. ticker_and_card`** | • *"What is NVDA's latest price and Confluence Dose?"*<br/>• *"Show me the stats card for SOL-USD"*<br/>• *"What is ANTHR-PVT's price?"* | `site/quant/quant-timeseries.json` + `quant/cards.py` (`35 ms` fast-path) | • Real close (`$135.40`), `change_bps`, `Vol20d`, `Dose 0..3+` taxon label, 6 TierZoo base stats, optional inline `900×1260` PNG card preview, and deep links to `/quant/` & `/graph/`.<br/>• For `ANTHR-PVT`: *"No market data available (private entity — 0 synthetic bars)."* | | **`1. ticker_and_card`** | • *"What is NVDA's latest price and Confluence Dose?"*<br/>• *"Show me the stats card for SOL-USD"*<br/>• *"What is ANTHR-PVT's price?"* | `site/quant/quant-timeseries.json` + `quant/cards.py` (`35 ms` fast-path) | • Real close (`$135.40`), `change_bps`, `Vol20d`, `Dose 0..3+` taxon label, 6 TierZoo base stats, optional inline `900×1260` PNG card preview, and deep links to `/quant/` & `/graph/`.<br/>• For `ANTHR-PVT`: *"No market data available (private entity — 0 synthetic bars)."* |
| **`2. macro_and_regime_brief`** | • *"What are the current Fed rates and M2 spread?"*<br/>• *"What is today's Bayesian market regime and key question?"*<br/>• *"What is the latest CPI and PPI?"* | `site/quant/real-macro-indicators.json` + `site/quant/daily-brief-latest.json` | • Live 3-state Bayesian posteriors (`R1`, `R2`, `R3`), active Daily Key Macro Question $Q_t$, and exact FRED series values (`EFFR = 388 bps`, `SOFR = 398 bps`, `M2-M1 = $3.37T`, `GDP`, `CPI`, `PPI`) with native cadence metadata. | | **`2. macro_and_regime_brief`** | • *"What are the current Fed rates and M2 spread?"*<br/>• *"What is today's Bayesian market regime and key question?"*<br/>• *"What is the latest CPI and PPI?"* | `site/quant/real-macro-indicators.json` + `site/quant/daily-brief-latest.json` | • Live 3-state Bayesian posteriors (`R1`, `R2`, `R3`), active Daily Key Macro Question $Q_t$, and exact FRED series values (`EFFR = 388 bps`, `SOFR = 398 bps`, `M2-M1 = $3.37T`, `GDP`, `CPI`, `PPI`) with native cadence metadata. |
| **`3. aq_and_ingglish_eval`** | • *"What is the AQ and Ingglish of 'abstract machine'?"*<br/>• *"Evaluate 'hyperstition'"* | `ciphers/aq.py` + `phonetics/__init__.py` (`4,943` offline CMUdict + fallback rules) + `encyclopedia-graph.json` | • `Gen 0` (`eng_aq`), `Gen 1` (`ing_aq` + Ingglish spelling), phonemic drift $\Delta$, prime rank $\pi(n)$, mod-9 digital root, and any matching specimens at that AQ coordinate. | | **`3. aq_and_ingglish_eval`** | • *"What is the AQ and Ingglish of 'abstract machine'?"*<br/>• *"Evaluate 'hyperstition'"* | `ciphers/aq.py` + `phonetics/__init__.py` (`4,943` offline CMUdict + fallback rules) + `encyclopedia-graph.json` | • `Gen 0` (`eng_aq`), `Gen 1` (`ing_aq` + Ingglish spelling), phonemic drift $\Delta$, prime rank $\pi(n)$, mod-9 digital root, and any matching specimens at that AQ coordinate. |
| **`4. glossary_and_zoology`** | • *"What is Vector G1?"*<br/>• *"Explain The Room Filter"*<br/>• *"What are the S+ Apex builds in the ETI tier list?"* | `taxonomy/glossary-registry.json` (`282` terms, `190` bilingual specimens) + `assemblage-builds-tier-list.json` | • Concise definition, ontological division (`Div 00–08`), verbatim grounded quote, ETI score, and clickable `#page=N&search=...` deep-link to `/zoology/technocapital-singularity-zoology-comprehensive-glossary.pdf`. | | **`4. glossary_and_zoology`** | • *"What is Vector RULE-G01.COLLAPSE?"*<br/>• *"Explain The Room Filter"*<br/>• *"What are the S+ Apex builds in the ETI tier list?"* | `taxonomy/glossary-registry.json` (`282` terms, `190` bilingual specimens) + `assemblage-builds-tier-list.json` | • Concise definition, ontological division (`Div 00–08`), verbatim grounded quote, ETI score, and clickable `#page=N&search=...` deep-link to `/zoology/technocapital-singularity-zoology-comprehensive-glossary.pdf`. |
| **`5. knowledge_graph_hub`** | • *"What connects to coordinate 292 or 666?"*<br/>• *"Inspect node aq:333"* | `encyclopedia-graph.json` (`388` nodes, `1,282` edges) | • Node type, degree centrality, incident `G1–G5` edges, guild membership, and `[ Open in /graph/?select=aq:N ]` deep-link. | | **`5. knowledge_graph_hub`** | • *"What connects to coordinate 292 or 666?"*<br/>• *"Inspect node aq:333"* | `encyclopedia-graph.json` (`388` nodes, `1,282` edges) | • Node type, degree centrality, incident `G1–G5` edges, guild membership, and `[ Open in /graph/?select=aq:N ]` deep-link. |
| **`6. archive_equations_and_news`** | • *"Show me archive equations that equal 333 or 666"*<br/>• *"What is in the latest news dossier?"* | `ingglish-aq-archive/01..72-*.md` | • Matching verified `Gen 1 [Ingglish] = 333/666/777` equations with dossier numbers and `/api/v1/dossiers/{N}?highlight=...` links. | | **`6. archive_equations_and_news`** | • *"Show me archive equations that equal 333 or 666"*<br/>• *"What is in the latest news dossier?"* | `ingglish-aq-archive/01..72-*.md` | • Matching verified `Gen 1 [Ingglish] = 333/666/777` equations with dossier numbers and `/api/v1/dossiers/{N}?highlight=...` links. |
| **`7. guile_scheme_and_curriculum`** | • *"How does the Z combinator work in Guile Scheme?"*<br/>• *"Where should a novice start?"* | `publishing/guile_prelude.scm` + `engineering-manifest.json` + `math-manifest.json` | • Explains the `Z` combinator (`z-calculus-scheme`) or Novice Prerequisite Ladder, with links to `/learn/`, `/math/`, and `/engineering/`. | | **`7. guile_scheme_and_curriculum`** | • *"How does the Z combinator work in Guile Scheme?"*<br/>• *"Where should a novice start?"* | `publishing/guile_prelude.scm` + `engineering-manifest.json` + `math-manifest.json` | • Explains the `Z` combinator (`z-calculus-scheme`) or Novice Prerequisite Ladder, with links to `/learn/`, `/math/`, and `/engineering/`. |
@@ -47,7 +47,7 @@ By introducing `src/hyperstitionstud_io/publishing/exegesis_runner.py` (`hs-exeg
- When no local GGUF model and no prepaid API token budget are configured, `compile_deterministic_news_dossier()` compiles `<NN>-dossier-news-YYYY-MM-DD.md` directly in pure Python (`0` LLM tokens, `0` external network calls): - When no local GGUF model and no prepaid API token budget are configured, `compile_deterministic_news_dossier()` compiles `<NN>-dossier-news-YYYY-MM-DD.md` directly in pure Python (`0` LLM tokens, `0` external network calls):
1. Ingests the dated story clusters and verified `333 / 666 / 777` `eng_aq` and `ing_aq` equation locks from `news-aq-harvest-YYYY-MM-DD.json` (or cached local RSS/Wikipedia corpus). 1. Ingests the dated story clusters and verified `333 / 666 / 777` `eng_aq` and `ing_aq` equation locks from `news-aq-harvest-YYYY-MM-DD.json` (or cached local RSS/Wikipedia corpus).
2. Runs `hs_classify_singularity` across each story cluster to assign exact Landian-Deleuzean Singularity Classes (`S1–S6`), `S×S6` Double Articulation flags, and Two-Gate state-matched `M1–M7+` memetic activations. 2. Runs `hs_classify_singularity` across each story cluster to assign exact Landian-Deleuzean Singularity Classes (`S1–S6`), `S×S6` Double Articulation flags, and Two-Gate state-matched `M1–M7+` memetic activations.
3. Computes exact `G1` intergenerational variance collapse ($\Delta\sigma^2_{\text{G1}} = \sigma^2_0 - \sigma^2_1$), `G3` quantized steps, `G4` isometric fixed points ($\Delta = 0$), and `G5` twin-prime mutations for every equation lock. 3. Computes exact `G1` intergenerational variance collapse ($\Delta\sigma^2_{\text{RULE-G01.COLLAPSE}} = \sigma^2_0 - \sigma^2_1$), `G3` quantized steps, `G4` isometric fixed points ($\Delta = 0$), and `G5` twin-prime mutations for every equation lock.
4. Renders the complete Division `08` *"The Room Filter"* Markdown dossier (including YAML/header metadata, Story Cluster Analysis, Verified `333 / 666 / 777` Equation Ledger, Cross-Scale `S1–S6` & `Dose 0..3+` Market Confluence Table, and Grounded Citation Sources `[1]..[k]`), updates `00-index-and-methodology.md`, and runs `ci_provision_ingglish.py --tier 2 --apply-repo`. 4. Renders the complete Division `08` *"The Room Filter"* Markdown dossier (including YAML/header metadata, Story Cluster Analysis, Verified `333 / 666 / 777` Equation Ledger, Cross-Scale `S1–S6` & `Dose 0..3+` Market Confluence Table, and Grounded Citation Sources `[1]..[k]`), updates `00-index-and-methodology.md`, and runs `ci_provision_ingglish.py --tier 2 --apply-repo`.
5. **Explicit UI Provenance Tag:** Every dossier compiled in `deterministic_structural` mode carries the header badge `Synthesis Mode: DETERMINISTIC_ZERO_TOKEN_STRUCTURAL (0 LLM Tokens)` so readers and downstream tools know its exact provenance. 5. **Explicit UI Provenance Tag:** Every dossier compiled in `deterministic_structural` mode carries the header badge `Synthesis Mode: DETERMINISTIC_ZERO_TOKEN_STRUCTURAL (0 LLM Tokens)` so readers and downstream tools know its exact provenance.
@@ -0,0 +1,30 @@
# PLAN: Deferred Candidate Strategies for Ecosystem-Wide Efficiency, Deduplication & Simplification (From Plan #62)
**Document ID:** `PLAN-PIECEWISE-CODEBASE-MODULARITY-DEFERRED-CANDIDATE-STRATEGIES`
**Status:** `INACTIVE / DEFERRED CANDIDATE STRATEGIES (docs/plans/inactive/ — Zero PDF Compilation)`
**Parent Active Plan:** `docs/plans/piecewise/PLAN-PIECEWISE-CODEBASE-MODULARITY-DEFERRED-STRATEGIES.md` (`Affirmed: 1A, 2A, 3A, 4A, 5A, 6A`)
**Author:** m00t & Hermes Agent
**Date:** 2026-12-01
---
## Deferred / Unaffirmed Candidate Strategies (`Rule C.4`)
- **Audit Point 1 (`1A` Affirmed):**
- `1B` (Partial): Extract only `render_explication_nav_html()` & `render_explication_subpage_html()`, keeping hub HTML renderers separate.
- `1C` (Status Quo): Retain `v2.17.0` split.
- **Audit Point 2 (`2A` Affirmed):**
- `2B` (Partial): Deduplicate only the 9 mirrored packaging scripts via `runpy` wrappers + `${STAGE_TOP}/SOURCES/` RPM staging + `compute_aq`/`safe_urlopen` delegation, keeping podcast MP3s and quant JSON files in their current locations.
- `2C` (Status Quo): Retain all current duplicates and split quant files.
- **Audit Point 3 (`3A` Affirmed):**
- `3B` (Partial): Add stat-memoized `count_file_lines_cached()` and `copy_result=False` fast-path only, without consolidating repo/git/path helpers.
- `3C` (Status Quo): Keep separate helper copies, uncached `db.txt` line scans, and default `deepcopy()` behavior.
- **Audit Point 4 (`4A` Affirmed):**
- `4B` (Partial): Wire `load_json_cached()` only into `publishing/quant_voice.py` and `publishing/highlights.py` plus the `fonts.py` font-index map.
- `4C` (Status Quo): Leave current JSON reads and `rglob` walks unchanged.
- **Audit Point 5 (`5A` Affirmed):**
- `5B` (Partial): Promote bounded Pillow typography helpers into `publishing/fonts.py` only, keeping `flow_diagram.py` PNG re-rendering unconditional.
- `5C` (Status Quo): Leave typography helpers duplicated and `flow_diagram.py` unconditional.
- **Audit Point 6 (`6A` Affirmed):**
- `6B` (Partial): Remove redundant pre-test subprocesses in `push-all-to-git-libre-audio.sh` only, keeping `.git/hooks/pre-commit` unconditional across all 6 repos.
- `6C` (Status Quo): Keep all double-executed checks and unconditional commit hooks.
@@ -0,0 +1,31 @@
# PLAN: Unaffirmed / Deferred Candidate Strategies from `PLAN-PIECEWISE-CODEBASE-MODULARITY-DEFERRED-STRATEGIES` (Plan #62)
**Document ID:** `PLAN-PIECEWISE-CODEBASE-MODULARITY-UNAFFIRMED-STRATEGIES`
**Status:** `INACTIVE / DEFERRED (docs/plans/inactive/ — zero PDF compilation)`
**Parent Plan:** `PLAN-PIECEWISE-CODEBASE-MODULARITY-DEFERRED-STRATEGIES` (Plan #62)
**Date:** 2026-12-01
---
## Deferred / Unaffirmed Candidate Strategies (`Rule C.4`)
All `6` Audit Points of Plan #62 were affirmed as **`1A, 2A, 3A, 4A, 5A, 6A`**. The partial and status-quo alternative candidate strategies below are preserved here for historical reference:
1. **Audit Point 1 (`1B`, `1C`):**
- `1B`: Extract only `render_explication_nav_html()` & `render_explication_subpage_html()`, keeping hub renderers separate.
- `1C`: Retain `v2.17.0` split (only `render_polyglot_cartridge_html()` and `_render_prereq_box_html()` shared).
2. **Audit Point 2 (`2B`, `2C`):**
- `2B`: Keep full mirrored copies across `ingglish-aq-archive/scripts/`, `packaging/bundle/scripts/`, and `packaging/bundle/skills/*/scripts/` in Git and auto-sync via `deploy_scripts_sync.py`.
- `2C`: Retain manual multi-copy script synchronization, duplicate podcast MP3/MD files, and split quant JSON state.
3. **Audit Point 3 (`3B`, `3C`):**
- `3B`: Add stat-memoized `count_file_lines_cached()` and `copy_result=False` fast-path only, without consolidating `CANONICAL_SIX_REPOS` / `resolve_workspace_repo_dir()` / `normalize_workspace_relpath()` / `run_git_stdout()`.
- `3C`: Keep separate helper copies and uncached line scans.
4. **Audit Point 4 (`4B`, `4C`):**
- `4B`: Wire `load_json_cached()` only into `quant_voice.py` & `highlights.py` + `fonts.py` font index, leaving `math_docs.py` / `quant/` / `sqlite_meta.py` / `ci/` on `json.loads(read_text())`.
- `4C`: Leave current uncached JSON reads and per-font `rglob` walks unchanged.
5. **Audit Point 5 (`5B`, `5C`):**
- `5B`: Promote bounded Pillow typography helpers into `publishing/fonts.py` only, keeping `flow_diagram.py` PNG re-rendering unconditional.
- `5C`: Keep bounded typography helpers duplicated across `closeups_sync.py` / `flow_diagram.py` / `cards.py`.
6. **Audit Point 6 (`6B`, `6C`):**
- `6B`: Remove redundant pre-test subprocesses in `push-all-to-git-libre-audio.sh` only, keeping `.git/hooks/pre-commit` unconditional across all 6 repos.
- `6C`: Keep double-executed checks and unconditional commit hooks.
@@ -33,7 +33,7 @@ To prevent self-referential fixed-point and `IPLD dag-json CIDv1` closure issues
| :--- | :--- | :--- | | :--- | :--- | :--- |
| **Audit Point 1**<br/>*Hub `M0` (`/math/index.html`)* | • `5` `.stat-tile` counters (`ETI Convex Sum: 1.00`, `Bayesian Simplex: 1.0000`, `292 G1 Collapse: 310.22 -> 0.0`, `G4 Fixed Points: 21`, `Real Bars / FRED: 472 / 14`)<br/>• Subtitles across `M0–M5` reference `hs-math-docs --disable <slug>` | **1. Eliminate Self-Reference Across `M0–M5`:** Remove all references to `hs-math-docs --disable <slug>`, `math-manifest.json`, and `M0–M5` self-descriptions from subtitles and tables.<br/>**2. Resolve Internal Cluster `292` Variance Discrepancy (`310.22` vs. `514.89`):** Harmonize `introspect_math_manifest()` (`[292, 265, 250]` $\to \sigma^2_0 = 2792/9 \approx 310.22$) and the 3-point REPL benchmark (`[264, 317, 276]` $\to 4634/9 \approx 514.89$).<br/>**3. Add Non-Self-Referential 6-Domain Mathematics & Information Science Reference Table:** Map the 6 target mathematical/info-science domains directly to their underlying corpus registries and equations (without referencing `/math/` subpages). | | **Audit Point 1**<br/>*Hub `M0` (`/math/index.html`)* | • `5` `.stat-tile` counters (`ETI Convex Sum: 1.00`, `Bayesian Simplex: 1.0000`, `292 G1 Collapse: 310.22 -> 0.0`, `G4 Fixed Points: 21`, `Real Bars / FRED: 472 / 14`)<br/>• Subtitles across `M0–M5` reference `hs-math-docs --disable <slug>` | **1. Eliminate Self-Reference Across `M0–M5`:** Remove all references to `hs-math-docs --disable <slug>`, `math-manifest.json`, and `M0–M5` self-descriptions from subtitles and tables.<br/>**2. Resolve Internal Cluster `292` Variance Discrepancy (`310.22` vs. `514.89`):** Harmonize `introspect_math_manifest()` (`[292, 265, 250]` $\to \sigma^2_0 = 2792/9 \approx 310.22$) and the 3-point REPL benchmark (`[264, 317, 276]` $\to 4634/9 \approx 514.89$).<br/>**3. Add Non-Self-Referential 6-Domain Mathematics & Information Science Reference Table:** Map the 6 target mathematical/info-science domains directly to their underlying corpus registries and equations (without referencing `/math/` subpages). |
| **Audit Point 2**<br/>*Subpage `M1` (`base36-algebra-and-primes`)* | • `Section 1`: Base-36 homomorphism $v: \{0..9, A..Z\} \to \{0..35\}$<br/>• `Section 2`: Repdigit $37 \times 3k$ attractors & prime index $\pi(n)$ | **1. Undocumented Mod-9 Digital Root Congruence (`dr_9(n)`) & CCRU `9`-Sum Syzygy Involution:** `guile_prelude.scm` defines `digital-root-mod9`, but `M1` has no section explaining the ring homomorphism $\mathbb{Z} \to \mathbb{Z}/9\mathbb{Z}$ or the `9`-sum syzygy involution $\sigma(r) = 9 - r$ (`1::8, 2::7, 3::6, 4::5`).<br/>**2. Undocumented Quantitative Anchor Revision Algebra (`--revise-anchor`):** Omits the 3 quantization modes (`digit`, `spoken`, `off`) and the anchor perturbation $\Delta_Q = \text{AQ}(Q_{\text{new}}) - \text{AQ}(Q_{\text{old}})$ (`Paths A/B/C`). | | **Audit Point 2**<br/>*Subpage `M1` (`base36-algebra-and-primes`)* | • `Section 1`: Base-36 homomorphism $v: \{0..9, A..Z\} \to \{0..35\}$<br/>• `Section 2`: Repdigit $37 \times 3k$ attractors & prime index $\pi(n)$ | **1. Undocumented Mod-9 Digital Root Congruence (`dr_9(n)`) & CCRU `9`-Sum Syzygy Involution:** `guile_prelude.scm` defines `digital-root-mod9`, but `M1` has no section explaining the ring homomorphism $\mathbb{Z} \to \mathbb{Z}/9\mathbb{Z}$ or the `9`-sum syzygy involution $\sigma(r) = 9 - r$ (`1::8, 2::7, 3::6, 4::5`).<br/>**2. Undocumented Quantitative Anchor Revision Algebra (`--revise-anchor`):** Omits the 3 quantization modes (`digit`, `spoken`, `off`) and the anchor perturbation $\Delta_Q = \text{AQ}(Q_{\text{new}}) - \text{AQ}(Q_{\text{old}})$ (`Paths A/B/C`). |
| **Audit Point 3**<br/>*Subpage `M2` (`phonemic-projections-and-g-vectors`)* | • `Section 1`: Vector `G1` Variance Collapse ($\Delta\sigma^2_{\text{G1}}$)<br/>• `Section 2`: Vectors `G3`, `G4`, & `G5` | **1. Missing Vectors `G2` & `G6` in "G1–G6":** Sections 1–2 omit **Vector `G2` (Cross-Generational Twin Locks: $\text{AQ}_{\text{eng}}(w_a) = \text{AQ}_{\text{ing}}(\Phi(w_b))$)** and **Vector `G6` (Multi-Scale Repdigit Closure `333 / 666 / 777`)**!<br/>**2. Undocumented Information-Theoretic Entropy Reduction & SQLite FTS5 BM25 Ranking:** Omits how phonemic projection $\Phi: \Sigma_{\text{eng}}^* \to \Sigma_{\text{ing}}^*$ acts as a lossy homomorphic compression channel ($H(\text{AQ}(\Phi(W))) \le H(\text{AQ}(W))$), and omits the **Okapi BM25** information-retrieval ranking formula used by `fts_catalog` in `sqlite_meta.py`. | | **Audit Point 3**<br/>*Subpage `M2` (`phonemic-projections-and-g-vectors`)* | • `Section 1`: Vector `G1` Variance Collapse ($\Delta\sigma^2_{\text{RULE-G01.COLLAPSE}}$)<br/>• `Section 2`: Vectors `G3`, `G4`, & `G5` | **1. Missing Vectors `G2` & `G6` in `G1–G6`:** Sections 1–2 omit **Vector `G2` (Cross-Generational Twin Locks: $\text{AQ}_{\text{eng}}(w_a) = \text{AQ}_{\text{ing}}(\Phi(w_b))$)** and **Vector `G6` (Multi-Scale Repdigit Closure `333 / 666 / 777`)**!<br/>**2. Undocumented Information-Theoretic Entropy Reduction & SQLite FTS5 BM25 Ranking:** Omits how phonemic projection $\Phi: \Sigma_{\text{eng}}^* \to \Sigma_{\text{ing}}^*$ acts as a lossy homomorphic compression channel ($H(\text{AQ}(\Phi(W))) \le H(\text{AQ}(W))$), and omits the **Okapi BM25** information-retrieval ranking formula used by `fts_catalog` in `sqlite_meta.py`. |
| **Audit Point 4**<br/>*Subpage `M3` (`graph-topology-and-eti-scoring`)* | • `Section 1`: 6-Partite Property Graph $G = (V, E, R)$ (`388` nodes, `1,282` edges)<br/>• `Section 2`: Convex `ETI` functional ($\sum_{k=1}^6 w_k = 1.00$) | **1. Undocumented Concentric Polar Radar Geometry (`Mode 2: S+ Center to D Periphery`):** Omits the invertible affine radial mapping $r(\text{ETI}_i) = R_{\min} + \frac{100 - \text{ETI}_i}{100}(R_{\max} - R_{\min})$ and angular guild sector partitioning $(r_i, \theta_i) \mapsto (x_i, y_i)$ from `specification-concentric-eti-tier-ring-radar-d-periphery.md`.<br/>**2. Undocumented 4-Key Lexicographic Tie-Breaker & 1-Hop Ego-Subgraph Operator:** Omits the total ordering $(\text{ETI}_i, \text{CAP}_i, \text{COL}_i, \text{ARM}_i)$ and the 1-hop ego-network induced subgraph $G[N_1(v)]$. | | **Audit Point 4**<br/>*Subpage `M3` (`graph-topology-and-eti-scoring`)* | • `Section 1`: 6-Partite Property Graph $G = (V, E, R)$ (`388` nodes, `1,282` edges)<br/>• `Section 2`: Convex `ETI` functional ($\sum_{k=1}^6 w_k = 1.00$) | **1. Undocumented Concentric Polar Radar Geometry (`Mode 2: S+ Center to D Periphery`):** Omits the invertible affine radial mapping $r(\text{ETI}_i) = R_{\min} + \frac{100 - \text{ETI}_i}{100}(R_{\max} - R_{\min})$ and angular guild sector partitioning $(r_i, \theta_i) \mapsto (x_i, y_i)$ from `specification-concentric-eti-tier-ring-radar-d-periphery.md`.<br/>**2. Undocumented 4-Key Lexicographic Tie-Breaker & 1-Hop Ego-Subgraph Operator:** Omits the total ordering $(\text{ETI}_i, \text{CAP}_i, \text{COL}_i, \text{ARM}_i)$ and the 1-hop ego-network induced subgraph $G[N_1(v)]$. |
| **Audit Point 5**<br/>*Subpage `M4` (`timeseries-moments-and-confluence-dose`)* | • `Section 1`: 4-Species Confluence Dose $D_{i,t} \in \{0..4\}$<br/>• `Section 2`: Nonparametric Order Statistics ($P_{50}, P_{90}$) | **1. Stale Bar Count (`440` vs `472`):** Line 256 hardcodes `"across the 440 real November 2026 bars"` instead of dynamically interpolating the live `472` real exchange bars!<br/>**2. Undocumented Longitudinal Sabermetric Moments (`SNAP%`, `WOPR`, `LOE`, `WAR_30d`) & Thomas' Calculus via `Z` (`guile_prelude.scm`):** `timeseries.py` computes `SNAP%`, `WOPR`, `LOE`/`WAR_30d`, and lead-lag Pearson $r(\tau)$ with Student-$t$ statistic, and `guile_prelude.scm` implements limits, derivatives, and Simpson quadrature via `Z`, but none of those formulas are written out in `M4`'s sections! | | **Audit Point 5**<br/>*Subpage `M4` (`timeseries-moments-and-confluence-dose`)* | • `Section 1`: 4-Species Confluence Dose $D_{i,t} \in \{0..4\}$<br/>• `Section 2`: Nonparametric Order Statistics ($P_{50}, P_{90}$) | **1. Stale Bar Count (`440` vs `472`):** Line 256 hardcodes `"across the 440 real November 2026 bars"` instead of dynamically interpolating the live `472` real exchange bars!<br/>**2. Undocumented Longitudinal Sabermetric Moments (`SNAP%`, `WOPR`, `LOE`, `WAR_30d`) & Thomas' Calculus via `Z` (`guile_prelude.scm`):** `timeseries.py` computes `SNAP%`, `WOPR`, `LOE`/`WAR_30d`, and lead-lag Pearson $r(\tau)$ with Student-$t$ statistic, and `guile_prelude.scm` implements limits, derivatives, and Simpson quadrature via `Z`, but none of those formulas are written out in `M4`'s sections! |
| **Audit Point 6**<br/>*Subpage `M5` (`macro-spreads-and-bayesian-inference`)* | • `Section 1`: FRED Macroeconomic Spread & Velocity Identities<br/>• `Section 2`: Discrete 3-State Bayes' Rule & "The Room Filter" Collision Bound | **1. Undocumented Information-Science Cryptography (`RFC 8785 JCS + IPLD dag-json 0x0129 + Multihash SHA-256 CIDv1`):** Explicate the exact binary construction of `CIDv1 = 'b' || base32([0x01, 0xA9, 0x02, 0x12, 0x20] || SHA256(JCS(X)))` over target domain registries (excluding `math-manifest.json` self-reference).<br/>**2. Undocumented Binomial Sample-Size Confidence Bound ($N_{\text{ext}} \ge 500$):** Explicate why a worst-case ($p=0.5$) 95% confidence interval half-width $\pm 1.96\sqrt{p(1-p)/N} \le \pm 4.38\%$ requires $N_{\text{ext}} \ge 500$. | | **Audit Point 6**<br/>*Subpage `M5` (`macro-spreads-and-bayesian-inference`)* | • `Section 1`: FRED Macroeconomic Spread & Velocity Identities<br/>• `Section 2`: Discrete 3-State Bayes' Rule & "The Room Filter" Collision Bound | **1. Undocumented Information-Science Cryptography (`RFC 8785 JCS + IPLD dag-json 0x0129 + Multihash SHA-256 CIDv1`):** Explicate the exact binary construction of `CIDv1 = 'b' || base32([0x01, 0xA9, 0x02, 0x12, 0x20] || SHA256(JCS(X)))` over target domain registries (excluding `math-manifest.json` self-reference).<br/>**2. Undocumented Binomial Sample-Size Confidence Bound ($N_{\text{ext}} \ge 500$):** Explicate why a worst-case ($p=0.5$) 95% confidence interval half-width $\pm 1.96\sqrt{p(1-p)/N} \le \pm 4.38\%$ requires $N_{\text{ext}} \ge 500$. |
@@ -1,7 +1,7 @@
# PLAN: Piecewise Grimoiric Transformation of `/learn/` — Integrated with Giordano Bruno's *Rota Umbrarum*, Nick Land's Numogram, Michel Serres's *Parasite*, Deleuze-Guattari Double Articulation & John Michael Greer's Geomantic Tetragrams (`Audit Points 1–5`, `Rule C` Piecewise Specification) # PLAN: Piecewise Grimoiric Transformation of `/learn/` — Integrated with Giordano Bruno's *Rota Umbrarum*, Nick Land's Numogram, Michel Serres's *Parasite*, Deleuze-Guattari Double Articulation & John Michael Greer's Geomantic Tetragrams (`Audit Points 1–5`, `Rule C` Piecewise Specification)
**Document ID:** `PLAN-PIECEWISE-GRIMOIRIC-LEARN-PAGE` **Document ID:** `PLAN-PIECEWISE-GRIMOIRIC-LEARN-PAGE`
**Status:** `PENDING AUDIT PIECEWISE (docs/plans/piecewise/ — 0/5 AUDIT POINTS AFFIRMED, ENRICHED WITH SERRES / LAND / D&G / GREER / BRUNO CONTINGENT-MEANING OPERATORS)` **Status:** `INACTIVE / DEFERRED (docs/plans/inactive/ — 0/5 AUDIT POINTS AFFIRMED, ENRICHED WITH SERRES / LAND / D&G / GREER / BRUNO CONTINGENT-MEANING OPERATORS)`
**Companion Cross-Workbench Plan:** `PLAN-PIECEWISE-CONTINGENT-MEANING-SERRES-LAND-DG-GREER-BRUNO` (Plan #64) **Companion Cross-Workbench Plan:** `PLAN-PIECEWISE-CONTINGENT-MEANING-SERRES-LAND-DG-GREER-BRUNO` (Plan #64)
**Target Ecosystem Version:** `v2.17.0` (Baseline: `v2.16.0`) **Target Ecosystem Version:** `v2.17.0` (Baseline: `v2.16.0`)
**Target Repositories:** `hyperstitionstudio-core`, `encyclopedia-knowledge-graph` **Target Repositories:** `hyperstitionstudio-core`, `encyclopedia-knowledge-graph`
@@ -1,109 +1,43 @@
# PLAN: Piecewise Codebase Modularity, Deduplication & Resource Economization — Revised for `v2.12.0..v2.15.0` Code Delta (`Audit Points 1–4`, `Rule C` Piecewise Specification) # PLAN: Ecosystem-Wide Efficiency, Deduplication, Optimization & Simplification (`Audit Points 1–6` Affirmed, `Rule C` Piecewise Specification)
**Document ID:** `PLAN-PIECEWISE-CODEBASE-MODULARITY-DEFERRED-STRATEGIES` **Document ID:** `PLAN-PIECEWISE-CODEBASE-MODULARITY-DEFERRED-STRATEGIES`
**Status:** `PENDING AUDIT PIECEWISE (docs/plans/piecewise/ — 0/4 AUDIT POINTS AFFIRMED)` **Status:** `ACTIVE / FULLY AFFIRMED PIECEWISE (docs/plans/piecewise/ — 6/6 AUDIT POINTS AFFIRMED: 1A, 2A, 3A, 4A, 5A, 6A)`
**Companion Deferred Strategies Plan:** `docs/plans/inactive/PLAN-PIECEWISE-CODEBASE-MODULARITY-DEFERRED-CANDIDATE-STRATEGIES.md`
**Parent Plan:** `PLAN-PIECEWISE-CODEBASE-MODULARITY-DEDUPLICATION-AND-RESOURCE-ECONOMIZATION` (`v2.12.0`) **Parent Plan:** `PLAN-PIECEWISE-CODEBASE-MODULARITY-DEDUPLICATION-AND-RESOURCE-ECONOMIZATION` (`v2.12.0`)
**Target Ecosystem Version:** `v2.16.0` (Baseline: `v2.15.0`, evaluating full `v2.12.0..v2.15.0` delta) **Target Ecosystem Version:** `v2.18.0` (Baseline: `v2.17.0` + working tree)
**Target Repositories:** `hyperstitionstudio-core`, `ingglish-hyperdope-gematria`, `encyclopedia-knowledge-graph` **Target Repositories:** All `6` repositories (`hyperstitionstudio-core`, `ingglish-hyperdope-gematria`, `technocapital-singularity-zoology`, `encyclopedia-knowledge-graph`, `haiperdohp-jemaytreeah`, `hyperdope-ci-build`)
**Author:** m00t & Hermes Agent **Author:** m00t & Hermes Agent
**Date:** 2026-12-01 **Date:** 2026-12-01
--- ---
## 1. Ground-Truth Audit: Reactivated Deferred Strategy `2A` + `v2.12.0..v2.15.0` Code Delta (`+4,970` Lines Across 6 Repositories, `Rule C.1`) ## 1. Fixed Architectural Constraints & Four Binary Gates (`PLAN-GATE-G01..G04`)
Between `v2.12.0` (when the parent Plan #53 was executed) and `v2.15.0`, implementing Plans `#56`, `#57`, `#58`, `#59`, and `#60` added **`+4,970` insertions across 96 touched files** (`+1,500` in `hyperstitionstudio-core`, `+2,090` in `ingglish-hyperdope-gematria`, `+314` in `haiperdohp-jemaytreeah`, `+971` in `hyperdope-ci-build`, and `+220` in `encyclopedia-knowledge-graph`). Re-auditing the deferred strategy candidates alongside this exact `v2.12.0..v2.15.0` code delta reveals **4 high-leverage modularity, deduplication, security, and resource-economization Audit Points**: - **Fixed Constraint 1 (6-Repo Separation):** Keep all `6` peer Git repositories distinct.
- **Fixed Constraint 2 (`task-router` Disciplinary Separation):** Keep Tier 1 deterministic zero-token code cleanly partitioned by domain (`phonetics/`, `ciphers/` + `ipld/` + `lenses/`, `quant/`, `graph/`, `publishing/`, `ci/`, `mcp/`, `db/`) and preserve `haiperdohp-jemaytreeah` upstream patch compatibility.
| Audit Point & Subsystem | Empirically Verified `v2.12.0..v2.15.0` Codebase Delta Measurement | Duplication, Drift Risk, Security Gap or Resource Hotspot Identified | - **Fixed Constraint 3 (Zero Broken Functionality):** Preserve all `20` `hs-*` CLI entrypoints, `20` MCP/OpenAPI 3.1 tools, `63` Caddy routes, Fedora 41 RPM (`ingglish-isopsephic-exegesis`), `ReadOnlyIsolationGuard` SHA-256 locks, and `tests/test_core_suite.py` (`7/7` suites).
| :--- | :--- | :--- | - **Binary Gates:** `PLAN-GATE-G01.EXTANT_DATA`, `PLAN-GATE-G02.ZERO_LLM`, `PLAN-GATE-G03.EROFS_SAFE`, `PLAN-GATE-G04.EXPORTABLE`.
| **Audit Point 1**<br/>*Unified Explication Hub, Subpage & Navigation Template Engine (`publishing/explication_template.py`, `engineering_docs.py` `801` lines & `math_docs.py` `628` lines — Reactivated Strategy `2A` from Plan #53)* | • In Plan #53 (`v2.12.0`), `Strategy 2B` unified `render_polyglot_cartridge_html()` and `_render_prereq_box_html()`, while deferring **`Strategy 2A`** (full `explication_template.py` extraction).<br/>• `publishing/engineering_docs.py` (`801` lines) and `publishing/math_docs.py` (`628` lines) still duplicate `~260` lines of identical `<head>` CSS, `<header>` layout, `> 6` subpage `More Units ▾` overflow `<select>`, `.grid-cards` unit card loops, `<footer>` colophon, `prev_link / next_link` subpage pagination, and `build_*_site()` bundle orchestration. | • **Eliminate `~260` Duplicate Lines & Enable Single-Point Cross-Page Nav Unification (Plan #63):** Extracting `src/hyperstitionstud_io/publishing/explication_template.py` (`render_explication_nav_html()`, `render_explication_hub_page_html()`, `render_explication_subpage_html()`, `write_explication_site_bundle()`) removes `~260` duplicate lines and lets `/engineering/*` and `/math/*` share one header/subnav renderer. |
| **Audit Point 2 (NEW from `v2.13.0–v2.15.0` Delta)**<br/>*Exegesis & CI Script Deduplication + `safe_urlopen` / `compute_aq` Reuse in `ingglish-hyperdope-gematria` (`+2,090` lines added in `v2.13.0–v2.15.0`)* | • Plan #56 (`v2.13.0`) added `synthesize_news_dossier_openrouter.py` (`736` lines) in **two identical copies** (`ingglish-aq-archive/scripts/` and `packaging/bundle/scripts/` = `1,472` lines).<br/>• Plan #60 (`v2.15.0`) had to patch `ci_provision_ingglish.py` across **three identical copies** (`ingglish-aq-archive/scripts/`, `packaging/bundle/scripts/`, and `packaging/bundle/skills/hyperdope-ingglish-ci/scripts/` = `~1,950` lines), plus duplicate copies of `collect_news_aq.py`, `generate_aq_tier_list.py`, and `build_wire_report_pdf.py` (`~3,600+` duplicated lines in `ingglish-hyperdope-gematria`!).<br/>• `synthesize_news_dossier_openrouter.py` redefines `compute_aq()` locally (`lines 39–46`) and calls raw `urllib.request.urlopen()` instead of delegating to `hyperstitionstud_io.ciphers.compute_aq` and `hyperstitionstud_io.security.safe_urlopen` when available. | • **Eliminate `~2,100+` Lines of Multi-Copy Script Drift in `ingglish-hyperdope-gematria`:** Keep `ingglish-aq-archive/scripts/*.py` as the Single Source of Truth, replace duplicate copies in `packaging/bundle/scripts/` and `packaging/bundle/skills/.../scripts/` with thin `runpy` delegators (while `packaging/build-fedora41-rpm.sh` materializes standalone copies into the RPM buildroot at package build time), and wire `compute_aq` + `safe_urlopen` delegation into `synthesize_news_dossier_openrouter.py`. |
| **Audit Point 3 (NEW from `v2.14.0–v2.15.0` Delta)**<br/>*Pre-Commit & Release Pipeline Consolidation: Shared 6-Repo Discovery, Path Normalizer, Git Helper & Stat-Cached Line Counter (`config/__init__.py`, `deploy_scripts_sync.py` `266` lines, `version_sync.py` `550` lines, `readme_sync.py` `616` lines, `closeups_sync.py` `765` lines)* | • Plan #58 (`v2.14.0`) added `src/hyperstitionstud_io/ci/deploy_scripts_sync.py` (`266` lines) and wired it into `.git/hooks/pre-commit` (`readme_sync.py`) and `version_sync.py`.<br/>• Across `version_sync.py`, `readme_sync.py`, `highlights.py`, and `deploy_scripts_sync.py`, `_norm_ws_path()`, `_resolve_repo_dir()` (`hyperdope-ci-build` vs `ingglish-hyperdope-ci`), `_git_out()`, and the canonical 6-repo list are now duplicated in **`4` modules**.<br/>• Every `git commit` triggers `.git/hooks/pre-commit` (`deploy_scripts_sync` + `closeups_sync` + `readme_sync`), which scans all `231,615` lines (`4.17 MB`) of `haiperdohp-jemaytreeah/db.txt` from disk multiple times even when `(st_mtime_ns, st_size)` are unchanged. | • **Consolidate 4x Duplicated Repo/Git Helpers & Stat-Cache `db.txt` Line Counts:** Centralizing `CANONICAL_SIX_REPOS`, `resolve_workspace_repo_dir()`, `normalize_workspace_relpath()`, `run_git_stdout()`, and `(resolved_path, st_mtime_ns, st_size)`-memoized `count_file_lines_cached()` in `src/hyperstitionstud_io/config/__init__.py` removes `4` duplicate helper implementations and cuts repeated `4.17 MB` `db.txt` line scans during `pre-commit` to `0`. |
| **Audit Point 4 (NEW from `v2.13.0–v2.15.0` Delta)**<br/>*Shared Bounded Pillow Text-Fitting Primitives (`publishing/fonts.py`) & `load_json_cached` Reuse in `publishing/quant_voice.py` (`511` lines)* | • Plan #57 & Plan #59 (`v2.13.0–v2.15.0`) added `src/hyperstitionstud_io/publishing/quant_voice.py` (`511` lines), which reads `voice-manifest.json` via raw `json.loads(manifest_p.read_text())` (`line 336`) instead of `load_json_cached()`.<br/>• `publishing/closeups_sync.py` (`765` lines), `publishing/flow_diagram.py` (`401` lines), and `quant/cards.py` (`550` lines) place text via manual `d.text()` coordinates and `[:N]` slicing without shared bounded text-fitting primitives in `publishing/fonts.py` (`90` lines). | • **Unified Bounded Pillow Typography & Manifest Caching:** Adding `fit_pillow_text_to_width()`, `draw_bounded_box_text()`, and `draw_bounded_kv_row()` to `src/hyperstitionstud_io/publishing/fonts.py` (directly supporting Plan #61's closeup bounding-box fixes) and wiring `load_json_cached()` into `quant_voice.py` unifies image text fitting and JSON caching across `publishing/`. |
--- ---
## 2. Four Factual Binary Engineering Gates (`G1–G4`, Zero Synthetic Data & Two-Script Deployment Invariant) ## 2. Affirmed Deliverables Across Audit Points `1–6` (`Rule C.4`)
- **`Gate G1` (100% Backward-Compatible Public API, CLI Entrypoints, RPM Builder & Two-Script Deployment Invariant):** Zero breaking changes to any `pyproject.toml` CLI entrypoint (`hs-*`), MCP tool, OpenAPI 3.1 REST endpoint, `packaging/build-fedora41-rpm.sh`, or the Two-Script Manual Operator Deployment Invariant. ### Audit Point 1 — `[AFFIRMED: Strategy 1A]` Explication HTML/Nav/Subpage Template Engine (`publishing/explication_template.py`)
- **`Gate G2` (`0` LLM Tokens & `0` New External Dependencies):** Uses Python `3.12+` standard library (`runpy`, `functools`, `subprocess`) and existing workspace libraries (`Pillow`). - Create `src/hyperstitionstud_io/publishing/explication_template.py` (`render_explication_nav_html()`, `render_explication_hub_page_html()`, `render_explication_subpage_html()`, `write_explication_site_bundle()`) and refactor `engineering_docs.py` (`841` lines) and `math_docs.py` (`650` lines) to delegate their shared Group 3 (`UI-G03.BASALT_CHAMFER`) HTML/nav/subpage/bundle rendering while keeping all domain specs, cartridges, manifests, and public signatures 100% intact (`~-290` duplicate lines).
- **`Gate G3` (`ProtectSystem=strict` `EROFS` & `ReadOnlyIsolationGuard` Safe):** All caches are in-memory and invalidated automatically on `(st_mtime_ns, st_size)` updates.
- **`Gate G4` (Measurable Code Deduplication Across Both `hyperstitionstudio-core` & `ingglish-hyperdope-gematria`):** Eliminates `~260` duplicate HTML template lines in `publishing/`, `~2,100+` duplicate Python script lines in `ingglish-hyperdope-gematria/packaging/bundle/`, and `4` duplicate Git/repo helper blocks.
--- ### Audit Point 2 — `[AFFIRMED: Strategy 2A]` Cross-Repo Script, Wrapper, Media & Quant Split Deduplication
1. **Script Single Source of Truth + Clean RPM Staging:** Keep `ingglish-aq-archive/scripts/*` canonical; replace the `9` mirrored copies (`~4,128` lines) in `packaging/bundle/scripts/` and `packaging/bundle/skills/*/scripts/` with ~25-line self-locating `runpy`/JS wrappers; update `build-fedora41-rpm.sh` to copy canonical scripts directly into `${STAGE_TOP}/SOURCES/` (so tracked wrappers never get overwritten dirty on RPM builds); update `test_core_suite.py` (`L1331–1335`) to assert wrapper delegation + canonical script integrity; delegate `compute_aq()` & `safe_urlopen()` in `synthesize_news_dossier_openrouter.py` when `hyperstitionstud_io` is importable.
2. **Cross-Repo Media & Disabled Demo Cleanup (`-83.9 MB`):** Remove the `5` byte-identical `lecture-podcast-ep01..05-*-ingglish-aq.{mp3,md}` duplicates (`83.14 MB`) from `ingglish-hyperdope-gematria` (canonical home: `technocapital-singularity-zoology/podcast-ep01..05-*`) and prune duplicate `meme_2_memegen_awkward_moment_seal_id_ams.png` (`747 KB`) from disabled `site/gallery/media/demos/`.
3. **Disciplinary Quant Consolidation (`site/quant/`):** Move `financial-aq-harvest-latest.json` and `daily-brief-state.json` from `ingglish-hyperdope-gematria/` into `hyperstitionstudio-core/site/quant/` (updating `collector.py`, `daily_brief.py`, `readme_sync.py`, `tests/test_core_suite.py`) and retire the redundant 20-line `collect_financial_quant_aq.py` shim (`hs-quant-harvest` is canonical), keeping `/archive/` Caddy routes (`25..73-dossier-news-*.md` & `10..19-ledger-*.md`) intact.
## 3. Piecewise Audit Points & Candidate Strategies (`Strategies 1A–1C` through `4A–4C`, `Rule C.2`) ### Audit Point 3 — `[AFFIRMED: Strategy 3A]` Shared Workspace Helpers, Stat Line Cache & Read-Only JSON Fast-Path (`config/__init__.py`)
- Add `CANONICAL_SIX_REPOS`, `resolve_workspace_repo_dir()`, `normalize_workspace_relpath()`, `run_git_stdout()`, and `(resolved_path, st_mtime_ns, st_size)`-memoized `count_file_lines_cached()` to `config/__init__.py`; remove duplicate `_norm_ws_path` (`deploy_scripts_sync.py`, `archive_rotator.py`), `_git_out`/`_git_run` (`readme_sync.py`, `version_sync.py`), and uncached `db.txt` scans (`archive_rotator.py`, `closeups_sync.py`); audit read-only `load_json_cached()` callers to pass `copy_result=False` (eliminating `1.5 MB` `deepcopy` overhead).
Each Audit Point below is 100% independent and commutative so they can be reviewed, affirmed, or deferred one at a time under the strict Turn-Ending Invariant (`Rule C.3`). ### Audit Point 4 — `[AFFIRMED: Strategy 4A]` Eliminate `25+` Uncached JSON Reads & Per-Font `rglob` Walks (`core/src`)
- Replace repeated `json.loads(p.read_text())` reads across `math_docs.py` (x5), `quant/timeseries.py` (x2), `quant/daily_brief.py`, `quant/macro.py`, `quant/collector.py`, `db/sqlite_meta.py`, `publishing/quant_voice.py` (`L396`), `publishing/highlights.py` (`L47`), `publishing/closeups_sync.py`, `ci/doctor.py`, `ci/citation_sources.py`, `ci/public_regression.py`, and `mcp/tools.py` with `load_json_cached(..., copy_result=False)`, and replace per-font `/usr/share/fonts` `rglob` calls in `publishing/fonts.py` with a single `@lru_cache` font-filename index map.
--- ### Audit Point 5 — `[AFFIRMED: Strategy 5A]` Bounded Pillow Typography (`publishing/fonts.py`) & Zero-Churn `flow_diagram.py` Digest Skip
- Promote `fit_pillow_text_to_width()`, `draw_bounded_box_text()`, and `draw_bounded_kv_row()` out of `closeups_sync.py` (`1,021` lines) into `publishing/fonts.py`, reuse them across `closeups_sync.py`, `flow_diagram.py`, and `quant/cards.py` (`verify_closeup_geometry()` invariants 100% preserved), and embed a deterministic `hs_diagram_sha256` PNG `tEXt` chunk in `flow_diagram.py` so `render_periodic_harvest_cicd_flow_diagram_png(if_changed=True)` skips rewriting the `285 KB` PNG when inputs and version are unchanged.
### Audit Point 1: Unified Explication Hub, Subpage & Navigation Template Engine (`src/hyperstitionstud_io/publishing/explication_template.py` — Reactivated Strategy `2A`) ### Audit Point 6 — `[AFFIRMED: Strategy 6A]` Path-Aware `.git/hooks/pre-commit` & Push Deduplication (`push-all-to-git-libre-audio.sh`, `readme_sync.py`)
- Update `PRE_COMMIT_HOOK_SCRIPT` in `readme_sync.py` so `closeups_sync` and `deploy_scripts_sync` only run when staged files affect their respective surfaces (falling back cleanly to `--check` or skipping irrelevant repos), and remove duplicate pre-test subprocess calls in `push-all-to-git-libre-audio.sh` that `tests/test_core_suite.py` already enforces in-process (keeping `version_sync --corpus-delta`, `build-fedora41-rpm.sh`, `run_exegesis_and_push_fedora41.sh --dry-run`, `test_core_suite.py`, and `build_encyclopedia_knowledge_graph.py --verify-only`).
- **Strategy `1A` (Extract Shared Group 3 Explication Page Renderer into `src/hyperstitionstud_io/publishing/explication_template.py` — Recommended Candidate):**
- **What Changes:**
1. Creates `src/hyperstitionstud_io/publishing/explication_template.py` containing the parameterized Group 3 HTML builders and site-bundle writer shared by `/engineering/` and `/math/`:
- `render_explication_nav_html()`,
- `render_explication_hub_page_html()`,
- `render_explication_subpage_html()`, and
- `write_explication_site_bundle()`.
2. Refactors `publishing/engineering_docs.py` (`hs-eng-docs`) and `publishing/math_docs.py` (`hs-math-docs`) to delegate their HTML/nav/bundle rendering to `explication_template.py` while keeping all domain specifications, cartridges, manifests, and public function signatures 100% intact.
- **Modularity Gain:** Eliminates `~260` lines of duplicated HTML/CSS/JS templates and provides a single shared header/navigation builder for `/engineering/*` and `/math/*`.
- **Strategy `1B` (Extract Only `render_explication_nav_html()` & `render_explication_subpage_html()`, Keeping Hub Renderers Separate — Partial Candidate):**
- Unifies navigation and subpage HTML templates while leaving `_render_hub_html()` and `_render_math_hub_html()` separate.
- **Strategy `1C` (Retain Current `v2.12.0` Strategy `2B` Split — Status Quo / Deferred):**
- Keeps only `render_polyglot_cartridge_html()` and `_render_prereq_box_html()` shared.
---
### Audit Point 2 (NEW from `v2.13.0–v2.15.0` Delta): Exegesis & CI Script Deduplication + `safe_urlopen` / `compute_aq` Delegation in `ingglish-hyperdope-gematria`
- **Strategy `2A` (Single-Source-of-Truth Scripts in `ingglish-aq-archive/scripts/` + Thin `runpy` Bundle Wrappers + Automatic Standalone Copy Materialization in `build-fedora41-rpm.sh` + `compute_aq`/`safe_urlopen` Delegation — Recommended Candidate):**
- **What Changes:**
1. Designates `ingglish-aq-archive/scripts/{synthesize_news_dossier_openrouter.py,ci_provision_ingglish.py,collect_news_aq.py,generate_aq_tier_list.py,build_wire_report_pdf.py}` as the Single Source of Truth in `ingglish-hyperdope-gematria`.
2. Replaces the duplicate multi-hundred-line copies in `packaging/bundle/scripts/*.py` and `packaging/bundle/skills/hyperdope-ingglish-ci/scripts/ci_provision_ingglish.py` with compact (`~25`-line) self-locating `runpy.run_path` / `importlib` delegators that resolve the canonical script in `ingglish-aq-archive/scripts/` when run from the repo, while updating `packaging/build-fedora41-rpm.sh` to copy the canonical `ingglish-aq-archive/scripts/*.py` files directly into the RPM `SOURCES` bundle at package build time so the installed Fedora 41 RPM (`/usr/libexec/ingglish-exegesis/scripts/*.py`) remains 100% standalone.
3. Updates `synthesize_news_dossier_openrouter.py` to delegate `compute_aq()` to `hyperstitionstud_io.ciphers.compute_aq` and HTTP requests in `call_openrouter_exegesis()` to `hyperstitionstud_io.security.safe_urlopen` whenever `hyperstitionstud_io` is importable (retaining the stdlib fallback for standalone Fedora 41 RPM hosts).
- **Modularity & Security Gain:** Eliminates `~2,100+` lines of duplicate Python code across `ingglish-hyperdope-gematria`, prevents multi-copy drift across future edits, and extends `safe_urlopen` SSRF/size-cap protection to `synthesize_news_dossier_openrouter.py`.
- **Strategy `2B` (Keep Full Copies on Disk, Add Auto-Sync Step to `deploy_scripts_sync.py` + `compute_aq`/`safe_urlopen` Delegation Only — Partial Candidate):**
- Keeps duplicate files in Git but synchronizes them automatically in `deploy_scripts_sync.py` before commits.
- **Strategy `2C` (Leave Multi-Copy Scripts in `ingglish-hyperdope-gematria` Unchanged — Status Quo / Deferred):**
- Retains the current manual multi-copy layout.
---
### Audit Point 3 (NEW from `v2.14.0–v2.15.0` Delta): Pre-Commit & Release Pipeline Consolidation — Shared 6-Repo Discovery, Path Normalizer, Git Helper & Stat-Cached Line Counter (`src/hyperstitionstud_io/config/__init__.py`)
- **Strategy `3A` (Centralize `CANONICAL_SIX_REPOS`, `resolve_workspace_repo_dir()`, `normalize_workspace_relpath()`, `run_git_stdout()`, and Stat-Memoized `count_file_lines_cached()` in `src/hyperstitionstud_io/config/__init__.py` — Recommended Candidate):**
- **What Changes:**
1. Adds `CANONICAL_SIX_REPOS`, `resolve_workspace_repo_dir(ws_root, repo_key)`, `normalize_workspace_relpath(p, workspace_root=None)`, `run_git_stdout(repo_dir, args, *, strip_leading=True, timeout=5.0)`, and `(resolved_path, st_mtime_ns, st_size)`-memoized `count_file_lines_cached(path)` to `src/hyperstitionstud_io/config/__init__.py`.
2. Refactors `version_sync.py`, `publishing/readme_sync.py`, `publishing/highlights.py`, `ci/deploy_scripts_sync.py`, and `publishing/closeups_sync.py` to import and use these shared helpers instead of maintaining `4` separate copies of `_git_out` / `_resolve_repo_dir` / `_norm_ws_path` and re-scanning `231,615` lines of `db.txt` on every commit hook.
- **Modularity & Resource Gain:** Eliminates `4` duplicate Git/repo/path helper blocks and cuts repeated `4.17 MB` `db.txt` line-count scans during `pre-commit` hooks to `0`.
- **Strategy `3B` (Add Stat-Memoized `count_file_lines_cached()` Only — Minimal Candidate):**
- Caches line counts by `(resolved_path, st_mtime_ns, st_size)` in `config/__init__.py` without consolidating `_git_out`, `_resolve_repo_dir`, and `_norm_ws_path`.
- **Strategy `3C` (Keep Separate Helpers & Uncached Line Scans — Status Quo / Deferred):**
- Leaves `config/__init__.py`, `version_sync.py`, `readme_sync.py`, `highlights.py`, `deploy_scripts_sync.py`, and `closeups_sync.py` unchanged.
---
### Audit Point 4 (NEW from `v2.13.0–v2.15.0` Delta): Shared Bounded Pillow Text-Fitting Primitives (`publishing/fonts.py`) & `load_json_cached` Reuse in `publishing/quant_voice.py`
- **Strategy `4A` (Add `fit_pillow_text_to_width()`, `draw_bounded_box_text()`, and `draw_bounded_kv_row()` to `src/hyperstitionstud_io/publishing/fonts.py` + Wire `load_json_cached()` into `publishing/quant_voice.py` — Recommended Candidate):**
- **What Changes:**
1. Extends `src/hyperstitionstud_io/publishing/fonts.py` with reusable, zero-truncation Pillow text-layout helpers (`fit_pillow_text_to_width()`, `draw_bounded_box_text()`, and `draw_bounded_kv_row()`) that step down the cached DejaVu font ladder (`14px -> 9px`) so text always fits inside its bounding box with `>= 6px` horizontal padding and `0` mid-word `[:N]` slicing.
2. Reuses these shared primitives in `publishing/closeups_sync.py` (directly powering Plan #61's bounding-box remediation) and wires `load_json_cached()` into `publishing/quant_voice.py` when reading `voice-manifest.json`.
- **Modularity Gain:** Centralizes bounded Pillow typography in `publishing/fonts.py` and brings `quant_voice.py` into full compliance with the `load_json_cached()` pattern established in `v2.12.0`.
- **Strategy `4B` (Keep Bounded Text Helpers Local Inside `publishing/closeups_sync.py` Only — Partial Candidate):**
- Implements text-fitting helpers privately inside `closeups_sync.py` without promoting them to `publishing/fonts.py`.
- **Strategy `4C` (Manual Per-Call Coordinate Adjustments Only — Status Quo / Deferred):**
- Adjusts individual `(x, y)` coordinates manually without shared bounded-text primitives.
---
## 4. Summary Matrix of Audit Points `1–4` for Stepwise Review (`Rule C.3`)
| Audit Point | Target Subsystem (`v2.12.0..v2.15.0` Delta) | Strategy `A` (Full Modularity, Deduplication & Resource Economization — Recommended) | Strategy `B` (Partial / Scoped Change) | Strategy `C` (Status Quo / Deferred) |
| :--- | :--- | :--- | :--- | :--- |
| **Point 1** | **Explication HTML Template Engine** (`publishing/explication_template.py`, `engineering_docs.py`, `math_docs.py`) | **`1A`:** Extract shared Group 3 nav, hub, subpage & bundle builders into `explication_template.py` (`-260` duplicate lines) | **`1B`:** Extract shared nav & subpage HTML builders only, keeping hub HTML builders separate | **`1C`:** Retain `v2.12.0` `2B` split |
| **Point 2** | **Exegesis & CI Script Deduplication + Security** (`ingglish-hyperdope-gematria/packaging/bundle/` & `synthesize_news_dossier_openrouter.py`) | **`2A`:** Single Source of Truth in `ingglish-aq-archive/scripts/` + thin `runpy` bundle wrappers (`-2,100+` duplicate lines) + standalone copy materialization in `build-fedora41-rpm.sh` + `compute_aq`/`safe_urlopen` delegation | **`2B`:** Keep duplicate files in Git, auto-sync in `deploy_scripts_sync.py` + `compute_aq`/`safe_urlopen` delegation | **`2C`:** Keep manual multi-copy scripts |
| **Point 3** | **Pre-Commit & Release Pipeline Consolidation** (`config/__init__.py`, `deploy_scripts_sync.py`, `version_sync.py`, `readme_sync.py`, `closeups_sync.py`) | **`3A`:** Centralize `CANONICAL_SIX_REPOS`, `resolve_workspace_repo_dir()`, `normalize_workspace_relpath()`, `run_git_stdout()`, & stat-cached `count_file_lines_cached()` in `config/__init__.py` | **`3B`:** Add stat-cached `count_file_lines_cached()` only | **`3C`:** Keep 4 separate copies & uncached scans |
| **Point 4** | **Bounded Pillow Text-Fitting Primitives & Voice Manifest Cache** (`publishing/fonts.py`, `closeups_sync.py`, `quant_voice.py`) | **`4A`:** Add `fit_pillow_text_to_width()`, `draw_bounded_box_text()`, & `draw_bounded_kv_row()` to `publishing/fonts.py` + wire `load_json_cached()` into `quant_voice.py` | **`4B`:** Keep bounded text helpers private inside `closeups_sync.py` | **`4C`:** Manual coordinate tweaks only |
@@ -0,0 +1,76 @@
# PLAN: Piecewise Ecosystem Feature Expansion & Visitor Utility (`PLAN #70`)
**Document ID:** `PLAN-PIECEWISE-HYPERSTITIONSTUDIO-FEATURE-EXPANSION`
**Status:** `ACTIVE PIECEWISE (docs/plans/piecewise/)`
**Target Ecosystem Version:** `v2.18.0` (Baseline: `v2.17.1`)
**Target Repositories:** `hyperstitionstudio-core`, `encyclopedia-knowledge-graph`, `technocapital-singularity-zoology`
**Scope:** Architectural blueprint for ecosystem-wide visitor utility features across Python web endpoints, interactive workbenches, linguistic tools, mathematical calculators, and philosophical operator modules.
**Author:** m00t & Hermes Agent
**Date:** 2026-12-02
---
## 1. Ground-Truth Audit Table
| Audit Area / Proposed Feature | Current Codebase Baseline | Empirical Verification Status | Target Surface / Module |
| :--- | :--- | :--- | :--- |
| **1. REST/MCP Sandbox** (`/api/v1/sandbox`) | `mcp/rest.py` & `mcp/server.py` implement 20 tools & ETag/304 caching | **100% Verified** (Zero custom REST routes; tool-driven schema) | `/api/v1/` routing |
| **2. Turnkey Local Appliance** (RPM/Docker) | Fedora 41 RPM spec (`packaging/build-fedora41-rpm.sh`) | **100% Verified** (Turnkey RPM packaging operational) | `packaging/` |
| **3. Ingglish G2P Pronunciation Studio** (`/calc/lexicon`) | `@ingglish/g2p` / CMUdict phonetics pipeline in `ingglish` | **100% Verified** (Offline phonetic transcription engine) | `/calc/` workbench |
| **4. Repdigit & Prime Attractor Matrix** (`/math/attractors`) | `ciphers/` base-36 AQ valuations & dossier equations | **100% Verified** (71 verified dossiers, 333/666/777 equations) | `/math/` hub |
| **5. Contingent-Meaning Operators** (`*Rota Umbrarum*`) | Ontology graph database (`encyclopedia-graph.json`) | **100% Verified** (388 nodes, 1,282 edges, Neo4j/GraphVis) | `/graph/` workbench |
| **6. Ecosystem Invariant Dashboard** (`/engineering/invariants`) | `ci/doctor.py` & `ci/public_regression.py` (`Gates SMOKE-GATE-P01..P06`) | **100% Verified** (Automated health & regression checks) | `/engineering/` hub |
| **7. Spatiotemporal Quant Backtester** (`/quant/backtest`) | `quant/collector.py` & `quant/timeseries.py` | **100% Verified** (24 instruments × 30 UTC days real bars) | `/quant/` workbench |
| **8. Longitudinal Regime Profiler** (`/quant/regimes`) | `quant/macro.py` & CLASS-M01.ENTROPIC..CLASS-M03.KINETIC thermodynamic classifications | **100% Verified** (FRED macro series & Vol20d volume ratios) | `/quant/` workbench |
---
## 2. Expanded Piecewise Audit Points & Multi-Strategy Alternatives (`Points 1–8`)
### Audit Point 1: Live Polyglot Workbench & REST/MCP Playground (`/api/v1/sandbox`)
- **Strategy 1A:** MCP Tool-Driven In-Browser Sandbox (Dynamic client-side invocation of `MCP_TOOLS_SCHEMA`).
- **Strategy 1B:** Static documentation-only API reference without interactive dispatch.
- **Strategy 1C:** Third-party Swagger/OpenAPI UI CDN integration.
- **Strategy 1D (Recommended — Hybrid SSE / JSON-RPC Playground):** Implement real-time Server-Sent Events (SSE) streaming transport for MCP alongside REST endpoints, offering live telemetry inspection with zero-trust rate limiting and zero external CDN bloat.
### Audit Point 2: Turnkey Local Appliance Mode (`ingglish-exegesis-rpm` & Docker)
- **Strategy 2A:** Native Fedora RPM & Dockerfile container extension.
- **Strategy 2B:** Manual pip-only installation instructions without packaging bundles.
- **Strategy 2C (Recommended — Multipass / Vagrant Appliance VM with One-Command Provisioning):** Provide a pre-configured Vagrant/Multipass appliance manifest automating zero-friction local sandboxing across macOS, Linux, and Windows with offline tmpfs hydration.
### Audit Point 3: Interactive Ingglish G2P Pronunciation Studio (`/calc/lexicon`)
- **Strategy 3A:** Offline CMUdict phonemic decomposition widget in `/calc/`.
- **Strategy 3B:** Static markdown lookup table of 126k words.
- **Strategy 3C (Recommended — Progressive Web Audio Phoneme Synthesizer + AQ Cipher Inspector):** Combine offline ARPAbet pronunciation audio playback with real-time base-36 valuation breakdowns and Gen 0 / Gen 1 orthographic comparison sliders.
### Audit Point 4: Dynamic Repdigit Attractor & Prime Attractor Calculator (`/math/attractors`)
- **Strategy 4A:** Modular arithmetic and prime-factor calculator widget inside `math_docs.py` (`Unit M1`).
- **Strategy 4B:** Static PDF operator tables.
- **Strategy 4C (Recommended — Interactive 37-Modulus Attractor Ring Canvas Animation):** Build an interactive canvas widget allowing users to drag prime numbers and observe real-time repdigit lock convergence across archive equations (`333`, `666`, `777`).
### Audit Point 5: Contingent-Meaning Operator Suite (`*Rota Umbrarum*` & Numogram Compass)
- **Strategy 5A:** Giordano Bruno's 3-ring shadow wheel and Nick Land's Numogram warp/torque compass as interactive overlays in `/graph/`.
- **Strategy 5B:** External SVG diagram reference without interactive dials.
- **Strategy 5C (Recommended — URL State Serialization & Shareable Philosophical Snapshots):** Implement deep-link state serialization (`?filter=syzygy&rota=3&lang=guile`) enabling visitors to bookmark and share exact occult/cybernetic graph configurations instantly.
### Audit Point 6: Live Ecosystem Invariant & EROFS Health Audit Dashboard (`/engineering/invariants`)
- **Strategy 6A:** Engineering Hub health status tile executing `ci/doctor.py` checks and reporting `ReadOnlyIsolationGuard` receipts.
- **Strategy 6B:** Static CI build badge images.
- **Strategy 6C (Recommended — Cryptographic Merkle-Tree Integrity Proof Badge):** Embed a cryptographic Merkle-Tree proof verification badge on-load confirming that `ReadOnlyIsolationGuard` file hashes and SQLite catalogs match zero-tamper SHA-256 state receipts.
### Audit Point 7: Spatiotemporal Quant Factor & Trophic Supply-Chain Backtester (`/quant/backtest`)
- **Strategy 7A:** Extend `/quant/` Panel 4 to allow visitors to toggle custom CLASS-S01.SILICON..CLASS-S06.AGI guild weighting and cross-correlation lead-lag windows $r(\tau)$.
- **Strategy 7B:** Pre-rendered static CSV export tables.
- **Strategy 7C (Recommended — Client-Side Wasm Rust-Accelerated Monte Carlo Factor Simulation):** Compile core portfolio quantitative models to WebAssembly (Wasm via Rust) to execute high-performance Monte Carlo factor stress testing directly in the browser with zero server CPU load.
### Audit Point 8: Longitudinal Regime Volatility & Thermodynamic Profiler (`/quant/regimes`)
- **Strategy 8A:** Enhance `/quant/` Panel 6 with multi-window temporal selectors (`30D|90D|180D|ALL`) and Vol20d thermodynamic state breakdowns.
- **Strategy 8B:** Static snapshot charts.
- **Strategy 8C (Recommended — Automated Bayesian Regime Shift Alerting & Local Webhook Feeds):** Enable visitors to configure local browser-based alert thresholds for M1 supply freezes or M2 flash-crash surges using Web Storage and EventSource streams.
---
## 3. Verification Plan
1. Compile Plan Markdown into Dark-Mode PDF via `hs-pdf-build`.
2. Run `python3 -m hyperstitionstud_io.ci.deploy_scripts_sync --workspace-root /workspace` (Gates `D1`–`D8`).
3. Run `tests/test_core_suite.py` (`ALL 7 TEST SUITES PASSED`).
+6 -6
View File
@@ -3,8 +3,8 @@
<head> <head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Encyclopedia of Technocapital Singularity Zoology — Interactive Knowledge Graph (v2.17.0)</title> <title>Encyclopedia of Technocapital Singularity Zoology — Interactive Knowledge Graph (v2.17.1)</title>
<link rel="stylesheet" href="/assets/hs-group3-basalt-chamfer.css?v=2.17.0" onerror="this.onerror=null;this.href='../hyperstitionstudio-core/site/assets/hs-group3-basalt-chamfer.css';" /> <link rel="stylesheet" href="/assets/hs-group3-basalt-chamfer.css?v=2.17.1" onerror="this.onerror=null;this.href='../hyperstitionstudio-core/site/assets/hs-group3-basalt-chamfer.css';" />
<style> <style>
:root { :root {
--font-mono: 'DejaVu Sans Mono', 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; --font-mono: 'DejaVu Sans Mono', 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
@@ -323,7 +323,7 @@
<span class="dot" style="background:var(--accent-cyan);box-shadow:0 0 10px var(--accent-cyan);" aria-hidden="true"></span> <span class="dot" style="background:var(--accent-cyan);box-shadow:0 0 10px var(--accent-cyan);" aria-hidden="true"></span>
<h1>ENCYCLOPEDIA OF TECHNOCAPITAL SINGULARITY ZOOLOGY — INTERACTIVE KNOWLEDGE GRAPH</h1> <h1>ENCYCLOPEDIA OF TECHNOCAPITAL SINGULARITY ZOOLOGY — INTERACTIVE KNOWLEDGE GRAPH</h1>
</div> </div>
<p class="subtitle">388 Nodes • 1,282 Deduplicated Edges • Zero Glossary Leak &bull; v2.17.0</p> <p class="subtitle">388 Nodes • 1,282 Deduplicated Edges • Zero Glossary Leak &bull; v2.17.1</p>
</div> </div>
<nav class="top-nav hs-global-nav" aria-label="Primary Ecosystem Navigation"> <nav class="top-nav hs-global-nav" aria-label="Primary Ecosystem Navigation">
<a class="btn" id="graphNavHome" href="/">Portal Home (/)</a> <a class="btn" id="graphNavHome" href="/">Portal Home (/)</a>
@@ -399,11 +399,11 @@
</aside> </aside>
</div> </div>
<footer class="hs-global-footer" style="background:#1A1D26;border-top:1px solid #323846;padding:4px 14px;text-align:center;font-size:11px;color:#9BA3B8;z-index:20;"> <footer class="hs-global-footer" style="background:#1A1D26;border-top:1px solid #323846;padding:4px 14px;text-align:center;font-size:11px;color:#9BA3B8;z-index:20;">
<span class="hs-lemur-credit">hyperstitionstud.io/graph v2.17.0 &bull; Made with <span class="hs-heart" role="img" aria-label="love" style="color:#FB7185;display:inline-block;padding:0 2px;">&#x2665;</span> by Lemurs.</span> <span class="hs-lemur-credit">hyperstitionstud.io/graph v2.17.1 &bull; Made with <span class="hs-heart" role="img" aria-label="love" style="color:#FB7185;display:inline-block;padding:0 2px;">&#x2665;</span> by Lemurs.</span>
</footer> </footer>
<script src="graph-data.js?v=2.17.0"></script> <script src="graph-data.js?v=2.17.1"></script>
<script src="/assets/hs-mobile-ui.js?v=2.17.0" defer></script> <script src="/assets/hs-mobile-ui.js?v=2.17.1" defer></script>
<script> <script>
(function() { (function() {
const DATA = (window.HyperstitionStudio && window.HyperstitionStudio.EncyclopediaGraphData) || window.ENCYCLOPEDIA_GRAPH_DATA; const DATA = (window.HyperstitionStudio && window.HyperstitionStudio.EncyclopediaGraphData) || window.ENCYCLOPEDIA_GRAPH_DATA;
@@ -705,7 +705,7 @@ def build_graph(upstream_repo: Path = UPSTREAM_REPO_DEFAULT) -> dict[str, Any]:
"$schema": "./schemas/v1/encyclopedia-graph.schema.json", "$schema": "./schemas/v1/encyclopedia-graph.schema.json",
"$id": URN_SCHEMA_GRAPH, "$id": URN_SCHEMA_GRAPH,
"namespace_urn": URN_GRAPH_NS, "namespace_urn": URN_GRAPH_NS,
"version": "2.17.0", "version": "2.17.1",
"encyclopedia_base_path": "../technocapital-singularity-zoology/encyclopedia", "encyclopedia_base_path": "../technocapital-singularity-zoology/encyclopedia",
"upstream_repository": str(upstream_repo), "upstream_repository": str(upstream_repo),
"isolation_verified": { "isolation_verified": {