Compare commits

..
16 Commits
Author SHA1 Message Date
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
Hermes Agent 17385fd89f Release v2.8.0: Authentic 2x2 homepage UI closeups and zero-synthetic-data market research & zero-PII telemetry suite (Strategies 1A/1B/2A/2B/2C/3A/3B/4B/4C/5A/5B) 2026-12-01 06:27:22 +00:00
Hermes Agent 7844e6da2f Release v2.7.0: Subtle cybernetic code rain, micro-sigil accents, 2x2 persona UI-closeup homepage showcase, v2.4.0 donate pill single-source-of-truth, and per-commit root README & commit-msg version parity 2026-12-01 05:17:52 +00:00
Hermes Agent 4700965731 Release v2.3.3: Implement PLAN-REMOVE-D-FILTER-DISCUSSION-FROM-ENGINEERING-AND-MATH-HUBS 2026-12-01 03:15:56 +00:00
Hermes Agent 5d55e646f3 Release v2.4.0: Complete PLAN-SQLITE-META-REST-ENDPOINTS-ETAG-AND-VPS-SYNC (HTTP ETag + If-None-Match 304 Not Modified & full SQLite catalog query modes) 2026-12-01 03:12:51 +00:00
Hermes Agent 99d1118c80 Release v2.3.1: Fix polyglot TS/Rust REPL general AST evaluation, cross-language input sync, and HTML escaping in cartridges 2026-12-01 02:45:20 +00:00
Hermes Agent 9f312880bb Author PLAN-HYPERSTITIONSTUDIO-POLYGLOT-SDK-AND-CLIENT-LIBRARIES and normalize untracked highlights path serialization 2026-12-01 02:32:49 +00:00
Hermes Agent df832b2aa5 Release v2.3.0: Eliminate container host paths, add 4-Ring hardened Guile/TS/Rust polyglot lens & 5-state selector, add hs-highlights (untracked output), and expose all 20 MCP/Chatbot REST tools & 14 URN resources 2026-12-01 02:27:19 +00:00
52 changed files with 2317 additions and 1145 deletions

No files matched your search

