Compare commits

...
50 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
Hermes Agent 37b9e0226f Release v2.17.0: Update periodic-harvest-cicd-to-vps-flow-diagram.png 2026-12-01 23:48:49 +00:00
Hermes Agent d850b439d3 Release v2.17.0: Synchronize root README.md Gitea commit telemetry banner 2026-12-01 23:30:25 +00:00
Hermes Agent a19129ea52 Release v2.17.0: Add Fedora 41 ingglish-isopsephic-exegesis technical Q&A & OpenRouter Gemini 4 reasoning audit (.md & .pdf) 2026-12-01 20:28:41 +00:00
Hermes Agent 279f8dca48 Release v2.17.0: Update periodic-harvest-cicd-to-vps-flow-diagram.png 2026-12-01 19:24:39 +00:00
Hermes Agent 05ea6bec12 Release v2.17.0: Implement cross-page & intra-page style, font-family, background token & navigation parity with regression gates S1-S4 (Plan #65) and adaptive mobile device detection & Group 3 mobile UI across all surfaces (Plan #66 Strategies 1A/2A/3A/4A) 2026-12-01 19:22:49 +00:00
Hermes Agent a598c193f8 Release v2.16.0: Update periodic-harvest-cicd-to-vps-flow-diagram.png 2026-12-01 13:18:13 +00:00
Hermes Agent 3cb816d5ef Release v2.16.0: Implement bounded-box text layout & geometry audit across all 11 homepage UI quadrant closeups (Plan #61), unified homepage-matched navigation bar across all subpages with 0 homepage nav changes (Plan #63), and Fedora 41 RPM 4.20 %{_sourcedir} + %changelog fix 2026-12-01 13:16:11 +00:00
Hermes Agent 80ec4eaa51 Release v2.15.0: Update periodic-harvest-cicd-to-vps-flow-diagram.png 2026-12-01 12:21:18 +00:00
Hermes Agent 7738a6de5e Release v2.15.0: Implement /calc/ (haiperdohpjematreeah) Group 3 homepage UI parity & hyperdope-ci-build upstream patch integration (Plan #60) and parallel CMU Flite kal16/slt + broadcast DSP voice mastering for /quant/ guided tour (Plan #59 Strategies 1A/2A/3A) 2026-12-01 12:19:53 +00:00
Hermes Agent edb527a590 Release v2.14.0: Add PLAN-PIECEWISE-QUANT-VOICE-QUALITY-AND-FAST-DEPLOY-SYNTHESIS.{md,pdf} to docs/plans/piecewise/ 2026-12-01 11:55:54 +00:00
Hermes Agent b136d63908 Release v2.14.0: Update periodic-harvest-cicd-to-vps-flow-diagram.png 2026-12-01 11:41:53 +00:00
Hermes Agent 625ea8bdc3 Release v2.14.0: Implement pre-commit preparation & 8-gate drift-blocking verifier (hs-deploy-scripts-sync Gates D1-D8) for push-all-to-git-libre-audio.sh and deploy/sync-vps-repos.sh (Plan #58) 2026-12-01 11:41:04 +00:00
Hermes Agent 77da9c7ae5 Release v2.13.0: Implement zero-Git-audio /quant/ guided tour voice narration (Strategies 1A/2A/3A via hs-quant-voice-build, 250ms onstart watchdog & WebAudio formant fallback) and turnkey Fedora 41 OpenRouter exegesis & git.libre.audio push package (Plan #56 & Plan #57) 2026-12-01 11:24:08 +00:00
Hermes Agent f507a76ca5 Release v2.12.0: Update periodic-harvest-cicd-to-vps-flow-diagram.png 2026-12-01 10:43:09 +00:00
Hermes Agent db936f6e97 Release v2.12.0: Implement single-layer compression enforcement, 256KB plan archive cap with git.libre.audio citations, cold-archived inactive plans, codebase modularity/security/economization (Strategies 1A/2B/3A/4A/5A/6A/7A), and /quant/ spoken voice narration & #lensSelect UI element indicators (Strategies 1B/2A/3A/4A) 2026-12-01 10:29:42 +00:00
Hermes Agent c5e72e42d2 Release v2.10.0: Wire hs-closeups-sync into pre-commit hooks, push-all-to-git-libre-audio.sh, and sync-vps-repos.sh across all 6 repositories 2026-12-01 08:41:07 +00:00
Hermes Agent 9cdad25b2c Release v2.10.0: Add hs-closeups-sync to automatically re-render homepage UI closeups when page UI elements change 2026-12-01 08:36:30 +00:00
Hermes Agent b2049beb38 Release v2.10.0: Organize active, piecewise, and inactive plans into docs/plans/{active,piecewise,inactive} for offline PDF review 2026-12-01 08:29:37 +00:00
Hermes Agent b569f49e32 Release v2.10.0: Implement progressive scale-ready UI navigation for growing datasets across /quant/, /graph/, /learn/, /engineering/, and /math/ 2026-12-01 08:24:17 +00:00
Hermes Agent 2c0c7e9241 Release v2.9.0: Implement multi-tab 680x260 homepage UI closeups, symmetric 16px/20px quadrant frames, and exploratory deep-links 2026-12-01 07:55:15 +00:00
Hermes Agent fe4c013319 Release v2.8.1: Add piecewise explication plans for /engineering/ and /math/ with anti-self-reference closure 2026-12-01 06:45:28 +00:00
Hermes Agent 77849c2d8a Release v2.8.1: Fix sync-vps-repos.sh fast-forward merge by resetting dirty README.md before pull and using --hooks-only on VPS 2026-12-01 06:32:24 +00:00
71 changed files with 2565 additions and 655 deletions

No files matched your search

Binary file not shown.
+7 -7
View File
@@ -1,11 +1,11 @@
# `encyclopedia-knowledge-graph` (`v2.8.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.8.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.8.0 release state across 11 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/PLAN-HOMEPAGE-QUADRANT-EXPLORATORY-FEATURES-AND-BUTTON-GEOMETRY.md`, `docs/PLAN-HOMEPAGE-QUADRANT-EXPLORATORY-FEATURES-AND-BUTTON-GEOMETRY.pdf`, `docs/PLAN-PIECEWISE-MARKET-RESEARCH-DEFERRED-CANDIDATE-STRATEGIES.md`, `docs/PLAN-PIECEWISE-MARKET-RESEARCH-DEFERRED-CANDIDATE-STRATEGIES.pdf`, `docs/archive/README.md`, `docs/archive/archive-manifest.json`, `docs/archive/completed-plans-archive.tar.gz`, `docs/cross-repo-dependency-and-audit-flow-diagram.html` (+3 more) > - **Touched Files / Surfaces:** `docs/periodic-harvest-cicd-to-vps-flow-diagram.png`
> - **Live Verified Ecosystem Metrics (`v2.8.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.8.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.8.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`) |
@@ -0,0 +1,103 @@
# Technical Audit & Reasoning Report: Fedora 41 `ingglish-isopsephic-exegesis` RPM Package, OpenRouter Endpoint URLs & `google/gemini-4-argon` Mandatory Reasoning Behavior (`v2.17.0`)
**Document ID:** `FEDORA41-INGGLISH-ISOPSEPHIC-EXEGESIS-PACKAGE-TECHNICAL-QA-AND-OPENROUTER-AUDIT`
**Package Under Audit:** `ingglish-isopsephic-exegesis-2.17.0-1.fc41.noarch.rpm` (`/workspace/ingglish-hyperdope-gematria/packaging/`)
**Target Scripts & Configs Inspected:**
- `/workspace/ingglish-hyperdope-gematria/ingglish-aq-archive/scripts/synthesize_news_dossier_openrouter.py` (`/usr/libexec/ingglish-exegesis/scripts/synthesize_news_dossier_openrouter.py`)
- `/workspace/ingglish-hyperdope-gematria/packaging/bundle/scripts/run_exegesis_and_push_fedora41.sh` (`/usr/bin/ingglish-exegesis-push`)
- `/workspace/ingglish-hyperdope-gematria/packaging/rpm/ingglish-exegesis.sysconfig` (`/etc/sysconfig/ingglish-exegesis`)
- `/workspace/ingglish-hyperdope-gematria/packaging/rpm/ingglish-isopsephic-exegesis.spec` & `packaging/build-fedora41-rpm.sh`
---
## 1. Executive Summary of Conclusions
| Audit Question / Topic | Verified Conclusion | Codebase Evidence & Line References |
| :--- | :--- | :--- |
| **1. OpenRouter Gemini 4 Migration Guide: `"google/gemini-4-argon cannot have reasoning turned off"`** | **CONFIRMED COMPATIBLE (Does NOT turn reasoning off; requires `max_tokens` headroom awareness if `google/gemini-4-argon` is selected).**<br/>`ingglish-isopsephic-exegesis` (`synthesize_news_dossier_openrouter.py`) **never** sends any parameter attempting to disable reasoning (`reasoning: {"enabled": false}`, `reasoning: {"effort": "none"}`, `reasoning_effort: "none"`, or `thinking_budget: 0`). However, because OpenRouter counts mandatory reasoning tokens against `"max_tokens": 2800`, using `google/gemini-4-argon` without raising `max_tokens` (e.g. to `8192`) or setting `reasoning: {"effort": "low"}` can exhaust the `2,800`-token cap during internal reasoning. | • `synthesize_news_dossier_openrouter.py` (`lines 36, 507–542`)<br/>• `/etc/sysconfig/ingglish-exegesis` (`line 8`: default model is `google/gemini-2.5-pro`) |
| **2. Supported OpenRouter API Endpoint URLs** | **Default:** `https://openrouter.ai/api/v1/chat/completions`.<br/>**Overrides:** Supports any full Chat Completions `POST` URL set via `OPENROUTER_API_URL` in `/etc/sysconfig/ingglish-exegesis` or `--api-url` on the CLI. Does **not** auto-append `/chat/completions` to a bare base URL (`https://openrouter.ai/api/v1`), so the full endpoint path must be supplied. | • `synthesize_news_dossier_openrouter.py` (`lines 35, 476, 519–533, 653`)<br/>• `run_exegesis_and_push_fedora41.sh` (`lines 96, 190`)<br/>• `ingglish-exegesis.sysconfig` (`line 7`) |
| **3. Fedora 41 `rpmbuild` (`RPM 4.20`) `%install` & `%changelog` Behavior** | **RESOLVED & VERIFIED (`v2.16.0–v2.17.0`).**<br/>Fedora 41's `RPM 4.20` runs `%install` inside `BUILD/%{name}-%{version}-build` rather than `BUILD/`. Staging payload directories in `%{_sourcedir}` (`${STAGE_TOP}/SOURCES`) and adding a dated `%changelog` section resolves both `cp: cannot stat 'skills/*'` and the `%source_date_epoch_from_changelog` warning. | • `packaging/rpm/ingglish-isopsephic-exegesis.spec` (`lines 31–54, 92–94`)<br/>• `packaging/build-fedora41-rpm.sh` (`lines 40–77`) |
| **4. Local Hermes Cronjob Coexistence During Target-System Evaluation** | **PAUSED (`d28b479ec217`).**<br/>Local Hermes cronjob `current-events-isopsephic-exegesis-daily-0000-gmt` (`0 19 * * *` EST / `00:00 UTC`) is paused (`enabled: false, state: paused`) to prevent duplicate commits while evaluating the Fedora 41 package on the target machine. | • Hermes `cronjob_manage` (`job_id: d28b479ec217`, `paused_at: 2026-12-01T08:19:17-05:00`) |
---
## 2. Detailed Reasoning & Code Analysis: `"google/gemini-4-argon cannot have reasoning turned off"`
### 2.1 Question
> *"Per the OpenRouter Gemini 4 Migration Guide, `google/gemini-4-argon` cannot have reasoning turned off." Confirm whether this is or is not the case for `ingglish-isopsephic-exegesis`.*
### 2.2 Exact Request Payload Sent by `ingglish-isopsephic-exegesis`
In `/workspace/ingglish-hyperdope-gematria/ingglish-aq-archive/scripts/synthesize_news_dossier_openrouter.py` (which is packaged into `/usr/libexec/ingglish-exegesis/scripts/synthesize_news_dossier_openrouter.py` inside the Fedora 41 RPM), `call_openrouter_exegesis()` (`lines 507–535`) constructs the HTTP `POST` body as follows:
```python
req_body = json.dumps(
{
"model": model,
"temperature": 0.3,
"max_tokens": 2800,
"messages": [
{"role": "system", "content": system_prompt},
{"role": "user", "content": json.dumps(summary_input, ensure_ascii=False)},
],
}
).encode("utf-8")
```
### 2.3 Step-by-Step Reasoning & Conclusions
1. **`ingglish-isopsephic-exegesis` Does NOT Attempt to Disable Reasoning:**
- The OpenRouter request payload omits `reasoning`, `reasoning_effort`, `include_reasoning`, and `provider.ThinkingConfig`.
- Because it never passes `reasoning: {"enabled": false}`, `reasoning: {"effort": "none"}`, or `thinking_budget: 0`, OpenRouter's restriction that `google/gemini-4-argon` cannot have reasoning turned off is **not violated** by `ingglish-isopsephic-exegesis`.
2. **Default Configured Model Is `google/gemini-2.5-pro`:**
- By default, `/etc/sysconfig/ingglish-exegesis` (`line 8`) and `synthesize_news_dossier_openrouter.py` (`line 36`) set:
`OPENROUTER_MODEL="google/gemini-2.5-pro"`
3. **Important Token-Budget Interaction If You Override `OPENROUTER_MODEL="google/gemini-4-argon"`:**
- While `ingglish-isopsephic-exegesis` does not disable reasoning, `google/gemini-4-argon` always performs internal reasoning before emitting visible `choices[0].message.content`.
- On OpenRouter's `/api/v1/chat/completions` endpoint, `"max_tokens": 2800` (`line 511`) caps the **sum of internal reasoning tokens plus visible completion tokens**.
- If `google/gemini-4-argon` expends e.g. `2,200–2,800` tokens on mandatory internal reasoning for the news-harvest JSON, the visible Markdown output in `choices[0].message.content` (`# Dossier: ...`, `## 1. Semiotic, Archetypal & Hyperstitional Analysis`, and `## 2. Atomic Lexicon & Remarkable Isopsephic Identities`) can be truncated or empty (`finish_reason: "length"`).
- When `content` is empty or missing `"## 1."`, line `538` of `synthesize_news_dossier_openrouter.py` (`if not content or "## 1." not in content:`) falls back to `_build_deterministic_sections_1_and_2(harvest, target_date)`.
- **Recommendation for `google/gemini-4-argon`:** If you configure `OPENROUTER_MODEL="google/gemini-4-argon"` in `/etc/sysconfig/ingglish-exegesis`, either keep `google/gemini-2.5-pro` or raise `max_tokens` (e.g., `8192`–`12000`) / pass `"reasoning": {"effort": "low"}` (which keeps mandatory reasoning enabled at minimal token cost).
---
## 3. Detailed Reasoning & Code Analysis: Supported OpenRouter API Endpoint URLs
### 3.1 Endpoint Resolution Chain in `ingglish-isopsephic-exegesis`
Across the three layers of the Fedora 41 package, the OpenRouter endpoint URL is resolved in the following order:
1. **Environment File (`/etc/sysconfig/ingglish-exegesis`, line `7`):**
```sh
OPENROUTER_API_URL="https://openrouter.ai/api/v1/chat/completions"
```
2. **Systemd Worker Script (`/usr/bin/ingglish-exegesis-push` / `run_exegesis_and_push_fedora41.sh`, lines `96` & `190`):**
```bash
export OPENROUTER_API_URL="${OPENROUTER_API_URL:-https://openrouter.ai/api/v1/chat/completions}"
SYNTH_ARGS=(--harvest "${HARVEST_JSON}" --archive-dir "${ARCHIVE_DIR}" --model "${OPENROUTER_MODEL}" --api-url "${OPENROUTER_API_URL}")
```
3. **Python Synthesizer (`synthesize_news_dossier_openrouter.py`, lines `35` & `653`):**
```python
OPENROUTER_DEFAULT_URL = "https://openrouter.ai/api/v1/chat/completions"
eff_url = (api_url or os.environ.get("OPENROUTER_API_URL") or OPENROUTER_DEFAULT_URL).strip()
```
### 3.2 Supported Endpoint URLs & Format Requirements
- **Primary Canonical URL:** `https://openrouter.ai/api/v1/chat/completions`
- **Custom Gateway / Proxy URLs:** Any `https://` URL that implements the OpenRouter / OpenAI Chat Completions `POST` contract (`Authorization: Bearer <OPENROUTER_API_KEY>`, `Content-Type: application/json`, `HTTP-Referer: https://hyperstitionstud.io`, `X-Title: HyperstitionStudio-Ingglish-Exegesis`) and returns JSON with `choices[0].message.content`.
- **Full Path Requirement:** Because `urllib.request.Request(api_url, data=req_body, ..., method="POST")` (`line 519`) posts directly to `api_url` verbatim without appending `/chat/completions`, `OPENROUTER_API_URL` must always include the full `/api/v1/chat/completions` (or `/v1/chat/completions`) path rather than a base URL like `https://openrouter.ai/api/v1`.
---
## 4. Fedora 41 `RPM 4.20` Build Root-Cause & Resolution Summary (`v2.16.0–v2.17.0`)
1. **Observed Symptom on Fedora 41:**
```text
+ cp -a 'skills/*' /tmp/ingglish-rpmbuild-870344/BUILD/ingglish-isopsephic-exegesis-2.13.0-build/BUILDROOT/usr/share/hermes/skills/
cp: cannot stat 'skills/*': No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.3mWfdI (%install)
RPM build warnings:
%source_date_epoch_from_changelog is set, but %changelog has no entries to take a date from
```
2. **Root Cause:**
- Fedora 41 upgraded `rpm-build` to `RPM 4.20`, which isolates each build inside `%{_topdir}/BUILD/%{name}-%{version}-build` instead of `%{_topdir}/BUILD`.
- Staging files into `${STAGE_TOP}/BUILD/` left `BUILD/ingglish-isopsephic-exegesis-<version>-build/` empty when `%install` ran.
3. **Applied Fix (`v2.16.0–v2.17.0`):**
- `packaging/build-fedora41-rpm.sh` stages `skills/`, `scripts/`, `vendor/`, `sysconfig/`, `systemd/`, and `sysusers.d/` inside `${STAGE_TOP}/SOURCES` and passes `--define "_sourcedir ${STAGE_TOP}/SOURCES"` to `rpmbuild -bb`.
- `packaging/rpm/ingglish-isopsephic-exegesis.spec` references `%{_sourcedir}/skills/*`, `%{_sourcedir}/scripts/*`, `%{_sourcedir}/vendor/*`, `%{_sourcedir}/sysconfig/*`, `%{_sourcedir}/systemd/*`, and `%{_sourcedir}/sysusers.d/*` in `%install`, and includes a dated `%changelog` section synchronized by `version_sync.py`.
@@ -69,3 +69,33 @@
| **3. Node `ERR_MODULE_NOT_FOUND: Cannot find package 'ingglish'`** | The agent invoked `node --input-type=module -e 'import("ingglish")...'` from `/root` or `/workspace` instead of `/workspace/ingglish-hyperdope-gematria`. | Always pass `workdir="/workspace/ingglish-hyperdope-gematria"` (or use `python3 -c "from hyperstitionstud_io.phonetics import translate_batch..."` with `PYTHONPATH=/workspace/hyperstitionstudio-core/src`). | | **3. Node `ERR_MODULE_NOT_FOUND: Cannot find package 'ingglish'`** | The agent invoked `node --input-type=module -e 'import("ingglish")...'` from `/root` or `/workspace` instead of `/workspace/ingglish-hyperdope-gematria`. | Always pass `workdir="/workspace/ingglish-hyperdope-gematria"` (or use `python3 -c "from hyperstitionstud_io.phonetics import translate_batch..."` with `PYTHONPATH=/workspace/hyperstitionstudio-core/src`). |
| **4. `ci_provision_ingglish.py` Gate 2 drops an 8–9 word `666/777` equation as `long-scraped`** | Lines with `nw >= 15` total tokens (including `[Ingglish: ...]`) require `>= 40%` standard `/usr/share/dict/words` hits; equations packed with out-of-dictionary acronyms (`TSMC`, `ASML`, `NVDA`, `Dario`, `Amodei`) dip below `0.40`. | Pair proper-noun anchors in `666/777` equations with standard English nouns (`proof`, `grid`, `wafer`, `silicon`, `drone`, `laser`, `loss`) so `dict_hits / nw >= 0.45`. | | **4. `ci_provision_ingglish.py` Gate 2 drops an 8–9 word `666/777` equation as `long-scraped`** | Lines with `nw >= 15` total tokens (including `[Ingglish: ...]`) require `>= 40%` standard `/usr/share/dict/words` hits; equations packed with out-of-dictionary acronyms (`TSMC`, `ASML`, `NVDA`, `Dario`, `Amodei`) dip below `0.40`. | Pair proper-noun anchors in `666/777` equations with standard English nouns (`proof`, `grid`, `wafer`, `silicon`, `drone`, `laser`, `loss`) so `dict_hits / nw >= 0.45`. |
| **5. LLM invents or guesses an AQ sum or Ingglish spelling in prose** | Mental arithmetic by the LLM instead of copying deterministic script output. | Never allow mental AQ calculation: every `(word, ing, eng_aq, ing_aq, breakdown = 333/666/777)` printed in a dossier must be copied verbatim from `collect_news_aq.py` / `hyperstitionstud_io.ciphers.compute_aq()`, and verified afterward by `ci_provision_ingglish.py` Gate 4 (`aq_mismatches == 0`). | | **5. LLM invents or guesses an AQ sum or Ingglish spelling in prose** | Mental arithmetic by the LLM instead of copying deterministic script output. | Never allow mental AQ calculation: every `(word, ing, eng_aq, ing_aq, breakdown = 333/666/777)` printed in a dossier must be copied verbatim from `collect_news_aq.py` / `hyperstitionstud_io.ciphers.compute_aq()`, and verified afterward by `ci_provision_ingglish.py` Gate 4 (`aq_mismatches == 0`). |
---
## 5. Turnkey Fedora 41 Package (`ingglish-isopsephic-exegesis-2.13.0-1.fc41.noarch.rpm`) & Automated `git.libre.audio` Push Worker (`/usr/bin/ingglish-exegesis-push`)
To populate `ingglish-hyperdope-gematria`, `hyperdope-ci-build`, and `haiperdohp-jemaytreeah` with LLM-dependent daily `00:00 UTC` exegesis data from a second Fedora 41 machine that has SSH push credentials for `git.libre.audio` and an `OPENROUTER_API_KEY`:
### 5.1 Three-Command Fedora 41 Quickstart
1. **Build the `.fc41.noarch.rpm` (into `/workspace/untracked/rpm-builds/` so `0` nested compressed archives enter Git):**
```bash
/workspace/ingglish-hyperdope-gematria/packaging/build-fedora41-rpm.sh
```
2. **Install on the Target Fedora 41 Machine (`pulling all Python, Node, Git, OpenSSH, Font & ReportLab dependencies automatically`):**
```bash
sudo dnf install -y ./ingglish-isopsephic-exegesis-2.13.0-1.fc41.noarch.rpm
```
3. **Configure `OPENROUTER_API_KEY` & SSH Key in `/etc/sysconfig/ingglish-exegesis` and Enable the `00:00 UTC` Timer:**
```bash
sudo sed -i 's|^OPENROUTER_API_KEY=.*|OPENROUTER_API_KEY="sk-or-v1-..."|' /etc/sysconfig/ingglish-exegesis
sudo systemctl enable --now ingglish-exegesis.timer
# Or run an immediate one-shot harvest + OpenRouter synthesis + 4-gate CI + git.libre.audio push as service user ingglish:
sudo -u ingglish /usr/bin/ingglish-exegesis-push
```
### 5.2 What `/usr/bin/ingglish-exegesis-push` (`run_exegesis_and_push_fedora41.sh`) Executes Automatically
1. **Stage 1 (Git Workspace Sync):** Clones (on first run) or `git pull --rebase --autostash` updates `hyperstitionstudio-core`, `ingglish-hyperdope-gematria`, `hyperdope-ci-build` (`feat/ingglish-aq-corpus`), and `haiperdohp-jemaytreeah` under `WORKSPACE_DIR` (`/var/lib/ingglish-exegesis/workspace` or `/workspace`), and unpacks the `1x`-compressed `ingglish-vendor.tgz` into `node_modules/`.
2. **Stage 2 (Step A — Deterministic Harvest, `0` LLM tokens):** Runs `TZ=UTC collect_news_aq.py --mode closing-bell` to harvest Wikipedia `Portal:Current_events`, BBC RSS, and AP RSS and compute dual `eng_aq`/`ing_aq` prime and isometric locks.
3. **Stage 3 (Step B — Pre-Solved `333/666/777` Combinatorics + OpenRouter API Synthesis):** Runs `synthesize_news_dossier_openrouter.py`, which deterministically solves `30` (`10×333`, `10×666`, `10×777`) non-padded Ingglish equations in pure Python (`0` mental math by LLM), calls `https://openrouter.ai/api/v1/chat/completions` (`Bearer ${OPENROUTER_API_KEY}`, default `OPENROUTER_MODEL="google/gemini-2.5-pro"`) to author Sections 1–2, splices the pre-verified equations into Sections 3–5, verifies `aq_mismatches == 0`, writes `<NN>-dossier-news-YYYY-MM-DD.md`, and updates `00-index-and-methodology.md`.
4. **Stage 4 (Step C — 4-Gate CI Provisioning & Calculator DB Rebuild, `0` LLM tokens):** Runs `ci_provision_ingglish.py --tier 2 --apply-repo --generate-docs`, `generate_db_json.py`, and `hs-readme-sync`.
5. **Stage 5 (Step D — Topological Git Commit & Push):** Commits and pushes `ingglish-hyperdope-gematria`, `hyperdope-ci-build`, and `haiperdohp-jemaytreeah` to `ssh://git@git.libre.audio:2222/seasharp`.
@@ -1,67 +0,0 @@
# Plan: Ecosystem-Wide Economization Evaluation & Concrete Optimization Vectors (`Vectors E1–E7`) Across CPU, LLM Tokens, Disk/Web Footprint & Operator Time (`v2.2.2`)
- **Document ID:** `PLAN-ECOSYSTEM-WIDE-ECONOMIZATION-EVALUATION-AND-VECTORS` (`v2.2.2`)
- **Roadmap Status:** **DEFERRED (Long-Term Inactive — Preserved for Future Reference)**
- **Core Conservation Constraint (What Must NEVER Be Economized Away):**
1. **Zero-Synthetic-Data Mandate:** Never trade away observational honesty (`None`/`null` -> `"No data available"`).
2. **Gematria-Pipeline Richness Invariant:** Never prune or compress live gematria, phonemic, zoological, or knowledge-graph corpora (`146` dossiers, `282` glossary entries, `190` bilingual specimens, `388` KG nodes, `1,282` edges, `4,943+` offline CMUdict mappings).
3. **Two-Script Manual Operator Deployment Invariant:** `/workspace/push-all-to-git-libre-audio.sh` and `deploy/sync-vps-repos.sh` remain the only two manual deployment steps.
- **Target Modules & Scripts:**
- `/workspace/hyperstitionstudio-core/src/hyperstitionstud_io/phonetics/{__init__.py,cmudict_fallback.json}` (`Vector E1`)
- `/workspace/hyperstitionstudio-core/deploy/sync-vps-repos.sh` (`Vector E2`)
- `/workspace/hyperstitionstudio-core/src/hyperstitionstud_io/quant/daily_brief.py` (`Vector E3`)
- `/workspace/hyperstitionstudio-core/src/hyperstitionstud_io/mcp/tools.py` (`Vector E4`)
- `/workspace/hyperstitionstudio-core/src/hyperstitionstud_io/version_sync.py` (`Vector E5`)
- `/workspace/encyclopedia-knowledge-graph/scripts/build_encyclopedia_knowledge_graph.py` (`Vector E6`)
---
## 1. Synthesis of Prior Economizations Already Achieved in Session History (`v2.0.25–v2.2.2`)
| Prior Economization Milestone | Primary Dimension Saved | Measured Impact |
| :--- | :--- | :--- |
| **1. `T_math/T_char/T_elem/T_box` PDF Sanitizer (`pdf_compiler.py`)** | LLM Token Spend | **`-11,488` BPE tokens** saved across `38` docs (`0` LLM tokens per PDF compile) |
| **2. Cold-Storage Plan Archive Rotator (`hs-archive-rotate`)** | Disk / `rglob` / Token Spend | **`76` completed `.md`/`.pdf` plan files (`4.30 MB`)** compressed into `completed-plans-archive.tar.gz` (`3.59 MB`) and excluded from stylistic PDF refreshes |
| **3. Decommissioning Non-Exegesis `localhost` Cronjobs (`29c871eb6b78` & `7effa9679803`)** | Metered LLM Cron Turns | **`-12` LLM agent cron turns/week (`-63%`)** by migrating deterministic harvests to VPS `systemd` timers (`0` LLM tokens) |
| **4. Programmatic SemVer Heuristics (`hs-sync-version --auto-bump`)** | LLM & Operator Time | **`0` LLM tokens** and **`< 80 ms`** to classify `noop / patch / minor / major` from Git & archive deltas |
| **5. Pre-Compiled `quant-timeseries.json` Fast-Path in `quant/cards.py`** | CPU Time (API & Tests) | **`34x` speedup (`1,186 ms -> ~35 ms` per card)**, saving `~3.4 s` per test suite run |
| **6. Single Introspective `ProtectSystem=strict` (`EROFS`) Harness (`ci/erofs_harness.py`)** | LLM Maintenance & Operator Time | Automatically sweeps all `MCP_TOOLS_SCHEMA` tools under simulated `EROFS` with **`0` future test-authoring tokens** |
---
## 2. Empirical Profiling of Current Bottlenecks (`v2.2.2` Baseline Telemetry)
Profiling `tests/test_core_suite.py` (`6,653.8 ms` total) and repository artifact sizes across `/workspace` reveals exactly where the remaining CPU time, disk/Git churn, and payload bytes are concentrated:
- **Test Suite CPU Breakdown:**
- Suites `1–6` combined (`test_offline_urn_namespaces` through `test_doctor_all_checks_pass`): **`85.3 ms` (`1.3%`)**
- Suite `7` (`test_ipld_quant_and_mcp_server`): **`6,568.5 ms` (`98.7%`)**, dominated by:
- `build_quant_timeseries_bundle()` (called 2x in Suite 7): **`1,147.2 ms` + `1,107.8 ms` = `2,255.0 ms`**
- `run_introspective_erofs_suite()`: **`780.2 ms`**
- `build_catalog_sqlite_db()`: **`442.0 ms`**
- `render_periodic_harvest_cicd_flow_diagram_png()`: **`295.9 ms`**
- **Root Cause of the `1,147 ms` `build_quant_timeseries_bundle()` Bottleneck:**
- Out of `~350` English strings passed to `translate_batch()` in `timeseries.py`, `332` hit `cmudict_fallback.json` in `0.2 ms`, while **18 static ticker abbreviations** (`ANTHR`, `AVGO`, `BLK`, `BTC`, `CEG`, `ETH`, `GOOGL`, `HG`, `LLY`, `LMT`, `MSFT`, `NVDA`, `ORCL`, `PLTR`, `RTX`, `SOL`, `TNX`, `TSM`) are absent from `cmudict_fallback.json` (`4,943` entries), causing `translate_batch()` to spawn a cold `node --input-type=module` subprocess (`~1,100 ms`) on every single call without memoizing the result in `_FALLBACK_CACHE`!
---
## 3. Seven Concrete Project-Wide Economization Vectors (`Vectors E1–E7`)
| Vector | Target Module / Script | Economization Mechanism | Dimension(s) Optimized | Measured Expected Savings |
| :---: | :--- | :--- | :--- | :--- |
| **`E1`** | `src/hyperstitionstud_io/phonetics/{__init__.py,cmudict_fallback.json}` | 1. Add the 18 canonical watchlist ticker symbols (and FRED unit tokens) to `cmudict_fallback.json` (`4,943 -> 4,961` entries).<br/>2. Memoize any runtime `node` translations into `_FALLBACK_CACHE` in memory so `node` is never spawned twice for the same token in a process. | **CPU Time** & **Offline Phonetic Richness** | • `build_quant_timeseries_bundle()` drops from **`1,147 ms` to `~18 ms` (`63x` faster)**.<br/>• `test_core_suite.py` saves **`~2.2 seconds` (`-34%`)** per run. |
| **`E2`** | `deploy/sync-vps-repos.sh` (Step `[4/5]`) | Replace unconditional `find ... -exec gzip -9 -k -f` and `brotli -q 11 -k -f` over every file in `${LIVE_REPOS}` with an incremental `mtime` check (`[[ ! -f "${f}.gz" \|\| "${f}" -nt "${f}.gz" ]]` and `[[ ! -f "${f}.br" \|\| "${f}" -nt "${f}.br" ]]`). | **VPS Sync CPU Time** & **Deploy Latency** | Cuts Step `[4/5]` pre-compression CPU time on incremental deploys and `00:20 UTC` / `21:30 UTC` VPS runs by **`~85–92%`**. |
| **`E3`** | `src/hyperstitionstud_io/quant/daily_brief.py` | Compute `input_observations_sha256` over `(real-market-history.json, real-macro-indicators.json, latest_dated_dossier)`. When unchanged (and `--force-advance` is not passed), preserve the current `run_number` (`Q-RUN-NNNN`) and Bayesian posterior state instead of advancing a duplicate run on code-only releases. | **Git Repo Churn**, **Bayesian State Integrity** & **Operator Diff Clarity** | Eliminates spurious `Q-RUN-NNNN` state mutations and `ingglish-hyperdope-gematria` commits on code/doc-only releases. |
| **`E4`** | `src/hyperstitionstud_io/mcp/tools.py` | Add `mtime_ns`-keyed in-memory read-only JSON registry caching (`_load_json_cached(path)`) across `glossary-registry.json`, `encyclopedia-graph.json`, `quant-timeseries.json`, `real-macro-indicators.json`, and `daily-brief-latest.json`. | **API / MCP Latency** & **Test Suite CPU Time** | • Cuts `run_introspective_erofs_suite()` from `780 ms` to **`< 90 ms`**.<br/>• Speeds up live `/api/v1/*` and `/mcp` queries by **`5x–15x`**. |
| **`E5`** | `src/hyperstitionstud_io/version_sync.py` (`--prepare-release`) | Add `--prepare-release` to `hs-sync-version` to run `hs-archive-rotate`, `--auto-bump`, and selective regeneration of derived manifests in a single zero-token Python invocation. | **Manual Operator Time** & **LLM Turn Count** | Collapses **10 separate pre-push CLI commands into 1 command** (`0` LLM tokens). |
| **`E6`** | `encyclopedia-knowledge-graph/scripts/build_encyclopedia_knowledge_graph.py` | Keep `encyclopedia-graph.json` pretty-printed (`indent=2`) for Git readability, while serializing `graph-data.js` with compact `separators=(",", ":")` (matching `engineering-manifest-data.js` and `math-manifest-data.js`). | **Web / RAM `tmpfs` Footprint** | Reduces `graph-data.js` from **`892 KB` to `~625 KB` (`-267 KB` / `-30%`)** with `0` data loss. |
| **`E7`** | `hyperstitionstudio-roadmap-and-release/SKILL.md` | Keep `SKILL.md` `< 8,000` chars (`< 2,000` BPE tokens) by storing completed/active plan ledger tables in `references/roadmap-plan-ledger.md`. | **LLM Context Window** | Saves **`~4,200` BPE tokens** on every session turn where the skill is loaded. |
---
## 4. Test-Suite Appropriateness & Verification Gates (`tests/test_core_suite.py`)
1. **Appropriate for `tests/test_core_suite.py`:**
- Assert that `cmudict_fallback.json` contains `>= 4,961` entries including all 18 canonical ticker abbreviations (`"nvda"`, `"pltr"`, `"sol"`, `"tsm"`, `"anthr"`, etc.) so `build_quant_timeseries_bundle(write_files=False)` completes in `< 150 ms` with `0` subprocess spawns.
- Assert that calling `build_daily_portfolio_brief(allow_live_network=False, write_files=False)` twice on identical underlying market/macro/dossier inputs preserves the same `run_number` (`Q-RUN-NNNN`) and `input_observations_sha256` unless `force_advance=True` is passed.
- Assert that `graph-data.js` is compactly serialized (`< 700,000` bytes) while `encyclopedia-graph.json` retains all `388` nodes and `1,282` edges.
@@ -1,26 +0,0 @@
# Plan: Alternative Single-Row Header Layout — Folding Passive Telemetry Counters into `.subtitle` (`v2.0.19`)
- **Document ID:** `PLAN-HEADER-SUBTITLE-TELEMETRY-CONSOLIDATION-ALTERNATIVE` (`v2.0.19`)
- **Roadmap Status:** **LONG-TERM INACTIVE PLAN (Deferred Alternative)** — Preserved in the inactive backlog in case a future layout revision wishes to fold the three passive telemetry counter badges on `site/index.html` into `.subtitle` so the right-hand `.meta-badges` container holds exclusively interactive route buttons. Not active unless explicitly requested by the user.
- **Target File (When Activated):** `/workspace/hyperstitionstudio-core/site/index.html`
---
## 1. Motivation & Horizontal Budget Analysis
In `/workspace/hyperstitionstudio-core/site/index.html`, the `<header>` container has `max-width: 1260px` and `padding: 1.4rem 1.6rem` (`25.6px` per side), providing `1208.8px` of usable inner horizontal width:
- Currently (under implemented `Option 3` of `PLAN-STATIC-DONATE-SUBPAGE`), `.meta-badges` keeps the three passive `.badge` counters (`388 Graph Nodes`, `1,282 Typed Edges`, `24 Quant Tickers`) alongside the interactive route buttons (`Start Learning Track (/learn/)`, `Quant Time-Series (/quant/)`) and the terminal right-justified `( ♥ DONATE )` stadium pill (`.btn-donate-pill`), using `margin-left: auto; justify-content: flex-end;` so the cluster remains right-justified even when wrapping onto a second flex line.
- If a strictly non-wrapping single-row `<header>` at `1260px` desktop width is desired in the future without abbreviating button labels:
1. Move the three static counts (`388 Nodes • 1,282 Edges • 24 Tickers`) inline into the existing `.subtitle` paragraph under `<h1>` (`~710px` total left block width).
2. Reserve `.meta-badges` (`margin-left: auto; display: flex; align-items: center; gap: 0.55rem; flex-shrink: 0`) strictly for interactive navigation routes:
`[ Start Learning Track (/learn/) ] [ Quant Time-Series (/quant/) ] | ( ♥ DONATE )` (`~430px` total right block width).
3. Combined width: `710px + 16px gap + 430px = 1156px <= 1208.8px` (`~52px` of spare horizontal margin on a single unbroken row).
---
## 2. Implementation Specification (When Activated)
1. In `/workspace/hyperstitionstudio-core/site/index.html`, update `.subtitle` to include `388 Graph Nodes &bull; 1,282 Typed Edges &bull; 24 Quant Tickers` and remove the three `<span class="badge">...</span>` elements from `.meta-badges`.
2. Add `flex-wrap: nowrap` on desktop (`@media (min-width: 1180px)`) to `<header>` while retaining `flex-wrap: wrap` and `margin-left: auto; justify-content: flex-end` on `.meta-badges` below `1180px`.
3. Verify `version_sync --check` and `tests/test_core_suite.py` pass with zero regressions.
@@ -1,106 +0,0 @@
# PLAN: Piecewise Exploratory Persona Features & Below-Closeup Button Geometry for the Homepage 2×2 Showcase Grid (`Audit Points 1–5`, `Rule C` Piecewise Specification)
**Document ID:** `PLAN-HOMEPAGE-QUADRANT-EXPLORATORY-FEATURES-AND-BUTTON-GEOMETRY`
**Status:** `ACTIVE / READY FOR STEPWISE PIECEWISE REVIEW & IMPLEMENTATION`
**Target Ecosystem Version:** `v2.8.0`
**Target Repositories:** `hyperstitionstudio-core`, `haiperdohp-jemaytreeah`, `encyclopedia-knowledge-graph`
**Author:** m00t & Hermes Agent
**Date:** 2026-11-30
---
## 1. Ground-Truth Audit: What Already Exists in the Codebase vs. Where Data or Code Is Missing (`Rule C.1`)
Per `Rule C` of `hyperstitionstudio-roadmap-and-release` (**Piecewise Plan Authoring & Stepwise Review Protocol**), this plan opens with an empirical Ground-Truth Audit separating (a) capabilities and data that **already exist and are 100% verified in the workspace today**, from (b) net-new UI code or statistical sample-size limits (`"Insufficient data to merit confidence / No data available"`):
| Audit Point | Target Surface & Persona | What Already Exists in the Codebase Today (`100%` Verified) | What Is Net-New or Statistically Constrained (`"No data available"`) |
| :--- | :--- | :--- | :--- |
| **Audit Point 1**<br/>*Below-the-Closeup Button Bar Geometry (`site/index.html`)* | Homepage `2×2` Showcase Quadrants (`Q1–Q4`, `680px` inner width below `680×260` `.closeup-frame`) | • `.card.hs-plate-g3` (`padding: 1.15rem 1.25rem` / `18.4px 20px`, `gap: 0.75rem` / `12px`)<br/>• `.closeup-frame` (`680×260` aspect ratio)<br/>• `34px`/`30px` chamfered `.btn` styling in `hs-group3-basalt-chamfer.css` | • **Net-New CSS Container (`.actions.below-closeup-bar`):** Whether each quadrant renders `1`, `2`, or `3` buttons on a single non-wrapping `680px` row depends on how many strategies (`A / B / C`) are affirmed per quadrant (`grid-template-columns: repeat(N, minmax(0, 1fr))`).<br/>• **External Click-Through Data:** `"No data available"` (`0` external clicks recorded yet). |
| **Audit Point 2**<br/>*Quadrant 01: Cybermemetics & Personal Magical Practice (`/calc/`, `/graph/`, `/learn/`)* | `ICP-H1` (Cybernetic & Occult Enthusiasts) | • **100% Live Today (`Strategy 2A`):** `☉ Personal Grimoire Ledger` already exists in `/learn/index.html` (`#statePortabilityBar`, `#inputBookmarkCoord`, `.note-area`, `#m06RegisterSelect`, `WebCrypto` `CIDv1` export/import).<br/>• **90% Live Today (`Strategy 2B`):** `/graph/index.html` already supports `?select=aq:<N>` URL deep-linking, 1-hop ego isolation, and `#flexPills`.<br/>• **Data Ready (`Strategy 2C`):** `cmudict_fallback.json` (`4,943` keys) + Base-36 `AQ` already live in `/calc/` and `hyperstitionstud_io.phonetics`. | • **`Strategy 2A`:** `0` new backend code needed (`1` deep-link button).<br/>• **`Strategy 2B` (`Numogram Syzygy Compass`):** Needs a small JS helper in `/graph/index.html` to compute `dr9(x)` and its `9`-sum twin (`1::8, 2::7, 3::6, 4::5`).<br/>• **`Strategy 2C` (`Sigil & Mantra Forge`):** Requires net-new 2D canvas/SVG kamea wheel rendering code. |
| **Audit Point 3**<br/>*Quadrant 02: Finance & Esoteric Non-Correlation (`/quant/`)* | `ICP-H2` (Finance & Alternative-Data Researchers) | • **Data & UI Ready (`Strategy 3A`):** `quant-timeseries-data.js` already ships all `9` `S1–S6` / `M1–M7+` builds with their exact 6-stat `ETI` vectors (`ARM, VEL, COL, CAP, PRM, RES`), and `/quant/` already has `#guildFilterPills` and `#lensProjectionCard`.<br/>• **Data Ready (`Strategy 3B`):** `24` watchlist tickers (`19` trading days / `472` real bars) + `14` FRED series + `confluence_dose` ($D_{i,t} \in \{0..4\}$) already pre-computed in `quant-timeseries-data.js`. | • **Statistical Sample-Size Caveat (`N = 19` trading days per ticker):** While `19` trading days (`30` UTC days) is 100% verified for **descriptive 30-day event inspection** (`Strategy 3B`) and **cross-sectional `ETI` screening** (`Strategy 3A`), it is **statistically insufficient (`"No data available"` for long-horizon $p$-values)** to claim multi-year backtested alpha or stable 252-day trailing price correlation (`Strategy 3C`). |
| **Audit Point 4**<br/>*Quadrant 03: Novice-Friendly Information Science (`/learn/`, `/engineering/`, `/math/`)* | `ICP-H3` (Novice-to-Intermediate CS & Math Learners) | • **100% Live Today (`Strategy 4A`):** `λ Visual AST & Z-Trace Tree` (`#hsGuileReplStepBtn` `"Step AST Trace"`, `#hsPolyglotReplLang`, `#hsGuileReplPreset`) is already implemented in `site/assets/hs-guile-scheme-repl.js` across all 12 `/engineering/*` & `/math/*` pages.<br/>• **100% Live Today (`Strategy 4B`):** Interactive Base-36 & `Ingglish` variance-collapse sandboxes (`Module 1`, `Module 2`, `Module 3`) are already live in `/learn/index.html` (`learn-app.js`). | • **`Strategy 4A` & `4B`:** `0` new code required beyond URL hash/query auto-focus (`#hsGuileReplDrawer`, `#mod-M02`).<br/>• **`Strategy 4C` (`1-Hop Graph Walk Builder`):** Requires net-new interactive node/edge toy builder JS on `/math/graph-topology-and-eti-scoring/`. |
| **Audit Point 5**<br/>*Quadrant 04: Operators & Two-Script DevOps (`/engineering/`)* | `ICP-H4` (Systems Operators, Self-Hosters & MCP Builders) | • **100% Live Today (`Strategy 5A`):** `◈ DAG-JSON CIDv1 Verifier` is already implemented in `/learn/learn-app.js` (`computeDagJsonCidv1()`) and `/api/v1/ipld/cid?registry=all` (`hs_compute_ipld_dag_json_cid`).<br/>• **Data & API Ready (`Strategy 5B`):** `/api/v1/status`, `/mcp`, and `engineering-manifest-data.js` are already live on `/engineering/`. | • **`Strategy 5A`:** Can link directly to `/api/v1/ipld/cid?registry=all` or `/engineering/mcp-chatbot-rest-and-ipld/` with `0` new backend code.<br/>• **`Strategy 5B` (`Live P1–P6 Smoke & ETag Probe`):** Lightweight `fetch('/api/v1/status')` button on `Unit E5`.<br/>• **`Strategy 5C` (`EROFS & tmpfs Mount Simulator UI`):** Requires net-new interactive UI widget. |
---
## 2. Four Factual Binary Engineering Gates (`G1–G4`, Zero Synthetic Scores)
Every candidate strategy across Audit Points `1–5` is evaluated strictly against four binary engineering gates:
- **`Gate G1` (100% Extant Verified Data):** Uses only verified local registries/corpora with `0` synthetic data and `0` unverified statistical claims.
- **`Gate G2` (`0` LLM Tokens):** Runs 100% deterministically in browser JS or existing stdlib Python.
- **`Gate G3` (`ProtectSystem=strict` `EROFS` Safe):** Zero writes to read-only rootfs paths.
- **`Gate G4` (Reuse-First / Minimal Code Delta):** Reuses existing live DOM/JS capabilities where available before adding new code.
---
## 3. Piecewise Audit Points & Candidate Strategies (`Strategies 1A–1C` through `5A–5C`)
---
### Audit Point 1: Below-the-Closeup Button Bar Geometry, Proportionality & Adaptive Column Grid (`site/index.html`)
Inside `.showcase-grid` (`max-width: 1320px`, `gap: 1.15rem`), each quadrant `.card.hs-plate-g3` (`padding: 1.15rem 1.25rem` / `18.4px 20px`, `gap: 0.75rem` / `12px`) frames a `680×260` `.closeup-frame`. When exploratory buttons are placed beneath `.closeup-frame`, their vertical height (`30px` vs `260px` image = `11.5%` / `1:8.7` vertical ratio) and horizontal grid columns must adapt cleanly to the number of affirmed buttons per quadrant:
- **Strategy `1A` (Adaptive `1`-to-`3` Column Flush Grid `.actions.below-closeup-bar` — Recommended Candidate):**
- Uses `display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.5rem (8px); width: 100%; margin: 0.1rem 0 0 0; padding: 0;` with `.actions.below-closeup-bar .btn { height: 30px; padding: 0.35rem 0.62rem; font-size: 0.70rem; text-align: center; justify-content: center; }`.
- **Why It Is Commutative:** Whether a quadrant has **1**, **2**, or **3** affirmed exploratory feature buttons, `repeat(auto-fit, minmax(180px, 1fr))` automatically stretches them flush across the exact `680px` width of the `.closeup-frame` above (`1` button = `680px`; `2` buttons = `2 × 336px + 8px gap = 680px`; `3` buttons = `3 × 221.3px + 2 × 8px gap = 680px`) and stacks to `1fr` on mobile (`@media (max-width: 680px)`).
- **Strategy `1B` (Fixed `3`-Column Grid Only `repeat(3, minmax(0, 1fr))` — Candidate):**
- Requires every quadrant to always have exactly `3` buttons (`221.3px` each), leaving empty whitespace if fewer than `3` strategies are affirmed for a quadrant.
- **Strategy `1C` (Keep `0` Buttons Below Closeups on `site/index.html` — Option 2 Baseline Currently Live in `v2.7.0`):**
- Leaves `site/index.html` with `0` buttons below the `680×260` UI closeups and exposes exploratory features only inside their respective subpages (`/calc/`, `/graph/`, `/quant/`, `/learn/`, `/engineering/`, `/math/`).
---
### Audit Point 2: Quadrant 01 Exploratory Features — Cybermemetics, Isopsephy & Personal Magical Practice (`ICP-H1`)
- **Strategy `2A` (`☉ Personal Grimoire Ledger` Deep-Link — 100% Live in Codebase Today, `4/4` Gates):**
- Links `[ ☉ Personal Grimoire Ledger ]` to `/learn/index.html#m06RegisterSelect` (and adds a 5-line hash handler in `/learn/learn-app.js` that scrolls to `#statePortabilityBar` / `#inputBookmarkCoord`), giving practitioners immediate 1-click access to the existing private `localStorage` coordinate bookmarking, `.note-area` synchronicity journal, and RFC 8785 `dag-json` `CIDv1` talisman exporter/importer (`0` new backend code).
- **Strategy `2B` (`☍ Numogram Syzygy Compass` Mode in `/graph/index.html` — 90% Live in Codebase Today, `4/4` Gates):**
- Links `[ ☍ Numogram Syzygy Compass ]` to `/graph/index.html?filter=syzygy` and adds `<option value="syzygy">CCRU 9-Sum Numogram Syzygies (1::8, 2::7, 3::6, 4::5)</option>` to the existing `#flagFilter` dropdown in `/workspace/encyclopedia-knowledge-graph/index.html` (`~15` lines of JS), highlighting nodes whose `AQ` mod-9 digital roots form twin syzygy pairs.
- **Strategy `2C` (`☿ Sigil & Mantra Forge` Canvas Modal in `/calc/index.html` — Net-New UI Widget, `3/4` Gates):**
- Builds a net-new SVG/Canvas kamea wheel sigil drawer inside `/workspace/haiperdohp-jemaytreeah/index.html` (`?mode=sigil-forge`). *(Higher code complexity; touches the upstream fork `haiperdohp-jemaytreeah`).*
---
### Audit Point 3: Quadrant 02 Exploratory Features — Finance & Esoteric Non-Correlation (`ICP-H2`)
- **Strategy `3A` (`♄ Uncaptured Gem Screener` Filter Pill in `/quant/index.html` — Extant `ETI` Data, `4/4` Gates):**
- Links `[ ♄ Uncaptured Gem Screener ]` to `/quant/index.html?screen=uncaptured-gems` and adds a 1-click filter preset in `/workspace/hyperstitionstudio-core/site/quant/quant-app.js` (`~20` lines of JS) that filters the `24` instruments and `9` assemblage builds to those matching the Fund Manager Proposal's `"Uncaptured Gem"` criterion (`COL >= 75` or `ARM >= 75`, `VEL >= 80`, and low institutional crowding `CAP <= 65`).
- **Strategy `3B` (`∆ 30-Day Dose D≥3 Event Inspector` Filter in `/quant/index.html` — Extant `N=19` Trading-Day Data, `4/4` Gates):**
- Links `[ ∆ 30-Day Dose D≥3 Inspector ]` to `/quant/index.html?screen=dose-d3` and highlights all `(Ticker, Date)` cells in `PANEL 2` (`#heatmapTable`) and `PANEL 1` (`#tsCanvas`) where `confluence_dose >= 3` across the `30` UTC days (`19` trading days), explicitly labeled as a **30-Day Descriptive Event Inspector ($N = 19$ trading days)** so it never overstates statistical sample size.
- **Strategy `3C` (`☍ Zero-Beta Pair Finder` — Statistically Constrained at `N = 19` Trading Days, `2/4` Gates):**
- Computing sample Pearson correlation $\rho_{\text{price}}$ over only $N = 19$ trading days has a wide standard error ($SE \approx 1/\sqrt{19 - 3} = 0.25$), which is **insufficient data to merit confidence** for claiming true "Zero-Beta" price independence until the historical bar cache accumulates $\ge 60–252$ trading days.
---
### Audit Point 4: Quadrant 03 Exploratory Features — Novice-Friendly Information Science & Polyglot CS (`ICP-H3`)
- **Strategy `4A` (`λ Visual AST & Z-Trace Tree` Auto-Open Deep-Link — 100% Live in Codebase Today, `4/4` Gates):**
- Links `[ λ Visual AST & Z-Trace Tree ]` to `/math/base36-algebra-and-primes/index.html?repl=trace` and adds a 6-line URL query check in `site/assets/hs-guile-scheme-repl.js` so `?repl=trace` automatically expands `#hsGuileReplDrawer`, selects `(prime-factors 666)`, and triggers `Step AST Trace` (`#hsGuileReplStepBtn`) on page load (`0` new backend code).
- **Strategy `4B` (`◈ Phonemic Compression Sandbox` Deep-Link — 100% Live in `/learn/index.html` Modules 1–3, `4/4` Gates):**
- Links `[ ◈ Phonemic Compression Sandbox ]` directly to `/learn/index.html#mod-M02` (where the live interactive `Gen 0 -> Gen 1 Ingglish` phonetic translator and `Module 3` Cluster `292` variance-collapse calculator already run in `learn-app.js`), avoiding duplicating `/learn/`'s sandbox on `/engineering/`.
- **Strategy `4C` (`☉ 1-Hop Graph Walk Builder` Toy Widget on `/math/graph-topology-and-eti-scoring/` — Net-New UI Code, `3/4` Gates):**
- Builds a net-new 5-node toy graph editor in `publishing/math_docs.py`. *(Redundant with `/graph/index.html`'s existing 1-hop ego-network isolator).*
---
### Audit Point 5: Quadrant 04 Exploratory Features — Operators & Two-Script DevOps (`ICP-H4`)
- **Strategy `5A` (`◈ DAG-JSON CIDv1 & Isolation Verifier` Deep-Link — 100% Live in Codebase Today, `4/4` Gates):**
- Links `[ ◈ DAG-JSON CIDv1 Verifier ]` to `/engineering/mcp-chatbot-rest-and-ipld/index.html#cid-verifier` (or `/api/v1/ipld/cid?registry=all`), where `Unit E4` and the Polyglot REPL already evaluate and verify RFC 8785 JCS + `SHA-256` `CIDv1` digests (`baguqeera...`) and `ReadOnlyIsolationGuard` receipts.
- **Strategy `5B` (`⚛ Live API & ETag 304 Probe` on `/engineering/cicd-vps-tmpfs-and-regression/` — Lightweight Live Probe, `4/4` Gates):**
- Links `[ ⚛ Live API & ETag 304 Probe ]` to `/engineering/cicd-vps-tmpfs-and-regression/index.html#live-smoke-probe` and adds a compact interactive probe panel in `Unit E5` (`publishing/engineering_docs.py`, `~25` lines) that fetches `/api/v1/status` twice (second time with `If-None-Match: <ETag>`) to demonstrate live `HTTP 200 OK` $\to$ `HTTP 304 Not Modified` conditional caching, latency, and `ReadOnlyIsolationGuard` status in the visitor's browser.
- **Strategy `5C` (`⚚ EROFS & tmpfs Mount Simulator UI` — Net-New UI Widget, `3/4` Gates):**
- Builds a separate interactive mount-table visualizer in `Unit E4/E5`. *(Redundant with `Unit E2` and `Unit E5`'s existing architecture prose and `periodic-harvest-cicd-to-vps-flow-diagram.png`).*
---
## 4. Summary Matrix of Audit Points `1–5` for Stepwise Review
| Audit Point | Strategy `A` (Reuse-First / High-Confidence) | Strategy `B` (Lightweight High-Signal Addition) | Strategy `C` (High Complexity or Insufficient Data) |
| :--- | :--- | :--- | :--- |
| **Point 1 (Button Geometry)** | **`1A`:** Adaptive `1..3` Column Flush Grid (`repeat(auto-fit, minmax(180px, 1fr))`) | **`1B`:** Fixed `3`-Column Grid Only | **`1C`:** `0` Buttons on Homepage (Option 2 Baseline) |
| **Point 2 (Quadrant 01: Cybermemetics)** | **`2A`:** `☉ Personal Grimoire Ledger` (`100%` Live in `/learn/`) | **`2B`:** `☍ Numogram Syzygy Compass` (`~15` lines in `/graph/` `#flagFilter`) | **`2C`:** `☿ Sigil & Mantra Forge` (Net-new canvas in `/calc/`) |
| **Point 3 (Quadrant 02: Finance/Quant)** | **`3A`:** `♄ Uncaptured Gem Screener` (`~20` lines in `/quant/` over extant `ETI`) | **`3B`:** `∆ 30-Day Dose D≥3 Inspector` (`~20` lines in `/quant/` over $N=19$ days) | **`3C`:** `☍ Zero-Beta Pair Finder` (*Insufficient data at $N=19$ days*) |
| **Point 4 (Quadrant 03: Novice Info Sci)** | **`4A`:** `λ Visual AST & Z-Trace Tree` (`100%` Live in `hs-guile-scheme-repl.js`) | **`4B`:** `◈ Phonemic Compression Sandbox` (`100%` Live in `/learn/#mod-M02`) | **`4C`:** `☉ 1-Hop Graph Walk Builder` (Net-new toy widget) |
| **Point 5 (Quadrant 04: Operators/SRE)** | **`5A`:** `◈ DAG-JSON CIDv1 Verifier` (`100%` Live in `Unit E4` & `/learn/`) | **`5B`:** `⚛ Live API & ETag 304 Probe` (`~25` lines in `Unit E5`) | **`5C`:** `⚚ EROFS & tmpfs Simulator UI` (Redundant widget) |
@@ -1,28 +0,0 @@
# PLAN: Deferred / Unaffirmed Candidate Market-Research Strategies (`Strategies 1C, 3C, 4A, 5C`) Extracted from `PLAN-PIECEWISE-MARKET-RESEARCH-ICP-MVP-AND-COMPETITIVE-STRATEGY`
**Document ID:** `PLAN-PIECEWISE-MARKET-RESEARCH-DEFERRED-CANDIDATE-STRATEGIES`
**Status:** `DEFERRED (Long-Term Inactive Piecewise Plan — Preserved for Future Reference)`
**Parent Active Plan:** `PLAN-PIECEWISE-MARKET-RESEARCH-ICP-MVP-AND-COMPETITIVE-STRATEGY`
**Target Ecosystem Version:** `v2.8.0+`
**Target Repositories:** `hyperstitionstudio-core`, `encyclopedia-knowledge-graph`
**Author:** m00t & Hermes Agent
**Date:** 2026-11-30
---
## 1. Executive Summary & Extraction Rationale
During the stepwise Ground-Truth Audit review (`Audit Points 1–5`) of `PLAN-PIECEWISE-MARKET-RESEARCH-ICP-MVP-AND-COMPETITIVE-STRATEGY`, nine strategies were affirmed for active implementation/retention (`Strategies 1A, 1B, 2A, 2B, 2C, 3A, 3B, 4B, 4C, 5A, 5B`), while **four candidate strategies (`Strategies 1C, 3C, 4A, 5C`)** were left unaffirmed.
Per `Rule C.4` of `hyperstitionstudio-roadmap-and-release` (**Active vs. Inactive Partitioning of Piecewise Plans**), this companion long-term inactive plan preserves those four unaffirmed candidate strategies outside the active build queue so `PLAN-PIECEWISE-MARKET-RESEARCH-ICP-MVP-AND-COMPETITIVE-STRATEGY` contains **exclusively affirmed, ready-to-execute deliverables**.
---
## 2. Preserved Unaffirmed Candidate Strategies (`Strategies 1C, 3C, 4A, 5C`)
| Audit Point | Deferred Strategy ID & Name | Mechanism & Target Modules | Why Deferred / Condition for Future Re-Activation |
| :--- | :--- | :--- | :--- |
| **Audit Point 1**<br/>*(Internal Technical & Corpus Inventory)* | **`Strategy 1C` — Schema-Driven Polyglot SDK Distribution (`hs-sdk-build` & `/sdk/`)** | Introspects `MCP_TOOLS_SCHEMA` (`20` tools), `STATIC_RESOURCES` (`14` URN resources), `RESOURCE_TEMPLATES` (`6`), and `/schemas/v1/*.schema.json` via `src/hyperstitionstud_io/sdk/generator.py` (`0` LLM tokens) to emit zero-dependency client libraries (`HyperstitionClient` + `LocalAlgebra`) for Python, TypeScript/ESM, Rust, and GNU Guile Scheme *(tracked in detail in `PLAN-HYPERSTITIONSTUDIO-POLYGLOT-SDK-AND-CLIENT-LIBRARIES.{md,pdf}`)*. | **Condition to Activate:** Wait until `Strategy 2A` (`get_api_telemetry_summary()`) and `Strategy 2C` (`--telemetry-history`) record `external_production_requests >= 500` on `/api/v1/*` and `/mcp` so external API demand is empirically proven before maintaining 4 generated client SDKs. |
| **Audit Point 3**<br/>*(Static HTML, PDF & PNG Route Traffic)* | **`Strategy 3C` — Pure Zero-Telemetry Stance for Static Pages** | Leaves all static HTML, PDF, and PNG routes (`69` routes) completely uncounted on the server, relying solely on `/api/v1/*` and `/mcp` tool calls (`Strategies 2A–2C`). | **Superseded by Affirmed `Strategies 3A & 3B`:** Preserved only as a fallback option if the operator ever wishes to disable `Strategy 3A` (`--ingest-caddy-route-counts`) and `Strategy 3B` (`GET /api/v1/status?surface=<slug>`). |
| **Audit Point 4**<br/>*(Patronage Conversion on `/donate/`)* | **`Strategy 4A` — Watch-Only Public BTC Mempool/Block-Explorer Balance Check (`bc1q...`) + Manual Operator XMR View-Key Ledger (`site/donate/reactor-fuel-status.json`)** | Queries a keyless public Bitcoin block explorer for confirmed UTXO balances on `bc1qcgkpl0j2ayxd68haeutfvarjgla2lmz30yd23e` and merges an optional operator-maintained Monero (`XMR`) view-key balance from `/etc/hyperstitionstud.io/exegesis-budget.env` into `site/donate/reactor-fuel-status.json` (`null` / `"No data available"` when offline) *(tracked in detail in `PLAN-MIGRATE-FINAL-EXEGESIS-CRONJOB-WITH-DUAL-MODE-AND-CRYPTO-FUNDING.{md,pdf}`)*. | **Condition to Activate:** Deferred alongside `PLAN-MIGRATE-FINAL-EXEGESIS-CRONJOB-WITH-DUAL-MODE-AND-CRYPTO-FUNDING`; affirmed `Strategy 4B` (`donate_from` & `donate_copy=BTC\|XMR` in `api_parameter_rollups`) and `Strategy 4C` (`stakeholder-proposal-authoring` + `Strategy 3A` PDF route counters) cover `/donate/` attribution with `0` external network calls. |
| **Audit Point 5**<br/>*(External User Feedback & PMF Qualification)* | **`Strategy 5C` — Opt-In 1-Question Static Feedback Link (`?template=feedback.md` / `mailto`) in Global Footer** | Appends a direct feedback link (`https://git.libre.audio/seasharp/hyperstitionstudio-core/issues/new?template=feedback.md`) to the global `<footer>` across `/`, `/learn/`, `/quant/`, `/donate/`, `/engineering/*`, and `/math/*`. | **Superseded by Affirmed `Strategies 5A & 5B`:** Omitted to keep the global footer clean (`⚚ · ☿ · ☍ · ☉ · ♄ • Made with ♥ by Lemurs` + `☿ RAIN: SUBTLE` toggle) while `Strategy 5A` (Gitea issues/stars/PRs) and `Strategy 5B` (`export_action` revealed-preference counters) capture user signal with zero footer clutter. |
+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"
]
}
+35 -1
View File
@@ -7,7 +7,10 @@
> - **Production VPS & Git Operator Deployment Guide:** `../VPS-AND-GIT-OPERATOR-DEPLOYMENT-GUIDE.pdf` (and `.md`) > - **Production VPS & Git Operator Deployment Guide:** `../VPS-AND-GIT-OPERATOR-DEPLOYMENT-GUIDE.pdf` (and `.md`)
> - **Cross-Repository Dependency & Audit Flow Diagram:** `../cross-repo-dependency-and-audit-flow-diagram.html` (and `.png` / `.pdf`) > - **Cross-Repository Dependency & Audit Flow Diagram:** `../cross-repo-dependency-and-audit-flow-diagram.html` (and `.png` / `.pdf`)
> - **Concentric ETI Radar (`D Periphery`) Specification:** `../specification-concentric-eti-tier-ring-radar-d-periphery.pdf` (and `.md`) > - **Concentric ETI Radar (`D Periphery`) Specification:** `../specification-concentric-eti-tier-ring-radar-d-periphery.pdf` (and `.md`)
> - **Active / Deferred Roadmap Plans in `../`:** `../PLAN-LEXICAL-AND-ETYMOLOGICAL-SIMPLIFICATION.{md,pdf}`, `../PLAN-HEADER-SUBTITLE-TELEMETRY-CONSOLIDATION-ALTERNATIVE.{md,pdf}`, `../PLAN-SQLITE-META-REST-ENDPOINTS-ETAG-AND-VPS-SYNC.{md,pdf}`, `../PLAN-LLM-TOKEN-ECONOMIZER-AND-VARIANCE-ROUTING.{md,pdf}`, `../PLAN-ECOSYSTEM-WIDE-ECONOMIZATION-EVALUATION-AND-VECTORS.{md,pdf}`, `../PLAN-LOCAL-SERVER-SIDE-WEB-CHATBOT-GUI.{md,pdf}`, and `../PLAN-MEMETIC-GALLERY-SUBPAGE.{md,pdf}` are preserved in `../` as long-term inactive/deferred plans. > - **Filesystem-Organized Roadmap Plans in `../plans/`:**
> - **Active Non-Piecewise Plans:** `../plans/active/PLAN-*.{md,pdf}`
> - **Piecewise Plans (`Fully Affirmed`, `Partially Affirmed`, & `Pending Audit`):** `../plans/piecewise/PLAN-*.{md,pdf}`
> - **Inactive / Deferred Plans & Retained Candidate Strategies:** `../plans/inactive/PLAN-*.{md,pdf}`
--- ---
@@ -67,3 +70,34 @@
| `PLAN-RESTORE-V2-4-0-DONATE-BUTTON-APPEARANCE.{md,pdf}` | Specification for restoring the exact `v2.4.0` `.btn-donate-pill`, `.btn-donate-pill:hover`, `.donate-pill-emblem`, and `.nav-donate-sep` CSS rules (`34px` stadium pill, `padding: 0.28rem 0.9rem 0.28rem 0.35rem`, `gap: 0.45rem`, `font-size: 0.74rem`, 3-stop `#ffd86b -> #f59e0b -> #d97706` gradient, and `20×20` `#0f172a` circular rose-heart emblem) as a Single Source of Truth in `site/assets/hs-group3-basalt-chamfer.css`, removing duplicate inline `<style>` overrides from HTML surfaces, and enforcing non-brittle cross-page structural parity in `tests/test_core_suite.py`; now implemented and verified. | | `PLAN-RESTORE-V2-4-0-DONATE-BUTTON-APPEARANCE.{md,pdf}` | Specification for restoring the exact `v2.4.0` `.btn-donate-pill`, `.btn-donate-pill:hover`, `.donate-pill-emblem`, and `.nav-donate-sep` CSS rules (`34px` stadium pill, `padding: 0.28rem 0.9rem 0.28rem 0.35rem`, `gap: 0.45rem`, `font-size: 0.74rem`, 3-stop `#ffd86b -> #f59e0b -> #d97706` gradient, and `20×20` `#0f172a` circular rose-heart emblem) as a Single Source of Truth in `site/assets/hs-group3-basalt-chamfer.css`, removing duplicate inline `<style>` overrides from HTML surfaces, and enforcing non-brittle cross-page structural parity in `tests/test_core_suite.py`; now implemented and verified. |
| `PLAN-ALIGN-HOMEPAGE-UI-CLOSEUPS-WITH-ACTUAL-LIVE-PAGES.{md,pdf}` | Specification for replacing all synthesized widgets and `"UI CLOSEUP //"` banners in `site/assets/closeups/quadrant-{1..4}-*.png` (`680×260`) with 100% authentic, omission-only proportional renders of the actual live pages (`/calc/`, `/graph/`, `/quant/`, `/learn/`, `/engineering/`, `/math/`); now implemented and verified. | | `PLAN-ALIGN-HOMEPAGE-UI-CLOSEUPS-WITH-ACTUAL-LIVE-PAGES.{md,pdf}` | Specification for replacing all synthesized widgets and `"UI CLOSEUP //"` banners in `site/assets/closeups/quadrant-{1..4}-*.png` (`680×260`) with 100% authentic, omission-only proportional renders of the actual live pages (`/calc/`, `/graph/`, `/quant/`, `/learn/`, `/engineering/`, `/math/`); now implemented and verified. |
| `PLAN-PIECEWISE-MARKET-RESEARCH-ICP-MVP-AND-COMPETITIVE-STRATEGY.{md,pdf}` | Specification for the Zero-Synthetic-Data Piecewise Market Research Strategy (`Affirmed Strategies 1A, 1B, 2A, 2B, 2C, 3A, 3B, 4B, 4C, 5A, 5B`): `--corpus-delta` in `hs-highlights` & `hs-sync-version`, `external_requests` vs `internal_requests` + `N>=500` `"No data available"` gate, `api_parameter_rollups` closed-set allowlist table, `get_longitudinal_telemetry_summary()` (`--telemetry-history` across `.1.gz..12.gz`), zero-IP Caddy `format filter` route counting (`--ingest-caddy-route-counts`), and conditional `ETag` `surface` / `donate_from` / `donate_copy` / `export_action` handshakes; now implemented and verified in `tests/test_core_suite.py`. | | `PLAN-PIECEWISE-MARKET-RESEARCH-ICP-MVP-AND-COMPETITIVE-STRATEGY.{md,pdf}` | Specification for the Zero-Synthetic-Data Piecewise Market Research Strategy (`Affirmed Strategies 1A, 1B, 2A, 2B, 2C, 3A, 3B, 4B, 4C, 5A, 5B`): `--corpus-delta` in `hs-highlights` & `hs-sync-version`, `external_requests` vs `internal_requests` + `N>=500` `"No data available"` gate, `api_parameter_rollups` closed-set allowlist table, `get_longitudinal_telemetry_summary()` (`--telemetry-history` across `.1.gz..12.gz`), zero-IP Caddy `format filter` route counting (`--ingest-caddy-route-counts`), and conditional `ETag` `surface` / `donate_from` / `donate_copy` / `export_action` handshakes; now implemented and verified in `tests/test_core_suite.py`. |
| `PLAN-PIECEWISE-DECLUTTER-AND-ACCENTUATE-HOMEPAGE-UI-CLOSEUPS.{md,pdf}` | Specification for the `11` full-width `680×260` UI closeups across the 4 homepage quadrants (`Affirmed Strategies 1A, 2B, 3A, 4A, 5A`: `2` tabs in Quadrant 01 (`☿ /calc/` + `☍ /graph/`), `3` tabs in Quadrant 02 (`∆ Trajectory & Dose` + `☍ Bayesian & FRED` + `♄ 6-Lens & Card`), `3` tabs in Quadrant 03 (`◈ /learn/` + `λ Guile & Z-REPL` + `≡ TS & Rust`), and `3` tabs in Quadrant 04 (`⚚ DevOps & CLIs` + `⚛ MCP & ETag 304` + `◈ /ci/ 4-Gate Pipeline`)); now implemented in `site/index.html`, `site/assets/closeups/*.png`, and verified in `tests/test_core_suite.py`. |
| `PLAN-HOMEPAGE-QUADRANT-EXPLORATORY-FEATURES-AND-BUTTON-GEOMETRY.{md,pdf}` | Specification for the single interactive chamfered `.closeup-tab-strip` above `.closeup-frame` with balanced `16px / 20px` 4-edge symmetry and `0` below-closeup buttons (`Strategy 1C-3`), plus target-subpage exploratory features (`2B` `☍ Numogram Syzygy Compass` `?filter=syzygy` in `/graph/`, `3B` `∆ 30-Day Dose D>=3 Inspector` `?screen=dose-d3` in `/quant/`, `4A` `λ Visual AST & Z-Trace Tree` `?repl=trace` in `hs-guile-scheme-repl.js`, and `5B` `⚛ Live API & ETag 304 Probe` `#live-smoke-probe` in `Unit E4`); now implemented and verified in `tests/test_core_suite.py`. |
| `PLAN-PIECEWISE-UI-EVOLUTION-FOR-GROWING-DATASETS.{md,pdf}` | Specification for progressive scale-ready UI navigation across growing datasets (`Affirmed Strategies 1A, 2A, 3A, 4A, 5A, 6A`): `[30D\|90D\|180D\|ALL]` temporal window selector + sticky-column `#heatmapTable`, `#tickerQuickFilter` typeahead + auto-hiding `25`-row `#heatmapTable` pagination + `#wireTapeFilterInput`, `/graph/` zoom-adaptive `LOD` label/edge culling + `#minDegreeFilter` + top-`40` neighbor pagination, `/learn/` bookmark search & `20`-row pagination, `/engineering/` & `/math/` `> 6` subpage `More Units ▾` overflow guard + `#engCliFilterInput`, and homepage fixed-cardinality cap; now implemented and verified in `tests/test_core_suite.py`. |
| `PLAN-SINGLE-LAYER-COMPRESSION-ENFORCEMENT-AND-MULTI-COMPRESSED-FILE-REMEDIATION.{md,pdf}` | Specification for the Single-Layer (`1x`) Compression Invariant across all 6 repositories and `hyperstitionstud.io` (`audit_and_fix_multi_compressed_files()` in `archive_rotator.py`, unwrapping `2x`-compressed `ingglish-isopsephic-exegesis-0.1.0-bundle.tar.{gz,xz}` wrappers around `ingglish-vendor.tgz`, `.md`-only `1x` plan tarballs, `nocompress` wrapper around `sqlite_meta.py --compress-archive`, and `@compressible` matcher in `deploy/Caddyfile`); now implemented and verified in `tests/test_core_suite.py`. |
| `PLAN-SERVER-SIDE-COMPRESSED-PLAN-SIZE-CAP-AND-GIT-CITATION-ROTATION.{md,pdf}` | Specification for `.md`-only compressed plan tarballs (`-94.9%` size drop: `5.11 MB -> ~258 KB`), configurable `--max-bundle-kb 256` (`262,144` bytes) size cap, pre-eviction Git history verification, FIFO rotation into `long_term_git_storage_citations` (`https://git.libre.audio/seasharp/...` hyperlinks in `archive-manifest.json` with transparent `git show` fallback in `--extract` and `hs_inspect_manuals_and_docs`), and excluding cold `*.tar.gz` bundles from VPS `tmpfs` RAM (`${LIVE_REPOS}`); now implemented and verified in `tests/test_core_suite.py`. |
| `PLAN-INACTIVE-PLANS-COLD-ARCHIVE-AND-COMPRESSION.{md,pdf}` | Specification for selective cold-archival of inactive plans marked for archival (`hs-archive-rotate --archive-inactive` & `--extract-inactive`) into `docs/plans/inactive/inactive-plans-archive.tar.gz` + `inactive-archive-manifest.json` (`mtime=0`, `gzip -9`, SHA-256, `manifest_dag_json_cid`, Gematria-Pipeline Immunity, and in-memory MCP `hs_inspect_manuals_and_docs` indexing); now implemented and verified in `tests/test_core_suite.py`. |
| `PLAN-PIECEWISE-CODEBASE-MODULARITY-DEDUPLICATION-AND-RESOURCE-ECONOMIZATION.{md,pdf}` | Specification for the 7-point Modularity, Deduplication, Architectural Security & Resource Economization refactoring (`Affirmed Strategies 1A, 2B, 3A, 4A, 5A, 6A, 7A`): unified AQ ciphers in `ciphers` + `@lru_cache` `load_pillow_font()` and shared Group 3 chamfered plate primitives in `publishing/fonts.py`, shared `render_polyglot_cartridge_html()` and `_render_prereq_box_html()`, `(path, st_mtime_ns, st_size)`-keyed `load_json_cached()` and stat-memoized `sha256_file()`, `src/hyperstitionstud_io/security.py` (`safe_urlopen()` & `PEP 706` `safe_tar_members()`), per-inode telemetry schema-init memoization in `db/sqlite_meta.py`, incremental parallel `xargs -P` `.gz`/`.br` pre-compression in `deploy/sync-vps-repos.sh`, and shared `_pack_verify_and_write_archive_manifest()` + per-repo Git citation memoization in `publishing/archive_rotator.py`; now implemented and verified in `tests/test_core_suite.py`. |
| `PLAN-PIECEWISE-QUANT-VOICE-NARRATION-AND-SCENE-UI-INDICATORS.{md,pdf}` | Specification for `/quant/` guided tour spoken voice narration (`Strategy 1B` synchronous unblocked `window.speechSynthesis.speak()` + `Strategy 3A` natural-English `speechText` per scene naming the target UI element first), explicit per-scene UI element indicators (`Strategy 2A` highlighting all `23` interactive DOM controls including `#lensSelect` + `#lensProjectionCard` in `Ep 04` with `.tut-ui-highlight` and floating `#tutUiElementIndicator` pointer badge), and `.html` + `.js` UI element introspection in `hs-closeups-sync` (`Strategy 4A`); now implemented and verified in `tests/test_core_suite.py`. |
| `PLAN-PIECEWISE-QUANT-ZERO-GIT-VOICE-SYNTHESIS-OPTIONS.{md,pdf}` | Specification for Zero-Git-Audio spoken voice narration on `/quant/` (`Affirmed Strategies 1A, 2A, 3A`): `.gitignore`d deploy-time `.wav` generation (`src/hyperstitionstud_io/publishing/quant_voice.py`, `hs-quant-voice-build` wired into `deploy/sync-vps-repos.sh` via `espeak-ng` or pure-Python Klatt formant WAV synthesis so `0` audio files enter Git), guarded `window.speechSynthesis.cancel()` (`speaking \|\| pending`), GC-pinned `rootObj.__hsActiveUtterance`, `250ms` `onstart` hardware watchdog auto-switching to `/quant/audio/ep0X-sY.wav` (and in-browser WebAudio formant fallback on `file://`), and active voice engine indicator in `#tutSpeechBtn` / `#tutStepBadge`; now implemented and verified in `tests/test_core_suite.py`. |
| `PLAN-FEDORA41-EXEGESIS-CRONJOB-PACKAGE-AND-GIT-PUSH-WORKER.{md,pdf}` | Specification for the turnkey Fedora 41 RPM (`ingglish-isopsephic-exegesis-2.13.0-1.fc41.noarch.rpm`, `packaging/build-fedora41-rpm.sh`) and automated `git.libre.audio` push worker (`/usr/bin/ingglish-exegesis-push` / `run_exegesis_and_push_fedora41.sh` + `synthesize_news_dossier_openrouter.py` pre-solved `333/666/777` equation engine & OpenRouter `OPENROUTER_API_KEY` client + `/etc/sysconfig/ingglish-exegesis` + updated `OPERATORS-MANUAL-LLM-TOKEN-DEPENDENT-DATA-PIPELINES.{md,pdf}`); now implemented and verified in `tests/test_core_suite.py`. |
| `PLAN-PRE-COMMIT-PREPARATION-OF-PUSH-AND-VPS-SYNC-SCRIPTS.{md,pdf}` | Specification for automatic pre-commit preparation and 8-gate drift-blocking verification (`Gates D1–D8` in `src/hyperstitionstud_io/ci/deploy_scripts_sync.py`, `hs-deploy-scripts-sync` CLI) of `/workspace/push-all-to-git-libre-audio.sh` (and its tracked mirror `hyperstitionstudio-core/deploy/push-all-to-git-libre-audio.sh`) and `/workspace/hyperstitionstudio-core/deploy/sync-vps-repos.sh`, wired directly into `.git/hooks/pre-commit`, `version_sync.py`, and `tests/test_core_suite.py`; now implemented and verified. |
| `PLAN-CALC-PAGE-HOMEPAGE-UI-PARITY-AND-UPSTREAM-CI-PATCH-INTEGRATION.{md,pdf}` | Specification for updating `/calc/` (`haiperdohp-jemaytreeah`) to match the homepage Group 3 UI (`#hsCalcHeader` navigation bar + `♥ DONATE` stadium pill, `.hs-plate-g3` chamfered basalt panels, `/assets/hs-group3-basalt-chamfer.css`, and `hs-matrix-coderain.js`), replacing all `"Cypher Calculator"` / `"CypherCalculator"` branding with `"haiperdohpjematreeah"`, and extending `hyperdope-ci-build` (`integrate-upstream-and-ui.sh` + `patches/0001-feat-calc-ingglish-priority-toggle.patch` & `0002-feat-ui-group3-homepage-parity-and-haiperdohpjematreeah-branding.patch`) for clean upstream `malonehunter/hyperdope-gematria` integration; now implemented and verified. |
| `PLAN-PIECEWISE-QUANT-VOICE-QUALITY-AND-FAST-DEPLOY-SYNTHESIS.{md,pdf}` | Specification for high-naturalness Zero-Git-Audio voice synthesis on `/quant/` with `< 1.5s` cold / `0ms` warm deployment impact (`Affirmed Strategies 1A, 2A, 3A`): per-clip `text_sha256` caching, parallel 8-worker `flite -voice kal16` diphone synthesis (`1.22s` cold) + non-blocking background `flite -voice slt` statistical voice upgrade (`--upgrade-slt-background`), domain ticker/acronym pronunciation lexicon (`normalize_speech_prosody()`), pure-Python `5.4 kHz` broadcast warmth de-esser & `-1.5 dBFS` mastering (`master_wav_broadcast_warmth()`), and client WebAudio `BiquadFilterNode` vocal warmth EQ + `-50%` chime ducking; now implemented and verified. |
| `PLAN-HOMEPAGE-QUADRANT-CLOSEUPS-TEXT-BOUNDING-BOX-FIT-AND-AUDIT.{md,pdf}` | Specification for eliminating all `21` bounding-box breaches / border crossings, `8` horizontal sibling-text collisions, `14` hardcoded `[:N]` mid-word slice truncations, and `1` non-DejaVu emoji (`🔊`) across the 11 `680×260` homepage UI quadrant closeups in `src/hyperstitionstud_io/publishing/closeups_sync.py` (`site/assets/closeups/*.png` & `/workspace/untracked/homepage-layout-mockups/closeups/*.png`), with built-in `verify_closeup_geometry()` (`Invariants B1–B3`) enforced in `tests/test_core_suite.py`; now implemented and verified. |
| `PLAN-UNIFIED-CROSS-PAGE-NAVIGATION-BAR-LAYOUT-STYLE-AND-POSITION.{md,pdf}` | Specification for treating `site/index.html` (`/`) as the immutable reference standard (`0` changes to homepage navigation UI) and updating all non-homepage surfaces (`/calc/`, `/quant/`, `/graph/`, `/learn/`, `/engineering/*`, `/math/*`, `/donate/`, and `/gallery/`) + `site/assets/hs-group3-basalt-chamfer.css` to match the homepage's exact `<header>` layout, style, typography (`0.98rem` `h1` + `.dot` + `0.71rem` `.subtitle`), `.btn` geometry (`0.34rem 0.62rem`, `0.70rem`), semantic border colors, and canonical link sequence (`Portal Home (/) \| Calculator \| Quant \| Graph \| Learn \| Engineering \| Math \| [sep] \| ♥ DONATE`), moving unit tabs/toolbars on `/engineering/*`, `/math/*`, and `/graph/` into a dedicated secondary `.hs-subnav-bar` strip; now implemented and verified. |
| `PLAN-CROSS-PAGE-STYLE-FONT-BACKGROUND-AND-NAVIGATION-PARITY-WITH-REGRESSION-TESTS.{md,pdf}` | Specification for eliminating spurious `rgb(30, 41, 59)` (`#1e293b`) backgrounds on `/graph/` text containers (`.kv-box`, `.badge`, `.coord-pill`, `.neighbor-item`) and subpage `.top-nav.hs-global-nav .btn` / `.hs-nav-btn` buttons, enforcing `--font-mono` (`DejaVu Sans Mono`) across `body, button, input, select, textarea, code, pre` and `<canvas>` `ctx.font` (`0` `sans-serif` on subpages), aligning `header h1` color (`var(--text-main)`) across `/engineering/*` & `/math/*`, and enforcing automated Intra-Page & Cross-Page Style Regression Gates `S1–S3` (`verify_ui_style_and_navigation_consistency()`) in `public_regression.py` (`Gate P6`) and `tests/test_core_suite.py`; now implemented and verified. |
| `PLAN-PIECEWISE-MOBILE-DEVICE-DETECTION-AND-ADAPTIVE-MOBILE-UI.{md,pdf}` | Specification for adaptive mobile device detection and Group 3 mobile UI (`Affirmed Strategies 1A, 2A, 3A, 4A`): multi-signal client detector `site/assets/hs-mobile-ui.js` (`navigator.userAgentData.mobile` + UA regex + coarse-pointer/viewport media + `?mobile=1\|0` override + footer `[📱 Mobile UI \| 🖥 Desktop UI]` switcher) + Caddy `@mobile_ua` hint (`deploy/Caddyfile`), compact Mobile App Bar with `[ ☰ Menu ]` slide-down 2-col touch grid + horizontally swipeable single-row quick-pill rail under `html[data-device-ui="mobile"]` (`0` desktop UI changes), uncrushed `100vw` `/graph/` mobile canvas with `[ ⚙ Ontology & Filters ]` & auto-opening Bottom-Sheet `[ ⓘ Node Inspector ]` drawers + `touchstart`/`touchmove`/`touchend` 1-finger pan, 2-finger pinch-to-zoom & tap-to-select, and `/quant/` `#tsCanvas` touch crosshair scrubbing + bottom-sheet `#quantInfoPopover` + 2-row `/calc/` mobile input deck (`Gate S4`); now implemented and verified. |
---
## Long-Term Source-Control (`git.libre.audio`) Citation Rotation (`--max-bundle-kb 256`)
Per `PLAN-SERVER-SIDE-COMPRESSED-PLAN-SIZE-CAP-AND-GIT-CITATION-ROTATION`, `completed-plans-archive.tar.gz` stores `.md`-only members (`1x` compressed) capped at `262,144` bytes (`256 KB`). When the hot bundle exceeds `256 KB`, the oldest historical `.md` members (after verifying reachability and SHA-256 parity in `.git` history) are rotated into `long_term_git_storage_citations` inside `archive-manifest.json` with clickable `https://git.libre.audio/seasharp/encyclopedia-knowledge-graph/src/commit/<commit_sha>/...` hyperlinks and zero-network local recovery via `hs-archive-rotate --extract <member_name>`:
| Long-Term Git-Rotated Plan (`.md`) | SHA-256 Prefix | Source-Control Hyperlink Citation (`git.libre.audio`) |
| :--- | :--- | :--- |
| `plan-interactive-knowledge-graph-encyclopedia.md` | `e83b7fe0b3db` | [git.libre.audio @ 9e282db](https://git.libre.audio/seasharp/encyclopedia-knowledge-graph/src/commit/9e282db059ab91638c7f34aedd7eebdfe2d9ef54/docs/archive/plan-interactive-knowledge-graph-encyclopedia.md) |
| `DEPENDENCIES-AND-FIRST-PUSH-GUIDE.md` | `fc96e2f2b376` | [git.libre.audio @ 9e282db](https://git.libre.audio/seasharp/encyclopedia-knowledge-graph/src/commit/9e282db059ab91638c7f34aedd7eebdfe2d9ef54/docs/archive/DEPENDENCIES-AND-FIRST-PUSH-GUIDE.md) |
| `MODULARITY-AUDIT-THREE-REPOSITORIES.md` | `762604bb6436` | [git.libre.audio @ 9e282db](https://git.libre.audio/seasharp/encyclopedia-knowledge-graph/src/commit/9e282db059ab91638c7f34aedd7eebdfe2d9ef54/docs/archive/MODULARITY-AUDIT-THREE-REPOSITORIES.md) |
| `PLAN-GIT-OPERATOR-PUBLIC-HTTP-RELEASE-AND-ONBOARDING.md` | `65817d69f13c` | [git.libre.audio @ 9e282db](https://git.libre.audio/seasharp/encyclopedia-knowledge-graph/src/commit/9e282db059ab91638c7f34aedd7eebdfe2d9ef54/docs/archive/PLAN-GIT-OPERATOR-PUBLIC-HTTP-RELEASE-AND-ONBOARDING.md) |
| `PLAN-GIT-LIBRE-AUDIO-REPO-SYNC-FOR-VPS-INSTALL-DIRS.md` | `edcb569f8959` | [git.libre.audio @ 9e282db](https://git.libre.audio/seasharp/encyclopedia-knowledge-graph/src/commit/9e282db059ab91638c7f34aedd7eebdfe2d9ef54/docs/archive/PLAN-GIT-LIBRE-AUDIO-REPO-SYNC-FOR-VPS-INSTALL-DIRS.md) |
File diff suppressed because it is too large. Load diff
Binary file not shown.
@@ -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.8.0) &bull; encyclopedia-knowledge-graph (v2.8.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.
+7
View File
@@ -0,0 +1,7 @@
# Active Non-Piecewise Plans (`docs/plans/active/`)
This directory holds **Tier 1 Active Non-Piecewise Plans** (`PLAN-*.md` and their compiled Dark-Mode ReportLab PDF companions `PLAN-*.pdf`) for offline PDF review and direct execution.
- **Piecewise Plans (`Tier 2–4`):** Located in `../piecewise/`
- **Inactive / Deferred Plans:** Located in `../inactive/`
- **Completed Cold-Rotated Plans:** Located in `../../archive/completed-plans-archive.tar.gz`
@@ -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.
@@ -0,0 +1,114 @@
# PLAN: Piecewise Complete Mathematics & Information Science Explication Across `/math/` (`Unit M0` Hub & Subpages `M1–M5`, Strict Anti-Self-Reference Closure Boundary, `Audit Points 1–6`, `Rule C` Piecewise Specification)
**Document ID:** `PLAN-PIECEWISE-COMPLETE-MATHEMATICS-AND-INFO-SCIENCE-EXPLICATION`
**Status:** `INACTIVE / DEFERRED (MIGRATED TO docs/plans/inactive/ — 0/6 AUDIT POINTS AFFIRMED)`
**Target Ecosystem Version:** `v2.9.0`
**Target Repositories:** `hyperstitionstudio-core`, `encyclopedia-knowledge-graph`
**Author:** m00t & Hermes Agent
**Date:** 2026-11-30
---
## 1. Strict Anti-Self-Reference / Non-Circular Closure Invariant (`Zero Self-Explication of /math/*`)
To prevent self-referential fixed-point and `IPLD dag-json CIDv1` closure issues (where modifying `/math/` to describe `/math/` alters `math_docs.py` / `math-manifest.json` / `hs-math-docs` counts, hashes, or routes in a circular feedback loop):
1. **Strict Explication Boundary (What `/math/*` Must NEVER Explicate):**
- `/math/` (`Unit M0` Hub and Subpages `M1–M5`) is the **observer/explication lens**, never the **observed subject**.
- Therefore, `/math/` and its subpages (`M1–M5`) **must omit `/math/` (`site/math/*`), `publishing/math_docs.py`, `hs-math-docs`, `math-manifest.json`, and the `/math/` subpages themselves (`M0–M5`) from the subject matter being explicated** (and likewise omit `/engineering/`, `publishing/engineering_docs.py`, and `hs-eng-docs`).
- All self-referential subtitle phrases (`"Non-Sequentially Revertible via hs-math-docs --disable <slug>"`, `"Commutative Empirical Introspection • Piecewise & Non-Sequentially Revertible"`) and self-referential `math-manifest.json` / `M0–M5` references inside the expository tables and prose are removed.
2. **What `/math/*` Explicates Instead (100% of the Target Domain Mathematics & Information Science):**
- Explicates exclusively the **underlying mathematical, statistical, calculus, and information-science foundations** of `hyperstitionstud.io`'s operational corpora and engines:
- **Domain 1 (Abstract Algebra & Elementary Number Theory):** Base-36 monoid homomorphisms (`ciphers`), prime-counting index $\pi(n)$, $37 \times 3k$ repdigit attractors, mod-9 digital root ring congruence $dr_9(n)$, `9`-sum syzygy involution $\sigma(r)=9-r$, and `--revise-anchor` perturbation algebra $\Delta_Q$.
- **Domain 2 (Information Theory, Phonemic Compression & Full-Text Retrieval):** Surjective phonemic projection $\Phi: \Sigma_{\text{eng}}^* \to \Sigma_{\text{ing}}^*$ (`phonetics`), equivalence kernel $\ker(\text{AQ} \circ \Phi)$, data-processing entropy reduction $H(\text{AQ}(\Phi(W))) \le H(\text{AQ}(W))$, Genealogical Vectors `G1–G6`, and SQLite FTS5 **Okapi BM25** full-text ranking (`db/sqlite_meta.py`).
- **Domain 3 (Graph Theory, Convex Optimization & Polar Geometry):** 6-partite directed multigraph $G = (V, E, R)$ (`388` nodes, `1,282` edges), convex Ecological Trophic Index (`ETI`) inner product ($\sum_{k=1}^6 w_k = 1.00$), 4-key lexicographic tie-breaking total order, Mode 2 Concentric Polar Radar affine mapping $(r, \theta) \mapsto (x, y)$, and 1-hop induced ego subgraphs $G[N_1(v)]$.
- **Domain 4 (Nonparametric Order Statistics, Sabermetric Moments & Z-Combinator Calculus):** 4-species Confluence Dose $D_{i,t} \in \{0..4\}$, heavy-tailed order statistics ($P_{50}, P_{90}$), longitudinal moments (`SNAP%`, `WOPR`, `LOE`, `WAR_30d`), lead-lag Pearson $r(\tau)$ with Student-$t$ statistic, and **Thomas' Calculus enacted via the applicative-order `Z` combinator** (`guile_prelude.scm`: recursive limit halving, central difference derivative, $n$-th derivative, midpoint Riemann sum, and adaptive Simpson quadrature).
- **Domain 5 (Macroeconomic Identities, Discrete Bayesian Simplex & Content-Addressed Merkle Cryptography):** St. Louis Fed (`FRED`) monetary spread and velocity identities ($M2 - M1$, $V_{M2} = \text{GDP}/M2$), discrete 3-state Bayes' Theorem on the simplex $\Delta^2$, Birthday-Problem multiple-testing collision bounds (*"Grand Central Station"* vs. *"The Room Filter"*), **RFC 8785 JCS + IPLD `dag-json` (`0x0129`) `CIDv1` Merkle cryptography** (`ipld/__init__.py` & HTTP `ETag` equivalence), and the $N_{\text{ext}} \ge 500$ binomial confidence bound.
---
## 2. Ground-Truth Audit: Live Target Domain Math (`v2.8.1`) vs. Current `/math/` Explication Gaps (`Rule C.1`)
| Audit Point & `/math/` Surface | What Is Currently Rendered on `/math/` (`v2.8.1`) | Self-Reference Bugs, Variance Discrepancies, Stale Counts & Undocumented Domains Found in Audit (`Gaps to Fix`) |
| :--- | :--- | :--- |
| **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 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 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$. |
---
## 3. Four Factual Binary Engineering & Mathematical Gates (`G1–G4`, Zero Self-Reference & Zero Synthetic Data)
- **`Gate G1` (Strict Anti-Self-Reference Closure):** Zero prose, formulas, subtitles, or tables on `/math/*` may reference `math_docs.py`, `hs-math-docs`, `math-manifest.json`, or `/math/` itself as a subject of explication.
- **`Gate G2` (100% Exact Algebraic & Numerical Consistency):** Harmonizes the Cluster `292` variance numbers across `M0`, `M2`, and `guile_prelude.scm` and dynamically interpolates live `total_real_bars_n` (`472`).
- **`Gate G3` (`0` LLM Tokens, `0` External Math CDNs & `ReadOnlyIsolationGuard` Safe):** Renders 100% offline with zero mutations to locked upstream registries (`all_unchanged: True`).
- **`Gate G4` (Complete 6-Domain Mathematics & Information Science Coverage):** Covers Abstract Algebra/Number Theory, Information Theory/Phonemic Compression & BM25 Retrieval, Graph Theory & Polar Geometry, Nonparametric Order Statistics, Sabermetrics & Z-Combinator Calculus, and Macroeconomics, Bayesian Inference & Content-Addressed Merkle Cryptography.
---
## 4. Piecewise Audit Points & Candidate Strategies (`Strategies 1A–1C` through `6A–6C`)
---
### Audit Point 1: Hub `M0` (`/math/index.html`) — Purge Self-Reference (`hs-math-docs --disable`), Harmonize Cluster `292` Variance & Add Non-Self-Referential 6-Domain Reference Table
- **Strategy `1A` (Purge Self-Referential Subtitles Across `M0–M5` + Harmonize Cluster `292` Variance + Add Non-Self-Referential 6-Domain Mathematical & Information-Science Reference Table on `M0` — Recommended Candidate):**
- Removes all self-referential `"Non-Sequentially Revertible via hs-math-docs --disable <slug>"` subtitle text across `M0–M5`.
- Harmonizes the Cluster `292` variance text between `M0` and `M2` (`{'schizoanalysis': 292, 'abstract machine': 265, 'synthetic data': 250}` $\to \sigma^2_0 = 2792/9 \approx 310.22 \to 0.0$ alongside the 3-point REPL vector `[264, 317, 276]` $\to 4634/9 \approx 514.89 \to 0.0$).
- Adds a **6-Domain Mathematical & Information-Science Reference Table** on `/math/index.html` mapping each formal equation and invariant directly to its underlying target domain module/registry (`ciphers`, `phonetics`, `sqlite_meta`, `encyclopedia-graph`, `timeseries`, `macro`, `daily_brief`, `guile_prelude.scm`, `ipld`) with **zero reference to `/math/` or `M0–M5` themselves**.
- **Strategy `1B` (Purge Self-Reference & Harmonize Variance Numbers Only — Minimal Candidate):**
- Removes `hs-math-docs` self-references and aligns the Cluster `292` variance text without adding the 6-domain reference table to `M0`.
- **Strategy `1C` (Leave `M0` Unchanged — Status Quo):**
- Retains self-referential `hs-math-docs --disable` subtitles and the `310.22` vs `514.89` discrepancy.
---
### Audit Point 2: Unit `M1` (`base36-algebra-and-primes`) — Mod-9 Digital Root Ring Homomorphism, CCRU `9`-Sum Syzygy Involution & Anchor Perturbation Algebra
- **Strategy `2A` (Add Section 3 to `M1`: Mod-9 Digital Root Congruence `dr_9(n)`, `9`-Sum Syzygy Involution & Quantitative Anchor Perturbation Algebra `Δ_Q` — Recommended Candidate):**
- Adds **Section 3 (`3. Mod-9 Digital Root Congruence dr_9(n), 9-Sum Syzygy Involution & Anchor Perturbation Δ_Q`)** explicating $dr_9(n) = 1 + ((n - 1) \bmod 9) \in \{1..9\}$, the syzygy involution $\sigma(r) = 9 - r$ (`{(1,8), (2,7), (3,6), (4,5)}`), and the anchor revision delta $\Delta_Q = \text{AQ}(Q_{\text{new}}) - \text{AQ}(Q_{\text{old}})$ across `Paths A/B/C`.
- **Strategy `2B` (Add `dr_9(n)` Only — Partial Candidate):**
- Covers `dr_9(n)` without `--revise-anchor` perturbation algebra.
- **Strategy `2C` (Leave `M1` at 2 Sections — Status Quo):**
- Leaves `dr_9(n)` and `--revise-anchor` undocumented.
---
### Audit Point 3: Unit `M2` (`phonemic-projections-and-g-vectors`) — Complete All 6 Vectors (`G1–G6`), Shannon Entropy Compression & SQLite FTS5 Okapi BM25 Ranking
- **Strategy `3A` (Complete Vectors `G2` & `G6` in Section 2 + Add Section 3 on Information-Theoretic Phonemic Compression & SQLite FTS5 Okapi BM25 Retrieval — Recommended Candidate):**
- Completes all six vectors (`G1` through `G6`, adding `G2` Cross-Generational Twin Locks and `G6` Multi-Scale Repdigit Closure) and adds **Section 3 (`3. Information-Theoretic Entropy Reduction H(Φ(W)) ≤ H(W) & SQLite FTS5 Okapi BM25 Full-Text Ranking`)** covering equivalence quotients $\Sigma_{\text{eng}}^* / \ker(\text{AQ} \circ \Phi)$ and the Okapi BM25 scoring equation in `fts_catalog`.
- **Strategy `3B` (Add Missing Vectors `G2` & `G6` Only — Partial Candidate):**
- Completes `G1–G6` without Section 3 on Shannon entropy and FTS5 BM25.
- **Strategy `3C` (Leave `M2` Unchanged — Status Quo):**
- Leaves `G2`, `G6`, and BM25 omitted.
---
### Audit Point 4: Unit `M3` (`graph-topology-and-eti-scoring`) — Concentric Polar Radar Geometry (`Mode 2`), 4-Key Lexicographic Total Order & 1-Hop Ego Subgraphs
- **Strategy `4A` (Add Section 3 to `M3`: Concentric Polar Radar Affine Mapping `(r, θ) -> (x, y)`, 4-Key Lexicographic Tie-Breaker & 1-Hop Induced Ego Subgraphs — Recommended Candidate):**
- Adds **Section 3** explicating the Mode 2 Concentric Polar Radar radial mapping $r(\text{ETI}_i) = R_{\min} + \frac{100 - \text{ETI}_i}{100}(R_{\max} - R_{\min})$, the 4-key lexicographic total order $(\text{ETI}_i, \text{CAP}_i, \text{COL}_i, \text{ARM}_i)$, and the 1-hop ego-network induced subgraph $G[N_1(v)]$.
- **Strategy `4B` (Add Polar Radar Formula Only — Partial Candidate):**
- Adds $r(\text{ETI}_i)$ without the 4-key lexicographic tie-breaker or ego-subgraph formula.
- **Strategy `4C` (Leave `M3` at 2 Sections — Status Quo):**
- Leaves Mode 2 radar geometry undocumented on `/math/`.
---
### Audit Point 5: Unit `M4` (`timeseries-moments-and-confluence-dose`) — Dynamic `472` Bar Count, Sabermetric Moments (`SNAP%`, `WOPR`, `LOE`, `WAR_30d`) & Thomas' Calculus via `Z`
- **Strategy `5A` (Replace Hardcoded `440` with Live `472` Bar Count + Add Section 3 on Longitudinal Sabermetric Moments, Lead-Lag $t$-Statistics & Thomas' Calculus via `Z` Combinator — Recommended Candidate):**
- Dynamically interpolates live `472` real exchange bars (`19` trading days per public ticker) and adds **Section 3** covering `SNAP%`, `WOPR`, `LOE`, `WAR_30d`, lead-lag Pearson $r(\tau)$ with Student-$t$ statistic ($df = n - 2$), and the formal equations for limits, central difference derivatives, $n$-th derivatives, Riemann sums, and adaptive Simpson quadrature enacted via the applicative-order `Z` combinator (`guile_prelude.scm`).
- **Strategy `5B` (Fix `440 -> 472` Count Only — Minimal Candidate):**
- Updates the bar count without explicating `SNAP%`/`WOPR`/`WAR_30d` or the `Z`-calculus formulas.
- **Strategy `5C` (Leave `M4` Unchanged — Status Quo):**
- Retains the stale `440` bar count.
---
### Audit Point 6: Unit `M5` (`macro-spreads-and-bayesian-inference`) — Content-Addressed Merkle Cryptography (`RFC 8785 JCS + IPLD dag-json CIDv1`) & Sample-Size Confidence Bounds
- **Strategy `6A` (Add Section 3 to `M5`: Content-Addressed Merkle Cryptography `RFC 8785 JCS + IPLD dag-json (0x0129) CIDv1` Over Target Registries & Binomial Sample-Size Confidence Bounds — Recommended Candidate):**
- Adds **Section 3** explicating RFC 8785 JCS canonicalization, binary multihash `CIDv1 = 'b' || Base32([0x01, 0xA9, 0x02, 0x12, 0x20] || SHA256(JCS(X)))` over target domain registries (omitting `math-manifest.json` self-reference), HTTP `ETag` equivalence, and why a worst-case ($p=0.5$) 95% binomial confidence interval half-width $\le \pm 4.38\%$ requires $N_{\text{ext}} \ge 500$.
- **Strategy `6B` (Add `CIDv1` Formula Only — Partial Candidate):**
- Documents `CIDv1` byte construction without the $N_{\text{ext}} \ge 500$ binomial confidence bound.
- **Strategy `6C` (Leave `M5` at 2 Sections — Status Quo):**
- Leaves `IPLD dag-json CIDv1` and the $N_{\text{ext}} \ge 500$ confidence bound undocumented.
@@ -0,0 +1,112 @@
# PLAN: Piecewise Complete Software Engineering Explication Across `/engineering/` (`Unit E0` Hub & Subpages `E1–E5`, Strict Anti-Self-Reference Closure Boundary, `Audit Points 1–6`, `Rule C` Piecewise Specification)
**Document ID:** `PLAN-PIECEWISE-COMPLETE-SOFTWARE-ENGINEERING-EXPLICATION`
**Status:** `INACTIVE / DEFERRED (MIGRATED TO docs/plans/inactive/ — 0/6 AUDIT POINTS AFFIRMED)`
**Target Ecosystem Version:** `v2.9.0`
**Target Repositories:** `hyperstitionstudio-core`, `encyclopedia-knowledge-graph`
**Author:** m00t & Hermes Agent
**Date:** 2026-11-30
---
## 1. Strict Anti-Self-Reference / Non-Circular Closure Invariant (`Zero Self-Explication of /engineering/*`)
To prevent self-referential fixed-point and `IPLD dag-json CIDv1` closure issues (where modifying `/engineering/` to describe `/engineering/` alters `engineering_docs.py` / `engineering-manifest.json` / `hs-eng-docs` counts and routes in a circular feedback loop):
1. **Strict Explication Boundary (What `/engineering/*` Must NEVER Explicate):**
- `/engineering/` (`Unit E0` Hub and Subpages `E1–E5`) is the **observer/explication lens**, never the **observed subject**.
- Therefore, `/engineering/` and its subpages (`E1–E5`) **must omit `/engineering/` (`site/engineering/*`), `publishing/engineering_docs.py`, `hs-eng-docs`, `engineering-manifest.json`, and the `/engineering/` subpages themselves (`E0–E5`) from the subject matter being explicated** (and likewise omit `publishing/math_docs.py` / `hs-math-docs` self-reference).
- In `ENGINEERING_GUILE_CARTRIDGES["E0"]` and the Hub `E0` tables, replace self-referential `introspect_engineering_manifest()` examples with non-self-referential workspace target introspection (`load_workspace_config()`, `MCP_TOOLS_SCHEMA`, `REST_DOMAIN_ALIASES`, and core domain CLI entrypoints excluding `hs-eng-docs`/`hs-math-docs` from self-referential prose).
2. **What `/engineering/*` Explicates Instead (100% of the Target Domain Software Engineering):**
- Explicates exclusively the **underlying operational software systems** of `hyperstitionstud.io`:
- **Domain `E1`:** `ciphers`, `phonetics`, `packages-js/ciphers-aq`, `/calc/` (`haiperdohp-jemaytreeah`), and the 4-Gate CI provisioner (`ci_provision_ingglish.py`).
- **Domain `E2`:** `glossary` (`ReadOnlyIsolationGuard`), `graph` (`build_encyclopedia_knowledge_graph.py`), and `db/sqlite_meta.py` (`hyperstition-catalog.db` & `api-telemetry.db`).
- **Domain `E3`:** `quant/{collector,timeseries,macro,daily_brief}.py`, `lenses/__init__.py`, and `/quant/` (`quant-app.js`, `quant-tutorials.js`).
- **Domain `E4`:** `mcp/{server,rest,tools,resources,prompts}.py`, `quant/cards.py`, `ipld/__init__.py`, and `publishing/polyglot_sandbox.py` (`hs-guile-scheme-repl.js`).
- **Domain `E5`:** `deploy/{sync-vps-repos.sh,run-vps-data-production.sh,run-vps-archive-rotation.sh,Caddyfile}`, `push-all-to-git-libre-audio.sh`, `version_sync.py`, `publishing/{pdf_compiler,archive_rotator,readme_sync,highlights,flow_diagram}.py`, `ci/{doctor,citation_sources,erofs_harness,public_regression}.py`, and `site/assets/{hs-group3-basalt-chamfer.css,hs-matrix-coderain.js}`.
---
## 2. Ground-Truth Audit: Live Target Codebase Modules (`v2.8.1`) vs. Current `/engineering/` Explication Gaps (`Rule C.1`)
| Audit Point & `/engineering/` Surface | What Is Currently Rendered on `/engineering/` (`v2.8.1`) | Self-Reference Bugs, Stale Counts & Undocumented Target Modules Found in Audit (`Gaps to Fix`) |
| :--- | :--- | :--- |
| **Audit Point 1**<br/>*Hub `E0` (`/engineering/index.html`)* | • `E0` Polyglot Cartridge currently calls `manifest = introspect_engineering_manifest()` (self-referential!) and hardcodes stale `tools=15` and `lenses=4`<br/>• Includes an `Enabled Subpages: 5 / 5` stat tile and `hs-eng-docs` / `hs-math-docs` in the CLI table | **1. Eliminate Self-Reference on `E0`:** Replace `introspect_engineering_manifest()` in `ENGINEERING_GUILE_CARTRIDGES["E0"]` with non-self-referential `load_workspace_config()` / `MCP_TOOLS_SCHEMA` (`20` tools, `6` lenses), remove the self-referential `Enabled Subpages` stat tile, and filter `hs-eng-docs` & `hs-math-docs` out of the target domain CLI table.<br/>**2. Add Non-Self-Referential 6-Repository & Core Subpackage Architecture Table:** Map the 6 repositories and core domain subpackages (`config`, `ciphers`, `phonetics`, `glossary`, `graph`, `quant`, `lenses`, `db`, `ipld`, `mcp`, `ci`) without referencing `/engineering/` itself. |
| **Audit Point 2**<br/>*Subpage `E1` (`ciphers-and-phonetics`)* | • `Section 1`: Base-36 mapping & quantization modes (`digit`, `off`, `spoken`)<br/>• `Section 2`: 3-Tier `translate_batch()` phonetics transducer (`4,943` `cmudict_fallback.json` keys) | **1. Undocumented `packages-js/ciphers-aq` Dual-Runtime Parity & `/calc/` Progressive DB Hydration:** Omits how the browser/ESM package (`packages-js/ciphers-aq`) and `/calc/` (`haiperdohp-jemaytreeah/tools/generate_db_json.py`, progressive `db_lite.json` + `db.json` hydration over `231,615` `db.txt` entries) stay in lockstep with Python `hyperstitionstud_io.ciphers`.<br/>**2. Undocumented `4-Gate CI Provisioner` (`ci_provision_ingglish.py`):** Omits the 4 gates (`Gate A` Format, `Gate B` Phonemic Determinism, `Gate C` Isopsephic Parity, `Gate D` Deduplication) that filter candidates into `db.txt`. |
| **Audit Point 3**<br/>*Subpage `E2` (`knowledge-graph-and-sqlite`)* | • `Section 1`: `ReadOnlyIsolationGuard` (`glossary/__init__.py`)<br/>• `Section 2`: 6-Gate KG compiler & `api-telemetry.db` `100M` quiescent `logrotate` | **1. Undocumented `v2.8.0` Zero-PII Market-Research Telemetry Schema (`sqlite_meta.py`):** Omits the `external_requests` vs `internal_requests` split (`N>=500` `"No data available"` gate), the closed-set allowlist `api_parameter_rollups` table (`symbol`, `lens`, `lang`, `surface`, `donate_from`, `donate_copy`, `export_action`), `static_route_rollups` (`--ingest-caddy-route-counts`), and `get_longitudinal_telemetry_summary()` (`--telemetry-history` across `.1.gz..12.gz`).<br/>**2. Undocumented 6 Knowledge Graph Verification Gates:** Mentions "6-Gate" without listing what Gates `1–6` in `build_encyclopedia_knowledge_graph.py` verify. |
| **Audit Point 4**<br/>*Subpage `E3` (`quant-macro-and-bayesian-brief`)* | • `Section 1`: `collector.py` & `macro.py`<br/>• `Section 2`: 14-Point Census, Confluence Dose ($D \in \{0..4\}$), & `daily_brief.py` | **1. Stale Bar Count (`440` vs `472`):** Line 282 hardcodes `"23 public tickers load 440 verified daily exchange bars"` instead of dynamically reading the live `472` real exchange bars (`19` trading days across `24` instruments)!<br/>**2. Undocumented `LENS_REGISTRY` (`lenses/__init__.py`) & Frontend Quant Engine (`quant-app.js` / `quant-tutorials.js`):** Omits how `LENS_REGISTRY` projects `struct_*` and `ts_*` keys across the 6 lenses and how the Zero-MP4 25-scene canvas choreographer (`quant-tutorials.js`) and 27 `ⓘ` glossary popovers work. |
| **Audit Point 5**<br/>*Subpage `E4` (`mcp-chatbot-rest-and-ipld`)* | • `Section 1`: Stateless MCP (`/mcp`) & OpenAPI 3.1 REST (`/api/v1/*`)<br/>• `Section 2`: `quant/cards.py` (`900×1260` TCG stats cards) & `ipld/__init__.py` (`CIDv1`) | **1. Stale Tool Count (`15` vs `20`) & Self-Referential Tool Exclusion:** Line 311 hardcodes `"expose all 15 tools in MCP_TOOLS_SCHEMA"` instead of the live domain tools, static URN resources (`mcp/resources.py`), URI templates, and prompts (`mcp/prompts.py`).<br/>**2. Undocumented HTTP `ETag` (`304 Not Modified`) Middleware & `34x` Stats-Card Fast-Path:** Omits `compute_response_etag()` / `matches_if_none_match()` in `mcp/rest.py` and the pre-compiled `quant-timeseries.json` fast-path (`1,186 ms -> ~35 ms`) in `quant/cards.py`.<br/>**3. Undocumented 4-Ring Polyglot Sandbox (`publishing/polyglot_sandbox.py` & `hs-guile-scheme-repl.js`):** Never explains how the 4-Ring Zero-`eval()` AST sandbox (`Ring 1` Lexer Gate, `Ring 2` Step/Depth Quota, `Ring 3` Pure AST Evaluator for Guile/TS/Rust, `Ring 4` Read-Only Isolation) works. |
| **Audit Point 6**<br/>*Subpage `E5` (`cicd-vps-tmpfs-and-regression`)* | • `Section 1`: Zero-`/dev/null` scripts & `HYPERSTITION_SYNC_REEXEC`<br/>• `Section 2`: `pdf_compiler.py`, `archive_rotator.py`, & `public_regression.py` (`Gates P1–P6`) | **1. Eliminate Self-Referential Subtitle Text (`Non-Sequentially Revertible via hs-eng-docs --disable ...`):** Subtitles across `E0–E5` currently describe `hs-eng-docs --disable` (self-reference!). Replace with non-self-referential domain authority subtitles.<br/>**2. Undocumented `ProtectSystem=strict` (`EROFS`) Syscall Test Harness (`ci/erofs_harness.py`), `readme_sync.py` (`hs-readme-sync`), Git Hooks (`pre-commit` & `commit-msg`), `citation_sources.py` (`hs-citations`), & `hs-matrix-coderain.js`:** Add sections covering these core CI/CD and frontend modules without mentioning `engineering_docs.py`. |
---
## 3. Four Factual Binary Engineering Gates (`G1–G4`, Zero Self-Reference & Zero Synthetic Data)
- **`Gate G1` (Strict Anti-Self-Reference Closure):** Zero prose, code examples, subtitles, or tables on `/engineering/*` may reference `engineering_docs.py`, `hs-eng-docs`, `engineering-manifest.json`, or `/engineering/` itself as a subject of explication.
- **`Gate G2` (100% Live Introspected Domain Counts — Zero Stale Numbers):** Every domain count (`472` real exchange bars, `4,943` CMUdict entries, `24` watchlist tickers, `14` FRED series, `388` KG nodes, `1,282` edges) is interpolated dynamically from the target domain registries.
- **`Gate G3` (`0` LLM Tokens & `ProtectSystem=strict` `EROFS` / `ReadOnlyIsolationGuard` Safe):** Zero mutations to locked upstream registries (`all_unchanged: True`).
- **`Gate G4` (100% Target Domain Module Coverage):** Every target operational module in `hyperstitionstud_io.*` (excluding the observer modules `engineering_docs.py` and `math_docs.py`) is explicated.
---
## 4. Piecewise Audit Points & Candidate Strategies (`Strategies 1A–1C` through `6A–6C`)
---
### Audit Point 1: Hub `E0` (`/engineering/index.html`) — Remove Self-Reference (`introspect_engineering_manifest`, `Enabled Subpages`, `hs-eng-docs`) & Add 6-Repo Target Domain Architecture Map
- **Strategy `1A` (Purge Self-Reference from `E0` Cartridge/Tiles/Tables + Add Non-Self-Referential 6-Repository & Core Subpackage Architecture Table — Recommended Candidate):**
- Replaces `introspect_engineering_manifest()` in `ENGINEERING_GUILE_CARTRIDGES["E0"]` with `load_workspace_config()` (`hyperstitionstud_io.config`) and live domain counts (`repositories=6`, `watchlist=24`, `fred=14`, `lenses=6`), removes the self-referential `Enabled Subpages` stat tile and `hs-eng-docs`/`hs-math-docs` rows from the CLI table, removes self-referential `hs-eng-docs --disable` text from `E0–E5` subtitles, and adds a **6-Repository & Core PEP 420 Subpackage Architecture Table** describing the target operational codebase (`config`, `ciphers`, `phonetics`, `glossary`, `graph`, `quant`, `lenses`, `db`, `ipld`, `mcp`, `ci`).
- **Strategy `1B` (Purge Self-Reference & Fix Counts Only — Minimal Candidate):**
- Removes self-references and fixes stale counts in `E0` without adding the 6-repository & subpackage architecture table.
- **Strategy `1C` (Leave `E0` Unchanged — Status Quo):**
- Retains self-referential `introspect_engineering_manifest()` and stale `15` / `4` counts.
---
### Audit Point 2: Unit `E1` (`ciphers-and-phonetics`) — Dual-Runtime JS/Python Cipher Parity, `/calc/` Progressive DB Hydration & 4-Gate CI Provisioner
- **Strategy `2A` (Add Section 3 to `E1`: Browser/ESM `packages-js/ciphers-aq` Parity, Progressive `db_lite.json` + `db.json` Hydration (`231,615` Entries) & 4-Gate `ci_provision_ingglish.py` — Recommended Candidate):**
- Explains how `packages-js/ciphers-aq` and `haiperdohp-jemaytreeah/tools/generate_db_json.py` maintain 100% parity with Python `compute_aq()`, how `/calc/` progressively hydrates `db_lite.json` $\to$ `db.json`, and how `ci_provision_ingglish.py` enforces Gates `A–D`.
- **Strategy `2B` (Document `ci_provision_ingglish.py` Only — Partial Candidate):**
- Covers the 4-Gate CI script without `/calc/`'s progressive DB hydration.
- **Strategy `2C` (Leave `E1` at 2 Sections — Status Quo):**
- Leaves `/calc/` and `hyperdope-ci-build` undocumented.
---
### Audit Point 3: Unit `E2` (`knowledge-graph-and-sqlite`) — 6-Gate KG Verifier Specification & `v2.8.0` Zero-PII SQLite Telemetry Schema
- **Strategy `3A` (Expand `E2` with Explicit 6-Gate KG Verifier Breakdown + `v2.8.0` 4-Table Zero-PII SQLite Telemetry Architecture — Recommended Candidate):**
- Explicitly enumerates Gates `1–6` of `build_encyclopedia_knowledge_graph.py --verify-only` and documents both `hyperstition-catalog.db` (`8` tables including FTS5 BM25 `fts_catalog`, omitting any self-referential manifest rows) and `/var/lib/hyperstitionstud.io/api-telemetry.db` (`api_endpoint_rollups` `external_requests` vs `internal_requests`, closed-set allowlist `api_parameter_rollups`, zero-IP Caddy `static_route_rollups`, `get_longitudinal_telemetry_summary()` across `.1.gz..12.gz`, and $N_{\text{ext}} \ge 500$ `"No data available"` confidence gating).
- **Strategy `3B` (Update `sqlite_meta.py` Prose Only — Partial Candidate):**
- Mentions `api_parameter_rollups` without enumerating the 6 KG gates.
- **Strategy `3C` (Leave `E2` Unchanged — Status Quo):**
- Leaves the `v2.8.0` telemetry tables and 6 KG gates undocumented.
---
### Audit Point 4: Unit `E3` (`quant-macro-and-bayesian-brief`) — Dynamic Bar Count (`472`), `LENS_REGISTRY` Architecture & Zero-MP4 Canvas Tour Engine
- **Strategy `4A` (Replace Hardcoded `440` with Live `472` Bar Introspection + Add Section 3 Covering `LENS_REGISTRY`, 27 `ⓘ` Popovers & Zero-MP4 25-Scene `quant-tutorials.js` — Recommended Candidate):**
- Dynamically interpolates live `472` real exchange bars (`19` trading days across `23` public tickers + `ANTHR-PVT` private = `null`) and adds Section 3 covering `lenses/__init__.py` (`project_build_through_lens()`), `quant-app.js` (`QUANT_TERM_GLOSSARY` 27 `ⓘ` popovers), and `quant-tutorials.js` (5-episode × 5-scene canvas choreographer + WebAudio fallback chime).
- **Strategy `4B` (Fix `440 -> 472` Count Only — Minimal Candidate):**
- Fixes the stale bar count without documenting `lenses/__init__.py` or `quant-tutorials.js`.
- **Strategy `4C` (Leave `E3` Unchanged — Status Quo):**
- Retains the stale `440` bar count.
---
### Audit Point 5: Unit `E4` (`mcp-chatbot-rest-and-ipld`) — HTTP `ETag` (`304`), `34x` Stats-Card Fast-Path & 4-Ring Polyglot AST Sandbox (`polyglot_sandbox.py`)
- **Strategy `5A` (Document HTTP `ETag` `304`, `34x` Stats-Card Fast-Path & Add Section 3 on the 4-Ring Zero-Eval Polyglot AST Sandbox (`polyglot_sandbox.py` & `hs-guile-scheme-repl.js`) — Recommended Candidate):**
- Updates Section 1 with deterministic HTTP `ETag` (`"<dag_json_cidv1>"`) + `If-None-Match` (`304 Not Modified`) caching in `mcp/rest.py` and `mcp/server.py` (omitting self-referential `hs_inspect_engineering_and_math_docs` / `engineering-manifest` from the prose examples), updates Section 2 with the `34x` stats-card fast-path (`1,186 ms -> ~35 ms`) in `quant/cards.py`, and adds Section 3 detailing the 4-Ring Zero-`eval()` Polyglot AST Sandbox (`Ring 1` Lexer Gate, `Ring 2` `max_steps=2000` Quota, `Ring 3` Pure AST/S-Expression Evaluator, `Ring 4` `ReadOnlyIsolationGuard`).
- **Strategy `5B` (Update Section 1 & 2 Prose Only — Partial Candidate):**
- Adds `ETag` `304` and the `34x` fast-path without Section 3 on `polyglot_sandbox.py`.
- **Strategy `5C` (Leave `E4` Unchanged — Status Quo):**
- Leaves `ETag` `304` and `polyglot_sandbox.py` undocumented.
---
### Audit Point 6: Unit `E5` (`cicd-vps-tmpfs-and-regression`) — `ProtectSystem=strict` (`EROFS`) Syscall Harness, `hs-readme-sync` + Git Hooks, `hs-citations` & Group 3 Frontend Engine
- **Strategy `6A` (Add `v2.8.1` `--hooks-only` VPS Merge Fix + Section 3 on `ci/erofs_harness.py` & `ci/citation_sources.py` + Section 4 on `readme_sync.py`, `commit-msg` Gate, `highlights.py --corpus-delta` & `hs-matrix-coderain.js` — Recommended Candidate):**
- Updates Section 1 with the `v2.8.1` VPS fast-forward merge protection (`git checkout -- README.md` + `hs-readme-sync --hooks-only`), adds Section 3 covering `simulate_protect_system_strict()` (`ci/erofs_harness.py`) and `verify_draft()` (`ci/citation_sources.py`), and adds Section 4 covering `readme_sync.py` (`.git/hooks/{pre-commit,commit-msg}`), `highlights.py --corpus-delta`, and the Group 3 + `hs-matrix-coderain.js` (`matrix-font.woff2`, `12.5 fps`, `-60%` center-well vignette) frontend engine.
- **Strategy `6B` (Add `erofs_harness.py` & `readme_sync.py` Only — Partial Candidate):**
- Documents `erofs_harness.py` and `readme_sync.py` without `citation_sources.py` or `hs-matrix-coderain.js`.
- **Strategy `6C` (Leave `E5` at 2 Sections — Status Quo):**
- Leaves `erofs_harness.py`, `readme_sync.py`, `citation_sources.py`, and `hs-matrix-coderain.js` undocumented.
@@ -0,0 +1,100 @@
# 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`
**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)
**Target Ecosystem Version:** `v2.17.0` (Baseline: `v2.16.0`)
**Target Repositories:** `hyperstitionstudio-core`, `encyclopedia-knowledge-graph`
**Author:** m00t & Hermes Agent
**Date:** 2026-12-01
---
## 1. Ground-Truth Audit: Current `/learn/` Surface (`v2.16.0`) & Philosophical Contingent-Meaning Integration (`Rule C.1`)
Per `Rule C` of `hyperstitionstudio-roadmap-and-release`, we audit `/workspace/hyperstitionstudio-core/site/learn/index.html` and `site/learn/learn-app.js` (`v2.16.0`) and integrate concrete, deterministic operators from **Giordano Bruno**, **Michel Serres**, **Nick Land**, **Gilles Deleuze & Félix Guattari**, and **John Michael Greer** where their thought intersects with contingent meaning in the `282`-term glossary, `190` bilingual specimens, `72+` dated news dossiers, and practitioner-curated `learn-progress-state` JSON ledgers:
| Audit Point & `/learn/` Surface | What Exists in `/learn/` Today (`v2.16.0`) | Philosophical Contingent-Meaning Upgrade (`Bruno, Serres, Land, D&G, Greer`) |
| :--- | :--- | :--- |
| **Audit Point 1**<br/>*Header, Sticky State Bar (`#statePortabilityBar`) & Brunonian Seal Ribbon* | • `#statePortabilityBar` shows `"0 / 6 Modules Completed (0%)"`, a plain progress bar, `"Download State (.json)"`, and `"dag-json CIDv1: baguqeera..."` | • **Giordano Bruno (*Triginta Sigilli* / Seals of Memory):** Frame `#statePortabilityBar` as the **Personal Grimoire & Talismanic Seal Ledger**, displaying an interactive **6-Seal Consecration Ribbon (`[ ☿ M01 ] [ ☉ M02 ] [ ∆ M03 ] [ ⊗ M04 ] [ ☍ M05 ] [ ♄ M06 ]`)** that illuminates in Gold/Emerald as each seal is consecrated, while framing the `RFC 8785 dag-json CIDv1` hash as the practitioner's content-addressed **Cryptographic Talisman Seal (`baguqeera...`)**. |
| **Audit Point 2**<br/>*Folios `M01–M06`: Dual-Register Grimoiric Folios, Serresian Parasitic Noise (`M02`) & Deleuze-Guattari Double Articulation (`M04`)* | • Cards labeled `Module M01 // Foundation Cipher` .. `Module M06 // Applied Decision Registers` with generic `"Mark Module Complete"` buttons and plain textareas | • **Dual-Register Grimoiric Folios:** Give each module (`M01–M06`) its Hermetic Seal & Folio Title alongside its novice-friendly math explanation:<br/> - `M01 (☿ Bruno — De Umbris Idearum)`: The Base-36 Cabbala & Combinatorial Shadows<br/> - `M02 (☉ Serres — Le Parasite)`: Incantation vs. Orthographic Channel Noise ($P(w) = \text{AQ}_{\text{eng}} - \text{AQ}_{\text{ing}}$)<br/> - `M03 (∆ Greer & Kammerer — Law of Series)`: The $37 \times 3k$ Attractor & Serial Coincidence Clustering<br/> - `M04 (⊗ Deleuze & Guattari — Plateau 3)`: Double Articulation (Machinic Content vs. Overcoded Expression)<br/> - `M05 (☍ Land & D&G — Smooth vs. Striated)`: Concentric ETI Apex Predators & Rhizomatic Flex Pivots<br/> - `M06 (♄ Greer — Natural Magic & Catabolic Resilience)`: The Four Registers & Book of Coordinates. |
| **Audit Point 3**<br/>*Landian Numogrammatic Syzygy, Trakt Current (`Warp / Plex / Torque`), Cumulation Gate & Serresian Parasite Readout in `M01` & `M02`* | • `M01` computes `computeAQ(a)` and `[PRIME]`; `M02` computes `Gen 0 vs Gen 1` drift $\Delta$<br/>• Neither sandbox exposes the **CCRU Decimal Numogram** or **Serresian Channel-Noise Ratio** | • **Nick Land (*Decimal Labyrinth / Barker's Numogram*) & Michel Serres (*The Parasite*):** Augment `#m01Output` and `#m02Output` with:<br/> 1. **Mod-9 Digital Root $z = dr_9(N)$ & `9`-Sum Syzygy Twin $z^* = 9 - z$** (`1::8, 2::7, 3::6, 4::5`),<br/> 2. **Trakt Difference Current** $\Delta_{\text{trakt}} = |z - z^*| \in \{1,3,5,7,9\}$ & **Numogram Region** (`Warp {3,6,9}`, `Plex {1,8,2,7,4,5}`, `Torque`),<br/> 3. **Triangular Cumulation Gate** $G(z) = z(z+1)/2 \pmod 9$,<br/> 4. **Serresian Parasitic Ghost-Mass Ratio** $\eta_{\text{parasite}} = |\text{AQ}_{\text{eng}} - \text{AQ}_{\text{ing}}| / \text{AQ}_{\text{eng}}$ in `M02`, and<br/> 5. A 1-click **`[ + Inscribe Coordinate to Grimoire Ledger ]`** button! |
| **Audit Point 4**<br/>*Giordano Bruno's Concentric Combinatorial Shadow-Wheel (`*Rota Umbrarum*`, `<svg id="grimoireSigilSvg">`)* | • `#m01Output` and `#m06Output` output plain monospace text only; no visual combinatorial wheel or sigil is rendered | • **Giordano Bruno (*De Umbris Idearum* [1582]):** Embed a deterministic, zero-dependency Group 3 **`<svg id="grimoireSigilSvg" viewBox="0 0 280 280">`** panel beside `#m01Output` that renders Bruno's **Concentric Combinatorial Shadow-Wheel (*Rota Umbrarum*)**—plotting the `9` Mod-9 Chambers (`1..9`, Inner Ring) and `36` Base-36 Decans (`0..9, A..Z`, Outer Ring) and tracing both the **Gen 0 Written Shadow Path** (amber dashed vector) and the **Gen 1 Spoken Phonemic Path** (emerald solid vector), with 1-click **`[ Download Talisman Sigil (.svg) ]`**! |
| **Audit Point 5**<br/>*Greerian 16 Geomantic Tetragrams, Law-of-Series Burst Readout & Rhizomatic `/graph/` Links in `Module M06` (`#bookmarkedCoordsList`)* | • `#bookmarkedCoordsList` renders bare pills (`AQ 137 ×`) that delete on click without inspecting correspondences | • **John Michael Greer (*Sacred Geometry / Geomancy / Law of Series*) & Deleuze-Guattari (*Rhizome*):** Clicking a bookmarked coordinate pill in `#bookmarkedCoordsList` opens `#bookmarkCorrespondenceBox`, displaying:<br/> 1. Its canonical `Gen 1 Ingglish` equivalence lock & `dr_9` Numogram Syzygy,<br/> 2. Its **4-Gate Binary Tetragram (`{0,1}^4`: `[Prime | 37×3k Repdigit | G1 Zero-Var | G4 Isometric]`) mapped to its classical 16-Figure Geomantic Seal** (*Fortuna Major*, *Acquisitio*, *Conjunctio*, *Caput Draconis*, *Via*, *Populus*, etc.),<br/> 3. **Law-of-Series Coincidence Density** across the practitioner's bookmarked set, and<br/> 4. A 1-click **`[ Open aq:<N> in Knowledge Graph Radar ↗ ]`** link! |
---
## 2. Four Factual Binary Design & Engineering Gates (`G1–G4`, Zero Synthetic Data)
- **`Gate G1` (100% Novice-Accessible Dual-Voice — Philosophical & Grimoiric Depth Without Obscuring First-Principles Math):** Every module retains its crystal-clear novice mathematical explanation while layering authentic philosophical/grimoiric operators (`Bruno, Serres, Land, Deleuze & Guattari, Greer`).
- **`Gate G2` (100% Backward-Compatible `learn-progress-state.schema.json` & Test Suite Parity):** Preserves all existing DOM IDs (`#statePortabilityBar`, `#card-M01..M06`, `#chk-M01..M06`, `#note-M01..M06`, `#m01InputA`, `#m01InputB`, `#m02WordSelect`, `#m03TriadSelect`, `#m04HeadlineSelect`, `#m05BuildSelect`, `#m06RegisterSelect`, `#bookmarkedCoordsList`, `#inputBookmarkCoord`, `#filterBookmarkInput`) and `urn:io:hyperstitionstud:schema:v1:learn-progress-state` JSON structure.
- **`Gate G3` (`0` LLM Tokens & `0` External Dependencies):** All Brunonian wheel geometry, Landian Numogram math, Serresian noise decomposition, and Greerian 16-figure geomantic mappings run 100% deterministically in client-side vanilla JS (`learn-app.js`).
- **`Gate G4` (Group 3 Stealth Basalt & DejaVu TrueType Glyph Purity):** Uses only Group 3 basalt/gold/emerald/cyan/rose tokens and DejaVu-verified Unicode symbols (`☿, ☉, ∆, ⊗, ☍, ♄, ⚚, ⚛`).
---
## 3. Piecewise Audit Points & Candidate Strategies (`Strategies 1A–1C` through `5A–5C`, `Rule C.2`)
Each Audit Point is independent and reviewed strictly one at a time under the Turn-Ending Invariant (`Rule C.3`).
---
### Audit Point 1: Grimoiric Header, 6-Seal Consecration Ribbon & Cryptographic Talisman Bar (`#statePortabilityBar`)
- **Strategy `1A` (Transform `#statePortabilityBar` into the Interactive 6-Seal Consecration Ribbon + Cryptographic `CIDv1` Talisman Ledger — Recommended Candidate):**
- Retains all existing state import/export buttons and IDs while adding a live **6-Seal Consecration Ribbon** (`[ ☿ I: Cabbala ] [ ☉ II: Parasite ] [ ∆ III: Series ] [ ⊗ IV: Strata ] [ ☍ V: Rhizome ] [ ♄ VI: Geomancy ]`) inside `#statePortabilityBar` where clicking any seal scrolls smoothly to that folio (`#card-M01..M06`) and consecrated seals glow in Gold & Emerald.
- **Strategy `1B` (Update Subtitle Copy Only — Minimal Candidate):**
- Updates text framing without adding the interactive 6-Seal Consecration Ribbon.
- **Strategy `1C` (Keep Current Progress Bar Only — Status Quo):**
- Leaves `#statePortabilityBar` unchanged.
---
### Audit Point 2: The Six Folio Cards (`#card-M01` through `#card-M06`) — Philosophical Epigraphs (Bruno, Serres, Greer, D&G, Land) & Marginalia Framing
- **Strategy `2A` (Dual-Register Grimoiric Folio Headers, Philosophical Axiom Banners [Bruno, Serres, Greer, Deleuze & Guattari, Land] & Marginalia Prompts Across `M01–M06` — Recommended Candidate):**
- Upgrades each `.module-card` (`#card-M01`..`#card-M06`) with a Group 3 Folio Kicker & Seal, a 1-line philosophical axiom connecting the math to Bruno (`M01`), Serres (`M02`), Greer/Kammerer (`M03`), Deleuze & Guattari (`M04`), Land (`M05`), and Greerian Catabolic/Geomantic Synthesis (`M06`), and Marginalia labels on `.note-area` while keeping all novice math explanations and DOM IDs intact.
- **Strategy `2B` (Folio Kicker Badges Only Without Philosophical Axiom Banners — Partial Candidate):**
- Adds the seal kicker badges only.
- **Strategy `2C` (Keep Existing Module Titles & Labels — Status Quo):**
- Leaves `M01–M06` headings unchanged.
---
### Audit Point 3: Landian Numogram (`dr_9`, `9`-Sum Syzygy, Trakt Current `Warp/Plex/Torque`, Cumulation Gate) & Serresian Parasitic Noise Readout in `M01` & `M02`
- **Strategy `3A` (Enrich `#m01Output` & `#m02Output` with Landian Decimal Numogram Telemetry + Serresian Parasitic Ghost-Mass Ratio + 1-Click `[ + Inscribe Coordinate to Grimoire ]` Button — Recommended Candidate):**
- Augments `#m01Output` and `#m02Output` with Mod-9 Digital Root $z = dr_9(N)$, Syzygy Twin $z^* = 9 - z$, Trakt Current $\Delta_{\text{trakt}} = |z - z^*|$ (`Warp {3,6,9}` vs `Plex {1,8,2,7,4,5}`), Triangular Cumulation Gate $G(z) = z(z+1)/2 \pmod 9$, Serresian Parasitic Channel Noise $P(w) = \text{AQ}_{\text{eng}} - \text{AQ}_{\text{ing}}$ in `M02`, and a 1-click `[ + Inscribe Coordinate to Grimoire Ledger ]` button.
- **Strategy `3B` (Add `dr_9(n)` & Syzygy Text Only Without 1-Click Inscription — Partial Candidate):**
- Prints `dr_9` and syzygy text only.
- **Strategy `3C` (Leave `M01` & `M02` Readouts Unchanged — Status Quo):**
- Keeps only the basic sum and prime check.
---
### Audit Point 4: Giordano Bruno's Concentric Combinatorial Shadow-Wheel (`*Rota Umbrarum*`, `<svg id="grimoireSigilSvg">`)
- **Strategy `4A` (Interactive Brunonian 2-Ring Combinatorial Shadow-Wheel `<svg id="grimoireSigilSvg">` in `Module M01` Tracing Gen 0 Shadow vs. Gen 1 Vox Paths + `.svg` Export — Recommended Candidate):**
- Embeds `<svg id="grimoireSigilSvg" viewBox="0 0 280 280">` beside `#m01Output` plotting the Outer 36-Decan Base-36 Ring and Inner 9-Chamber Mod-9 Ring, tracing both the Gen 0 Written Shadow vector and Gen 1 Phonemic vector for the entered phrase, with a `[ Download Talisman Sigil (.svg) ]` button.
- **Strategy `4B` (Single-Ring 9-Chamber Polygon Only Without `.svg` Download — Partial Candidate):**
- Renders a 9-point polygon without the outer 36-decan ring or `.svg` export.
- **Strategy `4C` (Text-Only Readouts, No Sigil Wheel — Status Quo):**
- Omits visual sigil generation.
---
### Audit Point 5: Greerian 16 Geomantic Tetragrams, Law-of-Series Coincidence Density & Rhizomatic `/graph/` Links in `Module M06` (`#bookmarkedCoordsList`)
- **Strategy `5A` (Interactive `#bookmarkCorrespondenceBox` with Greerian 16-Figure Geomantic Tetragram `[Prime | Repdigit | G1 | G4]`, Law-of-Series Coincidence Density & Direct `/graph/?select=aq:<N>` Launch — Recommended Candidate):**
- Clicking any bookmarked coordinate pill in `#bookmarkedCoordsList` inspects its Canonical Grimoire Correspondence in `#bookmarkCorrespondenceBox`: its `Gen 1` corpus lock, Landian `dr_9` syzygy, Greerian 4-bit Geomantic Figure (*Fortuna Major*, *Acquisitio*, *Conjunctio*, *Caput Draconis*, etc.), Law-of-Series cluster density across the user's bookmarks, and a 1-click `[ Open aq:<N> in Knowledge Graph Radar ↗ ]` launcher.
- **Strategy `5B` (Tooltip `title` Attribute Only on Pills — Minimal Candidate):**
- Adds a hover tooltip only.
- **Strategy `5C` (Keep Click-to-Delete Pills Only — Status Quo):**
- Leaves `#bookmarkedCoordsList` unchanged.
---
## 4. Summary Matrix of Audit Points `1–5` for Stepwise Review (`Rule C.3`)
| Audit Point | Target `/learn/` Surface | Strategy `A` (Full Philosophical & Grimoiric Operator — Recommended) | Strategy `B` (Minimal / Partial Change) | Strategy `C` (Status Quo) |
| :--- | :--- | :--- | :--- | :--- |
| **Point 1** | **Header & `#statePortabilityBar`** (*Bruno: Seals*) | **`1A`:** 6-Seal Consecration Ribbon (`[☿ I]..[♄ VI]`) + Cryptographic `CIDv1` Talisman Seal | **`1B`:** Subtitle copy only | **`1C`:** Keep current progress bar |
| **Point 2** | **Folios `M01–M06` Cards** (*Bruno, Serres, Greer, D&G, Land*) | **`2A`:** Dual-register Folio titles, Hermetic seals, philosophical axiom banners & Marginalia prompts | **`2B`:** Folio kicker badges only | **`2C`:** Keep current module titles |
| **Point 3** | **`M01` & `M02` Sandboxes** (*Land: Numogram & Serres: Parasite*) | **`3A`:** Landian `dr_9`, `9`-Sum Syzygy, Trakt (`Warp/Plex`), Gate $G(z)$, Serresian Parasite $P(w)$, & `[+ Inscribe]` button | **`3B`:** `dr_9` & syzygy text only | **`3C`:** Keep current readout |
| **Point 4** | **Combinatorial Wheel (`#grimoireSigilSvg`)** (*Bruno: Rota Umbrarum*) | **`4A`:** Interactive 2-Ring (`36`-Decan + `9`-Chamber) `<svg id="grimoireSigilSvg">` + `.svg` export | **`4B`:** Single-ring polygon only | **`4C`:** No SVG sigil wheel |
| **Point 5** | **`M06` Coordinate Bookmarks** (*Greer: Geomancy & Law of Series*) | **`5A`:** `#bookmarkCorrespondenceBox` with 16 Geomantic Figures (`{0,1}^4`), Law-of-Series density, & `/graph/` link | **`5B`:** Hover tooltip only | **`5C`:** Click-to-delete only |
@@ -0,0 +1,33 @@
# PLAN: Retained & Deferred Candidate Strategies From `PLAN-PIECEWISE-QUANT-VOICE-NARRATION-AND-SCENE-UI-INDICATORS` (`Retained Strategy 1A` & `Deferred Strategies 1C, 2B, 2C, 3B, 3C, 4B, 4C`)
**Document ID:** `PLAN-PIECEWISE-QUANT-VOICE-NARRATION-DEFERRED-STRATEGIES`
**Status:** `INACTIVE / RETAINED FOR FUTURE RE-EVALUATION`
**Parent Plan:** `PLAN-PIECEWISE-QUANT-VOICE-NARRATION-AND-SCENE-UI-INDICATORS`
**Target Ecosystem Version:** `Future Release (Post-v2.12.0)`
**Target Repositories:** `hyperstitionstudio-core`, `encyclopedia-knowledge-graph`
**Author:** m00t & Hermes Agent
**Date:** 2026-12-01
---
## 1. Purpose (`Rule C.4` Active-vs-Inactive Piecewise Plan Partitioning)
Per `Rule C.4` of `hyperstitionstudio-roadmap-and-release`, this companion inactive document preserves **Retained Strategy `1A`** and all **deferred** candidate strategies (`1C, 2B, 2C, 3B, 3C, 4B, 4C`) from the stepwise review of `PLAN-PIECEWISE-QUANT-VOICE-NARRATION-AND-SCENE-UI-INDICATORS` (`Affirmed Strategies: 1B, 2A, 3A, 4A`). No `.pdf` is compiled for this deferred companion.
---
## 2. Reactivated Strategy `1A` (Promoted into Active Plan #57 `PLAN-PIECEWISE-QUANT-ZERO-GIT-VOICE-SYNTHESIS-OPTIONS` as Zero-Git-Audio Deploy-Time Synthesis)
- **Strategy `1A` (`Zero-Git-Audio Deploy-Time Generation in sync-vps-repos.sh + WebSpeech + Formant Fallback`):**
- Promoted and affirmed (`Strategies 1A, 2A, 3A`) in `/workspace/encyclopedia-knowledge-graph/docs/plans/piecewise/PLAN-PIECEWISE-QUANT-ZERO-GIT-VOICE-SYNTHESIS-OPTIONS.{md,pdf}`, generating `.gitignore`d `${LIVE_REPOS}/quant/audio/ep0X-sY.wav` tracks at deploy time (`0` audio files in Git source control).
- **Deferred Strategies from Plan #57 (`1B` Standalone Formant-Only, `1C` API-Streamed WAV Only, `2B`, `2C`, `3B`, `3C`):**
- Preserved here as superseded/deferred alternatives (`1A` already includes `1B`'s formant synthesizer as its offline `file://` Tier 3 fallback).
---
## 3. Deferred Candidate Strategies (`Strategies 1C, 2B, 2C, 3B, 3C, 4B, 4C`)
- **Strategy `1C` (WebAudio Chimes Only):** Superseded by affirmed **`Strategy 1B`**.
- **Strategies `2B` & `2C` (Box-Shadow Only or 5-Panel Highlight Map Only):** Superseded by affirmed **`Strategy 2A`** (all `18+` interactive DOM controls highlighted via `.tut-ui-highlight` + floating `#tutUiElementIndicator` pointer badge, including `#lensSelect` in `Ep 04`).
- **Strategies `3B` & `3C` (Raw Subtitle or Regex Strip Without Naming Target UI Element):** Superseded by affirmed **`Strategy 3A`** (natural-English `speechText` per scene naming the target UI element first + `cleanTextForSpeech()` normalizer).
- **Strategies `4B` & `4C` (Hash-Only or HTML-Only `closeups_sync.py`):** Superseded by affirmed **`Strategy 4A`** (`.html` + `.js` UI element introspection and dynamic control rendering in `quadrant-2-*.png`).
+21
View File
@@ -0,0 +1,21 @@
# Inactive & Deferred Plans (`docs/plans/inactive/`)
This directory holds **Retained Long-Term Inactive / Deferred Plans** (`PLAN-*.md`) as well as the cold-compressed **Archived Inactive Plans** bundle (`inactive-plans-archive.tar.gz` + `inactive-archive-manifest.json`). To focus compilation resources exclusively on active (`../active/`) and piecewise (`../piecewise/`) plans, Dark-Mode ReportLab PDFs (`hs-pdf-build`) are **not** compiled or recompiled when plans are deferred into `docs/plans/inactive/` (pre-existing `.pdf` files moved here are retained as-is without recompilation until a plan is reactivated).
- **Active Non-Piecewise Plans (`Tier 1`, with live `.pdf` compilation):** Located in `../active/`
- **Piecewise Plans (`Tier 2–4`, with live `.pdf` compilation):** Located in `../piecewise/`
- **Completed Cold-Rotated Plans (`Class 5A`):** Located in `../../archive/completed-plans-archive.tar.gz`
- **Archived Inactive / Superseded Plans (`Class 5B`):** Compressed in `inactive-plans-archive.tar.gz` and itemized in `inactive-archive-manifest.json` (`hs-archive-rotate --archive-inactive` / `--extract-inactive`)
---
## Cold-Archived Inactive & Superseded Plans (`inactive-plans-archive.tar.gz`)
| Archived Inactive Plan (`.md`) | SHA-256 Prefix | Source-Control Hyperlink Citation (`git.libre.audio`) |
| :--- | :--- | :--- |
| `PLAN-ECOSYSTEM-WIDE-ECONOMIZATION-EVALUATION-AND-VECTORS.md` | `8c33b4445589` | [git.libre.audio @ b2049be](https://git.libre.audio/seasharp/encyclopedia-knowledge-graph/src/commit/b2049beb38fb6c443a655f121135e7f92fedf9ab/docs/plans/inactive/PLAN-ECOSYSTEM-WIDE-ECONOMIZATION-EVALUATION-AND-VECTORS.md) |
| `PLAN-HEADER-SUBTITLE-TELEMETRY-CONSOLIDATION-ALTERNATIVE.md` | `8c8e7486ef50` | [git.libre.audio @ b2049be](https://git.libre.audio/seasharp/encyclopedia-knowledge-graph/src/commit/b2049beb38fb6c443a655f121135e7f92fedf9ab/docs/plans/inactive/PLAN-HEADER-SUBTITLE-TELEMETRY-CONSOLIDATION-ALTERNATIVE.md) |
| `PLAN-HOMEPAGE-QUADRANT-EXPLORATORY-FEATURES-DEFERRED-STRATEGIES.md` | `f37dfdb8d0cf` | [git.libre.audio @ b2049be](https://git.libre.audio/seasharp/encyclopedia-knowledge-graph/src/commit/b2049beb38fb6c443a655f121135e7f92fedf9ab/docs/plans/inactive/PLAN-HOMEPAGE-QUADRANT-EXPLORATORY-FEATURES-DEFERRED-STRATEGIES.md) |
| `PLAN-PIECEWISE-DECLUTTER-HOMEPAGE-UI-CLOSEUPS-DEFERRED-STRATEGIES.md` | `73d5c7515e67` | [git.libre.audio @ b2049be](https://git.libre.audio/seasharp/encyclopedia-knowledge-graph/src/commit/b2049beb38fb6c443a655f121135e7f92fedf9ab/docs/plans/inactive/PLAN-PIECEWISE-DECLUTTER-HOMEPAGE-UI-CLOSEUPS-DEFERRED-STRATEGIES.md) |
| `PLAN-PIECEWISE-MARKET-RESEARCH-DEFERRED-CANDIDATE-STRATEGIES.md` | `e73a8f35d381` | [git.libre.audio @ b2049be](https://git.libre.audio/seasharp/encyclopedia-knowledge-graph/src/commit/b2049beb38fb6c443a655f121135e7f92fedf9ab/docs/plans/inactive/PLAN-PIECEWISE-MARKET-RESEARCH-DEFERRED-CANDIDATE-STRATEGIES.md) |
| `PLAN-PIECEWISE-UI-EVOLUTION-FOR-GROWING-DATASETS-DEFERRED-STRATEGIES.md` | `118cf56ca8fa` | [git.libre.audio @ b2049be](https://git.libre.audio/seasharp/encyclopedia-knowledge-graph/src/commit/b2049beb38fb6c443a655f121135e7f92fedf9ab/docs/plans/inactive/PLAN-PIECEWISE-UI-EVOLUTION-FOR-GROWING-DATASETS-DEFERRED-STRATEGIES.md) |
@@ -0,0 +1,113 @@
{
"version": "2.17.0",
"archive_classification": "archived_inactive_plans",
"bundle_filename": "inactive-plans-archive.tar.gz",
"bundle_policy": "md_only_single_layer_bounded_with_git_citation_rotation",
"max_bundle_bytes": 262144,
"bundle_size_bytes": 10375,
"bundle_sha256": "15823f92a0969f4fc19588fccc70543f18b16d12191a57322f692f6f26ba5581",
"retained_inactive_plans": [
"PLAN-HYPERSTITIONSTUDIO-POLYGLOT-SDK-AND-CLIENT-LIBRARIES",
"PLAN-LEXICAL-AND-ETYMOLOGICAL-SIMPLIFICATION",
"PLAN-LLM-TOKEN-ECONOMIZER-AND-VARIANCE-ROUTING",
"PLAN-LLM-TOKEN-ECONOMIZER-DATA-FIDELITY-AND-DEGRADATION-RISK-EVALUATION",
"PLAN-LOCAL-SERVER-SIDE-WEB-CHATBOT-GUI",
"PLAN-MEMETIC-GALLERY-SUBPAGE",
"PLAN-MIGRATE-FINAL-EXEGESIS-CRONJOB-WITH-DUAL-MODE-AND-CRYPTO-FUNDING",
"PLAN-PIECEWISE-COMPLETE-MATHEMATICS-AND-INFO-SCIENCE-EXPLICATION",
"PLAN-PIECEWISE-COMPLETE-SOFTWARE-ENGINEERING-EXPLICATION",
"PLAN-PIECEWISE-QUANT-VOICE-NARRATION-DEFERRED-STRATEGIES"
],
"member_count": 6,
"active_bundle_member_count": 6,
"long_term_git_rotated_count": 0,
"total_uncompressed_bytes": 25604,
"members": [
{
"name": "PLAN-ECOSYSTEM-WIDE-ECONOMIZATION-EVALUATION-AND-VECTORS.md",
"plan_id": "PLAN-ECOSYSTEM-WIDE-ECONOMIZATION-EVALUATION-AND-VECTORS",
"classification": "archived_inactive",
"storage_tier": "active_tar_gz_bundle",
"size_bytes": 8907,
"sha256": "8c33b44455893d5065e899c7a2412fdbe569c33d32833b90a71068e09eb87dda",
"companion_pdf_sha256": "bcddde27a678b0b234347065df34c089d23fb2308534d420089955e8ba1ab9a0",
"companion_pdf_size_bytes": 92160,
"git_commit_sha": "b2049beb38fb6c443a655f121135e7f92fedf9ab",
"git_release_tag": "v2.17.0",
"git_citation_url": "https://git.libre.audio/seasharp/encyclopedia-knowledge-graph/src/commit/b2049beb38fb6c443a655f121135e7f92fedf9ab/docs/plans/inactive/PLAN-ECOSYSTEM-WIDE-ECONOMIZATION-EVALUATION-AND-VECTORS.md",
"git_source_path": "docs/plans/inactive/PLAN-ECOSYSTEM-WIDE-ECONOMIZATION-EVALUATION-AND-VECTORS.md"
},
{
"name": "PLAN-HEADER-SUBTITLE-TELEMETRY-CONSOLIDATION-ALTERNATIVE.md",
"plan_id": "PLAN-HEADER-SUBTITLE-TELEMETRY-CONSOLIDATION-ALTERNATIVE",
"classification": "archived_inactive",
"storage_tier": "active_tar_gz_bundle",
"size_bytes": 2617,
"sha256": "8c8e7486ef507518f5eb305ea1c249b03cb006197400227f46f0d2e187212ce7",
"companion_pdf_sha256": "3e04f3427f0cefe19e1197399c7cc236d0f0a518ef4087dc0577498c899e92fe",
"companion_pdf_size_bytes": 82722,
"git_commit_sha": "b2049beb38fb6c443a655f121135e7f92fedf9ab",
"git_release_tag": "v2.17.0",
"git_citation_url": "https://git.libre.audio/seasharp/encyclopedia-knowledge-graph/src/commit/b2049beb38fb6c443a655f121135e7f92fedf9ab/docs/plans/inactive/PLAN-HEADER-SUBTITLE-TELEMETRY-CONSOLIDATION-ALTERNATIVE.md",
"git_source_path": "docs/plans/inactive/PLAN-HEADER-SUBTITLE-TELEMETRY-CONSOLIDATION-ALTERNATIVE.md"
},
{
"name": "PLAN-HOMEPAGE-QUADRANT-EXPLORATORY-FEATURES-DEFERRED-STRATEGIES.md",
"plan_id": "PLAN-HOMEPAGE-QUADRANT-EXPLORATORY-FEATURES-DEFERRED-STRATEGIES",
"classification": "archived_inactive",
"storage_tier": "active_tar_gz_bundle",
"size_bytes": 3485,
"sha256": "f37dfdb8d0cfcd40f7121beae15a1799b60ab606116363e397788ae792d1c42c",
"companion_pdf_sha256": "b4e30a70abc5687c10e7c588f2f7f906ff0de04744765870f55f9462670fefb2",
"companion_pdf_size_bytes": 85529,
"git_commit_sha": "b2049beb38fb6c443a655f121135e7f92fedf9ab",
"git_release_tag": "v2.17.0",
"git_citation_url": "https://git.libre.audio/seasharp/encyclopedia-knowledge-graph/src/commit/b2049beb38fb6c443a655f121135e7f92fedf9ab/docs/plans/inactive/PLAN-HOMEPAGE-QUADRANT-EXPLORATORY-FEATURES-DEFERRED-STRATEGIES.md",
"git_source_path": "docs/plans/inactive/PLAN-HOMEPAGE-QUADRANT-EXPLORATORY-FEATURES-DEFERRED-STRATEGIES.md"
},
{
"name": "PLAN-PIECEWISE-DECLUTTER-HOMEPAGE-UI-CLOSEUPS-DEFERRED-STRATEGIES.md",
"plan_id": "PLAN-PIECEWISE-DECLUTTER-HOMEPAGE-UI-CLOSEUPS-DEFERRED-STRATEGIES",
"classification": "archived_inactive",
"storage_tier": "active_tar_gz_bundle",
"size_bytes": 2543,
"sha256": "73d5c7515e67fea4ba664b173eb4e8f82a2c2b085441eaebb7277f102d8b0c84",
"companion_pdf_sha256": "3bffabc233869ca4f429d2c0bf66b3fd8cf85b88edf56fa45b8f41e728813dce",
"companion_pdf_size_bytes": 82809,
"git_commit_sha": "b2049beb38fb6c443a655f121135e7f92fedf9ab",
"git_release_tag": "v2.17.0",
"git_citation_url": "https://git.libre.audio/seasharp/encyclopedia-knowledge-graph/src/commit/b2049beb38fb6c443a655f121135e7f92fedf9ab/docs/plans/inactive/PLAN-PIECEWISE-DECLUTTER-HOMEPAGE-UI-CLOSEUPS-DEFERRED-STRATEGIES.md",
"git_source_path": "docs/plans/inactive/PLAN-PIECEWISE-DECLUTTER-HOMEPAGE-UI-CLOSEUPS-DEFERRED-STRATEGIES.md"
},
{
"name": "PLAN-PIECEWISE-MARKET-RESEARCH-DEFERRED-CANDIDATE-STRATEGIES.md",
"plan_id": "PLAN-PIECEWISE-MARKET-RESEARCH-DEFERRED-CANDIDATE-STRATEGIES",
"classification": "archived_inactive",
"storage_tier": "active_tar_gz_bundle",
"size_bytes": 4818,
"sha256": "e73a8f35d381bb2d2d4de6e05095d1a06cc8abf130e13d5a2feb60c94b2e6e83",
"companion_pdf_sha256": "ba0e195190e4e3a2ca9070b3564cc28db472b1ee3ae629e98ec43dc3322f1cf7",
"companion_pdf_size_bytes": 87445,
"git_commit_sha": "b2049beb38fb6c443a655f121135e7f92fedf9ab",
"git_release_tag": "v2.17.0",
"git_citation_url": "https://git.libre.audio/seasharp/encyclopedia-knowledge-graph/src/commit/b2049beb38fb6c443a655f121135e7f92fedf9ab/docs/plans/inactive/PLAN-PIECEWISE-MARKET-RESEARCH-DEFERRED-CANDIDATE-STRATEGIES.md",
"git_source_path": "docs/plans/inactive/PLAN-PIECEWISE-MARKET-RESEARCH-DEFERRED-CANDIDATE-STRATEGIES.md"
},
{
"name": "PLAN-PIECEWISE-UI-EVOLUTION-FOR-GROWING-DATASETS-DEFERRED-STRATEGIES.md",
"plan_id": "PLAN-PIECEWISE-UI-EVOLUTION-FOR-GROWING-DATASETS-DEFERRED-STRATEGIES",
"classification": "archived_inactive",
"storage_tier": "active_tar_gz_bundle",
"size_bytes": 3234,
"sha256": "118cf56ca8fab50a6c58a31185f3725ca7bbc3f287cb69f5d060d6a68ea2f64f",
"companion_pdf_sha256": "f166bfa3cee33326e6b9ade68593af0471d19dfe83ce8d101d67ece07e800860",
"companion_pdf_size_bytes": 84345,
"git_commit_sha": "b2049beb38fb6c443a655f121135e7f92fedf9ab",
"git_release_tag": "v2.17.0",
"git_citation_url": "https://git.libre.audio/seasharp/encyclopedia-knowledge-graph/src/commit/b2049beb38fb6c443a655f121135e7f92fedf9ab/docs/plans/inactive/PLAN-PIECEWISE-UI-EVOLUTION-FOR-GROWING-DATASETS-DEFERRED-STRATEGIES.md",
"git_source_path": "docs/plans/inactive/PLAN-PIECEWISE-UI-EVOLUTION-FOR-GROWING-DATASETS-DEFERRED-STRATEGIES.md"
}
],
"long_term_git_storage_citations": [],
"manifest_dag_json_cid": "baguqeerazonzhadugi3f2vayukaozbevdo3qrz4pidv6zuwxmyl3w6ppwhqa"
}
Binary file not shown.
@@ -0,0 +1,43 @@
# PLAN: Ecosystem-Wide Efficiency, Deduplication, Optimization & Simplification (`Audit Points 1–6` Affirmed, `Rule C` Piecewise Specification)
**Document ID:** `PLAN-PIECEWISE-CODEBASE-MODULARITY-DEFERRED-STRATEGIES`
**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`)
**Target Ecosystem Version:** `v2.18.0` (Baseline: `v2.17.0` + working tree)
**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
**Date:** 2026-12-01
---
## 1. Fixed Architectural Constraints & Four Binary Gates (`PLAN-GATE-G01..G04`)
- **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.
- **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`.
---
## 2. Affirmed Deliverables Across Audit Points `1–6` (`Rule C.4`)
### Audit Point 1 — `[AFFIRMED: Strategy 1A]` Explication HTML/Nav/Subpage Template Engine (`publishing/explication_template.py`)
- 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).
### 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.
### 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).
### 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 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`).
@@ -0,0 +1,120 @@
# PLAN: Piecewise Contingent-Meaning Operators Across `/calc/`, `/graph/`, `/quant/`, `/math/` & MCP — Enacting Michel Serres, Nick Land, Deleuze & Guattari, John Michael Greer & Giordano Bruno (`Audit Points 1–5`, `Rule C` Piecewise Specification)
**Document ID:** `PLAN-PIECEWISE-CONTINGENT-MEANING-SERRES-LAND-DG-GREER-BRUNO`
**Status:** `PENDING AUDIT PIECEWISE (docs/plans/piecewise/ — 0/5 AUDIT POINTS AFFIRMED)`
**Companion Learning-Track Plan:** `PLAN-PIECEWISE-GRIMOIRIC-LEARN-PAGE` (Plan #50, reactivated in `docs/plans/piecewise/`)
**Target Ecosystem Version:** `v2.17.0` (Baseline: `v2.16.0`)
**Target Repositories:** `hyperstitionstudio-core`, `encyclopedia-knowledge-graph`, `haiperdohp-jemaytreeah`, `technocapital-singularity-zoology`
**Author:** m00t & Hermes Agent
**Date:** 2026-12-01
---
## 1. Ground-Truth Audit: Intersecting the Five Thinkers with Contingent Meaning in Existing & Anticipated Datasets (`Rule C.1`)
We first map the five thinkers' core concepts of **contingent meaning** (meaning that emerges neither by deterministic causal necessity nor by arbitrary fabrication, but at the contingent intersection of noise, material flows, and formal coding lattices) directly onto our existing datasets (`231,615` `db.txt` entries, `388` KG nodes / `1,282` edges, `472+` real market bars, `14` FRED series, `72+` dossiers) and anticipated datasets (daily Fedora 41 `00:00 UTC` news-wire dossiers, longitudinal closing-bell bars, and `api-telemetry.db` rollups):
| Audit Point & Thinker | Core Philosophical Concept of Contingent Meaning | Exact Intersection with Existing & Anticipated `hyperstitionstud.io` Datasets |
| :--- | :--- | :--- |
| **Audit Point 1**<br/>**Michel Serres**<br/>(*The Parasite* [1980], *Hermes I–V*, *The Birth of Physics*) | • **The Parasite (*Le Parasite*) & Channel Interference:** Every translation across channels (`Written English -> Spoken Phonemes -> Base-36 AQ -> Market Price`) generates static/noise. What orthodoxy discards as "noise" is the **third party (the Parasite)** that reorganizes the system to a higher order of complexity.<br/>• **The Clinamen (Minimal Swerve):** In a laminar atomic flow, an infinitesimal `1`- or `2`-unit swerve ($\delta \in \{1, 2\}$) births a turbulent vortex where new meaning nucleates. | • **Existing & Anticipated Datasets:** Across the `190` bilingual specimens, `231,615` `db.txt` phrases, and incoming daily dossiers, the **Orthographic Channel Noise** $P(w) = \text{AQ}_{\text{eng}}(w) - \text{AQ}_{\text{ing}}(\Phi(w))$ measures the exact parasitic ghost-mass stripped by `G1` phonemic projection, while **Clinamen Swerves** ($\delta = |\text{AQ}_a - \text{AQ}_b| \in \{1, 2\}$, including `G5` Twin-Prime mutations and `±1` market return ticks) identify where laminar `R2 Pinned Isometric` market regimes break into turbulent `R1/R3` vortices in `/quant/`. |
| **Audit Point 2**<br/>**Nick Land**<br/>(*Fanged Noumena: "Barker Speaks" / "Meltdown"*, CCRU *Decimal Labyrinth / Numogram*) | • **The Decimal Numogram & Templex Time-Circuitry:** Numbers are not cardinal quantities; they are **intensive traits and cybernetic time-zones (`0..9`)** linked by `9`-sum **Syzygies** (`1::8, 2::7, 3::6, 4::5`), **Trakt Difference Currents** ($\Delta_{\text{trakt}} = |z - z^*| \in \{1, 3, 5, 7, 9\}$ partitioning the system into the **Torque** `{1,8,2,7,4,5}`, the **Warp** `{3,6,9}`, and the **Plex**), and **Triangular Cumulation Gates** ($G(z) = z(z+1)/2 \pmod 9$). Contingent numerical coincidences act as **hyperstitional circuit-carriers**. | • **Existing & Anticipated Datasets:** Every `AQ` coordinate in `encyclopedia-graph.json` (`65` `AQCoordinateHub` nodes), `db.txt` (`231,615` entries), and `quant-timeseries.json` maps deterministically into a Numogram Zone $z = dr_9(\text{AQ})$, Region (`Warp {3,6,9}` repdigit attractors vs. `Torque/Plex`), and Cumulation Gate $G(z)$. As new daily news dossiers arrive, the **Zone Population Drift ($\Delta N_z(t)$)** tracks which Numogram current is heating up in the live news wire. |
| **Audit Point 3**<br/>**Gilles Deleuze & Félix Guattari**<br/>(*A Thousand Plateaus* [1980]: *Plateau 1 Rhizome*, *Plateau 3 Double Articulation*, *Plateau 14 Smooth & Striated*) | • **Double Articulation (Content vs. Expression):** Meaning is produced when a **First Articulation (Content / Machinic Assemblage of Bodies:** physical supply chains, EUV wafers, liquidity spreads, daily OHLCV bars) is overcoded by a **Second Articulation (Expression / Collective Assemblage of Enunciation:** ticker symbols, wire headlines, Base-36 `AQ` equations).<br/>• **Rhizomatic Lines of Flight & Smooth vs. Striated Space:** Arborescent hierarchies (`00–08` tree folders) striate space; a **Rhizome** connects any point to any other point across heterogeneous strata without passing through tree roots. | • **Existing & Anticipated Datasets:** In `/graph/` (`388` nodes, `1,282` edges), `IN_DIVISION` and `IN_VOLUME` edges form the **Arborescent Tree**, whereas `CLOSES_REPDIGIT_EQ`, `G1_COLLAPSES_TO_ING_AQ`, `G2_CROSS_GEN_TWIN`, and `TROPHIC_GUILD_BRIDGE` edges form the **Rhizome**. A **Rhizomatic Transverse Shortest-Path Finder** discovers unexpected cross-division lines of flight between any two concepts/tickers without traversing tree edges, while `/quant/` measures each ticker's **Striated (AQ-Pinned $D \ge 2$) vs. Smooth (Nomadic $D = 0$) Space Ratio**. |
| **Audit Point 4**<br/>**John Michael Greer**<br/>(*The Sacred Geometry Oracle*, *The Long Descent*, Kammerer's *Law of Series*) | • **16 Geomantic Tetragrams & Natural Magic Correspondences:** Divinatory systems project continuous noisy flux onto a discrete **`{0,1}^4` binary lattice** (4 elemental lines: Fire, Air, Water, Earth = active/passive $\to$ the **16 classical Geomantic Figures**: *Via, Populus, Fortuna Major, Acquisitio, Conjunctio, Caput Draconis*, etc.).<br/>• **Kammerer's Law of Series:** Meaningful coincidences do not arrive at a constant Poisson rate; they cluster into **serial bursts** (Fano factor $F = \sigma^2 / \mu > 1$).<br/>• **Catabolic Collapse:** High-maintenance technocapital tiers shed complexity under energy/liquidity contraction. | • **Existing & Anticipated Datasets:** In `/quant/` (`quant-timeseries.json`), the 4-species Confluence Dose $D_{i,t} \in \{0..4\}$ is already the sum of **4 binary indicator gates** (`Gate 1` Entity Lock, `Gate 2` Guild Lock, `Gate 3` Wire Equation Lock, `Gate 4` Repdigit `333/666/777` Lock $\in \{0,1\}^4$)! Mapping those exact 4 binary gates to the **16 Geomantic Figures** turns every `(ticker, trading_day)` bar into a deterministic geomantic figure, while the **Law-of-Series Fano Burst Index ($F_i = \sigma^2_{D,i} / \mu_{D,i}$)** and **Catabolic ETI Stress Simulator (`-25% / -50%` `CAP` & `VEL` shock)** quantify serial clustering and catabolic resilience. |
| **Audit Point 5**<br/>**Giordano Bruno**<br/>(*De Umbris Idearum* [1582], *Ars Memoriae*, *Triginta Sigilli*) | • **Concentric Combinatorial Wheels (*Rota Umbrarum*) & Shadows of Ideas:** Truth is grasped through shifting **Shadows (*Umbrae*)** arranged on rotating concentric wheels (**Outer Wheel:** Written Orthographic Shadows; **Middle Wheel:** Spoken Phonemic Voices; **Inner Wheel:** Archetypal Seals / Guild Builds). Rotating the wheels against one another generates contingent synthetic combinations across registers. | • **Existing & Anticipated Datasets:** Across the `190` bilingual specimens, `10` ETI guild builds (`S+..D`), and `65` `AQCoordinateHub` nodes in `/graph/` and `/calc/`, a **Brunonian 3-Ring Combinatorial Wheel Inspector** aligns `Ring 1 (Gen 0 Written English)` $\times$ `Ring 2 (Gen 1 Phonemic Ingglish)` $\times$ `Ring 3 (AQ Coordinate Hub / Taxon Build)` to surface unexpected 3-ring resonances as the corpus grows. |
---
## 2. Four Factual Binary Engineering Gates (`G1–G4`, Zero Synthetic Data)
- **`Gate G1` (100% Grounded in Real Corpus & Market Registries — Zero Synthetic Data):** Every operator computes exact, reproducible functions over real `db.txt`, `encyclopedia-graph.json`, `quant-timeseries.json`, `real-macro-indicators.json`, and `ingglish-aq-archive/*.md` data (`0` random numbers, `0` fabricated rows).
- **`Gate G2` (`0` LLM Tokens at Runtime & `100%` Offline-Portable):** All 5 operators run deterministically in Python (`hyperstitionstud_io.*`) and client-side JS (`/graph/`, `/quant/`, `/calc/`).
- **`Gate G3` (`ProtectSystem=strict` `EROFS` & `ReadOnlyIsolationGuard` Safe):** Zero writes to read-only source registries (`all_unchanged: True`).
- **`Gate G4` (Unified MCP, CLI & Web Workbench Exposure):** Exposed consistently in the web workbenches (`/graph/`, `/quant/`, `/calc/`) and via `hs-mcp` (`MCP_TOOLS_SCHEMA`).
---
## 3. Piecewise Audit Points & Candidate Strategies (`Strategies 1A–1C` through `5A–5C`, `Rule C.2`)
Each Audit Point is 100% independent and commutative, and will be reviewed strictly one Audit Point per turn under the Turn-Ending Invariant (`Rule C.3`).
---
### Audit Point 1: Michel Serres — Parasitic Channel-Noise Decomposition ($P(w)$) & Clinamen Swerve Detector ($\delta \in \{1, 2\}$) (`/quant/`, `/calc/`, & `ciphers`)
- **Strategy `1A` (Full Serresian Parasite & Clinamen Telemetry in `quant/timeseries.py`, `/quant/` Panel 1/4, & `/calc/` Breakdown — Recommended Candidate):**
- **What Changes:**
1. Adds `compute_serres_parasite_metrics(word_eng, word_ing)` in `src/hyperstitionstud_io/ciphers/__init__.py` computing **Laminar Signal** ($\text{AQ}_{\text{ing}}$), **Parasitic Channel Noise / Ghost-Mass** ($P(w) = \text{AQ}_{\text{eng}} - \text{AQ}_{\text{ing}}$), and **Channel Interference Ratio** ($\eta_P = |P(w)| / \max(1, \text{AQ}_{\text{eng}})$).
2. Adds **Clinamen Inflection Detection** (`clinamen_swerve_events`: bars where a `±1` or `±2` minimal `AQ` swerve $\delta \in \{1, 2\}$ or `G5` twin-prime lock precedes a regime shift between laminar `Dose <= 1` and turbulent `Dose >= 2`) to `quant/timeseries.py` and `/quant/` (`?screen=clinamen` filter pill & `ⓘ` popover).
- **Strategy `1B` (Add `compute_serres_parasite_metrics()` in Python & `/math/` `Unit M2` Explication Only — Partial Candidate):**
- Exposes the Serresian Parasite & Clinamen math in `ciphers/__init__.py` and `/math/` without adding UI filter pills to `/quant/`.
- **Strategy `1C` (Defer Serresian Operator — Status Quo):**
- Leaves existing `G1` / `G5` drift metrics unchanged.
---
### Audit Point 2: Nick Land — CCRU Decimal Numogram (`Zones 0..9`), Trakt Currents (`Warp / Plex / Torque`) & Cumulation Gate Router (`/graph/`, `/calc/`, & `ciphers`)
- **Strategy `2A` (Full CCRU Decimal Numogram Classifier in `ciphers/__init__.py` + `/graph/` `?filter=numogram-warp|torque` Filter Options + Live Zone Population Readout — Recommended Candidate):**
- **What Changes:**
1. Adds `compute_numogram_signature(aq_val: int) -> dict[str, Any]` in `src/hyperstitionstud_io/ciphers/__init__.py` returning:
- `zone`: $z = dr_9(\text{AQ}) \in \{0..9\}$,
- `syzygy_twin`: $z^* = (9 - z) \pmod 9$,
- `trakt_current`: $\Delta_{\text{trakt}} = |z - z^*| \in \{1, 3, 5, 7, 9\}$,
- `region`: `"Warp {3,6,9}"` if $z \in \{3,6,9\}$ else (`"Plex/Torque {1,8,2,7,4,5}"` if $z \in \{1,2,4,5,7,8\}$ else `"Zero-Zone {0}"`), and
- `cumulation_gate`: $G(z) = z(z+1)//2$ (`dr_9(G(z))`).
2. Adds `Numogram Warp {3,6,9}` and `Numogram Torque/Plex {1,8,2,7,4,5}` options to `#flagFilter` in `/graph/index.html` and displays the full Numogram signature in the `/graph/` Selected Node Inspector and `/calc/` breakdown.
- **Strategy `2B` (Add `compute_numogram_signature()` & `/graph/` Node Inspector Badge Only — Partial Candidate):**
- Displays the Numogram Region & Cumulation Gate in the `/graph/` right-hand inspector without adding new `#flagFilter` dropdown options.
- **Strategy `2C` (Retain Basic `9`-Sum Syzygy Filter Only — Status Quo):**
- Keeps only the existing `filter=syzygy` check.
---
### Audit Point 3: Gilles Deleuze & Félix Guattari — Rhizomatic Transverse Shortest-Path Finder (`Node A -> Node B`) & Smooth-vs-Striated Space Ratio (`/graph/` & `/quant/`)
- **Strategy `3A` (Interactive Rhizomatic Transverse Path-Finder in `/graph/` Left Sidebar + Smooth-vs-Striated Space Ratio in `/quant/` — Recommended Candidate):**
- **What Changes:**
1. In `/graph/index.html`, adds a compact **Rhizomatic Line-of-Flight Path-Finder (`From Node -> To Node [Trace Rhizome]`)** in the left sidebar that computes the shortest path across `encyclopedia-graph.json` while **excluding hierarchical arborescent edges (`IN_DIVISION`, `IN_VOLUME`)** so every hop traverses purely rhizomatic/transversal edges (`CLOSES_REPDIGIT_EQ`, `G1_COLLAPSES_TO_ING_AQ`, `G2_CROSS_GEN_TWIN`, `TROPHIC_GUILD_BRIDGE`), highlighting the transversal path in bright Emerald/Gold on the canvas!
2. In `quant/timeseries.py` and `/quant/` Panel 2/4, adds each instrument's **Smooth vs. Striated Space Ratio** ($S_{\text{striated}} = \text{share of days pinned to discrete AQ gridlines } D \ge 2$ vs. $S_{\text{smooth}} = \text{nomadic drift at } D = 0$).
- **Strategy `3B` (Add Smooth-vs-Striated Space Ratio in `/quant/` & MCP Graph Tool Only — Partial Candidate):**
- Exposes rhizomatic transversal path-finding via `hs_query_knowledge_graph` in MCP and the Smooth/Striated ratio in `/quant/` without adding a sidebar path-finder widget to `/graph/index.html`.
- **Strategy `3C` (Defer Rhizomatic Path-Finder & Smooth/Striated Ratio — Status Quo):**
- Leaves `/graph/` and `/quant/` unchanged.
---
### Audit Point 4: John Michael Greer — 16 Geomantic Tetragrams from `{0,1}^4` Dose Gates, Kammerer Law-of-Series Burst Index ($F$) & Catabolic ETI Stress Simulator (`/quant/` & `lenses`)
- **Strategy `4A` (Bijective `{0,1}^4 -> 16 Geomantic Figures` Mapping on Daily Bars + Law-of-Series Fano Burst Coefficient $F = \sigma^2_D/\mu_D$ + Catabolic ETI Contraction Lens in `/quant/` — Recommended Candidate):**
- **What Changes:**
1. Maps the 4 binary Confluence Dose indicator gates (`[b_entity, b_guild, b_wire, b_repdigit] \in \{0,1\}^4`) on every daily bar in `quant/timeseries.py` and `/quant/` to its exact **16-Figure Geomantic Tetragram** (`0000` *Populus*, `1111` *Via*, `0011` *Fortuna Major*, `1100` *Fortuna Minor*, `1010` *Acquisitio*, `0101` *Amissio*, `0110` *Conjunctio*, `1001` *Carcer*, `0111` *Caput Draconis*, `1110` *Cauda Draconis*, etc., with Unicode tetragram glyph `☵/☰` and figure name in the `/quant/` bar inspector).
2. Computes Kammerer's **Law-of-Series Fano Burst Index** ($F_i = \sigma^2_{D,i} / \max(0.01, \mu_{D,i})$) for each ticker to flag non-Poisson serial clustering of high-dose synchronicities ($F_i > 1.0$).
3. Adds a **Greerian Catabolic Resilience Score (`catabolic_resilience`)** in `lenses/__init__.py` that stress-tests each `S1–S6` build under a `-50%` contraction of high-maintenance `CAP` and `VEL` subsidies, rewarding low-overhead `COL` (structural resonance) and `ARM` (defensive moat).
- **Strategy `4B` (16 Geomantic Tetragram Bar Readout + Law-of-Series Fano Factor Only, Without Catabolic Stress Score — Partial Candidate):**
- Adds the `{0,1}^4` Geomantic Figure name and Fano Burst Index $F_i$ to `quant/timeseries.py` and `/quant/` without modifying `lenses/__init__.py`.
- **Strategy `4C` (Defer Greerian Geomantic, Law-of-Series & Catabolic Operators — Status Quo):**
- Keeps existing `Dose D \in {0..4}` scalar integer readout only.
---
### Audit Point 5: Giordano Bruno — 3-Ring Combinatorial Shadow-Wheel (*Rota Umbrarum*) Inspector in `/graph/` Mode 2 & MCP (`hs_query_knowledge_graph`)
- **Strategy `5A` (Interactive Brunonian 3-Ring *Rota Umbrarum* Combinatorial Triad Inspector in `/graph/` Mode 2 & MCP — Recommended Candidate):**
- **What Changes:**
1. In `/graph/` (`Mode 2: Concentric ETI Radar`) and `hs_query_knowledge_graph`, adds a **Brunonian *Rota Umbrarum* 3-Ring Combinatorial Alignment Inspector** that rotates any selected node's **Outer Shadow (`Gen 0 Written English AQ`)**, **Middle Voice (`Gen 1 Phonemic Ingglish AQ`)**, and **Inner Seal (`Taxon Build / Numogram Syzygy Twin`)** to list all contingent 3-ring triads across the `388`-node graph where `Ring 1` of Specimen A locks onto `Ring 2` of Specimen B and `Ring 3` of Build C!
- **Strategy `5B` (Expose 3-Ring Combinatorial Triad Query in `hs_query_knowledge_graph` MCP Tool Only — Partial Candidate):**
- Adds `mode="bruno_rota_umbrarum"` to `hs_query_knowledge_graph` without adding UI controls to `/graph/index.html`.
- **Strategy `5C` (Defer Brunonian 3-Ring Graph Inspector to `/learn/` Plan #50 Only — Status Quo):**
- Restricts the Brunonian *Rota Umbrarum* wheel exclusively to `/learn/` (Plan #50 Audit Point 4).
---
## 4. Summary Matrix of Audit Points `1–5` for Stepwise Review (`Rule C.3`)
| Audit Point | Thinker & Theoretical Operator | Target Surfaces | Strategy `A` (Full Cross-Workbench Operator + UI — Recommended) | Strategy `B` (Backend / Readout Only) | Strategy `C` (Deferred) |
| :--- | :--- | :--- | :--- | :--- | :--- |
| **Point 1** | **Michel Serres** (*Parasitic Noise $P(w)$ & Clinamen Swerve $\delta \in \{1,2\}$*) | `ciphers`, `quant/timeseries.py`, `/quant/` | **`1A`:** `compute_serres_parasite_metrics()` + Clinamen Swerve detector & `?screen=clinamen` filter in `/quant/` | **`1B`:** Python helper & `/math/` `M2` only | **`1C`:** Status quo |
| **Point 2** | **Nick Land** (*Decimal Numogram `0..9`, `Warp/Plex/Torque` & Gate $G(z)$*) | `ciphers`, `/graph/`, `/calc/` | **`2A`:** `compute_numogram_signature()` + `/graph/` `#flagFilter` (`Warp {3,6,9}` / `Torque`) + Node Inspector | **`2B`:** Node Inspector readout only | **`2C`:** Keep `syzygy` only |
| **Point 3** | **Deleuze & Guattari** (*Rhizomatic Transverse Path-Finder & Smooth/Striated Ratio*) | `/graph/`, `quant/timeseries.py`, `/quant/` | **`3A`:** Non-arborescent Rhizomatic Path-Finder widget in `/graph/` sidebar + Smooth/Striated ratio in `/quant/` | **`3B`:** MCP path-finder + `/quant/` ratio only | **`3C`:** Status quo |
| **Point 4** | **John Michael Greer** (*`{0,1}^4` 16 Geomantic Figures, Law-of-Series Fano $F$ & Catabolic ETI*) | `quant/timeseries.py`, `lenses`, `/quant/` | **`4A`:** 16 Geomantic Figures on daily bars + Law-of-Series Fano Burst $F_i$ + Catabolic ETI Resilience score | **`4B`:** 16 Geomantic Figures + Fano $F_i$ only | **`4C`:** Status quo |
| **Point 5** | **Giordano Bruno** (*3-Ring Combinatorial Shadow-Wheel `Rota Umbrarum`*) | `/graph/` Mode 2 & `mcp/tools.py` | **`5A`:** Interactive 3-Ring Combinatorial Triad Inspector in `/graph/` Mode 2 + `hs_query_knowledge_graph` | **`5B`:** MCP tool query mode only | **`5C`:** `/learn/` Plan #50 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`).
+7
View File
@@ -0,0 +1,7 @@
# Piecewise Plans (`docs/plans/piecewise/`)
This directory holds **Tier 2 (`Fully Affirmed`), Tier 3 (`Partially Affirmed`), and Tier 4 (`Pending Audit`) Piecewise Plans** (`PLAN-*.md` and their compiled Dark-Mode ReportLab PDF companions `PLAN-*.pdf`) for offline PDF review and stepwise `Rule C` audit/execution.
- **Active Non-Piecewise Plans (`Tier 1`):** Located in `../active/`
- **Inactive / Deferred Plans & Companion Deferred Strategies:** Located in `../inactive/`
- **Completed Cold-Rotated Plans:** Located in `../../archive/completed-plans-archive.tar.gz`
+1 -1
View File
@@ -2,7 +2,7 @@
"$schema": "./schemas/v1/encyclopedia-graph.schema.json", "$schema": "./schemas/v1/encyclopedia-graph.schema.json",
"$id": "urn:io:hyperstitionstud:schema:v1:encyclopedia-graph", "$id": "urn:io:hyperstitionstud:schema:v1:encyclopedia-graph",
"namespace_urn": "urn:io:hyperstitionstud:ns:kg:1.0", "namespace_urn": "urn:io:hyperstitionstud:ns:kg:1.0",
"version": "2.4.0", "version": "2.17.0",
"encyclopedia_base_path": "../technocapital-singularity-zoology/encyclopedia", "encyclopedia_base_path": "../technocapital-singularity-zoology/encyclopedia",
"upstream_repository": "/workspace/technocapital-singularity-zoology", "upstream_repository": "/workspace/technocapital-singularity-zoology",
"isolation_verified": { "isolation_verified": {
+1 -1
View File
@@ -3,7 +3,7 @@ window.HyperstitionStudio.EncyclopediaGraphData = {
"$schema": "./schemas/v1/encyclopedia-graph.schema.json", "$schema": "./schemas/v1/encyclopedia-graph.schema.json",
"$id": "urn:io:hyperstitionstud:schema:v1:encyclopedia-graph", "$id": "urn:io:hyperstitionstud:schema:v1:encyclopedia-graph",
"namespace_urn": "urn:io:hyperstitionstud:ns:kg:1.0", "namespace_urn": "urn:io:hyperstitionstud:ns:kg:1.0",
"version": "2.4.0", "version": "2.17.0",
"encyclopedia_base_path": "../technocapital-singularity-zoology/encyclopedia", "encyclopedia_base_path": "../technocapital-singularity-zoology/encyclopedia",
"upstream_repository": "/workspace/technocapital-singularity-zoology", "upstream_repository": "/workspace/technocapital-singularity-zoology",
"isolation_verified": { "isolation_verified": {
+277 -65
View File
@@ -3,25 +3,29 @@
<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.8.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.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;
--bg-canvas: #020617; --bg-canvas: #020617;
--bg-panel: #0c1324; --bg-panel: #0c1324;
--bg-card: #111a2e; --bg-card: #0c1324;
--bg-elevated: #111a2e;
--bg-well: #070d1b;
--border-col: #26344d; --border-col: #26344d;
--text-main: #e2e8f0; --text-main: #f8fafc;
--text-muted: #94a3b8; --text-muted: #94a3b8;
--accent-red: #f43f5e; --accent-red: #f43f5e;
--accent-cyan: #38bdf8; --accent-cyan: #22d3ee;
--accent-gold: #f59e0b; --accent-gold: #f5c630;
--accent-mint: #10b981; --accent-mint: #34d399;
} }
* { box-sizing: border-box; margin: 0; padding: 0; } * { box-sizing: border-box; margin: 0; padding: 0; }
body { body {
background: var(--bg-canvas); background: var(--bg-canvas);
color: var(--text-main); color: var(--text-main);
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "DejaVu Sans", sans-serif; font-family: var(--font-mono);
height: 100vh; height: 100vh;
overflow: hidden; overflow: hidden;
display: flex; display: flex;
@@ -29,39 +33,45 @@
} }
header { header {
background: var(--bg-panel); background: var(--bg-panel);
border-bottom: 2px solid var(--accent-red); border: 1px solid var(--border-col);
padding: 10px 18px; border-left: 4px solid var(--accent-cyan);
padding: 1.1rem 1.35rem;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
gap: 14px; gap: 0.85rem;
z-index: 20; z-index: 20;
} }
.brand h1 { .brand h1 {
font-size: 16px; font-size: 0.98rem;
font-weight: 700; font-weight: 700;
letter-spacing: 0.3px; letter-spacing: -0.02em;
color: var(--text-main); color: var(--text-main);
} }
.brand p { .brand p {
font-size: 11.5px; font-size: 0.71rem;
color: var(--text-muted); color: var(--text-muted);
margin-top: 2px; margin-top: 0.25rem;
} }
.toolbar { .toolbar {
background: #0c1324;
border-bottom: 1px solid var(--border-col);
padding: 8px 18px;
display: flex; display: flex;
align-items: center; align-items: center;
gap: 8px; gap: 8px;
flex-wrap: wrap; flex-wrap: wrap;
z-index: 18;
} }
.btn { .btn {
background: var(--bg-card); background: #132038;
color: var(--text-main); color: var(--text-main);
border: 1px solid var(--border-col); border: 1px solid var(--border-col);
border-radius: 5px; border-radius: 5px;
padding: 6px 11px; padding: 6px 11px;
font-size: 12px; font-size: 12px;
font-weight: 600; font-weight: 600;
font-family: var(--font-mono);
cursor: pointer; cursor: pointer;
transition: all 0.15s ease; transition: all 0.15s ease;
} }
@@ -72,22 +82,24 @@
color: #121318; color: #121318;
} }
.search-input { .search-input {
background: #101217; background: var(--bg-well);
color: var(--text-main); color: var(--text-main);
border: 1px solid var(--border-col); border: 1px solid var(--border-col);
border-radius: 5px; border-radius: 5px;
padding: 6px 10px; padding: 6px 10px;
font-size: 12px; font-size: 12px;
font-family: var(--font-mono);
width: 220px; width: 220px;
} }
.search-input:focus { outline: none; border-color: var(--accent-cyan); } .search-input:focus { outline: none; border-color: var(--accent-cyan); }
.filter-select { .filter-select {
background: var(--bg-card); background: var(--bg-well);
color: var(--text-main); color: var(--text-main);
border: 1px solid var(--border-col); border: 1px solid var(--border-col);
border-radius: 5px; border-radius: 5px;
padding: 6px 9px; padding: 6px 9px;
font-size: 12px; font-size: 12px;
font-family: var(--font-mono);
} }
.workspace { .workspace {
flex: 1; flex: 1;
@@ -137,12 +149,12 @@
gap: 5px; gap: 5px;
} }
.coord-pill { .coord-pill {
background: var(--bg-card); background: var(--bg-elevated);
border: 1px solid var(--border-col); border: 1px solid var(--border-col);
color: var(--accent-cyan); color: var(--accent-cyan);
padding: 3px 7px; padding: 3px 7px;
border-radius: 4px; border-radius: 4px;
font-family: monospace; font-family: var(--font-mono);
font-size: 11px; font-size: 11px;
cursor: pointer; cursor: pointer;
} }
@@ -167,11 +179,11 @@
position: absolute; position: absolute;
bottom: 12px; bottom: 12px;
left: 14px; left: 14px;
background: rgba(20, 23, 31, 0.90); background: rgba(12, 19, 36, 0.92);
border: 1px solid var(--border-col); border: 1px solid var(--border-col);
border-radius: 6px; border-radius: 6px;
padding: 7px 12px; padding: 7px 12px;
font-family: monospace; font-family: var(--font-mono);
font-size: 11.5px; font-size: 11.5px;
color: var(--text-muted); color: var(--text-muted);
pointer-events: none; pointer-events: none;
@@ -203,12 +215,12 @@
border-radius: 4px; border-radius: 4px;
font-size: 10.5px; font-size: 10.5px;
font-weight: 700; font-weight: 700;
font-family: monospace; font-family: var(--font-mono);
background: var(--bg-card); background: var(--bg-elevated);
border: 1px solid var(--border-col); border: 1px solid var(--border-col);
} }
.kv-box { .kv-box {
background: var(--bg-card); background: var(--bg-well);
border: 1px solid var(--border-col); border: 1px solid var(--border-col);
border-radius: 6px; border-radius: 6px;
padding: 9px 10px; padding: 9px 10px;
@@ -221,11 +233,11 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 5px; gap: 5px;
font-family: monospace; font-family: var(--font-mono);
font-size: 11px; font-size: 11px;
} }
.eq-list li { .eq-list li {
background: #141720; background: #0c1324;
padding: 6px 8px; padding: 6px 8px;
border-left: 3px solid var(--accent-mint); border-left: 3px solid var(--accent-mint);
border-radius: 3px; border-radius: 3px;
@@ -251,7 +263,7 @@
overflow-y: auto; overflow-y: auto;
} }
.neighbor-item { .neighbor-item {
background: var(--bg-card); background: var(--bg-elevated);
padding: 5px 8px; padding: 5px 8px;
border-radius: 4px; border-radius: 4px;
font-size: 11.5px; font-size: 11.5px;
@@ -262,33 +274,95 @@
border: 1px solid transparent; border: 1px solid transparent;
} }
.neighbor-item:hover { border-color: var(--accent-cyan); } .neighbor-item:hover { border-color: var(--accent-cyan); }
.mobile-graph-drawer-toggles {
display: none;
position: absolute;
top: 10px;
left: 10px;
z-index: 25;
gap: 6px;
}
html[data-device-ui="mobile"] .mobile-graph-drawer-toggles {
display: flex;
}
html[data-device-ui="mobile"] .left-sidebar {
position: absolute;
top: 0;
left: 0;
bottom: 0;
width: min(290px, 86vw);
z-index: 30;
display: none;
box-shadow: 8px 0 28px rgba(0, 0, 0, 0.85);
}
html[data-device-ui="mobile"] .left-sidebar.mobile-open {
display: flex;
}
html[data-device-ui="mobile"] .right-drawer {
position: absolute;
left: 0;
right: 0;
bottom: 0;
width: 100%;
max-height: 54vh;
border-left: none;
border-top: 2px solid var(--accent-cyan);
z-index: 30;
display: none;
box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.85);
}
html[data-device-ui="mobile"] .right-drawer.mobile-open {
display: flex;
}
</style> </style>
</head> </head>
<body> <body>
<header> <header class="hs-plate-g3">
<div class="brand"> <div class="brand">
<h1>ENCYCLOPEDIA OF TECHNOCAPITAL SINGULARITY ZOOLOGY — INTERACTIVE KNOWLEDGE GRAPH</h1> <div class="title-row">
<p>Standalone Sibling Repository (/workspace/encyclopedia-knowledge-graph) • 388 Nodes • 1,282 Deduplicated Edges • Zero Glossary Leak &bull; v2.8.0</p> <span class="dot" style="background:var(--accent-cyan);box-shadow:0 0 10px var(--accent-cyan);" aria-hidden="true"></span>
</div> <h1>ENCYCLOPEDIA OF TECHNOCAPITAL SINGULARITY ZOOLOGY — INTERACTIVE KNOWLEDGE GRAPH</h1>
<div class="toolbar"> </div>
<button class="btn active" data-mode="mode2_radar">Mode 2: ETI Radar (S+ -> D Periphery)</button> <p class="subtitle">388 Nodes • 1,282 Deduplicated Edges • Zero Glossary Leak &bull; v2.17.1</p>
<button class="btn" data-mode="mode1_trophic">Mode 1: Trophic Food-Web</button>
<button class="btn" data-mode="mode3_bipartite">Mode 3: Gen 0 -> Gen 1 Funnel</button>
<button class="btn" data-mode="mode4_hierarchy">Mode 4: 00–08 Folder Grid</button>
<input type="text" id="searchInput" class="search-input" placeholder="Search headword, Ingglish, or AQ (e.g. 125)..." />
<select id="flagFilter" class="filter-select">
<option value="all">Filter: All Nodes</option>
<option value="iso">G4 Isometric Fixed Points (Δ=0)</option>
<option value="twinp">G5 Twin-Prime Mutations</option>
<option value="g3">G3 Quantized Steps</option>
<option value="flex">13 Multi-Build Flex Pivots</option>
<option value="m7">M7_candidate_2026_11_28</option>
</select>
<button class="btn" id="resetViewBtn">Reset View</button>
<button class="btn" id="exportPngBtn">Export PNG</button>
</div> </div>
<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="graphNavCalc" href="/calc/index.html">Calculator</a>
<a class="btn" id="graphNavQuant" href="/quant/index.html" style="border-color:var(--accent-gold);color:var(--accent-gold);">Quant</a>
<a class="btn primary" id="graphNavSelf" aria-current="page" href="/graph/index.html">Graph</a>
<a class="btn" id="graphNavLearn" href="/learn/index.html" style="border-color:var(--accent-mint);color:var(--accent-mint);">Learn</a>
<a class="btn" id="graphNavEng" href="/engineering/index.html">Engineering</a>
<a class="btn" id="graphNavMath" href="/math/index.html">Math</a>
<span class="nav-donate-sep" aria-hidden="true"></span>
<a class="btn-donate-pill" id="graphNavDonate" href="/donate/index.html?from=graph" title="Signal Patronage &amp; Open-Instrument Notes (/donate/)"><span class="donate-pill-emblem" aria-hidden="true">&#x2665;</span><span>DONATE</span></a>
</nav>
</header> </header>
<div class="toolbar hs-subnav-bar" aria-label="Knowledge Graph Mode and Filter Controls">
<button class="btn active" data-mode="mode2_radar">Mode 2: ETI Radar (S+ -> D Periphery)</button>
<button class="btn" data-mode="mode1_trophic">Mode 1: Trophic Food-Web</button>
<button class="btn" data-mode="mode3_bipartite">Mode 3: Gen 0 -> Gen 1 Funnel</button>
<button class="btn" data-mode="mode4_hierarchy">Mode 4: 00–08 Folder Grid</button>
<input type="text" id="searchInput" class="search-input" placeholder="Search headword, Ingglish, or AQ (e.g. 125)..." />
<select id="flagFilter" class="filter-select">
<option value="all">Filter: All Nodes</option>
<option value="iso">G4 Isometric Fixed Points (Δ=0)</option>
<option value="twinp">G5 Twin-Prime Mutations</option>
<option value="g3">G3 Quantized Steps</option>
<option value="flex">13 Multi-Build Flex Pivots</option>
<option value="syzygy">CCRU 9-Sum Numogram Syzygies (1::8, 2::7, 3::6, 4::5)</option>
<option value="m7">M7_candidate_2026_11_28</option>
</select>
<select id="minDegreeFilter" class="filter-select" title="Filter nodes by minimum hub degree (Strategy 3A)">
<option value="0">Degree: All Nodes</option>
<option value="3">Min Degree &ge; 3</option>
<option value="10">Min Degree &ge; 10</option>
<option value="25">Min Degree &ge; 25 (Hubs)</option>
</select>
<button class="btn" id="resetViewBtn">Reset View</button>
<button class="btn" id="exportPngBtn">Export PNG</button>
</div>
<div class="workspace"> <div class="workspace">
<aside class="left-sidebar"> <aside class="left-sidebar">
<div class="panel-section"> <div class="panel-section">
@@ -310,6 +384,10 @@
</aside> </aside>
<div class="canvas-wrap"> <div class="canvas-wrap">
<div class="mobile-graph-drawer-toggles">
<button type="button" class="btn" id="mobileGraphFiltersBtn">&#x2699; Ontology &amp; Filters</button>
<button type="button" class="btn" id="mobileGraphInspectorBtn">&#x24D8; Node Inspector</button>
</div>
<canvas id="graphCanvas"></canvas> <canvas id="graphCanvas"></canvas>
<div class="hud-stats" id="hudStats">Loading Encyclopedia Knowledge Graph...</div> <div class="hud-stats" id="hudStats">Loading Encyclopedia Knowledge Graph...</div>
</div> </div>
@@ -321,10 +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.8.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.8.0"></script> <script src="graph-data.js?v=2.17.1"></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;
@@ -459,12 +538,22 @@
} }
const FLEX_SET = new Set([292, 256, 211, 193, 183, 153, 137, 136, 133, 125, 96, 95, 91, 81]); const FLEX_SET = new Set([292, 256, 211, 193, 183, 153, 137, 136, 133, 125, 96, 95, 91, 81]);
let minDegreeThreshold = 0;
function nodeDigitalRoot9(n) {
const v = Number(n.ing_aq || n.aq_value || 0);
return v > 0 ? (1 + ((v - 1) % 9)) : 0;
}
function nodePassesFilter(n) { function nodePassesFilter(n) {
if (!activeNodeTypes.has(n.node_type)) return false; if (!activeNodeTypes.has(n.node_type)) return false;
if (minDegreeThreshold > 0 && Number(n.degree || 0) < minDegreeThreshold) return false;
if (activeFlag === "iso" && !n.isometric) return false; if (activeFlag === "iso" && !n.isometric) return false;
if (activeFlag === "twinp" && !n.twin_prime) return false; if (activeFlag === "twinp" && !n.twin_prime) return false;
if (activeFlag === "g3" && !n.g3_quantized_step) return false; if (activeFlag === "g3" && !n.g3_quantized_step) return false;
if (activeFlag === "flex" && !(n.is_flex_pivot || FLEX_SET.has(n.ing_aq))) return false; if (activeFlag === "flex" && !(n.is_flex_pivot || FLEX_SET.has(n.ing_aq))) return false;
if (activeFlag === "syzygy") {
const dr = nodeDigitalRoot9(n);
if (dr < 1 || dr > 8) return false;
}
if (activeFlag === "m7" && !((n.classes && n.classes.includes("M7_candidate_2026_11_28")) || n.id.includes("M7"))) return false; if (activeFlag === "m7" && !((n.classes && n.classes.includes("M7_candidate_2026_11_28")) || n.id.includes("M7"))) return false;
if (searchQuery) { if (searchQuery) {
const q = searchQuery.toLowerCase(); const q = searchQuery.toLowerCase();
@@ -513,7 +602,7 @@
ctx.stroke(); ctx.stroke();
ctx.setLineDash([]); ctx.setLineDash([]);
ctx.fillStyle = col + "CC"; ctx.fillStyle = col + "CC";
ctx.font = "bold 10px monospace"; ctx.font = "bold 10px 'DejaVu Sans Mono', monospace";
ctx.textAlign = "center"; ctx.textAlign = "center";
ctx.fillText(txt, 800, 500 - r + 12); ctx.fillText(txt, 800, 500 - r + 12);
}); });
@@ -533,17 +622,19 @@
ctx.lineWidth = 1; ctx.lineWidth = 1;
ctx.stroke(); ctx.stroke();
ctx.fillStyle = "#F5C630"; ctx.fillStyle = "#F5C630";
ctx.font = "bold 11px monospace"; ctx.font = "bold 11px 'DejaVu Sans Mono', monospace";
ctx.textAlign = "center"; ctx.textAlign = "center";
ctx.fillText(txt, x, 30); ctx.fillText(txt, x, 30);
}); });
} }
const egoSet = getNeighborhoodSet(selectedNode); const egoSet = getNeighborhoodSet(selectedNode);
const lodActive = DATA.nodes.length > 500 && camScale < 0.85;
let visNodes = 0, visEdges = 0; let visNodes = 0, visEdges = 0;
DATA.edges.forEach(e => { DATA.edges.forEach(e => {
if (!activeEdgeRels.has(e.relation) || e.source === e.target) return; if (!activeEdgeRels.has(e.relation) || e.source === e.target) return;
if (lodActive && !egoSet && e.relation === "IN_VOLUME") return;
const n1 = nodeMap[e.source]; const n1 = nodeMap[e.source];
const n2 = nodeMap[e.target]; const n2 = nodeMap[e.target];
if (!n1 || !n2 || !nodePassesFilter(n1) || !nodePassesFilter(n2)) return; if (!n1 || !n2 || !nodePassesFilter(n1) || !nodePassesFilter(n2)) return;
@@ -584,9 +675,16 @@
ctx.stroke(); ctx.stroke();
} }
if (inEgo && (n.node_type === "TaxonAssemblageBuild" || n.node_type === "AQCoordinateHub" || (selectedNode && egoSet.has(n.id)) || camScale > 1.35)) { const showLbl = inEgo && (
n.node_type === "TaxonAssemblageBuild" ||
(!lodActive && n.node_type === "AQCoordinateHub") ||
(lodActive && Number(n.degree || 0) >= 8) ||
(selectedNode && egoSet.has(n.id)) ||
camScale > 1.35
);
if (showLbl) {
ctx.fillStyle = "#F3F5FA"; ctx.fillStyle = "#F3F5FA";
ctx.font = n.node_type === "TaxonAssemblageBuild" ? "bold 11px sans-serif" : "10px monospace"; ctx.font = n.node_type === "TaxonAssemblageBuild" ? "bold 11px 'DejaVu Sans Mono', monospace" : "10px 'DejaVu Sans Mono', monospace";
ctx.textAlign = "center"; ctx.textAlign = "center";
ctx.fillText(n.label.slice(0, 32), pos.x, pos.y + r + 12); ctx.fillText(n.label.slice(0, 32), pos.x, pos.y + r + 12);
} }
@@ -610,9 +708,15 @@
titleEl.textContent = "Click any node to inspect its Encyclopedia Article"; titleEl.textContent = "Click any node to inspect its Encyclopedia Article";
badgesEl.innerHTML = ""; badgesEl.innerHTML = "";
bodyEl.innerHTML = `<div class="kv-box">Select any specimen, philosophical operator, ETI build, or AQ coordinate hub on the canvas (or click one of the 13 Flex Pivot pills on the left) to inspect its bidirectional Base-36 AQ telemetry, verified 333/666/777 equations, and Volume PDF link.</div>`; bodyEl.innerHTML = `<div class="kv-box">Select any specimen, philosophical operator, ETI build, or AQ coordinate hub on the canvas (or click one of the 13 Flex Pivot pills on the left) to inspect its bidirectional Base-36 AQ telemetry, verified 333/666/777 equations, and Volume PDF link.</div>`;
const drw = document.getElementById("inspectorDrawer");
if (drw) drw.classList.remove("mobile-open");
draw(); draw();
return; return;
} }
const drwOpen = document.getElementById("inspectorDrawer");
if (drwOpen && document.documentElement.getAttribute("data-device-ui") === "mobile") {
drwOpen.classList.add("mobile-open");
}
titleEl.textContent = n.full_term || n.full_title || n.label; titleEl.textContent = n.full_term || n.full_title || n.label;
badgesEl.innerHTML = `<span class="badge" style="color:${n.color}">${n.node_type}</span>` + badgesEl.innerHTML = `<span class="badge" style="color:${n.color}">${n.node_type}</span>` +
@@ -686,16 +790,28 @@
if (neighbors.length) { if (neighbors.length) {
const nl = document.getElementById("nbrList"); const nl = document.getElementById("nbrList");
neighbors.slice(0, 40).forEach(item => { function renderNeighborRows(limitCount) {
const row = document.createElement("div"); nl.innerHTML = "";
row.className = "neighbor-item"; neighbors.slice(0, limitCount).forEach(item => {
row.innerHTML = `<span style="color:${item.node.color};font-weight:600;">${item.node.label.slice(0, 26)}</span> <span style="font-family:monospace;font-size:10px;color:#9BA3B8;">${item.rel}</span>`; const row = document.createElement("div");
row.addEventListener("click", () => { row.className = "neighbor-item";
selectNode(item.node); row.innerHTML = `<span style="color:${item.node.color};font-weight:600;">${item.node.label.slice(0, 26)}</span> <span style="font-family:var(--font-mono);font-size:10px;color:#9BA3B8;">${item.rel}</span>`;
centerOnNode(item.node); row.addEventListener("click", () => {
selectNode(item.node);
centerOnNode(item.node);
});
nl.appendChild(row);
}); });
nl.appendChild(row); if (neighbors.length > limitCount) {
}); const moreBtn = document.createElement("button");
moreBtn.className = "btn";
moreBtn.style.marginTop = "4px";
moreBtn.textContent = `Show All ${neighbors.length} Neighbors`;
moreBtn.addEventListener("click", () => renderNeighborRows(neighbors.length));
nl.appendChild(moreBtn);
}
}
renderNeighborRows(40);
} }
draw(); draw();
} }
@@ -704,12 +820,13 @@
return { x: (sx - camX) / camScale, y: (sy - camY) / camScale }; return { x: (sx - camX) / camScale, y: (sy - camY) / camScale };
} }
function findNodeAt(wx, wy) { function findNodeAt(wx, wy, minHitRadius) {
const minR = minHitRadius || 6;
for (let i = DATA.nodes.length - 1; i >= 0; i--) { for (let i = DATA.nodes.length - 1; i >= 0; i--) {
const n = DATA.nodes[i]; const n = DATA.nodes[i];
if (!nodePassesFilter(n)) continue; if (!nodePassesFilter(n)) continue;
const pos = n.layouts[currentMode]; const pos = n.layouts[currentMode];
const r = Math.max(6, n.size * 0.42); const r = Math.max(minR, n.size * 0.42);
const dx = wx - pos.x, dy = wy - pos.y; const dx = wx - pos.x, dy = wy - pos.y;
if (dx * dx + dy * dy <= r * r) return n; if (dx * dx + dy * dy <= r * r) return n;
} }
@@ -759,6 +876,85 @@
draw(); draw();
}, { passive: false }); }, { passive: false });
// Strategy 3A (Plan #66): Mobile Multi-Touch (1-Finger Tap/Pan + 2-Finger Pinch-to-Zoom) & Drawer Toggles
const leftSbEl = document.querySelector(".left-sidebar");
const rightDrwEl = document.getElementById("inspectorDrawer");
const mobFltBtn = document.getElementById("mobileGraphFiltersBtn");
const mobInspBtn = document.getElementById("mobileGraphInspectorBtn");
if (mobFltBtn && leftSbEl) {
mobFltBtn.addEventListener("click", () => {
leftSbEl.classList.toggle("mobile-open");
if (rightDrwEl) rightDrwEl.classList.remove("mobile-open");
});
}
if (mobInspBtn && rightDrwEl) {
mobInspBtn.addEventListener("click", () => {
rightDrwEl.classList.toggle("mobile-open");
if (leftSbEl) leftSbEl.classList.remove("mobile-open");
});
}
let touchStartX = 0, touchStartY = 0, touchMoved = false, pinchStartDist = 0, pinchStartScale = 1.0;
canvas.addEventListener("touchstart", e => {
if (e.touches.length === 1) {
const t = e.touches[0];
touchStartX = t.clientX;
touchStartY = t.clientY;
dragStartX = t.clientX - camX;
dragStartY = t.clientY - camY;
touchMoved = false;
isDragging = true;
} else if (e.touches.length === 2) {
isDragging = false;
touchMoved = true;
const dx = e.touches[0].clientX - e.touches[1].clientX;
const dy = e.touches[0].clientY - e.touches[1].clientY;
pinchStartDist = Math.max(10, Math.hypot(dx, dy));
pinchStartScale = camScale;
}
}, { passive: true });
canvas.addEventListener("touchmove", e => {
if (e.touches.length === 1 && isDragging) {
const t = e.touches[0];
if (Math.hypot(t.clientX - touchStartX, t.clientY - touchStartY) > 8) {
touchMoved = true;
}
if (touchMoved) {
e.preventDefault();
camX = t.clientX - dragStartX;
camY = t.clientY - dragStartY;
draw();
}
} else if (e.touches.length === 2) {
e.preventDefault();
const rect = canvas.getBoundingClientRect();
const mx = ((e.touches[0].clientX + e.touches[1].clientX) * 0.5) - rect.left;
const my = ((e.touches[0].clientY + e.touches[1].clientY) * 0.5) - rect.top;
const dx = e.touches[0].clientX - e.touches[1].clientX;
const dy = e.touches[0].clientY - e.touches[1].clientY;
const dist = Math.max(10, Math.hypot(dx, dy));
const newScale = Math.max(0.22, Math.min(4.5, pinchStartScale * (dist / pinchStartDist)));
camX = mx - (mx - camX) * (newScale / camScale);
camY = my - (my - camY) * (newScale / camScale);
camScale = newScale;
draw();
}
}, { passive: false });
canvas.addEventListener("touchend", e => {
if (!touchMoved && e.changedTouches && e.changedTouches.length === 1) {
const t = e.changedTouches[0];
const rect = canvas.getBoundingClientRect();
const wpt = screenToWorld(t.clientX - rect.left, t.clientY - rect.top);
const hit = findNodeAt(wpt.x, wpt.y, 14);
selectNode(hit || null);
}
if (!e.touches || e.touches.length === 0) {
isDragging = false;
}
});
document.querySelectorAll("[data-mode]").forEach(btn => { document.querySelectorAll("[data-mode]").forEach(btn => {
btn.addEventListener("click", () => { btn.addEventListener("click", () => {
document.querySelectorAll("[data-mode]").forEach(b => b.classList.remove("active")); document.querySelectorAll("[data-mode]").forEach(b => b.classList.remove("active"));
@@ -778,12 +974,22 @@
draw(); draw();
}); });
const minDegEl = document.getElementById("minDegreeFilter");
if (minDegEl) {
minDegEl.addEventListener("change", e => {
minDegreeThreshold = parseInt(e.target.value, 10) || 0;
draw();
});
}
document.getElementById("resetViewBtn").addEventListener("click", () => { document.getElementById("resetViewBtn").addEventListener("click", () => {
selectedNode = null; selectedNode = null;
searchQuery = ""; searchQuery = "";
activeFlag = "all"; activeFlag = "all";
minDegreeThreshold = 0;
document.getElementById("searchInput").value = ""; document.getElementById("searchInput").value = "";
document.getElementById("flagFilter").value = "all"; document.getElementById("flagFilter").value = "all";
if (minDegEl) minDegEl.value = "0";
selectNode(null); selectNode(null);
resetCamera(); resetCamera();
}); });
@@ -798,8 +1004,14 @@
window.addEventListener("resize", resizeCanvas); window.addEventListener("resize", resizeCanvas);
resizeCanvas(); resizeCanvas();
// Deep-link query parameter support (?select=aq:137&mode=mode2_radar) // Deep-link query parameter support (?select=aq:137&mode=mode2_radar&filter=syzygy)
const urlParams = new URLSearchParams(window.location.search || ""); const urlParams = new URLSearchParams(window.location.search || "");
const reqFilter = urlParams.get("filter");
if (reqFilter && ["all", "iso", "twinp", "g3", "flex", "syzygy", "m7"].includes(reqFilter)) {
activeFlag = reqFilter;
const flEl = document.getElementById("flagFilter");
if (flEl) flEl.value = reqFilter;
}
const reqMode = urlParams.get("mode"); const reqMode = urlParams.get("mode");
if (reqMode && ["mode1_trophic", "mode2_radar", "mode3_bipartite"].includes(reqMode)) { if (reqMode && ["mode1_trophic", "mode2_radar", "mode3_bipartite"].includes(reqMode)) {
currentMode = reqMode; currentMode = reqMode;
@@ -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.8.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": {