@@ -4,7 +4,7 @@
- **Standalone Knowledge Graph Repository:** `/workspace/encyclopedia-knowledge-graph` (`branch: main`, `tag: v1.0.0`)
- **Upstream Read-Only Sibling Repository:** `/workspace/technocapital-singularity-zoology` (`v1.7.0`)
- **Knowledge Graph Compiler CLI:** `/workspace/encyclopedia-knowledge-graph/scripts/build_encyclopedia_knowledge_graph.py`
- **Interactive Browser Workbench:** `/workspace/encyclopedia-knowledge-graph/index.html` (`file:///home/m00t/hermes/workspace/encyclopedia-knowledge-graph/index.html`)
- **Interactive Browser Workbench:** `/workspace/encyclopedia-knowledge-graph/index.html` (`https://hyperstitionstud.io/graph/index.html`)
- **Strict Isolation Standard:** Read-Only Upstream Ingestion (`0` Graph/Visualization Concepts Permitted in `/workspace/technocapital-singularity-zoology/taxonomy/glossary-registry.json` or `encyclopedia/`)
---
@@ -124,7 +124,7 @@ python3 /workspace/encyclopedia-knowledge-graph/scripts/build_encyclopedia_knowl
Because `index.html` loads `window.ENCYCLOPEDIA_GRAPH_DATA` synchronously from the co-located `graph-data.js` bundle, operators can open the workbench in two ways:
1. **Direct Local `file://` Open (Zero Server Required):**
Open `file:///home/m00t/hermes/workspace/encyclopedia-knowledge-graph/index.html` directly in Firefox, Chromium, or Brave.
Open `https://hyperstitionstud.io/graph/index.html` directly in Firefox, Chromium, or Brave.
2. **Local HTTP Server (Serving `/workspace` Parent Directory):**
```bash
python3 -m http.server 8090 --bind 127.0.0.1 --directory /workspace
Binary file not shown.
+21 -57
View File
@@ -1,78 +1,42 @@
# `encyclopedia-knowledge-graph` (`v2.0.0`)
# `encyclopedia-knowledge-graph` (`v2.12.0` — `https://hyperstitionstud.io/graph/`)
Standalone open-source interactive knowledge graph workbench, multi-format graph compiler (`JSON`, `GraphML`, `GEXF`, `Obsidian JSON Canvas`), visual atlas renderer, and operator's manual for the **Encyclopedia of Technocapital Singularity Zoology**.
<!-- HS-COMMIT-STATUS:START -->
> **Gitea Commit & Release Telemetry (`v2.12.0` • 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)
> - **Latest Commit Scope (`encyclopedia-knowledge-graph`):** Synchronized v2.12.0 release state across 1 tracked module/artifact surface(s)
> - **Touched Files / Surfaces:** `docs/periodic-harvest-cicd-to-vps-flow-diagram.png`
> - **Live Verified Ecosystem Metrics (`v2.12.0`):** `6` Repositories • `17` CLI Entrypoints • `20` MCP/REST Tools • `14` URN Resources • `63` Verified Web Routes • `388` KG Nodes / `1,282` Edges • `282` Glossary Entries • `4,943` Offline CMUdict Phonetics • `0` Synthetic Data
<!-- HS-COMMIT-STATUS:END -->
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**.
Powered by `hyperstitionstud_io.*` (`urn:io:hyperstitionstud:ns:kg:1.0`). Ingests `technocapital-singularity-zoology` strictly in **read-only mode** with cryptographic pre/post `SHA-256` isolation verification so zero knowledge-graph or visualization concepts ever enter the upstream glossary or encyclopedia.
---
## 5-Minute New-User Onboarding (Public HTTP Clone into Any Directory)
## 5-Minute Verification & Graph Build
```bash
# 1. Create a parent workspace folder anywhere on your machine
mkdir -p ~/hyperstition-workspace && cd ~/hyperstition-workspace
# 2. Clone the peer repositories over public HTTPS (no SSH key required)
git clone https://git.libre.audio/seasharp/hyperstitionstudio-core.git
git clone https://git.libre.audio/seasharp/ingglish-hyperdope-gematria.git
git clone https://git.libre.audio/seasharp/technocapital-singularity-zoology.git
git clone https://git.libre.audio/seasharp/encyclopedia-knowledge-graph.git
git clone https://git.libre.audio/seasharp/haiperdohp-jemaytreeah.git
git clone -b feat/ingglish-aq-corpus https://git.libre.audio/seasharp/ingglish-hyperdope-ci.git
# 2b. Supply the 3 untracked runtime files listed in haiperdohp-jemaytreeah/.gitignore (config.js, db.json, db_lite.json)
cp haiperdohp-jemaytreeah/config.default.js haiperdohp-jemaytreeah/config.js
(cd haiperdohp-jemaytreeah && python3 tools/generate_db_json.py db.txt db.json)
# 3. Create & activate a local Python virtual environment and install dependencies
python3 -m venv .venv
source .venv/bin/activate
pip install --upgrade pip
pip install -r hyperstitionstudio-core/requirements.txt
pip install --no-deps -e ./hyperstitionstudio-core
# 4. Copy the location-independent workspace configuration and run the health check
cp hyperstitionstudio-core/workspace.example.toml ./workspace.toml
hs-doctor
# 5. Rebuild or verify all 6 Knowledge Graph CI gates (location-independent, zero flags needed)
# Rebuild or verify all 6 Knowledge Graph CI gates (location-independent, zero flags needed)
python3 encyclopedia-knowledge-graph/scripts/build_encyclopedia_knowledge_graph.py
python3 encyclopedia-knowledge-graph/scripts/build_encyclopedia_knowledge_graph.py --verify-only
# Run cold-storage archive rotation check for completed architectural plans
hs-archive-rotate
```
---
## Dual Deployment Modes (`Scenario A: file://` Offline Browser vs. `Scenario B: http://` Server)
### Scenario A — 100% Offline In-Browser Application (Zero Server, `file://`)
Open `encyclopedia-knowledge-graph/index.html` directly from your file manager or browser (`xdg-open encyclopedia-knowledge-graph/index.html` on Linux, `open encyclopedia-knowledge-graph/index.html` on macOS). All `388` nodes, `1,282` edges, `4` spatial layout modes, ego-network isolator, PNG canvas export, and `../technocapital-singularity-zoology/encyclopedia/*.pdf` links work offline via `graph-data.js`.
### Scenario B — Static HTTP Server Hosting (`http://`)
- **Option B1 (Serve Parent Workspace Directory so `../technocapital-singularity-zoology/encyclopedia/*.pdf` Resolves):**
```bash
python3 -m http.server 8090 --bind 127.0.0.1 --directory .
# Open: http://127.0.0.1:8090/encyclopedia-knowledge-graph/index.html
```
- **Option B2 (Serve `encyclopedia-knowledge-graph` as a Single Standalone Web Root):**
```bash
python3 encyclopedia-knowledge-graph/scripts/build_encyclopedia_knowledge_graph.py --bundle-encyclopedia
python3 -m http.server 8090 --bind 127.0.0.1 --directory ./encyclopedia-knowledge-graph
# Open: http://127.0.0.1:8090/index.html
```
---
## Repository Structure (Current Operational Files & Docs)
## Repository Structure (`v2.12.0`)
| Path | Description |
| :--- | :--- |
| `OPERATORS-MANUAL-ENCYCLOPEDIA-KNOWLEDGE-GRAPH.{md,pdf}` | Step-by-step Operator's Manual (`7` pages PDF) |
| `OPERATORS-MANUAL-ENCYCLOPEDIA-KNOWLEDGE-GRAPH.{md,pdf}` | Step-by-step Operator's Manual (`7` pages PDF) at `https://hyperstitionstud.io/graph/OPERATORS-MANUAL-ENCYCLOPEDIA-KNOWLEDGE-GRAPH.pdf` |
| `scripts/build_encyclopedia_knowledge_graph.py` | Location-independent graph compiler, 6-gate verifier, and CLI ego-network query engine |
| `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"`) |
| `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/MILESTONE-V2-RELEASE-WINS-AND-LESSONS-LEARNED.{md,pdf}` | `v2.0.0` Milestone Release Report: Wins Achieved, 6-Repo Architecture & 8 Technical Lessons Codified |
| `docs/VPS-AND-GIT-OPERATOR-DEPLOYMENT-GUIDE.{md,pdf}` | Unified Git Operator (`git.libre.audio`) & Linode/Akamai VPS per-repo deployment guide (`v2.0.0`) |
| `docs/cross-repo-dependency-and-audit-flow-diagram.{html,png,pdf,md}` | Visual Dependency Flow Diagram & 3-Stage `BUILD -> TEST -> STAGE_COMMIT` Audit Pipeline |
| `docs/specification-concentric-eti-tier-ring-radar-d-periphery.{md,pdf}` | Geometric & ecological specification of Mode 2 Concentric ETI Tier-Ring Radar (`S+` Center to `D` Periphery) |
| `docs/archive/` | Historical `v1.x` pre-implementation plans and iterative design records (`docs/archive/README.md`) |
| `docs/VPS-AND-GIT-OPERATOR-DEPLOYMENT-GUIDE.{md,pdf}` | Two-Script Git Operator (`git.libre.audio`) & Linode/Akamai VPS deployment guide (`v2.12.0`) |
| `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/archive/completed-plans-archive.tar.gz` & `docs/archive/archive-manifest.json` | Cold-rotated gzipped tar archive of completed architectural plans (`hs-archive-rotate`) |
@@ -40,7 +40,7 @@
| **2** | `ModuleNotFoundError: No module named 'io.hyperstitionstud'; 'io' is not a package`. | `io` is a built-in C stdlib module in Python (`sys.builtin_module_names`), which cannot act as a PEP 420 namespace package root. | Named the top-level Python package `hyperstitionstud_io` (`from hyperstitionstud_io.ciphers import ...`) while retaining `urn:io:hyperstitionstud:*` for XML/JSON URNs. |
| **3** | Citation URL resolution risked coupling to `git remote` subprocesses or fabricating dead global namespace URLs. | Mixing code/schema identity (`hyperstitionstud.io`) with artifact hosting location. | Restricted `resolve_citation_target()` in `hyperstitionstud_io.ci.citation_sources` strictly to `[citations.path_mounts]` in local `workspace.toml`, falling back to the verified local filesystem path (`0%` VCS subprocesses). |
| **4** | Outside `/workspace`, `build_encyclopedia_knowledge_graph.py` dropped all `281` `IN_VOLUME` edges. | `encyclopedia-manifest.json` stores `/workspace/...` in `vol["md_path"]`; checking `Path(vol["md_path"]).exists()` failed in other directories. | Resolved volume Markdown files relative to `upstream_repo / "encyclopedia" / div_id / f"{slug}.md"` first, keeping `encyclopedia-manifest.json`'s locked SHA-256 untouched. |
| **5** | `push-all-to-git-libre-audio.sh` failed under host `zsh`/`sh` with `No module named 'hyperstitionstud_io'`. | `${BASH_SOURCE[0]}` is unset in `zsh`/`sh`, and `PYTHONPATH` had no exported default value. | Used `${BASH_SOURCE[0]:-$0}` with explicit `/home/m00t/hermes/workspace` fallback and `export PYTHONPATH="${WORKSPACE_DIR}/hyperstitionstudio-core/src..."`. |
| **5** | `push-all-to-git-libre-audio.sh` failed under host `zsh`/`sh` with `No module named 'hyperstitionstud_io'`. | `${BASH_SOURCE[0]}` is unset in `zsh`/`sh`, and `PYTHONPATH` had no exported default value. | Used `${BASH_SOURCE[0]:-$0}` with explicit `/workspace` fallback and `export PYTHONPATH="${WORKSPACE_DIR}/hyperstitionstudio-core/src..."`. |
| **6** | `hs-doctor` failed on the VPS in Step 5 (`Verify environment & all 6 Knowledge Graph CI gates`). | In `src/hyperstitionstud_io/config/__init__.py`, `Path(__file__).resolve().parents[2]` stopped at `hyperstitionstudio-core/src` instead of `parents[3]` (`hyperstitionstudio-core`), so `WORKSPACE_ROOT` missed `/srv/hyperstitionstud.io/repos/workspace.toml`. | Updated `CORE_REPO_ROOT` to `parents[3]` and added `Path.cwd() / "workspace.toml"` to the configuration search candidates. |
| **7** | `haiperdohp-jemaytreeah` fresh clones lacked `config.js`, `db.json`, and `db_lite.json` (`404` on `/calc/*`). | `haiperdohp-jemaytreeah/.gitignore` excludes those 3 files, and `generate_db_json.py` requires explicit `db.txt db.json` arguments. | Added explicit Step 2b / Step 5 instructions and automated `cp config.default.js config.js` + `python3 tools/generate_db_json.py db.txt db.json` inside `deploy/sync-vps-repos.sh`. |
| **8** | `sudo apt update` on Debian VPS reported `NO_PUBKEY ABA1F9B8875A6661` on Caddy's Cloudsmith repo. | Cloudsmith rotated the GPG signing key for `dl.cloudsmith.io/public/caddy/stable`. | Added the GPG keyring refresh (`curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' \| sudo gpg --dearmor --yes -o /usr/share/keyrings/caddy-stable-archive-keyring.gpg`) directly into Step 3 of the VPS deployment guide. |
@@ -1,95 +0,0 @@
# Plan: Comprehensive Exposure of All Workspace Capabilities, Compilers, Curricula & Documentation via MCP (`/mcp`) and Chatbot REST API (`/api/v1/*`) (`v2.2.1`)
- **Document ID:** `PLAN-COMPREHENSIVE-MCP-AND-CHATBOT-REST-API-CAPABILITY-EXPOSURE` (`v2.2.1`)
- **Roadmap Status:** **ACTIVE / READY**
- **Core Architectural & Governance Mandates:**
1. **100% Capability & Documentation Coverage Across All 6 Repositories:** Every functional capability, quantitative/macro/Bayesian dataset, Guile Scheme `Z`-combinator evaluator, programmatic SemVer/EROFS diagnostic, `/engineering/` (`E0–E5`) and `/math/` (`M0–M5`) explication hub/subpage, Novice Prerequisite Ladder, `/learn/` module, `/quant/` tutorial episode & `ⓘ` popover glossary, Operator's Manual, stakeholder proposal, active/deferred plan, and cold-rotated historical plan (`completed-plans-archive.tar.gz`) must be inspectable and queryable via both **MCP (`/mcp`)** and the **Chatbot OpenAPI 3.1.0 REST Adapter (`/api/v1/tools/*` & `/api/v1/resources/*`)**.
2. **Zero New Bespoke REST Routes in `src/hyperstitionstud_io/mcp/rest.py`:** All new capabilities are registered in `MCP_TOOLS_SCHEMA` (`src/hyperstitionstud_io/mcp/tools.py`), `STATIC_RESOURCES` / `RESOURCE_TEMPLATES` (`src/hyperstitionstud_io/mcp/resources.py`), and `MCP_PROMPTS` (`src/hyperstitionstud_io/mcp/prompts.py`), so the existing generic `/api/v1/tools/{tool_name}`, `/api/v1/resources/{slug}`, and `/api/v1/openapi.json` adapter exposes them automatically (`0` custom route patterns added to `rest.py`).
3. **100% Read-Only & `ProtectSystem=strict` (`EROFS`) Compliant (`0` LLM Tokens):** Cold-rotated plans inside `completed-plans-archive.tar.gz` are extracted strictly in memory via `tarfile` without touching disk, and every new tool is automatically swept under simulated `ProtectSystem=strict` (`EROFS`) by `src/hyperstitionstud_io/ci/erofs_harness.py`.
- **Target Modules & Files:**
- `/workspace/hyperstitionstudio-core/src/hyperstitionstud_io/mcp/tools.py`
- `/workspace/hyperstitionstudio-core/src/hyperstitionstud_io/mcp/resources.py`
- `/workspace/hyperstitionstudio-core/src/hyperstitionstud_io/mcp/prompts.py`
- `/workspace/hyperstitionstudio-core/src/hyperstitionstud_io/ci/erofs_harness.py`
- `/workspace/hyperstitionstudio-core/tests/test_core_suite.py`
---
## 1. Exhaustive Capability & Documentation Gap Audit (`v2.2.1`)
| Capability / Documentation Domain | Current State in `v2.2.1` | Gap Addressed by This Plan |
| :--- | :--- | :--- |
| **1. `/engineering/` (`E0–E5`) & `/math/` (`M0–M5`) Explication Hubs, Subpages & Novice Prerequisite Ladders** | Generated as static HTML/JSON in `site/engineering/` and `site/math/`, but **not** exposed via MCP tools or `/api/v1/*`. | Expose via new MCP tool **`hs_inspect_engineering_and_math_docs`** and static resources `engineering-manifest` & `math-manifest`. |
| **2. Guile Scheme & `Z`-Combinator Pedagogical Lens (`guile_prelude.scm` & S-Expression Evaluation)** | Runs in browser (`hs-guile-scheme-repl.js`), but cannot be evaluated or queried via MCP or Chatbot REST API. | Expose via new MCP tool **`hs_evaluate_guile_scheme_z_calculus`** (supporting exact rationals `p/q`, float conversion, `β-reduction` trace, and cartridge lookup) + resource `guile-prelude`. |
| **3. Operator's Manuals, Deployment Guides, Stakeholder Proposals & Specifications** | Stored as `.md`/`.pdf` files on disk (`OPERATORS-MANUAL-*`, `VPS-AND-GIT-OPERATOR-DEPLOYMENT-GUIDE`, `ONBOARDING-INGGLISH-AQ`, `proposal-*`, `specification-*`), but only `dossier:{01..71}` is readable via MCP. | Expose via new MCP tool **`hs_inspect_documentation_and_manuals`** (with keyword/passage search, full Markdown retrieval, and PDF deep-link URLs) and resource template `urn:io:hyperstitionstud:doc:{doc_slug}`. |
| **4. Cold-Rotated Completed Plans (`completed-plans-archive.tar.gz`) & Active/Deferred Roadmap Plans** | `76` completed `.md`/`.pdf` files in `encyclopedia-knowledge-graph/docs/archive/completed-plans-archive.tar.gz` + `5` in `zoology/docs/archive/` are indexed in `archive-manifest.json` but not queryable via API. | Expose in-memory `.tar.gz` plan listing and full `.md` extraction inside **`hs_inspect_documentation_and_manuals`** (`archive_rotator.py` in-memory `tarfile` reader — `0` disk writes, `EROFS`-safe). |
| **5. Interactive `/learn/` Curriculum (`Modules 1–6`) & `/quant/` Guided Tour (`5` Episodes) + `27` `ⓘ` Glossary Popovers** | Embedded in `site/learn/learn-app.js`, `site/quant/quant-tutorials.js`, and `site/quant/quant-app.js`, but not exposed via `/mcp` or `/api/v1/*`. | Expose structured `/learn/` curriculum modules, `/quant/` 5-episode tutorial scenes, and all `27` `QUANT_TERM_GLOSSARY` `ⓘ` definitions + PDF deep-links via **`hs_inspect_documentation_and_manuals`**. |
| **6. SQLite FTS5 Unified Catalog Search (`hyperstition-meta.db`), Programmatic Version Heuristics (`--explain-bump`) & `EROFS`/Baseline Audit State** | Implemented in `db/sqlite_meta.py`, `version_sync.py`, and `ci/public_regression.py`, but not exposed via MCP tools. | Expose via new MCP tool **`hs_query_workspace_catalog_and_release_state`**. |
| **7. IPLD `dag-json` (`0x0129`) `CIDv1` Registry Map (`hs_compute_ipld_dag_json_cid`)** | `reg_map` in `mcp/tools.py` only lists 7 v1 registries (`glossary-registry` .. `encyclopedia-graph`). | Expand `reg_map` to include `quant-timeseries`, `real-macro-indicators`, `daily-brief-latest`, `engineering-manifest`, `math-manifest`, and `archive-manifest` (`13` named registries total). |
---
## 2. Detailed Specification of the 4 New MCP / Chatbot REST Tools (`MCP_TOOLS_SCHEMA`)
### 2.1 `hs_inspect_engineering_and_math_docs`
- **Endpoint:** `GET/POST /api/v1/tools/hs_inspect_engineering_and_math_docs` & MCP `tools/call`
- **Parameters:**
- `domain` (`"all" | "engineering" | "math"`, default `"all"`): Select `/engineering/` (`E0–E5`), `/math/` (`M0–M5`), or both.
- `unit_filter` (`string`, default `""`): Optional unit ID or subpage slug (`"E0".."E5"`, `"M0".."M5"`, `"ciphers-and-phonetics"`, `"base36-algebra-and-primes"`, etc.).
- `include_guile_cartridges` (`boolean`, default `True`): Include the 3-column Homoiconic Tri-View (`math_view`, `py_view`, `scm_expr`, and `challenge`) for each unit.
- **Returns:**
- Full live-introspected manifests (`engineering-manifest.json` & `math-manifest.json`), algebraic conservation invariants, CLI scripts table, Novice Prerequisite Ladders (`expertise_level`, `prerequisites`, `public_resources`), subpage explication sections, and Guile Scheme cartridges.
### 2.2 `hs_inspect_documentation_and_manuals`
- **Endpoint:** `GET/POST /api/v1/tools/hs_inspect_documentation_and_manuals` & MCP `tools/call`
- **Parameters:**
- `category` (`"all" | "manuals" | "proposals_and_specs" | "active_and_deferred_plans" | "archived_plans" | "learn_and_tutorials" | "quant_glossary_popovers"`, default `"all"`).
- `doc_id` (`string`, default `""`): Optional document slug or plan ID (e.g. `"OPERATORS-MANUAL-LLM-TOKEN-DEPENDENT-DATA-PIPELINES"`, `"VPS-AND-GIT-OPERATOR-DEPLOYMENT-GUIDE"`, `"PLAN-LOCAL-SERVER-SIDE-WEB-CHATBOT-GUI"`, or any cold-archived plan like `"PLAN-HS-PDF-BUILD-DARK-MODE-AND-GLYPH-SANITIZATION"`).
- `search_query` (`string`, default `""`): Optional case-insensitive keyword or phrase to search across all manuals, plans (including inside `completed-plans-archive.tar.gz` in memory!), `/learn/` modules, and `/quant/` tutorial scenes / `ⓘ` popovers.
- `include_full_markdown` (`boolean`, default `False`): When `True` (or when `doc_id` is specified), returns the complete Markdown text of the matching document(s).
- **Returns:**
- Catalog of all documentation artifacts with canonical web PDF routes (`/graph/*.pdf`, `/quant/*.pdf`, `/zoology/*.pdf`, `/ci/*.pdf`), cold-archive manifest metadata (`bundle_sha256`, `member_count`), matched passages with line numbers, `/learn/` modules, `/quant/` tutorial scenes, and `27` `ⓘ` popover definitions.
### 2.3 `hs_evaluate_guile_scheme_z_calculus`
- **Endpoint:** `GET/POST /api/v1/tools/hs_evaluate_guile_scheme_z_calculus` & MCP `tools/call`
- **Parameters:**
- `expression` (`string`, default `'(aq-base36 "LEMUR")'`): S-expression to evaluate against the preloaded `guile_prelude.scm` environment (`Z`, `limit`, `derivative`, `nth-derivative`, `riemann-integral`, `adaptive-simpson`, `aq-base36`, `digital-root-mod9`, `prime-factors`, `variance-pop`, `eti-score`, `confluence-dose`, `bayes-update`, `evaluate-bump-scope`).
- `include_trace` (`boolean`, default `True`): Return step-by-step `β-reduction` call trace.
- `include_prelude_source` (`boolean`, default `False`): Include the full canonical `publishing/guile_prelude.scm` source code.
- **Returns:**
- Exact rational / symbolic result (`formatted`), floating-point approximation (`float_value`), `β-reduction` trace steps, and optional `guile_prelude.scm` source.
### 2.4 `hs_query_workspace_catalog_and_release_state`
- **Endpoint:** `GET/POST /api/v1/tools/hs_query_workspace_catalog_and_release_state` & MCP `tools/call`
- **Parameters:**
- `fts_query` (`string`, default `""`): Optional SQLite FTS5 full-text search query across `glossary_entries`, `kg_nodes`, and `dossiers` in `.cache/hyperstition-meta.db` (with automatic read-only JSON fallback if the `.cache` DB is absent).
- `include_version_bump_heuristics` (`boolean`, default `True`): Include the zero-token `compute_programmatic_version_bump()` (`--explain-bump`) report.
- `include_baseline_and_telemetry` (`boolean`, default `True`): Include the cached `.cache/internal-test-baseline-latest.json` summary (`erofs_protect_system_strict_audit`, canary values, `CIDv1` map) and `get_api_telemetry_summary()`.
---
## 3. Expanded MCP URN Resources (`src/hyperstitionstud_io/mcp/resources.py`)
Add 7 new static URN resources to `STATIC_RESOURCES` (all automatically accessible via `GET /api/v1/resources/{slug}` and MCP `resources/read`):
1. `urn:io:hyperstitionstud:resource:quant-timeseries` (`site/quant/quant-timeseries.json`)
2. `urn:io:hyperstitionstud:resource:macro-indicators` (`site/quant/real-macro-indicators.json`)
3. `urn:io:hyperstitionstud:resource:daily-brief` (`site/quant/daily-brief-latest.json`)
4. `urn:io:hyperstitionstud:resource:engineering-manifest` (`site/engineering/engineering-manifest.json`)
5. `urn:io:hyperstitionstud:resource:math-manifest` (`site/math/math-manifest.json`)
6. `urn:io:hyperstitionstud:resource:archive-manifest` (`encyclopedia-knowledge-graph/docs/archive/archive-manifest.json`)
7. `urn:io:hyperstitionstud:resource:guile-prelude` (`src/hyperstitionstud_io/publishing/guile_prelude.scm`, `text/x-scheme`)
---
## 4. Synergy with `PLAN-LOCAL-SERVER-SIDE-WEB-CHATBOT-GUI` & Verification Gates
- **Seamless Integration with `PLAN-LOCAL-SERVER-SIDE-WEB-CHATBOT-GUI`:**
- When `PLAN-COMPREHENSIVE-MCP-AND-CHATBOT-REST-API-CAPABILITY-EXPOSURE` is implemented first, `chatbot.py` (`hs_ask_chatbot`) can delegate documentation, manual, archived-plan, `/engineering/`, `/math/`, `/learn/`, Guile Scheme `Z`-combinator, and SQLite FTS5 queries directly to these 4 new MCP tools!
- **Automated Verification (`tests/test_core_suite.py` & `ci/erofs_harness.py`):**
- Because `ci/erofs_harness.py` dynamically iterates over `MCP_TOOLS_SCHEMA`, all 4 new tools are automatically tested under simulated `ProtectSystem=strict` (`EROFS`) on every test run.
- Add explicit assertions in `tests/test_core_suite.py` verifying:
- `hs_inspect_engineering_and_math_docs` returns all `E0–E5` and `M0–M5` units, Novice Prerequisite Ladders, and Guile cartridges,
- `hs_inspect_documentation_and_manuals` reads both live Operator's Manuals and cold-rotated `.md` plans from `completed-plans-archive.tar.gz` in memory under `EROFS`,
- `hs_evaluate_guile_scheme_z_calculus` evaluates `Z`-combinator expressions and returns exact rationals + `β-reduction` traces,
- `hs_query_workspace_catalog_and_release_state` returns SQLite FTS5 search hits, `--explain-bump` heuristics, and the `EROFS` baseline receipt, and
- `hs_compute_ipld_dag_json_cid` supports all 13 workspace registries.
@@ -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.
Binary file not shown.
@@ -1,73 +0,0 @@
# Plan: Expose SQLite `/api/v1/meta/*` REST Endpoints, HTTP `ETag` (`304 Not Modified`), `hs_query_sqlite_catalog` MCP Tool & `sync-vps-repos.sh` Hydration (`v2.0.18`)
- **Document ID:** `PLAN-SQLITE-META-REST-ENDPOINTS-ETAG-AND-VPS-SYNC` (`v2.0.18`)
- **Roadmap Status:** **LONG-TERM INACTIVE PLAN (Deferred)** — Extracted from `PLAN-SQLITE-REST-API-METADATA-DB` and preserved as a long-term architectural specification alongside `PLAN-LLM-TOKEN-ECONOMIZER-AND-VARIANCE-ROUTING`, `PLAN-MEMETIC-GALLERY-SUBPAGE`, and `Episodes 06–09` of *The Encyclopedia Expeditions*; not scheduled for active implementation unless explicitly activated.
- **Prerequisite Module:** `hyperstitionstud_io.db.sqlite_meta` (`hs-db-build` CLI, `hyperstition-catalog.db`, and `api-telemetry.db` automatically populated by `dispatch_rest_v1()` and `dispatch_jsonrpc()`, defined in the active plan `/workspace/encyclopedia-knowledge-graph/docs/PLAN-SQLITE-REST-API-METADATA-DB.{md,pdf}`).
- **Target Modules (When Activated):**
- `/workspace/hyperstitionstudio-core/src/hyperstitionstud_io/mcp/rest.py` & `server.py`
- `/workspace/hyperstitionstudio-core/src/hyperstitionstud_io/mcp/tools.py`
- `/workspace/hyperstitionstudio-core/deploy/hyperstition-mcp.service`
- `/workspace/hyperstitionstudio-core/deploy/sync-vps-repos.sh` & `deploy/test-first-deployment.sh`
---
## 1. Scope of Deferred Integration
Once the standalone `hyperstitionstud_io.db.sqlite_meta` engine (`hyperstition-catalog.db` + `api-telemetry.db`) is built, this long-term plan specifies how to expose it over the public `/api/v1/meta/*` HTTP REST surface and `/mcp` JSON-RPC server and wire automatic RAM-`tmpfs` database hydration into the VPS deployment pipeline:
1. **Five `/api/v1/meta/*` HTTP REST Endpoints:**
Expose `/api/v1/meta/{manifests,search,coordinate/{aq_int},timeseries/query,telemetry}` on `hyperstitionstud_io.mcp.rest` and `server.py`.
2. **HTTP `ETag` / `If-None-Match` (`304 Not Modified`) Conditional Caching Middleware:**
Serve deterministic `ETag` headers backed by `registry_manifests.dag_json_cidv1` (or SHA-256) and short-circuit matching `If-None-Match` requests with `HTTP 304 Not Modified` in `< 0.1 ms`.
3. **MCP Tool `hs_query_sqlite_catalog`:**
Register `hs_query_sqlite_catalog` in `MCP_TOOLS_SCHEMA` (`src/hyperstitionstud_io/mcp/tools.py`) and expose it at `/mcp` (`tools/call`) and `/api/v1/tools/hs_query_sqlite_catalog`.
4. **VPS `tmpfs` Hydration in `deploy/sync-vps-repos.sh` & Systemd Sandboxing:**
Run `hs-db-build` (`"${PYTHON_BIN}" -m hyperstitionstud_io.db.sqlite_meta --build`) inside `deploy/sync-vps-repos.sh` so `/var/www/hyperstitionstud.io/repos/hyperstition-catalog.db` refreshes in the `512 MB` RAM `tmpfs` mount on every pull while keeping `ProtectSystem=strict` and `ReadOnlyIsolationGuard` intact.
---
## 2. `/api/v1/meta/*` REST Endpoints & `hs_query_sqlite_catalog` MCP Tool Specification
### 2.1 REST Endpoints (`src/hyperstitionstud_io/mcp/rest.py`)
| HTTP Method & Path | Query Parameters | What It Queries in SQLite (`< 1 ms`) |
| :--- | :--- | :--- |
| `GET /api/v1/meta/manifests` | `?registry=glossary-registry` (optional) | Calls `query_registry_manifests()` on `registry_manifests` for all compiled schemas/registries, their record counts, `raw_sha256`, `dag_json_cidv1`, and `ETag` headers. |
| `GET /api/v1/meta/search` | `?q=envideea+137&type=all\|glossary\|equation\|node&limit=25` | Calls `query_fts_catalog()` to execute a ranked **FTS5 `BM25` full-text search** across `fts_catalog` (searching glossary terms, 1,850+ equations, 388 graph nodes, and 24 tickers in `< 0.6 ms`). |
| `GET /api/v1/meta/coordinate/{aq_int}` | `aq_int` in `1..999` (e.g. `/api/v1/meta/coordinate/137` or `/api/v1/meta/coordinate/125`) | Calls `query_coordinate_join(aq_int)` for a **Unified Cross-Corpus Coordinate Join**: in a single indexed SQL query, returns every glossary term, bilingual specimen, Knowledge Graph node/edge, `333/666/777` archive equation, and `/quant/` closing-bell bar that locks onto integer coordinate `{aq_int}`. |
| `GET /api/v1/meta/timeseries/query` | `?symbol=NVDA&start=2026-11-10&end=2026-11-30&min_points=1.5` | Calls `query_timeseries_bars()` to execute indexed range queries over `quant_timeseries_bars` (`WHERE symbol = ? AND date_utc BETWEEN ? AND ? AND contingent_points >= ?`). |
| `GET /api/v1/meta/telemetry` | None | Calls `get_api_telemetry_summary()` on `api-telemetry.db`, returning live server uptime, total calls, cache hit rate (`304`), mean/max latency ($\mu\text{s}$) per endpoint, and `100%` isolation verification counts. |
### 2.2 MCP Tool `hs_query_sqlite_catalog` (`src/hyperstitionstud_io/mcp/tools.py`)
- **Tool Name:** `hs_query_sqlite_catalog`
- **Input Schema (`inputSchema`):**
- `mode`: `"manifests" | "search" | "coordinate" | "timeseries" | "telemetry"` (default `"search"`)
- `query`: `str` (FTS5 `BM25` search query when `mode == "search"`)
- `doc_type`: `"all" | "glossary" | "equation" | "node" | "dossier" | "instrument"` (default `"all"`)
- `aq_int`: `int` (`1..999`, required when `mode == "coordinate"`)
- `symbol`: `str` (optional ticker filter when `mode == "timeseries"`)
- `start_date`, `end_date`: `str` (`YYYY-MM-DD` bounds when `mode == "timeseries"`)
- `min_points`: `float` (default `0.0`)
- `limit`: `int` (`1..100`, default `25`)
- **Execution Guarantees:** Runs strictly inside `ReadOnlyIsolationGuard` against `file:/.../hyperstition-catalog.db?mode=ro` (`PRAGMA query_only = ON;`).
---
## 3. HTTP `ETag` / `If-None-Match` (`304 Not Modified`) & VPS Systemd Sandboxing
1. **HTTP `ETag` & `If-None-Match` (`304 Not Modified`) Middleware in `_MCPHTTPHandler` (`mcp/server.py`):**
- Every `GET /api/v1/*` response computes or looks up its deterministic `ETag` (`"<dag_json_cidv1>"` from `registry_manifests` or SHA-256 payload digest).
- If the client sends `If-None-Match: "<etag>"` (or a comma-separated list containing `"<etag>"`), `_MCPHTTPHandler` records a `status_304` hit in `api-telemetry.db` and returns `HTTP 304 Not Modified` with an empty body immediately (`~95%` bandwidth reduction on repeat polls).
2. **Read-Only Catalog DB Hydration in `deploy/sync-vps-repos.sh`:**
- During Step 2 of `deploy/sync-vps-repos.sh`, invoke `"${PYTHON_BIN}" -m hyperstitionstud_io.db.sqlite_meta --build --db "${LIVE_REPOS}/hyperstition-catalog.db"` so the `512 MB` RAM-backed `tmpfs` mount always holds an up-to-date catalog DB after every repository pull.
3. **Preserving `ProtectSystem=strict` & `ReadOnlyIsolationGuard` in `deploy/hyperstition-mcp.service`:**
- Configure `RuntimeDirectory=hyperstition-mcp` (or `PrivateTmp=true` writing to `/tmp/hyperstition-api-telemetry.db`) so `hyperstition-mcp.service` writes `api-telemetry.db` only to an ephemeral tmpfs path while `/srv/hyperstitionstud.io/repos` and `/var/www/hyperstitionstud.io/repos` remain **100% read-only**.
---
## 4. Activation & Verification Checklist (When Promoted from Inactive Backlog)
1. Wire `/api/v1/meta/{manifests,search,coordinate/{aq_int},timeseries/query,telemetry}` and `ETag` / `If-None-Match` (`304 Not Modified`) into `src/hyperstitionstud_io/mcp/rest.py` and `server.py`.
2. Add `hs_query_sqlite_catalog` to `MCP_TOOLS_SCHEMA` in `src/hyperstitionstud_io/mcp/tools.py`.
3. Wire `hs-db-build` into `deploy/sync-vps-repos.sh` and add HTTP checks for `/api/v1/meta/manifests`, `/api/v1/meta/search?q=envideea`, `/api/v1/meta/coordinate/137`, `If-None-Match` -> `304 Not Modified`, and `/api/v1/meta/telemetry` to `tests/test_core_suite.py` and `deploy/test-first-deployment.sh`.
@@ -51,7 +51,7 @@ Operators can supply these three untracked files on the target machine using **e
*(Note: `deploy/sync-vps-repos.sh` checks for `config.js`, `db.json`, and `db_lite.json` automatically and runs both commands if any of the three files is missing).*
- **Option B — Fast `rsync` Transfer of Pre-Built Files from Workstation to VPS (Skips ~3-Min CPU Build):**
```bash
rsync -avP /home/m00t/hermes/workspace/haiperdohp-jemaytreeah/{config.js,db.json,db_lite.json} \
rsync -avP /workspace/haiperdohp-jemaytreeah/{config.js,db.json,db_lite.json} \
<user>@<LINODE_IP>:/srv/hyperstitionstud.io/repos/haiperdohp-jemaytreeah/
```
Binary file not shown.
+40 -1
View File
@@ -7,7 +7,10 @@
> - **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`)
> - **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}`, 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}`
---
@@ -53,3 +56,39 @@
| `PLAN-INTROSPECTIVE-PROTECT-SYSTEM-STRICT-EROFS-TEST-HARNESS.{md,pdf}` | Specification for the single in-process `ProtectSystem=strict` (`EROFS`) test harness (`src/hyperstitionstud_io/ci/erofs_harness.py`) sweeping all `MCP_TOOLS_SCHEMA` tools, `dispatch_rest_v1` routes, and Contract B builders, plus the `34x` stats-card fast-path (`1,186 ms -> ~35 ms` in `quant/cards.py`); now implemented and cached in `.cache/internal-test-baseline-latest.json`. |
| `PLAN-HOMEPAGE-ENGINEERING-AND-MATH-NAVIGATION-WIRING.{md,pdf}` | Specification for wiring `Engineering (/engineering/)` and `Applied Math (/math/)` navigation buttons into `site/index.html`, `/learn/index.html`, `/quant/index.html`, and `hs-public-smoke` Gate `P6`; now implemented across all web surfaces. |
| `PLAN-GUILE-SCHEME-PEDAGOGICAL-TOGGLE-AND-IN-BROWSER-REPL.{md,pdf}` | Specification for the additive `[ λ GUILE SCHEME LENS: OFF / ON ]` toggle, 6 pedagogical modalities grounded in `z-calculus-scheme` (`guile_prelude.scm`), and the offline in-browser Guile Scheme & Z-combinator REPL (`site/assets/hs-guile-scheme-repl.js`) across `/engineering/` (`E0–E5`) and `/math/` (`M0–M5`); now implemented and verified in `tests/test_core_suite.py`. |
| `PLAN-ELIMINATE-CONTAINER-HOST-PATHS-AND-TARGET-PUBLIC-WEB-ROUTES.{md,pdf}` | Specification for eliminating all container host path references across scripts, Python modules, `encyclopedia-graph.json`/`graph-data.js` (`304` nodes rewritten to `https://hyperstitionstud.io/encyclopedia/...`), live `.md`/`.pdf` manuals, and cold-rotated `.tar.gz` archives; now implemented and enforced by `test_offline_urn_namespaces_and_no_external_https_fonts()`. |
| `PLAN-POLYGLOT-PROGRAMMING-LENS-GUILE-TYPESCRIPT-RUST-AND-SELECTOR.{md,pdf}` | Specification for the 3-language polyglot pedagogical lens (`λ Guile Scheme`, `TS TypeScript`, `Rs Rust`), `34px` 5-state segmented radiogroup (`#hsPolyglotModeSelector`), and 4-Ring Zero-Escape Sandbox (`polyglot_sandbox.py` & `hs-guile-scheme-repl.js`); now implemented across `/engineering/` (`E0–E5`) and `/math/` (`M0–M5`). |
| `PLAN-ADHOC-MESSENGER-HIGHLIGHTS-SUMMARY-FOR-ENGINEERS-AND-MATH.{md,pdf}` | Specification for the zero-Web-UI, `<= 2` paragraph (`<= 1,100` char) phone-messenger highlights generator (`hs-highlights` CLI & `hs_generate_highlights_summary`, `src/hyperstitionstud_io/publishing/highlights.py`) writing exclusively to `/workspace/untracked/recent-highlights/`; now implemented and verified in `tests/test_core_suite.py`. |
| `PLAN-COMPREHENSIVE-MCP-AND-CHATBOT-REST-API-CAPABILITY-EXPOSURE.{md,pdf}` | Specification for exposing all `/engineering/`, `/math/`, manuals, cold-rotated `.tar.gz` plans, `/learn/`, `/quant/` popovers, polyglot sandbox evaluations, and SQLite FTS5 / release state diagnostics via `MCP_TOOLS_SCHEMA` (`20` tools) and `STATIC_RESOURCES` (`14` resources) with `0` new custom REST routes in `rest.py`; now implemented in `src/hyperstitionstud_io/mcp/{tools,resources}.py`. |
| `PLAN-SQLITE-META-REST-ENDPOINTS-ETAG-AND-VPS-SYNC.{md,pdf}` | Specification for SQLite catalog query modes (`manifests`, `fts_search`, `coordinate_join`, `timeseries_bars`, `telemetry`), VPS `tmpfs` catalog hydration in `deploy/sync-vps-repos.sh`, and deterministic HTTP `ETag` (`"<dag_json_cidv1>"`) + `If-None-Match` (`304 Not Modified`) conditional caching middleware in `src/hyperstitionstud_io/mcp/{rest,server}.py`; now implemented and verified in `tests/test_core_suite.py`. |
| `PLAN-REMOVE-D-FILTER-DISCUSSION-FROM-ENGINEERING-AND-MATH-HUBS.{md,pdf}` | Specification for surgically removing all references to `assert_zero_d_filter`, `Zero-d-Filter`, `d-filter`, and `10-letter decagram` (`nuoagmhysl`) filters from `/engineering/` and `/math/` while preserving 100% of geometric (`d-periphery`), Confluence Dose ($D_{i,t}$), calculus ($d/dx$), and statistical ($df$) uses of `d`/`D`; now implemented in `src/hyperstitionstud_io/publishing/engineering_docs.py` and guarded in `tests/test_core_suite.py`. |
| `PLAN-SUBTLE-CYBERNETIC-MATRIX-CODE-RAIN-BACKGROUND.{md,pdf}` | Specification for adapting `haiperdohp-jemaytreeah/calc/coderain.js` and offline `font/matrix-font.woff2` into the Subtle Basalt-Phosphor Cybernetic Code Rain background (`site/assets/hs-matrix-coderain.js` & `site/assets/matrix-font.woff2`, `12.5px` glyphs, `24px` sparse columns, `80 ms` `12.5 fps` descent, center-well reading vignette attenuation, and `SUBTLE / CLASSIC / OFF` `Alt+M` toggle) across `/`, `/learn/`, `/quant/`, `/donate/`, `/engineering/*`, and `/math/*`; now implemented and verified in `tests/test_core_suite.py`. |
| `PLAN-CYBERNETIC-AND-OCCULT-MICRO-SIGIL-UI-ACCENTS.{md,pdf}` | Specification for the DejaVu-cmap-verified 8-sigil cybernetic & Hermetic/occult micro-vocabulary (`☿`, `☍`, `☉`, `♄`, `⚚`, `⚛`, `∆`/`◈`, `⊗`/`λ`) across Group 3 `.hs-plate-g3::after` corner watermarks, header namespace seals, section kickers, footer colophons, and `hs-matrix-coderain.js` leading-droplet glints; now implemented in `site/assets/hs-group3-basalt-chamfer.css` and verified in `tests/test_core_suite.py`. |
| `PLAN-AUTOMATED-PER-COMMIT-REPO-ROOT-README-SYNCHRONIZATION-FOR-GITEA.{md,pdf}` | Specification for deterministic root `README.md` synchronization across all 6 repositories (`src/hyperstitionstud_io/publishing/readme_sync.py`, `hs-readme-sync`), the above-the-fold `<!-- HS-COMMIT-STATUS -->` Gitea commit telemetry banner, and idempotent `.git/hooks/pre-commit` hooks across all 6 repositories; now implemented and verified in `tests/test_core_suite.py`. |
| `PLAN-README-AND-GIT-COMMIT-MESSAGE-VERSION-PARITY-FIX.{md,pdf}` | Specification for eliminating mixed version strings (`parent HEAD`) and `.strip()` porcelain truncation (`EADME.md`) in `readme_sync.py`, enforcing `set(re.findall(r"\bv(\d+\.\d+\.\d+)\b", txt)) == {CURRENT_VERSION}` across all 6 root `README.md` files, and installing `.git/hooks/commit-msg` across all 6 repositories; now implemented in `src/hyperstitionstud_io/publishing/readme_sync.py` and verified in `tests/test_core_suite.py`. |
| `PLAN-HOMEPAGE-LAYOUT-GIT-VELOCITY-PRIORITIZATION-AND-DECLUTTER.{md,pdf}` | Specification for the Proposal A (Option 2 Pure Visual Showcase) `2×2` Persona UI-Closeup Showcase Grid (`site/index.html` + `site/assets/closeups/quadrant-{1..4}-*.png`), non-overlapping single-row right-justified `<header>` navigation bar, removal of `-44` static/duplicate elements (`388 Graph Nodes`, `1,282 Typed Edges`, `24 Quant Tickers`, `.stat-row`, body buttons), and proportional relocation of `24 Watchlist Instruments • 14 FRED Macro Series` to `/quant/index.html`; now implemented and verified in `tests/test_core_suite.py`. |
| `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-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`. |
---
## 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>
<h1>Cross-Repository Dependency Graph &amp; Auditable Build &rarr; Test &rarr; Stage_Commit Pipeline</h1>
</div>
<p class="subtitle">Sibling Repositories under /workspace: ingglish-hyperdope-gematria &bull; technocapital-singularity-zoology (v2.2.2) &bull; encyclopedia-knowledge-graph (v2.2.2)</p>
<p class="subtitle">Sibling Repositories under /workspace: ingglish-hyperdope-gematria &bull; technocapital-singularity-zoology (v2.12.0) &bull; encyclopedia-knowledge-graph (v2.12.0)</p>
</div>
<!-- Main SVG Diagram -->
@@ -1,8 +1,8 @@
# Cross-Repository Dependency Graph & Auditable `BUILD -> TEST -> STAGE_COMMIT` Pipeline (`v1.0.0`)
- **Interactive HTML/SVG Diagram:** `/workspace/encyclopedia-knowledge-graph/docs/cross-repo-dependency-and-audit-flow-diagram.html` (`file:///home/m00t/hermes/workspace/encyclopedia-knowledge-graph/docs/cross-repo-dependency-and-audit-flow-diagram.html`)
- **High-Resolution PNG Flow Diagram (`1600x1120`):** `/workspace/encyclopedia-knowledge-graph/docs/cross-repo-dependency-and-audit-flow-diagram.png` (`file:///home/m00t/hermes/workspace/encyclopedia-knowledge-graph/docs/cross-repo-dependency-and-audit-flow-diagram.png`)
- **Companion Printable PDF:** `/workspace/encyclopedia-knowledge-graph/docs/cross-repo-dependency-and-audit-flow-diagram.pdf` (`file:///home/m00t/hermes/workspace/encyclopedia-knowledge-graph/docs/cross-repo-dependency-and-audit-flow-diagram.pdf`)
- **Interactive HTML/SVG Diagram:** `/workspace/encyclopedia-knowledge-graph/docs/cross-repo-dependency-and-audit-flow-diagram.html` (`https://hyperstitionstud.io/graph/docs/cross-repo-dependency-and-audit-flow-diagram.html`)
- **High-Resolution PNG Flow Diagram (`1600x1120`):** `/workspace/encyclopedia-knowledge-graph/docs/cross-repo-dependency-and-audit-flow-diagram.png` (`https://hyperstitionstud.io/graph/docs/cross-repo-dependency-and-audit-flow-diagram.png`)
- **Companion Printable PDF:** `/workspace/encyclopedia-knowledge-graph/docs/cross-repo-dependency-and-audit-flow-diagram.pdf` (`https://hyperstitionstud.io/graph/docs/cross-repo-dependency-and-audit-flow-diagram.pdf`)
---
Binary file not shown.

Before

Width:  |  Height:  |  Size: 284 KiB

After

Width:  |  Height:  |  Size: 285 KiB

+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`
@@ -0,0 +1,143 @@
# PLAN: HyperstitionStudio Polyglot SDK & Zero-Drift Client Libraries (`hs-sdk-build` & `/sdk/`)
**Document ID:** `PLAN-HYPERSTITIONSTUDIO-POLYGLOT-SDK-AND-CLIENT-LIBRARIES`
**Status:** `DEFERRED (Long-Term Inactive — Preserved for Future Reference)`
**Target Ecosystem Version:** `v2.4.0`
**Target Repositories:** `hyperstitionstudio-core`, `encyclopedia-knowledge-graph`
**Author:** m00t & Hermes Agent
**Date:** 2026-11-30
---
## 1. Executive Summary & Architectural Objective
As of `v2.3.0`, `hyperstitionstud.io` exposes **20 deterministic MCP & Chatbot REST API tools** (`/api/v1/tools/*` and JSON-RPC 2.0 `/mcp`), **14 static URN resources** (`/api/v1/resources/*`), **6 parameterized URI templates**, **4 guided prompts**, **5 JSON Schema Draft 2020-12 contracts** (`/schemas/v1/*.schema.json`), and a **3-language polyglot pedagogical lens** (`Guile Scheme`, `TypeScript`, and `Rust`) across `/engineering/` and `/math/`.
This plan specifies the **HyperstitionStudio Polyglot Software Development Kit (`hs-sdk-build` & `/sdk/`)**: a **zero-LLM-token, schema-driven SDK generator and multi-language client library suite** providing ergonomic, strongly-typed programmatic access to `hyperstitionstud.io` across **Python**, **TypeScript / JavaScript (ESM + `.d.ts`)**, **Rust**, and **GNU Guile Scheme**.
### Core Design Principles
1. **Zero-Drift Schema-Driven Code Generation (`0` LLM Tokens):**
- `src/hyperstitionstud_io/sdk/generator.py` (`hs-sdk-build`) introspects `MCP_TOOLS_SCHEMA` (`20` tools), `STATIC_RESOURCES` (`14` URN resources), `RESOURCE_TEMPLATES` (`6` templates), `build_openapi_v1_spec()`, and `site/schemas/v1/*.schema.json` directly in Python (`<40 ms`, `0` LLM tokens) to emit synchronized client libraries, type declarations, and `/sdk/sdk-manifest.json`.
- Adding a 21st tool to `MCP_TOOLS_SCHEMA` automatically generates the corresponding typed method across Python, TypeScript, Rust, and Guile Scheme on the next `hs-sdk-build --sync` pass.
2. **Offline Local Algebra (`LocalAlgebra`) + Remote API Client (`HyperstitionClient`) Dual Architecture:**
- Every SDK target ships with two complementary modules:
- **`LocalAlgebra` (Offline, `0` Network Calls):** Pure, deterministic implementations of Base-36 Alphanumeric Qabbala (`aq_base36`), mod-9 digital root (`dr9`), trial-division prime factorization (`prime_factors`), exact/IEEE-754 population variance (`variance_pop`), Ecological Trophic Index (`eti_score`), 3-state discrete Bayesian updating (`bayes_update`), and RFC 8785 JCS + SHA-256 `CIDv1` (`baguqeera...`) verification.
- **`HyperstitionClient` (Typed Remote & In-Process Client):** Strongly-typed methods for all `20` MCP/REST tools, `14` static URN resources, `6` URI templates, and `4` prompts, targeting `https://hyperstitionstud.io` by default or any custom `base_url` (including `in_process` zero-socket dispatch in Python).
3. **Strict Zero-Synthetic-Data Contract Preservation:**
- SDK response types explicitly model nullable observations (`float | None` in Python, `number | null` in TypeScript, `Option<f64>` in Rust, `#f` / `'null` in Guile Scheme) alongside `data_available: bool` and `status: "No data available"`. The SDK never coerces missing or private-equity observations (`ANTHR-PVT`, weekend/holiday bars) to `0.0` or synthetic defaults.
4. **Global Zero-Host-Path & Two-Script Deployment Compliance:**
- All public SDK download routes, module imports, and documentation deep-links target `https://hyperstitionstud.io/sdk/...` (`Class W`), while all `localhost` developer CLI instructions use container-relative `/workspace/...` paths (`Class L`).
- `hs-sdk-build --sync` is wired into `/workspace/push-all-to-git-libre-audio.sh` and `/srv/hyperstitionstud.io/repos/hyperstitionstudio-core/deploy/sync-vps-repos.sh` so the **Two-Script Deployment Invariant** remains unbroken.
---
## 2. Four Target SDK Languages & Distribution Surfaces
| SDK Target | Generated Artifact Path (Web Route under `https://hyperstitionstud.io/sdk/`) | Runtime Dependencies | Supported Transports | Primary Audience & Use Case |
| :--- | :--- | :--- | :--- | :--- |
| **1. Python SDK (`hyperstitionstud_io.sdk` + standalone single-file `hyperstition_sdk.py`)** | `/sdk/python/hyperstition_sdk.py` (also importable via `from hyperstitionstud_io.sdk import HyperstitionClient, LocalAlgebra`) | **Zero external deps** (Python `>=3.10` stdlib `urllib.request`, `dataclasses`, `fractions.Fraction`, `hashlib`) | `rest` (`/api/v1/*`), `mcp_http` (JSON-RPC 2.0 `/mcp`), and `in_process` (`ReadOnlyIsolationGuard`) | Quantitative researchers, data pipelines, Jupyter notebooks, and AI agents |
| **2. TypeScript / JavaScript ESM SDK (`hyperstition-sdk.mjs` + `hyperstition-sdk.d.ts`)** | `/sdk/ts/hyperstition-sdk.mjs`, `/sdk/ts/hyperstition-sdk.d.ts`, `/sdk/ts/package.json` | **Zero external deps** (Standard `fetch` + `WebCrypto` `crypto.subtle.digest`) | `rest` (`/api/v1/*`) & `mcp_http` (`/mcp`) in Browser `<script type="module">`, Node.js `>=18`, Deno, and Bun | Web developers, browser dashboards, TradingView/quant integrations, and TypeScript apps |
| **3. Rust Typed SDK (`hyperstition_sdk.rs` + `Cargo.toml`)** | `/sdk/rust/hyperstition_sdk.rs`, `/sdk/rust/Cargo.toml` | Pure `std` for `local_algebra`; optional `serde` + `serde_json` + `ureq`/`reqwest` for HTTP transport | `rest` (`/api/v1/*`) & `mcp_http` (`/mcp`) + zero-allocation `local_algebra` | Systems engineers, low-latency quant backtesters, and CLI tool authors |
| **4. GNU Guile Scheme SDK (`hyperstition-sdk.scm`)** | `/sdk/guile/hyperstition-sdk.scm` | GNU Guile `3.0+` (`(web client)`, `(web uri)`, `(ice-9 match)`, plus `guile_prelude.scm`) | `rest` (`/api/v1/*`), `mcp_http` (`/mcp`), & pure functional Z-calculus `local-algebra` | Functional programmers, `z-calculus-scheme` learners, and symbolic algebra explorers |
---
## 3. Detailed SDK Architecture & API Specification
### 3.1 Python SDK (`src/hyperstitionstud_io/sdk/client.py` & `/sdk/python/hyperstition_sdk.py`)
The Python SDK provides both a rich multi-transport package inside `hyperstitionstudio-core` and a self-contained single-file distribution (`/sdk/python/hyperstition_sdk.py`) that external users can download via `curl -sSLO https://hyperstitionstud.io/sdk/python/hyperstition_sdk.py`:
```python
from hyperstitionstud_io.sdk import HyperstitionClient, LocalAlgebra
# 1. Offline Local Algebra (0 network calls, exact rational & Base-36 AQ math)
assert LocalAlgebra.aq_base36("LEMUR") == 114
assert LocalAlgebra.prime_factors(666) == [2, 3, 3, 37]
assert LocalAlgebra.variance_pop_exact([272, 276, 286, 290, 292, 336]) == "4634/9"
assert LocalAlgebra.bayes_update_exact(["1/3", "1/3", "1/3"], ["1/10", "3/10", "6/10"]) == ["1/10", "3/10", "3/5"]
# 2. Remote REST / MCP HTTP or Local In-Process Client
client = HyperstitionClient(
base_url="https://hyperstitionstud.io", # or transport="in_process" inside /workspace
transport="rest", # "rest" | "mcp_http" | "in_process"
verify_cidv1=True, # Auto-verifies RFC 8785 JCS CIDv1 receipts when present
)
# Strongly-typed methods for all 20 MCP/Chatbot REST tools:
aq_res = client.evaluate_aq_and_ingglish(terms=["schizoanalysis", "abstract machine", "synthetic data"])
nvda_ts = client.inspect_quant_timeseries(symbol="NVDA", lens="fund_manager")
anthr_ts = client.inspect_quant_timeseries(symbol="ANTHR-PVT")
assert anthr_ts["instruments"][0]["data_available"] is False # Zero-Synthetic-Data preserved
macro_res = client.inspect_macro_indicators(category="all")
brief_res = client.generate_daily_portfolio_brief(refresh=False)
card_res = client.generate_ticker_stats_card(symbol="NVDA", register="fund_manager")
poly_res = client.evaluate_guile_scheme_z_calculus(expression='aq_base36("LEMUR")', lang="rust")
```
### 3.2 TypeScript / JavaScript ESM SDK (`/sdk/ts/hyperstition-sdk.mjs` & `/sdk/ts/hyperstition-sdk.d.ts`)
Can be imported directly in any browser or Deno/Node.js script from `https://hyperstitionstud.io/sdk/ts/hyperstition-sdk.mjs` (or locally from `/sdk/ts/hyperstition-sdk.mjs`):
```ts
import { HyperstitionClient, LocalAlgebra } from "https://hyperstitionstud.io/sdk/ts/hyperstition-sdk.mjs";
// Offline deterministic algebra (shared with /engineering/ and /math/ TS lens)
const aq = LocalAlgebra.aqBase36("LEMUR"); // 114
const factors = LocalAlgebra.primeFactors(666); // [2, 3, 3, 37]
// Typed REST + MCP JSON-RPC 2.0 client
const client = new HyperstitionClient({ baseUrl: "https://hyperstitionstud.io", transport: "rest" });
const brief = await client.generateDailyPortfolioBrief({ refresh: false });
const nvdaCard = await client.generateTickerStatsCard({ symbol: "NVDA", register: "fund_manager" });
```
### 3.3 Rust SDK (`/sdk/rust/hyperstition_sdk.rs` & `/sdk/rust/Cargo.toml`)
Provides zero-allocation `local_algebra` functions (`aq_base36`, `dr9`, `prime_factors`, `variance_pop`, `eti_score`, `bayes_update`) that compile with `rustc --edition=2021` using only the Rust standard library (`std`), plus typed request/response structs and a `HyperstitionClient` builder for all 20 tools.
### 3.4 GNU Guile Scheme SDK (`/sdk/guile/hyperstition-sdk.scm`)
Integrates `guile_prelude.scm` (applicative-order `Z` combinator, exact rational `p/q` arithmetic, Thomas' Calculus `derivative` / `adaptive-simpson`, and `aq-base36`) with JSON-RPC 2.0 / REST HTTP helpers (`hs-call-tool`, `hs-read-resource`, `hs-verify-isolation`).
---
## 4. Cryptographic `CIDv1` Verification & Zero-Synthetic-Data Guards
1. **Client-Side RFC 8785 JCS + `CIDv1` (`baguqeera...`) Verification (`LocalAlgebra.compute_dag_json_cidv1`):**
- Both the Python and TypeScript SDKs include a pure implementation of RFC 8785 JSON Canonicalization Scheme (JCS) + SHA-256 multihash + RFC 4648 lower-case Base32 (`baguqeera...`) so callers can verify offline that any registry fetched via `/api/v1/resources/<name>` or `/api/v1/tools/hs_compute_ipld_dag_json_cid` is bit-for-bit authentic.
2. **Explicit `NoDataAvailable` Helpers (`ZeroSyntheticDataGuard`):**
- The SDK includes helper predicates (`HyperstitionClient.is_observation_available(bar)`) that check `bar.get("data_available") is True and bar.get("close_usd") is not None` and raise a descriptive `SyntheticFallbackForbiddenError` if user code attempts an unsafe numeric coercion on a `"No data available"` record without explicit filtering.
---
## 5. Interactive `/sdk/` Documentation Hub & MCP/REST Introspection
1. **Group 3 Stealth Basalt `/sdk/` Hub (`site/sdk/index.html`):**
- Renders a Group 3 (`Stealth Basalt Plate & Micro-Pip Signal Ribbon`, `10px/4px` `45°` chamfers) developer portal at `https://hyperstitionstud.io/sdk/` featuring:
- Direct download links and SHA-256 checksums for all 4 language SDK bundles (`/sdk/python/hyperstition_sdk.py`, `/sdk/ts/hyperstition-sdk.mjs`, `/sdk/ts/hyperstition-sdk.d.ts`, `/sdk/rust/hyperstition_sdk.rs`, `/sdk/guile/hyperstition-sdk.scm`, `/sdk/sdk-manifest.json`),
- Synchronized 5-state polyglot code examples (`#hsPolyglotModeSelector`) showing identical SDK workflows across Python, TypeScript, Rust, and Guile Scheme,
- Complete method reference table auto-generated from the `20` `MCP_TOOLS_SCHEMA` entries and `14` `STATIC_RESOURCES`.
- Navigation buttons to `/sdk/` (`SDK (/sdk/)`) wired into `/engineering/index.html` and `/math/index.html`.
2. **Container-Relative Local CLI & Public Web Invocation:**
- **Localhost Terminal CLI (`/workspace`):**
```bash
PYTHONPATH=/workspace/hyperstitionstudio-core/src python3 -m hyperstitionstud_io.sdk.generator --sync
```
- **Public Web & REST Discovery (`https://hyperstitionstud.io`):**
- `https://hyperstitionstud.io/sdk/sdk-manifest.json`
- `https://hyperstitionstud.io/api/v1/resources/sdk-manifest` (`urn:io:hyperstitionstud:resource:sdk-manifest`)
---
## 6. Implementation & Verification Gates
1. **Unit & Cross-Language Parity Gate (`tests/test_core_suite.py`):**
- Verify that Python `HyperstitionClient(transport="in_process")` and `LocalAlgebra` execute all 20 tool methods and match the TypeScript ESM SDK (`/sdk/ts/hyperstition-sdk.mjs` tested via `node --input-type=module -e ...`) on `aqBase36("LEMUR") == 114`, `primeFactors(666) == [2, 3, 3, 37]`, and `computeDagJsonCidv1(...)`.
- Verify that `hs-sdk-build --check` detects zero drift between `MCP_TOOLS_SCHEMA` and `/sdk/sdk-manifest.json`.
- Verify that `run_introspective_erofs_suite()` passes with `0` `EROFS` escapes when `hs-sdk-build` or SDK tools run under simulated `ProtectSystem=strict`.
2. **Two-Script Deployment & 6-Gate Public Smoke (`deploy/test-first-deployment.sh`):**
- Wire `/sdk` symlink creation and `.gz`/`.br` pre-compression into `deploy/sync-vps-repos.sh` and `push-all-to-git-libre-audio.sh` (`0` `/dev/null` redirections).
- Verify `/sdk/index.html`, `/sdk/sdk-manifest.json`, `/sdk/python/hyperstition_sdk.py`, `/sdk/ts/hyperstition-sdk.mjs`, `/sdk/ts/hyperstition-sdk.d.ts`, `/sdk/rust/hyperstition_sdk.rs`, and `/sdk/guile/hyperstition-sdk.scm` return `HTTP 200 OK`.
@@ -1,7 +1,8 @@
# Plan: Lightweight Local Server-Side Web Chatbot GUI (`/chat/` & Dockable Widget) Powered by `hyperstition-mcp.service` & SQLite FTS5 at Zero (`0`) LLM Token Cost (`v2.2.0`)
- **Document ID:** `PLAN-LOCAL-SERVER-SIDE-WEB-CHATBOT-GUI` (`v2.2.0`)
- **Roadmap Status:** **ACTIVE / READY**
- **Document ID:** `PLAN-LOCAL-SERVER-SIDE-WEB-CHATBOT-GUI` (`v2.2.2`)
- **Roadmap Status:** **DEFERRED (Long-Term Inactive — Preserved for Future Reference)**
- **Default UI Placement Choice:** **Option 2 — Dedicated `/chat/` Subpage Only (`site/chat/index.html`) + Single `Ask Corpus (/chat/)` Header Button on `/` (Zero Floating Widget Injection on `/` or Subpages)**
- **Core Architectural & Resource Mandates:**
1. **100% Local on the Web Host (`0` LLM Tokens, `0` External API Keys, `0` GPU RAM):**
Runs entirely inside the existing `hyperstition-mcp.service` Python daemon (`127.0.0.1:8095`) using a deterministic **Hybrid Intent Router + SQLite FTS5 BM25 Full-Text Retriever + 15-Tool MCP Orchestrator (`src/hyperstitionstud_io/mcp/chatbot.py`)**. Consumes `0` metered LLM tokens, `0` external API keys, `< 15 ms` CPU time per query, and `< 5 MB` RSS memory.
@@ -71,23 +72,32 @@ When the browser sends a user question `q` to `POST /api/v1/tools/hs_ask_chatbot
---
## 2. Lightweight Group 3 Stealth Basalt Web Chatbot GUI (`site/assets/hs-chatbot-widget.js` & `/chat/index.html`)
## 2. Review of Pros and Cons of Chatbot Placement on the Homepage (`/`) vs. Elsewhere & Default Choice (`Option 2`)
### 2.1 Floating Dockable Widget Across All Primary Pages (`site/assets/hs-chatbot-widget.js`)
- **Header & Bottom-Left Launcher (`#hsChatbotToggleBtn`):**
- Styled in Group 3 Stealth Basalt (`10px/4px` `45°` chamfers, `34px` height, `#38bdf8` interactive border/pip, keyboard shortcut `Alt+K`).
- Does not eclipse or clutter any page: remains a single compact pill (`[ ◈ ASK CORPUS ]`) until clicked.
- **Interactive Drawer (`#hsChatbotDrawer`, `420 × 540 px`):**
- **Context-Aware Quick-Prompt Chips:** Displays 5 one-click starter questions tailored to the current page (`/`, `/quant/`, `/learn/`, `/engineering/*`, `/math/*`).
- **Instant Local Execution Badge:** Shows `0 LLM Tokens • Local Server-Side Engine (<15 ms) • CIDv1 Verified` in the drawer header.
- **Rich Answer Cards:**
- Formatted answer text + bulleted key metrics,
- Clickable deep-link pills (`Open in /quant/`, `Open in /graph/`, `Glossary PDF #page=N`),
- Inline `900×1260` `.png` Stats Card preview whenever a ticker card is queried,
- Collapsible `<details>` block showing the exact `/api/v1/tools/hs_ask_chatbot` JSON payload and IPLD `CIDv1` receipt.
### 2.1 Baseline for Comparison Prior to Review
- **In the Live Codebase (`v2.2.2`):** No web chatbot GUI exists on any page; the backend Chatbot OpenAPI 3.1.0 REST Adapter (`/api/v1/tools/*`) and MCP server (`/mcp` on `127.0.0.1:8095`) run headlessly while the homepage (`/workspace/hyperstitionstudio-core/site/index.html`) is a pure, static 6-Card Portal (`< 18 KB` HTML, `0` external JS state machines).
- **In the Initial Draft of This Plan:** Originally proposed a Dual-Surface layout injecting a floating dockable widget (`site/assets/hs-chatbot-widget.js`) across `/`, `/quant/`, `/learn/`, `/engineering/*`, and `/math/*` alongside a dedicated `/chat/index.html` workbench.
### 2.2 Dedicated Full-Screen `/chat/` Workbench (`site/chat/index.html`)
- Accessible at `/chat/index.html` (with a navigation button added to `site/index.html` and the widget header `[ Expand Full /chat/ Workbench ↗ ]`).
### 2.2 Pros of Placing the Chatbot on the Homepage (`/`) Rather Than on Subpages
1. **Immediate "Concierge / Wayfinder" Discovery for First-Time Visitors:** A visitor landing on `https://hyperstitionstud.io/` encounters 6 dense domain cards (`388` graph nodes, `22` encyclopedia PDFs, `ETI` tier lists, `24` quant tickers, `FRED` macro series, `/engineering/`, `/math/`). Having the chatbot accessible from `/` lets a newcomer ask *"Where should I start?"* or *"What is NVDA's latest price and Dose?"* and receive a direct deep-link.
2. **Zero Floating-Drawer Collisions with Subpage Workbenches:** The subpages already host dense, specialized interactive overlays in the viewport corners (`/engineering/*` and `/math/*` have the dockable `#hsGuileReplDrawer` and 5-state `#hsPolyglotModeSelector`; `/quant/` has `#quantInfoPopover` and the `410px` canvas; `/graph/` has the full-viewport force/radar explorer). Keeping the chatbot off those subpages prevents overlapping drawers and z-index clutter.
3. **Single-Surface Maintenance & Smaller Subpage Footprint:** Avoids injecting chatbot JS/DOM into 16+ subpage HTML templates and multiple Python compilers (`engineering_docs.py`, `math_docs.py`).
### 2.3 Cons of Placing an Embedded/Floating Chatbot Widget Directly on the Homepage (`/`) Rather Than on a Dedicated `/chat/` Subpage
1. **Risk to the Homepage's Clean 6-Card Grid & Group 3 `90/7/3%` Sensory Budget:** `site/index.html` is a balanced `2 × 3` (6-card) grid with zero JavaScript state machines. Adding an embedded chat panel or floating drawer directly onto `/` would either break the 6-card symmetry or obscure Cards `05` and `06` on laptop/mobile screens, consuming part of the strict `7%` `#38bdf8` interactive highlight budget on `/`.
2. **Loss of Context-In-Place When Reading Deep Subpages:** If the chatbot only lived as an inline widget on `/`, a user reading `/quant/` or `/math/` would have to navigate back to `/` anyway (whereas a dedicated `/chat/` subpage can be kept open in a companion tab).
3. **Constrained Screen Real Estate for Rich Outputs (`900×1260` Stats Cards & Raw JSON/CIDv1 Provenance):** A small corner widget on `/` is far too cramped to comfortably render a `900×1260` Ticker Stats Card PNG preview, a table of `333/666/777` archive equations, and an expandable IPLD `dag-json` `CIDv1` provenance receipt side-by-side.
### 2.4 Comparison of the 3 Placement Options & Designation of Option 2 as the Default Choice
| Placement Option | Homepage (`/`) Impact | Subpage (`/quant/`, `/math/`, `/engineering/`) Impact | Status |
| :--- | :--- | :--- | :---: |
| **Option 1 (Homepage `/` Widget Only — Collapsed Drawer on `/`, Zero Subpage Injection)** | Adds a floating drawer/bar to `/` (`site/index.html`). | Zero clutter on subpages (`0` collision with `#hsGuileReplDrawer` or `#quantInfoPopover`). | Alternative |
| **Option 2 (DEFAULT CHOICE: Dedicated `/chat/` Subpage Only + Single Header Button on `/`)** | **Keeps `/` 100% pure static HTML** (adds only one `Ask Corpus (/chat/)` button in `<header>`). | **Zero clutter on subpages; full-screen split-pane space on `/chat/index.html` for `900×1260` cards & JSON/CIDv1 receipts.** | **DEFAULT** |
| **Option 3 (Initial Draft: Floating Widget on `/` + All Subpages + `/chat/`)** | Adds floating widget to `/` plus `/chat/` link. | High risk of corner-drawer collision with `#hsGuileReplDrawer` on `/engineering/` & `/math/` and `#quantInfoPopover` on `/quant/`. | Superseded |
### 2.5 Specification of the Default Option 2 (`/chat/index.html` Full-Screen Split-Pane Workbench)
- Accessible at `/chat/index.html` via a single `34px`-height Group 3 Stealth Basalt header button (`Ask Corpus (/chat/)`) on `/workspace/hyperstitionstudio-core/site/index.html` (with `0` floating widget scripts injected into `/`, `/quant/`, `/learn/`, `/engineering/*`, or `/math/*`).
- Provides a 2-column Group 3 Stealth Basalt layout:
- **Left Column (`60%`):** Full conversational Q&A history, categorized prompt library across all 8 intents (Watchlist Tickers, FRED Macro & Bayesian Brief, Base-36 & Ingglish Calculator, Glossary & Zoology, Knowledge Graph Hubs, 333/666/777 Archive Equations, Guile Scheme & Z-Calculus, and Novice Onboarding), and exportable `.json` transcript button.
- **Right Column (`40%`):** Live Server-Side Telemetry & Provenance Inspector displaying the triggered MCP tool chain, raw JSON response, IPLD `dag-json` `CIDv1` hash, and any rendered `900×1260` Ticker Stats Card PNG.
@@ -74,4 +74,4 @@ Currently, `/workspace/memes` is an un-remoted local directory in `/workspace`.
### Phase 3: Wire into `deploy/sync-vps-repos.sh`, `test-first-deployment.sh` & `test_core_suite.py`
1. Add `${SUDO} ln -sfn "hyperstitionstudio-core/site/gallery" "${LIVE_REPOS}/gallery"` in `deploy/sync-vps-repos.sh`.
2. Add `/gallery/index.html` and `/gallery/gallery-data.js` to `deploy/test-first-deployment.sh` and `tests/test_core_suite.py`, verify `HTTP 200 OK` across all routes, commit, and push via `/home/m00t/hermes/workspace/push-all-to-git-libre-audio.sh`.
2. Add `/gallery/index.html` and `/gallery/gallery-data.js` to `deploy/test-first-deployment.sh` and `tests/test_core_suite.py`, verify `HTTP 200 OK` across all routes, commit, and push via `/workspace/push-all-to-git-libre-audio.sh`.
@@ -0,0 +1,147 @@
# PLAN: Migrate Final `00:00 UTC` Exegesis Cronjob (`d28b479ec217`) Off `localhost` with First-Class Dual-Mode Support, Offline-First Execution & Anonymous BTC/XMR Token-Budget Funding
**Document ID:** `PLAN-MIGRATE-FINAL-EXEGESIS-CRONJOB-WITH-DUAL-MODE-AND-CRYPTO-FUNDING`
**Status:** `DEFERRED (Long-Term Inactive — Preserved for Future Reference)`
**Target Ecosystem Version:** `v2.4.0`
**Target Repositories:** `hyperstitionstudio-core`, `ingglish-hyperdope-gematria`, `encyclopedia-knowledge-graph`
**Author:** m00t & Hermes Agent
**Date:** 2026-11-30
---
## 1. Executive Summary & Architectural Objective
Following `PLAN-MIGRATE-PERIODIC-DATA-PRODUCTION-FROM-LOCALHOST-TO-VPS` (`v2.0.30`) and `PLAN-CRONJOB-ARCHIVE-ROTATION-ON-HYPERSTITIONSTUD-IO` (`v2.1.0`), only **one** recurring job remained on `localhost`:
- **`d28b479ec217` (`current-events-isopsephic-exegesis-daily-0000-gmt`, `00:00 UTC` / `19:00 EST` Daily)** — which runs `collect_news_aq.py` (Step A, `0` tokens), synthesizes the daily news-wire dossier `<NN>-dossier-news-YYYY-MM-DD.md` under Division `08` *"The Room Filter"* (Step B), and runs `ci_provision_ingglish.py --tier 2 --apply-repo` (Step C, `0` tokens).
This plan completes the migration of the **final recurring cronjob (`d28b479ec217`) off `localhost` onto `hyperstitionstud.io`**, while:
1. **Preserving the current `localhost` Hermes configuration (`execution_mode = "localhost_hermes"`) as a first-class, one-switch option**,
2. **Enforcing `hyperstitionstud.io`'s Offline-First, Zero-External-Network-Dependencies ethos** via a 3-Tier Synthesis Hierarchy (`Tier 1: Offline Local GGUF Weights via llama.cpp` $\rightarrow$ `Tier 2: Optional Anonymous BTC/XMR-Funded Prepaid API` $\rightarrow$ `Tier 3: 100% Deterministic Zero-Token Structural Dossier Compiler`), so that `<NN>-dossier-news-YYYY-MM-DD.md` is guaranteed to compile at `00:00 UTC` even with **zero external LLM API keys, zero cloud tokens, and zero internet access to LLM providers**, and
3. **Integrating an Anonymous BTC (`bc1q...`) & Monero (`XMR` `83ZC...`) Token-Budget & Compute Funding Architecture** connected to `/donate/index.html` (`site/donate/reactor-fuel-status.json`), with strict Zero-Synthetic-Data compliance (`"No data available"` whenever live wallet/credit telemetry is absent).
---
## 2. Three First-Class Execution Topologies (`[exegesis] execution_mode` in `workspace.toml`)
Both `/workspace/workspace.toml` and `/workspace/hyperstitionstudio-core/workspace.example.toml` gain a declarative `[exegesis]` configuration section supporting three first-class operational modes without code edits:
| `execution_mode` Value | Where `00:00 UTC` Exegesis Runs | Status of `localhost` Hermes Cronjob `d28b479ec217` | Synthesis Engine Hierarchy (`hs-exegesis-run`) | External LLM API Dependency |
| :--- | :--- | :--- | :--- | :--- |
| **`"vps_offline_first"` (New Default — Moves Final Cronjob Off `localhost`)** | **`hyperstitionstud.io` VPS** (`hyperstition-utc-rollover-harvest.timer` at `00:00 UTC` Daily) | **Decommissioned / Removed on `localhost`** (`cronjob_manage(action="remove", job_id="d28b479ec217")`, leaving **`0` cronjobs on `localhost`**) | **1.** Local offline GGUF model (`/var/lib/hyperstitionstud.io/models/*.gguf` via `llama-cli --offline`) if present;<br/>**2.** Deterministic Zero-Token Structural Dossier Compiler (`compile_deterministic_news_dossier()`, `0` LLM tokens) | **`0` External LLM Network Calls / `0` API Keys** |
| **`"vps_crypto_funded"` (Autonomous VPS with BTC/XMR Prepaid Token Budget)** | **`hyperstitionstud.io` VPS** (`hyperstition-utc-rollover-harvest.timer` at `00:00 UTC` Daily) | **Decommissioned / Removed on `localhost`** (`0` cronjobs on `localhost`) | **1.** Checks anonymous BTC/XMR-funded prepaid credit ledger (`/etc/hyperstitionstud.io/exegesis-budget.env`, capped at `<= 35,000` tokens/day);<br/>**2.** Automatic zero-downtime fallback to `vps_offline_first` (`local_gguf` $\rightarrow$ `deterministic_structural`) if budget is `$0.00` or offline | Optional isolated `00:00 UTC` call when funded; `100%` offline fallback guaranteed |
| **`"localhost_hermes"` (Preserved First-Class Current Configuration)** | **`localhost` Hermes Agent** (`d28b479ec217` at `00:00 UTC` Daily, pushing to `git.libre.audio`) | **Active on `localhost`** (restorable in one command via `hs-exegesis-run --print-localhost-cron-spec`) | Localhost Hermes agent writes `<NN>-dossier-news-YYYY-MM-DD.md` and pushes to `git.libre.audio`; if `localhost` is asleep past `00:20 UTC`, VPS `run-vps-archive-rotation.sh` optionally backfills via `vps_offline_first` | Metered on `localhost` only; `0` keys on VPS |
---
## 3. Aligning Exegesis with the Offline-First, "Zero External Network Dependencies" Ethos (`src/hyperstitionstud_io/publishing/exegesis_runner.py`)
Why did `d28b479ec217` previously require an LLM agent? Only **Step B** (arranging the already-solved `collect_news_aq.py` `333 / 666 / 777` equations and story clusters into the Markdown dossier `<NN>-dossier-news-YYYY-MM-DD.md` and appending a row to `00-index-and-methodology.md`) used an LLM.
By introducing `src/hyperstitionstud_io/publishing/exegesis_runner.py` (`hs-exegesis-run` CLI & MCP tool `hs_inspect_exegesis_runner_status`), Step A, Step B, and Step C are unified into a deterministic, idempotent pipeline with a **3-Tier Offline-First Synthesis Hierarchy**:
### Tier 1: Airgapped Local CPU GGUF Weights (`synthesis_backend = "local_gguf"`, `0` External Network Calls)
- When a local quantized GGUF weight file (e.g., `Qwen2.5-7B-Instruct-Q4_K_M.gguf` or `Llama-3.1-8B-Instruct-Q4_K_M.gguf`) and `llama-cli` (`llama.cpp`) are present at `/var/lib/hyperstitionstud.io/models/`, `hs-exegesis-run` invokes `llama-cli` inside a network-isolated subprocess (`bwrap --unshare-net` when available).
- Every equation `(word, ing, eng_aq, ing_aq, breakdown = 333/666/777)` is injected from `collect_news_aq.py` as an immutable table block and verified post-generation by `ci_provision_ingglish.py` Gate 4 (`aq_mismatches == 0`).
### Tier 2: Deterministic Zero-Token Structural Exegesis Compiler (`synthesis_backend = "deterministic_structural"`, `0` LLM Tokens, `< 150 ms`)
- 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).
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.
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.
### Tier 3: Optional Anonymous Crypto-Funded Prepaid API (`synthesis_backend = "crypto_funded_api"`)
- Opt-in only when `/etc/hyperstitionstud.io/exegesis-budget.env` is populated and `remaining_tokens_budget >= 35000`; automatically degrades to Tier 1 or Tier 2 on any network error, `HTTP 402`, or budget exhaustion.
---
## 4. Anonymous BTC & Monero (XMR) Funding Architecture for the Exegesis Token & Compute Budget
`hyperstitionstud.io/donate/` already publishes two sovereign, zero-tracker contribution channels:
- **Bitcoin (`BTC // Layer-1`):** `bc1qcgkpl0j2ayxd68haeutfvarjgla2lmz30yd23e` (`AQ("bitcoin") = 152`)
- **Monero (`XMR // Zero-Trace`):** `83ZCDY7YpUHJRwwj4ETL2THYYWVxWti6sbyxvdJ7kGBoWyKR2Wt4of6YyFjmjZqJCjYSwKdWkBK36dhsNzrnwbnvMajDaEJ` (`193`, 44th Prime)
### 4.1 Token Economics of the Daily `00:00 UTC` Exegesis Job
- **Cadence:** `1` run per day (`365` runs/year).
- **Token Footprint (when using LLM synthesis):** `~18,000` input tokens + `~4,000` output tokens = `~22,000` tokens/day (`~660,000` tokens/month).
- **Monthly Cost Envelope:**
- **Pathway A (`vps_offline_first` — Deterministic or Local GGUF):** **`$0.00 / month` marginal token cost** (`100%` covered by existing VPS base lease).
- **Pathway B (`vps_crypto_funded` — Open-Weight / Frontier API via Anonymous XMR/BTC Gateway):** **`~$0.20 to $1.85 USD / month` (`~$2.40 to $22.00 USD / year`)**. A single `$10` equivalent contribution in XMR or BTC funds **5 to 48 months** of daily `00:00 UTC` exegesis runs.
### 4.2 Evaluation of Anonymous Crypto-to-Token & Crypto-to-Compute Pathways
| Pathway | Mechanism | Privacy & KYC Profile | Alignment with Offline-First / Zero-External-Deps Ethos | Recommended Role |
| :--- | :--- | :--- | :--- | :--- |
| **1. Direct XMR/BTC VPS Compute Funding + Local GGUF (`Pathway C1`)** | Patron BTC/XMR funds the VPS host directly (e.g. privacy-native hosts accepting XMR/BTC with zero KYC); exegesis runs locally via `llama.cpp` or `deterministic_structural`. | **Maximum (Zero KYC, Zero External API Traffic, Zero Prompt Logging)** | **100% Aligned:** `0` outbound network requests during Step B exegesis; works on an airgapped LAN. | **Primary Default (`vps_offline_first`)** |
| **2. Anonymous XMR / BTC-Lightning Prepaid Inference Gateways (`Pathway C2`: NanoGPT / PPQ.ai / L402 Macaroons)** | Non-KYC inference gateways (`nano-gpt.com` native XMR/BTC deposit, `ppq.ai` Lightning/XMR, or HTTP `402 Payment Required` L402 Lightning Macaroons) issue a bearer credential or per-call preimage funded directly from a Monero subaddress or Lightning channel. | **High (No account identity, email, or credit card; XMR ring-CT shields sender/receiver graph)** | **Opt-In Secondary (`vps_crypto_funded`):** Outbound HTTPS call occurs only once per 24h inside one-shot `hyperstition-exegesis.service` (never inside `hs-mcp`), with instant fallback to `Pathway C1`. | **First-Class Opt-In for Cloud-Model Prose** |
| **3. Watch-Only / View-Key Local Budget Ledger (`Pathway C3`: `reactor-fuel-status.json`)** | Operator or offline view-only wallet (`monero-wallet-cli --view-only` / BTC descriptor) exports a signed static JSON receipt (`site/donate/reactor-fuel-status.json`) consumed by `hs-exegesis-run` and `/donate/`. | **Maximum (`0` private spend keys ever touch the VPS; `0` third-party blockchain explorer scripts in the browser)** | **100% Aligned:** Browser loads only local static `reactor-fuel-status.json` from `tmpfs` (`0` external RPC calls from visitor browsers). | **Canonical Telemetry & Budget Governor** |
### 4.3 Security & Isolation Invariants for Crypto-Funded Credentials
1. **Zero Private Spend Keys on VPS:** Neither the BTC private key nor the XMR private spend key is ever stored on `hyperstitionstud.io` or in any Git repository. Only public addresses (`bc1q...`, `83ZC...`) and static signed budget receipts (`site/donate/reactor-fuel-status.json`) exist in the webroot.
2. **Process & Environment Isolation:** When `execution_mode = "vps_crypto_funded"` is used, the prepaid token key resides exclusively in `/etc/hyperstitionstud.io/exegesis-budget.env` (`chmod 0600 root:root`), read only by the one-shot `00:00 UTC` runner—never passed to `hyperstition-mcp.service` (`:8095`) or Caddy.
3. **Hard Daily Token Circuit-Breaker (`MAX_DAILY_EXEGESIS_TOKENS = 35,000`):** `hs-exegesis-run` tracks daily token usage in `/var/lib/hyperstitionstud.io/exegesis-budget-state.json`. If a run exceeds the daily cap or the prepaid balance is exhausted (`available_usd_equivalent <= 0`), it automatically switches to `vps_offline_first` (`local_gguf` $\rightarrow$ `deterministic_structural`) so the `00:00 UTC` dossier never fails.
4. **Strict Zero-Synthetic-Data Rule on `/donate/`:** In `site/donate/reactor-fuel-status.json` and `/donate/index.html`, if live wallet/credit balance telemetry has not been populated (`data_available: false`), all balance and runway fields serialize strictly as `null` (`"No data available"`)—never simulated or fabricated numbers.
---
## 5. Step-by-Step Implementation Specification
1. **Create `src/hyperstitionstud_io/publishing/exegesis_runner.py` (`hs-exegesis-run` CLI):**
- Implements:
- `run_daily_exegesis_pipeline(date_utc=None, execution_mode=None, synthesis_backend=None, dry_run=False)`:
- **Idempotency Gate:** Checks whether `/workspace/ingglish-hyperdope-gematria/ingglish-aq-archive/<NN>-dossier-news-YYYY-MM-DD.md` already exists for `target_date_utc`. If present (e.g. already pushed by `localhost` in `localhost_hermes` mode), logs `"already_synthesized": True` and proceeds directly to Step C verification (`0` duplicate work).
- **Step A:** Runs `collect_news_aq.py --date YYYY-MM-DD` (`0` tokens).
- **Step B:** Dispatches according to `[exegesis] execution_mode` and `synthesis_backend` (`local_gguf` $\rightarrow$ `crypto_funded_api` [if enabled & funded] $\rightarrow$ `deterministic_structural`).
- **Step C:** Runs `ci_provision_ingglish.py --tier 2 --apply-repo`, verifies all 4 CI gates (`aq_mismatches == 0`), and updates `site/donate/reactor-fuel-status.json`.
- `--print-localhost-cron-spec`: Prints the exact `cronjob_manage` JSON specification for `d28b479ec217` so an operator can restore `localhost_hermes` mode in one step at any time.
2. **Wire `hs-exegesis-run` into `deploy/run-vps-data-production.sh --window=utc-rollover` (`00:00 UTC` Daily on VPS):**
- Before recomputing `timeseries.py`, `hs-daily-brief`, and `build_encyclopedia_knowledge_graph.py`, `run-vps-data-production.sh --window=utc-rollover` invokes `hs-exegesis-run --auto` so the new UTC day's news dossier `<NN>-dossier-news-YYYY-MM-DD.md` is synthesized, verified by `ci_provision_ingglish.py`, and committed/pushed to `git.libre.audio` autonomously on `hyperstitionstud.io`.
3. **Decommission `d28b479ec217` on `localhost` (`Rule A` Source-Decommissioning) While Preserving First-Class Re-Enablement:**
- Remove `d28b479ec217` from the active `localhost` Hermes cron scheduler via `cronjob_manage(action="remove", job_id="d28b479ec217")` when activating `execution_mode = "vps_offline_first"`, bringing `localhost` recurring cronjobs from `1` down to **`0`**.
- Update `OPERATORS-MANUAL-LLM-TOKEN-DEPENDENT-DATA-PIPELINES.{md,pdf}` with the 3-mode switch table (`vps_offline_first`, `vps_crypto_funded`, `localhost_hermes`), one-command restoration instructions, and **SOP 3: Explicit `localhost` Exegesis Push & VPS Reflection Procedure** (detailed in Section 6 below).
4. **Add Static Reactor Fuel & Exegesis Mode Readout to `/donate/index.html` & `MCP_TOOLS_SCHEMA`:**
- Create `site/donate/reactor-fuel-status.json` (`data_available: false`, `status: "No data available"` for unpopulated balances; live introspection of `execution_mode`, `synthesis_backend`, `btc_address`, `xmr_address`, and `daily_token_cap: 35000`).
- Expose `reactor-fuel-status` via `hs_query_workspace_catalog_and_release_state` and `/donate/index.html`.
5. **Verification Gates (`tests/test_core_suite.py` & `deploy/test-first-deployment.sh`):**
- Test `compile_deterministic_news_dossier()` in `tests/test_core_suite.py` inside a temporary directory and under simulated `ProtectSystem=strict` (`EROFS`), verifying 4-gate `ci_provision_ingglish.py` compliance (`0` AQ mismatches, `0` external network calls, `0` LLM tokens) and strict `"No data available"` behavior on unpopulated wallet balances.
---
## 6. Explicit Documentation Plan for the `localhost` Exegesis Push Procedure in `OPERATORS-MANUAL-LLM-TOKEN-DEPENDENT-DATA-PIPELINES.{md,pdf}`
### 6.1 Audit of Extant Operator PDFs
An audit of all extant Operator's Manual PDFs confirmed a documentation gap:
- In `/workspace/encyclopedia-knowledge-graph/docs/OPERATORS-MANUAL-LLM-TOKEN-DEPENDENT-DATA-PIPELINES.{md,pdf}`, Section 1 (Row 1) and Section 3 (`SOP 1: Running or Backfilling d28b479ec217 for a Specific UTC Date (YYYY-MM-DD) on localhost`) stop at **Step C** (`ci_provision_ingglish.py --tier 2 --apply-repo`).
- While `SOP 2` mentions in a brief clause that `d28b479ec217` *"backfills the missed UTC news dossier ... and pushes to `git.libre.audio`"*, **neither `OPERATORS-MANUAL-LLM-TOKEN-DEPENDENT-DATA-PIPELINES.pdf` nor `VPS-AND-GIT-OPERATOR-DEPLOYMENT-GUIDE.pdf` explicitly documents the step-by-step `localhost` exegesis push procedure**—specifically: which repositories are dirtied by an exegesis run, how downstream time-series/Bayesian artifacts ingest the new dossier's `333 / 666 / 777` equation locks, and the exact commands required to push from `localhost` (`/workspace`) to `git.libre.audio` and reflect the dossier on `https://hyperstitionstud.io`.
### 6.2 Exact Addition to `OPERATORS-MANUAL-LLM-TOKEN-DEPENDENT-DATA-PIPELINES.{md,pdf}` (and Cross-Reference in `VPS-AND-GIT-OPERATOR-DEPLOYMENT-GUIDE.{md,pdf}`)
This plan updates `/workspace/encyclopedia-knowledge-graph/docs/OPERATORS-MANUAL-LLM-TOKEN-DEPENDENT-DATA-PIPELINES.md` and recompiles `/workspace/encyclopedia-knowledge-graph/docs/OPERATORS-MANUAL-LLM-TOKEN-DEPENDENT-DATA-PIPELINES.pdf` via `hs-pdf-build` (`--refresh-all-web-pdfs`) to add **Step D** to the Master Boundary Table and a complete **SOP 3: End-to-End `localhost` Exegesis Push & VPS Reflection Procedure** (strictly using container-relative `/workspace/...` paths):
#### A. Repositories & Files Dirtied on `localhost` by an Exegesis Run (`Steps A–C`)
1. `/workspace/ingglish-hyperdope-gematria`:
- `ingglish-aq-archive/<NN>-dossier-news-YYYY-MM-DD.md` (new Division `08` *"The Room Filter"* dossier),
- `ingglish-aq-archive/00-index-and-methodology.md` (updated master index table & dossier count),
- `ingglish-aq-archive/news-aq-harvest-YYYY-MM-DD.json` (raw deterministic headline + `eng_aq`/`ing_aq` harvest).
2. `/workspace/hyperdope-ci-build` & `/workspace/haiperdohp-jemaytreeah` (via Step C `ci_provision_ingglish.py --tier 2 --apply-repo`):
- `db.txt`, `db_ingglish_entries.txt`, `ci-audit-report.json`, and `ONBOARDING-INGGLISH-AQ.{md,pdf}` (plus untracked `haiperdohp-jemaytreeah/db.json` and `db_lite.json` when regenerated).
3. `/workspace/hyperstitionstudio-core` (Downstream Time-Series & Bayesian Brief Integration):
- `site/quant/quant-timeseries.json` and `site/quant/quant-timeseries-data.js` (`daily_wire_series` and `Dose 2 / Dose 3+` intersection counts for `YYYY-MM-DD`),
- `site/quant/daily-brief-latest.json` (5-Agenda Bayesian regime update incorporating the new wire dossier).
#### B. Two Supported Push & Deployment Workflows from `localhost` (`/workspace`)
- **Workflow 1 — Canonical Two-Script Operator Push & Immediate VPS Reflection (Recommended after Manual / Backfill Runs):**
1. **On `localhost` (`/workspace`):** Run the single master topological push script, which automatically recomputes `quant-timeseries.json` and `daily-brief-latest.json` against the new `<NN>-dossier-news-YYYY-MM-DD.md`, runs `hs-sync-version --auto-bump` (`0` LLM tokens), runs all 7 test suites in `tests/test_core_suite.py`, commits all modified repositories, and pushes commits and tags to `git.libre.audio`:
```bash
/workspace/push-all-to-git-libre-audio.sh
```
2. **On `hyperstitionstud.io` (VPS):** Run the single master VPS hydration script to pull from `git.libre.audio`, rebuild untracked `.cache/hyperstition-meta.db` and `haiperdohp-jemaytreeah/db.json`, and sync the RAM-backed `tmpfs` webroot (`/var/www/hyperstitionstud.io/repos`) with `.br` / `.gz` pre-compression:
```bash
sudo /srv/hyperstitionstud.io/repos/hyperstitionstudio-core/deploy/sync-vps-repos.sh
```
- **Workflow 2 — Unattended `00:00 UTC` `localhost_hermes` Push into the `00:20 UTC` VPS Pull Window:**
1. When `execution_mode = "localhost_hermes"` is active, `d28b479ec217` executes `/workspace/push-all-to-git-libre-audio.sh` as its final deterministic **Step D** terminal command (~`00:05 UTC`) after `ci_provision_ingglish.py --tier 2 --apply-repo` passes with `0` AQ mismatches.
2. At `00:20 UTC`, the VPS `/etc/cron.d/hyperstition-archive-rotate` / `hyperstition-archive-rotate.timer` job (`deploy/run-vps-archive-rotation.sh`) automatically pulls the pushed commits from `git.libre.audio` and hydrates `/var/www/hyperstitionstud.io/repos` (`tmpfs`) with zero manual operator intervention.
@@ -0,0 +1,27 @@
# PLAN: Retained & Deferred Candidate Strategies From `PLAN-PIECEWISE-CODEBASE-MODULARITY-DEDUPLICATION-AND-RESOURCE-ECONOMIZATION` (`Strategies 1B, 1C, 2A, 2C, 3B, 3C, 4B, 4C, 5B, 5C, 6B, 6C, 7B, 7C`)
**Document ID:** `PLAN-PIECEWISE-CODEBASE-MODULARITY-DEFERRED-STRATEGIES`
**Status:** `INACTIVE / DEFERRED FOR FUTURE RE-EVALUATION`
**Parent Plan:** `PLAN-PIECEWISE-CODEBASE-MODULARITY-DEDUPLICATION-AND-RESOURCE-ECONOMIZATION`
**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 all **unaffirmed / deferred** candidate strategies from the stepwise review of `PLAN-PIECEWISE-CODEBASE-MODULARITY-DEDUPLICATION-AND-RESOURCE-ECONOMIZATION` (`Affirmed Strategies: 1A, 2B, 3A, 4A, 5A, 6A, 7A`). No `.pdf` is compiled for this deferred companion.
---
## 2. Preserved Deferred Candidate Strategies
- **Audit Point 1 (`1B` & `1C`):** Superseded by affirmed **`Strategy 1A`** (unified AQ ciphers in `hyperstitionstud_io.ciphers` + `@lru_cache` `load_pillow_font()` and shared Group 3 chamfered plate primitives in `publishing/fonts.py`).
- **Audit Point 2 (`2A` Full `explication_template.py` Hub/Subpage Extraction & `2C`):** Deferred in favor of affirmed **`Strategy 2B`** (`render_polyglot_cartridge_html()` and `_render_prereq_box_html()` shared between `engineering_docs.py` and `math_docs.py` while keeping domain-specific hub and subpage HTML builders separate).
- **Audit Point 3 (`3B` & `3C`):** Superseded by affirmed **`Strategy 3A`** (`st_mtime_ns`-keyed `load_json_cached()` in `config/__init__.py` and stat-memoized `sha256_file()` in `glossary/__init__.py`).
- **Audit Point 4 (`4B` & `4C`):** Superseded by affirmed **`Strategy 4A`** (`src/hyperstitionstud_io/security.py` with `safe_urlopen()` and `PEP 706` `safe_tar_members()`).
- **Audit Point 5 (`5B` & `5C`):** Superseded by affirmed **`Strategy 5A`** (per-inode telemetry schema-init memoization in `db/sqlite_meta.py` and `PRAGMA temp_store = MEMORY`).
- **Audit Point 6 (`6B` & `6C`):** Superseded by affirmed **`Strategy 6A`** (preserving valid `.gz`/`.br` across `rsync` + incremental `mtime`-aware parallel `xargs -P` batch pre-compression in `deploy/sync-vps-repos.sh`).
- **Audit Point 7 (`7B` & `7C`):** Superseded by affirmed **`Strategy 7A`** (shared `_pack_verify_and_write_archive_manifest()` core + per-repo Git citation memoization + single richness guard pass in `publishing/archive_rotator.py`).
@@ -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{G1}}$)<br/>• `Section 2`: Vectors `G3`, `G4`, & `G5` | **1. Missing Vectors `G2` & `G6` in "G1–G6":** Sections 1–2 omit **Vector `G2` (Cross-Generational Twin Locks: $\text{AQ}_{\text{eng}}(w_a) = \text{AQ}_{\text{ing}}(\Phi(w_b))$)** and **Vector `G6` (Multi-Scale Repdigit Closure `333 / 666 / 777`)**!<br/>**2. Undocumented Information-Theoretic Entropy Reduction & SQLite FTS5 BM25 Ranking:** Omits how phonemic projection $\Phi: \Sigma_{\text{eng}}^* \to \Sigma_{\text{ing}}^*$ acts as a lossy homomorphic compression channel ($H(\text{AQ}(\Phi(W))) \le H(\text{AQ}(W))$), and omits the **Okapi BM25** information-retrieval ranking formula used by `fts_catalog` in `sqlite_meta.py`. |
| **Audit Point 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,104 @@
# PLAN: Piecewise Grimoiric Transformation of `/learn/` (`Codex of the 6 Seals, Numogrammatic Syzygy & Talismanic CIDv1 Ledger`, `Audit Points 1–5`, `Rule C` Piecewise Specification)
**Document ID:** `PLAN-PIECEWISE-GRIMOIRIC-LEARN-PAGE`
**Status:** `INACTIVE / DEFERRED (MIGRATED TO docs/plans/inactive/ — 0/5 AUDIT POINTS AFFIRMED)`
**Target Ecosystem Version:** `v2.11.0`
**Target Repositories:** `hyperstitionstudio-core`, `encyclopedia-knowledge-graph`
**Author:** m00t & Hermes Agent
**Date:** 2026-11-30
---
## 1. Ground-Truth Audit: Current `/learn/` Surface (`v2.10.0`) vs. Grimoiric Potential (`Rule C.1`)
Per `Rule C` of `hyperstitionstudio-roadmap-and-release` (**Piecewise Plan Authoring & Stepwise Review Protocol**), we first audit what already exists in `/workspace/hyperstitionstudio-core/site/learn/index.html` and `site/learn/learn-app.js` today (`100%` verified) against how `/learn/` can become a true **Cybernetic & Hermetic Digital Grimoire** while remaining 100% novice-accessible, Group 3 compliant, and schema-compatible (`urn:io:hyperstitionstud:schema:v1:learn-progress-state`):
| Audit Point & `/learn/` Surface | What Exists in `/learn/` Today (`v2.10.0`) | Why It Currently Feels Like a Standard Web Course & How to Make It Grimoiric |
| :--- | :--- | :--- |
| **Audit Point 1**<br/>*Header, Sticky State Bar (`#statePortabilityBar`) & Talismanic Seal Ribbon* | • `<header>` titled `"SELF-PACED INTERACTIVE LEARNING TRACK"`<br/>• `#statePortabilityBar` shows `"0 / 6 Modules Completed (0%)"`, a plain cyan progress bar, `"Download State (.json)"`, and `"dag-json CIDv1: baguqeera..."` | • Currently reads like a generic LMS progress bar.<br/>• **Grimoiric Upgrade:** Frame `#statePortabilityBar` as the **Personal Grimoire & Talismanic Seal Ledger**, displaying a live **6-Seal Planetary/Hermetic 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 **Cryptographic Talisman Seal (`baguqeera...`)**. |
| **Audit Point 2**<br/>*Module Framing (`M01–M06`): Dual-Register Grimoiric Folios & Sigil Seals* | • Cards labeled `Module M01 // Foundation Cipher` .. `Module M06 // Applied Decision Registers` with generic `"Mark Module Complete"` buttons and `"Personal field notes for Module M01..."` textareas | • Lacks ritual/grimoiric structure (no planetary/alchemical seal badges, no canonical Latin/CCRU epigraphs, no `"Consecrate Seal"` / `"Marginalia & Synchronicity Log"` framing).<br/>• **Grimoiric Upgrade:** Give each of the 6 modules (`M01–M06`) its **Hermetic Seal & Folio Title** alongside its clear novice-friendly math explanation (`M01: ☿ Seal I — The Base-36 Cabbala & Lexicon of Names`, `M02: ☉ Seal II — Incantation Over Orthography (The Stripping of Silent Ghost-Mass)`, `M03: ∆ Seal III — The 37×3k Attractor & Zero-Variance Singularity`, `M04: ⊗ Seal IV — Double Articulation & The Two-Gate Daemonic Pact`, `M05: ☍ Seal V — The Concentric Circle of Apex Predators & D-Periphery`, `M06: ♄ Seal VI — The Four Registers & Book of Coordinates`). |
| **Audit Point 3**<br/>*Interactive Numogrammatic Syzygy & Digital Root Readout in `M01` & `M02` Sandboxes* | • `M01` computes `computeAQ(a)` and `[PRIME]`, and `M02` computes `Gen 0 vs Gen 1` drift $\Delta$<br/>• Neither sandbox shows the **Mod-9 Digital Root (`dr_9(n)`), its CCRU `9`-Sum Twin Syzygy (`1::8, 2::7, 3::6, 4::5`), or `37×3k` Repdigit Resonance** | • A practitioner using `M01` or `M02` as a digital grimoire wants to see the **Mod-9 Digital Root (`dr_9`)**, the **CCRU 9-Sum Syzygy Twin (`4::5`, `2::7`, etc.)**, and **1-click `[ + Inscribe Coordinate to Grimoire ]`** directly inside the `M01`/`M02` readout! |
| **Audit Point 4**<br/>*Interactive Talismanic Sigil & Kamea Wheel Visualizer (`M01 / M06`)* | • `#m01Output` and `#m06Output` output plain monospace text only<br/>• No visual sigil/polygonal glyph is drawn from the user's entered word or bookmarked coordinates | • **Grimoiric Upgrade:** Add a deterministic, zero-dependency **Base-36 Planetary Wheel / 9-PointEnneagram Sigil Renderer (`<svg id="grimoireSigilSvg">`)** that traces the character-by-character path of the practitioner's input phrase (`Term A` or `Gen 1 Ingglish` incantation) around the `9` mod-9 chambers (`1..9`) or `36` Base-36 decans, with `[ Inscribe & Export SVG Sigil ]`! |
| **Audit Point 5**<br/>*Module `M06` Bookmarked Coordinate Ledger & Marginalia (`#bookmarkedCoordsList`)* | • `#bookmarkedCoordsList` renders bare pills (`AQ 137 ×`) with no lookup of what specimen/hub/syzygy that coordinate corresponds to | • Clicking or hovering a bookmarked coordinate (`AQ 292`, `AQ 137`, `AQ 666`) in a grimoire should reveal its **Canonical Correspondence & Syzygy (`AQ 292 • dr_9=4 [Syzygy 4::5] • shizohnalizis == abstrakt masheen == sinthetik dayta • [Open in /graph/ ↗]`)**! |
---
## 2. Four Factual Binary Design & Engineering Gates (`G1–G4`, Zero Synthetic Data)
- **`Gate G1` (100% Novice-Accessible Dual-Voice — Grimoiric Atmosphere Without Obscuring First-Principles Math):** Every module retains its crystal-clear novice mathematical explanation while layering authentic Hermetic/CCRU grimoiric folio titles, sigil seals (`☿, ☉, ∆, ⊗, ☍, ♄`), and marginalia framing.
- **`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 sigil geometry, mod-9 syzygy math, and correspondence lookups 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`)
---
### 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: Incantation ] [ ∆ III: Singularity ] [ ⊗ IV: Pact ] [ ☍ V: Circle ] [ ♄ VI: Grimoire ]`) inside `#statePortabilityBar` where clicking any seal scrolls smoothly to that folio (`#card-M01..M06`) and consecrated (completed) seals glow in Gold & Emerald.
- Updates the header and state-bar framing so the `RFC 8785 dag-json CIDv1` digest (`#stateCidBadge`) is presented as the practitioner's verifiable **Cryptographic Talisman Seal (`dag-json CIDv1: baguqeera...`)**.
- **Strategy `1B` (Update Header & Subtitle Copy Only — Minimal Candidate):**
- Changes the title text to include "Digital Grimoire" without adding the interactive 6-Seal Consecration Ribbon to `#statePortabilityBar`.
- **Strategy `1C` (Keep Current LMS-Style Progress Bar Only — Status Quo):**
- Leaves `#statePortabilityBar` unchanged.
---
### Audit Point 2: The Six Folio Cards (`#card-M01` through `#card-M06`) — Hermetic Seals, Epigraphs & Marginalia Framing
- **Strategy `2A` (Dual-Register Grimoiric Folio Headers, Hermetic Seal Badges, Epigraphs & Marginalia Prompts Across `M01–M06` — Recommended Candidate):**
- Upgrades each `.module-card` (`#card-M01`..`#card-M06`) with:
1. A carved **Group 3 Grimoiric Folio Kicker & Seal** (`Folio I • Seal of Mercury [☿] // Module M01`, `Folio II • Seal of Sol [☉] // Module M02`, `Folio III • Seal of the Triad [∆] // Module M03`, `Folio IV • Seal of Double Articulation [⊗] // Module M04`, `Folio V • Seal of the Syzygy [☍] // Module M05`, `Folio VI • Seal of Saturn [♄] // Module M06`),
2. A concise 1-line **Hermetic / Cybermemetic Axiom Banner** above the novice-friendly math explanation, and
3. Grimoiric marginalia labels on `.note-area` (`Grimoire Marginalia & Synchronicity Log for Folio I...`) while keeping all existing DOM IDs (`#chk-M01..M06`, `#note-M01..M06`) 100% intact.
- **Strategy `2B` (Replace Novice Explanations with Purely Esoteric Prose — High-Friction Candidate):**
- Removes the plain-English math explanations in favor of dense occult prose. *(Violates `Gate G1` novice accessibility for Quadrant 03).*
- **Strategy `2C` (Keep Existing Module Titles & Labels — Status Quo):**
- Leaves `M01–M06` headings unchanged.
---
### Audit Point 3: Numogrammatic Mod-9 Digital Root (`dr_9`), `9`-Sum Syzygy Twin & 1-Click Grimoire Inscription in `M01` & `M02`
- **Strategy `3A` (Enrich `#m01Output` & `#m02Output` with Mod-9 Digital Root `dr_9(n)`, CCRU `9`-Sum Syzygy Twin (`1::8, 2::7, 3::6, 4::5`), `37×3k` Attractor Detection & `[ + Inscribe AQ to Grimoire ]` Button — Recommended Candidate):**
- In `M01` (`updateM01Sandbox()`) and `M02` (`updateM02Sandbox()`), augments the live readout with:
- **Mod-9 Digital Root & Syzygy Twin:** e.g. `dr_9(81) = 9 (Repdigit Nexus 9::0)` or `dr_9(292) = 4 (CCRU Twin Syzygy 4::5 -> Demon/Zone Pair)`,
- **Prime & `37×3k` Divisibility Badges**, and
- A 1-click **`[ + Inscribe Coordinate to Grimoire Ledger ]`** button that bookmarks the computed `AQ` value directly into `memoryState.bookmarked_coordinates` (`#bookmarkedCoordsList`)!
- **Strategy `3B` (Add `dr_9(n)` Text Only Without 1-Click Inscription — Partial Candidate):**
- Prints `dr_9` in `#m01Output` without the 1-click bookmark inscription button.
- **Strategy `3C` (Leave `M01` & `M02` Readouts Unchanged — Status Quo):**
- Keeps only the basic sum and prime check.
---
### Audit Point 4: Deterministic Talismanic Sigil & 9-Chamber Enneagram Wheel (`<svg id="grimoireSigilSvg">`)
- **Strategy `4A` (Interactive Deterministic 9-Chamber Numogram / Enneagram SVG Sigil Wheel in `Module M01 / M02` with Gen 0 vs. Gen 1 Overlay & `.svg` Export — Recommended Candidate):**
- Embeds a crisp, zero-dependency Group 3 **`<svg id="grimoireSigilSvg" viewBox="0 0 280 280">`** panel beside `#m01Output` (and reactive to `M01`/`M02` inputs) that plots the **9 Mod-9 Chambers (`1..9`) around a basalt-and-gold Hermetic circle** and traces the deterministic vector path of the input word's character values (`c_1 -> c_2 -> ... -> c_k`), marking the starting glyph with a circle (`☉`), intermediate vertices with cyan nodes, and the terminal sum with a gold seal (`⚚`)—plus a **`[ Download Talisman Sigil (.svg) ]`** button!
- **Strategy `4B` (Static Decorative SVG Ornament Only — Non-Interactive Candidate):**
- Adds a static decorative SVG border that does not respond to the user's typed words.
- **Strategy `4C` (Text-Only Readouts, No Sigil Wheel — Status Quo):**
- Omits visual sigil generation.
---
### Audit Point 5: Annotated Bookmarked Coordinate Correspondences & Direct `/graph/` Ritual Links in `Module M06` (`#bookmarkedCoordsList`)
- **Strategy `5A` (Interactive Coordinate Correspondence Inspector Card `#bookmarkCorrespondenceBox` + Direct `/graph/?select=aq:<N>` Launch — Recommended Candidate):**
- Enhances `#bookmarkedCoordsList` in `Module M06` so each bookmarked coordinate pill (`AQ 292`, `AQ 137`, `AQ 666`, etc.) displays its mod-9 digital root badge, and clicking a pill inspects its **Canonical Grimoire Correspondence** in `#bookmarkCorrespondenceBox` (showing its known `Gen 1 Ingglish` equivalence lock from the corpus, its `dr_9` syzygy twin `1::8..4::5`, prime/repdigit status, and a 1-click `[ Open aq:<N> in Knowledge Graph Radar ↗ ]` link, alongside a `[ Remove × ]` action).
- **Strategy `5B` (Tooltip `title` Attribute Only on Pills — Minimal Candidate):**
- Adds a hover `title` tooltip to `.coord-pill` without an inline correspondence inspector box or `/graph/` launcher.
- **Strategy `5C` (Keep Click-to-Delete Pills Only — Status Quo):**
- Clicking a pill immediately deletes it without showing its correspondence.
---
## 4. Summary Matrix of Audit Points `1–5` for Stepwise Review
| Audit Point | Target `/learn/` Surface | Strategy `A` (Full Grimoiric Upgrade — Novice-Friendly + Group 3 Compliant) | Strategy `B` (Minimal / Partial Change) | Strategy `C` (Status Quo) |
| :--- | :--- | :--- | :--- | :--- |
| **Point 1** | **Header & `#statePortabilityBar`** | **`1A`:** 6-Seal Consecration Ribbon (`[☿ I]..[♄ VI]`) + Cryptographic `CIDv1` Talisman Seal framing | **`1B`:** Header text change only | **`1C`:** Keep current progress bar |
| **Point 2** | **Folios `M01–M06` Cards** | **`2A`:** Dual-register Grimoiric Folio titles, Hermetic seals (`☿, ☉, ∆, ⊗, ☍, ♄`), epigraphs & Marginalia prompts (preserving novice math clarity) | **`2B`:** Replace novice math with dense esoteric prose | **`2C`:** Keep current module titles |
| **Point 3** | **`M01` & `M02` Incantation Readouts** | **`3A`:** Add Mod-9 Digital Root `dr_9`, CCRU `9`-Sum Syzygy Twin (`1::8..4::5`), & `[+ Inscribe Coordinate to Grimoire]` button | **`3B`:** Add `dr_9` text only | **`3C`:** Keep current readout |
| **Point 4** | **Talismanic Sigil Generator** | **`4A`:** Interactive 9-Chamber Enneagram/Numogram `<svg id="grimoireSigilSvg">` tracing the word's vector path + `.svg` download | **`4B`:** Static decorative SVG only | **`4C`:** No SVG sigil wheel |
| **Point 5** | **`M06` Coordinate Bookmarks** | **`5A`:** Interactive `#bookmarkCorrespondenceBox` showing `Gen 1` locks, `dr_9` syzygy twin, & `[Open in /graph/ ↗]` link | **`5B`:** Hover tooltip only | **`5C`:** Click-to-delete only |
@@ -0,0 +1,31 @@
# 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. Retained for Future Implementation (`Strategy 1A`)
- **Strategy `1A` (Pre-Generated Offline Neural TTS `.mp3` Audio Clips for All 25 Scenes `site/quant/audio/ep01-s1.mp3 .. ep05-s5.mp3` + `<audio id="tutVoicePlayer">` Primary Playback):**
- Retained for future implementation if offline pre-synthesized `.mp3` voice tracks are desired in addition to the synchronous Web Speech API `window.speechSynthesis.speak()` narration implemented under affirmed `Strategy 1B`.
---
## 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,115 @@
{
"version": "2.12.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-CODEBASE-MODULARITY-DEFERRED-STRATEGIES",
"PLAN-PIECEWISE-COMPLETE-MATHEMATICS-AND-INFO-SCIENCE-EXPLICATION",
"PLAN-PIECEWISE-COMPLETE-SOFTWARE-ENGINEERING-EXPLICATION",
"PLAN-PIECEWISE-GRIMOIRIC-LEARN-PAGE",
"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.12.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.12.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.12.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.12.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.12.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.12.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": "baguqeeraeryqlcsii6bybwjh3eefkm6akcpa2d3pny2lrlhkigiqepbvgtxq"
}
Binary file not shown.
+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`
+305 -305
View File
File diff suppressed because it is too large. Load diff
+305 -305
View File
File diff suppressed because it is too large. Load diff
+69 -15
View File
@@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Encyclopedia of Technocapital Singularity Zoology — Interactive Knowledge Graph (v2.2.2)</title>
<title>Encyclopedia of Technocapital Singularity Zoology — Interactive Knowledge Graph (v2.12.0)</title>
<style>
:root {
--bg-canvas: #020617;
@@ -268,7 +268,7 @@
<header>
<div class="brand">
<h1>ENCYCLOPEDIA OF TECHNOCAPITAL SINGULARITY ZOOLOGY — INTERACTIVE KNOWLEDGE GRAPH</h1>
<p>Standalone Sibling Repository (/workspace/encyclopedia-knowledge-graph) • 388 Nodes • 1,282 Deduplicated Edges • Zero Glossary Leak &bull; v2.2.2</p>
<p>Standalone Sibling Repository (/workspace/encyclopedia-knowledge-graph) • 388 Nodes • 1,282 Deduplicated Edges • Zero Glossary Leak &bull; v2.12.0</p>
</div>
<div class="toolbar">
<button class="btn active" data-mode="mode2_radar">Mode 2: ETI Radar (S+ -> D Periphery)</button>
@@ -282,8 +282,15 @@
<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>
@@ -321,10 +328,10 @@
</aside>
</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;">
<span class="hs-lemur-credit">hyperstitionstud.io/graph v2.2.2 &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.12.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>
</footer>
<script src="graph-data.js?v=2.2.2"></script>
<script src="graph-data.js?v=2.12.0"></script>
<script>
(function() {
const DATA = (window.HyperstitionStudio && window.HyperstitionStudio.EncyclopediaGraphData) || window.ENCYCLOPEDIA_GRAPH_DATA;
@@ -459,12 +466,22 @@
}
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) {
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 === "twinp" && !n.twin_prime) 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 === "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 (searchQuery) {
const q = searchQuery.toLowerCase();
@@ -540,10 +557,12 @@
}
const egoSet = getNeighborhoodSet(selectedNode);
const lodActive = DATA.nodes.length > 500 && camScale < 0.85;
let visNodes = 0, visEdges = 0;
DATA.edges.forEach(e => {
if (!activeEdgeRels.has(e.relation) || e.source === e.target) return;
if (lodActive && !egoSet && e.relation === "IN_VOLUME") return;
const n1 = nodeMap[e.source];
const n2 = nodeMap[e.target];
if (!n1 || !n2 || !nodePassesFilter(n1) || !nodePassesFilter(n2)) return;
@@ -584,7 +603,14 @@
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.font = n.node_type === "TaxonAssemblageBuild" ? "bold 11px sans-serif" : "10px monospace";
ctx.textAlign = "center";
@@ -686,16 +712,28 @@
if (neighbors.length) {
const nl = document.getElementById("nbrList");
neighbors.slice(0, 40).forEach(item => {
const row = document.createElement("div");
row.className = "neighbor-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>`;
row.addEventListener("click", () => {
selectNode(item.node);
centerOnNode(item.node);
function renderNeighborRows(limitCount) {
nl.innerHTML = "";
neighbors.slice(0, limitCount).forEach(item => {
const row = document.createElement("div");
row.className = "neighbor-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>`;
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();
}
@@ -778,12 +816,22 @@
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", () => {
selectedNode = null;
searchQuery = "";
activeFlag = "all";
minDegreeThreshold = 0;
document.getElementById("searchInput").value = "";
document.getElementById("flagFilter").value = "all";
if (minDegEl) minDegEl.value = "0";
selectNode(null);
resetCamera();
});
@@ -798,8 +846,14 @@
window.addEventListener("resize", 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 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");
if (reqMode && ["mode1_trophic", "mode2_radar", "mode3_bipartite"].includes(reqMode)) {
currentMode = reqMode;
@@ -51,7 +51,7 @@ except ImportError:
return f"urn:io:hyperstitionstud:{domain}:{entity_type}:{entity_id}"
UPSTREAM_REPO_DEFAULT = WORKSPACE_ROOT / "technocapital-singularity-zoology"
HOST_UPSTREAM_ROOT = "/home/m00t/hermes/workspace/technocapital-singularity-zoology"
PUBLIC_WEB_ORIGIN = "https://hyperstitionstud.io"
FLEX_13_COORDS = {292, 256, 211, 193, 183, 153, 137, 136, 133, 125, 96, 95, 91, 81}
@@ -225,7 +225,7 @@ def build_graph(upstream_repo: Path = UPSTREAM_REPO_DEFAULT) -> dict[str, Any]:
"article_count": vol["article_count"],
"page_count": vol["page_count"],
"pdf_container_path": vol["pdf_path"],
"pdf_host_url": f"file://{HOST_UPSTREAM_ROOT}/encyclopedia/{pdf_rel}",
"pdf_host_url": f"{PUBLIC_WEB_ORIGIN}/encyclopedia/{pdf_rel}",
"vol_index": v_idx,
},
)
@@ -395,7 +395,7 @@ def build_graph(upstream_repo: Path = UPSTREAM_REPO_DEFAULT) -> dict[str, Any]:
"primary_guild": prim_cls,
"sample_equations": matched_eqs,
"volume_pdf_rel": pdf_rel,
"pdf_host_url": f"file://{HOST_UPSTREAM_ROOT}/encyclopedia/{pdf_rel}",
"pdf_host_url": f"{PUBLIC_WEB_ORIGIN}/encyclopedia/{pdf_rel}",
},
)
@@ -468,7 +468,7 @@ def build_graph(upstream_repo: Path = UPSTREAM_REPO_DEFAULT) -> dict[str, Any]:
"ing_aq": i_aq,
"delta": i_aq - e_aq,
"volume_pdf_rel": pdf_rel,
"pdf_host_url": f"file://{HOST_UPSTREAM_ROOT}/encyclopedia/{pdf_rel}",
"pdf_host_url": f"{PUBLIC_WEB_ORIGIN}/encyclopedia/{pdf_rel}",
},
)
if vol_nid:
@@ -705,7 +705,7 @@ def build_graph(upstream_repo: Path = UPSTREAM_REPO_DEFAULT) -> dict[str, Any]:
"$schema": "./schemas/v1/encyclopedia-graph.schema.json",
"$id": URN_SCHEMA_GRAPH,
"namespace_urn": URN_GRAPH_NS,
"version": "2.2.2",
"version": "2.12.0",
"encyclopedia_base_path": "../technocapital-singularity-zoology/encyclopedia",
"upstream_repository": str(upstream_repo),
"isolation_verified": {