Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c5e72e42d2 | ||
|
|
9cdad25b2c | ||
|
|
b2049beb38 | ||
|
|
b569f49e32 | ||
|
|
2c0c7e9241 | ||
|
|
fe4c013319 | ||
|
|
77849c2d8a | ||
|
|
17385fd89f | ||
|
|
7844e6da2f | ||
|
|
4700965731 | ||
|
|
5d55e646f3 | ||
|
|
99d1118c80 | ||
|
|
9f312880bb | ||
|
|
df832b2aa5 | ||
|
|
1287e52b1f | ||
|
|
73eed52a43 | ||
|
|
d9f4413847 | ||
|
|
40be2ac8d3 | ||
|
|
09c6b716f1 | ||
|
|
37cd610a25 | ||
|
|
a2a84f429a |
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.
@@ -1,78 +1,42 @@
|
||||
# `encyclopedia-knowledge-graph` (`v2.0.0`)
|
||||
# `encyclopedia-knowledge-graph` (`v2.10.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.10.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 → [`https://hyperstitionstud.io/graph/index.html`](https://hyperstitionstud.io/graph/index.html)
|
||||
> - **Latest Commit Scope (`encyclopedia-knowledge-graph`):** Synchronized v2.10.0 release state across 2 tracked module/artifact surface(s)
|
||||
> - **Touched Files / Surfaces:** `docs/plans/piecewise/PLAN-PIECEWISE-QUANT-VOICE-NARRATION-AND-SCENE-UI-INDICATORS.md`, `docs/plans/piecewise/PLAN-PIECEWISE-QUANT-VOICE-NARRATION-AND-SCENE-UI-INDICATORS.pdf`
|
||||
> - **Live Verified Ecosystem Metrics (`v2.10.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.10.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.10.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. |
|
||||
Binary file not shown.
@@ -0,0 +1,71 @@
|
||||
# Operator's Manual: LLM-Token-Dependent vs. Zero-Token Deterministic Parts of the `hyperstitionstud.io` Data Pipeline (`v2.0.29`)
|
||||
|
||||
- **Document ID:** `OPERATORS-MANUAL-LLM-TOKEN-DEPENDENT-DATA-PIPELINES` (`v2.0.29`)
|
||||
- **Canonical Locations:**
|
||||
- `/workspace/encyclopedia-knowledge-graph/docs/OPERATORS-MANUAL-LLM-TOKEN-DEPENDENT-DATA-PIPELINES.md`
|
||||
- `/workspace/encyclopedia-knowledge-graph/docs/OPERATORS-MANUAL-LLM-TOKEN-DEPENDENT-DATA-PIPELINES.pdf`
|
||||
- **Core Operational Architecture (Post-`PLAN-CRONJOB-ARCHIVE-ROTATION-ON-HYPERSTITIONSTUD-IO`):**
|
||||
1. **Zero LLM Tokens & Zero API Keys on `hyperstitionstud.io`:** The public VPS web host (`hyperstitionstud.io`) stores **0 LLM/OpenRouter API keys** and runs **0 LLM-dependent jobs**. All VPS scheduled tasks (`21:30 UTC` Closing-Bell Harvest, `00:00 UTC` Rollover Refresh, and `00:20 UTC` CI Provisioning + Archive/SQLite Rotation) execute `100%` deterministic local Python and Bash scripts (`unset OPENROUTER_API_KEY OPENAI_API_KEY ANTHROPIC_API_KEY`).
|
||||
2. **Single Remaining Recurring LLM Cronjob on `localhost` (`d28b479ec217`):** Following the elimination of the two non-exegesis `localhost` Hermes cronjobs (`29c871eb6b78` and `7effa9679803`, saving `12` LLM agent cron runs per week / `-63%`), **`d28b479ec217` (`current-events-isopsephic-exegesis-daily-0000-gmt`) is the sole recurring job in the ecosystem that consumes metered LLM tokens.**
|
||||
|
||||
---
|
||||
|
||||
## 1. Master Boundary Table: Metered LLM Surfaces (`localhost` Only) vs. Zero-Token VPS & CLI Surfaces
|
||||
|
||||
| Pipeline Component / Cronjob / CLI | Execution Host & Surface | Metered LLM Token Cost | Role & Boundary Between Deterministic Code and LLM Exegesis |
|
||||
| :--- | :--- | :---: | :--- |
|
||||
| **1. `d28b479ec217` (`current-events-isopsephic-exegesis-daily-0000-gmt`, `00:00 UTC` / `19:00 EST` Daily)** | **`localhost` Only** (Hermes Agent Cron — **Sole Recurring LLM Cronjob**) | **METERED (`~15K–35K` tokens/run, `7` runs/wk)** | • **Step A (`0` tokens):** Runs `collect_news_aq.py` (`TZ=UTC`) to fetch Wikipedia `Portal:Current_events`, BBC RSS, and AP RSS, translate terms via Node `ingglish`, and compute `333/666/777` candidate equations.<br/>• **Step B (Metered LLM Exegesis):** Selects the top 5–8 stories, writes the synchronic critical prose commentary ("exegesis") under Division `08` *"The Room Filter"*, writes `<NN>-dossier-news-YYYY-MM-DD.md`, and updates `00-index-and-methodology.md`.<br/>• **Step C (`0` tokens, in-turn):** Runs `ci_provision_ingglish.py --tier 2 --apply-repo` deterministically at the end of the turn (replacing former job `7effa9679803`). |
|
||||
| **2. Ad-Hoc Creative / Editorial Synthesis Skills** (`isopsephic-lecture-synthesis`, `isopsephic-wire-report-synthesis`, `technocapital-singularity-zoology`) | **`localhost` Only** (On-Demand Operator Chat Turn) | **METERED (`~15K–45K` tokens when invoked manually)** | • Invoked only when the operator explicitly asks to draft a new spoken lecture (`lecture-*-ingglish-aq.md`), wire report, thematic dossier, or podcast script (`Episodes 06–09`). Never scheduled via cron. |
|
||||
| **3. Window A (`21:30 UTC` Mon–Fri): US Closing-Bell Market, FRED Macro & Bayesian Brief** | **`hyperstitionstud.io` VPS** (`hyperstition-closing-bell-harvest.timer` -> `deploy/run-vps-data-production.sh --window=us-closing-bell`)<br/>*(Former `localhost` `29c871eb6b78` eliminated)* | **`0` METERED LLM TOKENS (`0` API Keys)** | • `100%` deterministic Python: `hs-quant-harvest --append-history --live`, `hs-macro-harvest` (`FRED` CSV), `quant/timeseries.py` (14-point `eng_aq`/`ing_aq` census & `Dose 0..3+`), `hs-daily-brief` (5-Agenda Bayesian update), `tmpfs` hydration, and `git.libre.audio` push. Eliminates `5` LLM cron runs/week. |
|
||||
| **4. Window B (`00:00 UTC` Daily): Rollover Time-Series & Knowledge Graph Refresh** | **`hyperstitionstud.io` VPS** (`hyperstition-utc-rollover-harvest.timer` -> `deploy/run-vps-data-production.sh --window=utc-rollover`) | **`0` METERED LLM TOKENS (`0` API Keys)** | • `100%` deterministic Python: recomputes `timeseries.py`, `hs-daily-brief`, and `build_encyclopedia_knowledge_graph.py` (`388` nodes / `1,282` edges) and hydrates `tmpfs`. |
|
||||
| **5. Window C (`00:20 UTC` Daily): CI Provisioning, Cold-Archive Rotation & SQLite Logrotate** | **`hyperstitionstud.io` VPS** (`/etc/cron.d/hyperstition-archive-rotate` & `hyperstition-archive-rotate.timer` -> `deploy/run-vps-archive-rotation.sh`)<br/>*(Former `localhost` `7effa9679803` eliminated)* | **`0` METERED LLM TOKENS (`0` API Keys)** | • `100%` deterministic Python: runs `ci_provision_ingglish.py` (`--tier 2 --apply-repo`) + `generate_db_json.py`, `hs-archive-rotate` (`docs/archive/completed-plans-archive.tar.gz`), and `sqlite_meta --run-logrotate-directive` (`100M` `.1.gz`). Eliminates `7` LLM cron runs/week. |
|
||||
| **6. All Other Compilers, Renderers & Verifiers** (`hs-pdf-build`, `hs-ticker-card`, `hs-eng-docs`, `hs-math-docs`, `hs-public-smoke`, `hs-mcp`) | Local / VPS Python CLI & `hyperstition-mcp.service` (`:8095`) | **`0` METERED LLM TOKENS (`0` API Keys)** | • `100%` local CPU execution: Dark-Mode PDFs, `900×1260` `.png+.json` Stats Cards, `/engineering/` & `/math/` introspection, and Gates `P1–P6` regression checks. |
|
||||
|
||||
---
|
||||
|
||||
## 2. Operating the Sole Remaining LLM-Dependent Cronjob (`d28b479ec217` on `localhost`)
|
||||
|
||||
### 2.1 Job Configuration (`cronjob_manage(action="list")`)
|
||||
- **Job ID:** `d28b479ec217` (`current-events-isopsephic-exegesis-daily-0000-gmt`)
|
||||
- **Schedule:** `0 19 * * *` (`19:00 EST` / `00:00 UTC` Daily on `localhost`)
|
||||
- **Skills Loaded:** `["current-events-isopsephic-exegesis", "phonetic-and-gematria-ciphers", "hyperdope-ingglish-ci"]`
|
||||
- **Continuity:** `True` (injects the prior run's output to deduplicate multi-day "Most Read" stories)
|
||||
- **Single-Turn End-to-End Execution (No Chained Second Agent Job):**
|
||||
Because `7effa9679803` is eliminated (`PLAN-CRONJOB-ARCHIVE-ROTATION-ON-HYPERSTITIONSTUD-IO`), `d28b479ec217` executes the deterministic `ci_provision_ingglish.py --tier 2 --apply-repo` command directly in `terminal` at the end of its own turn after saving `<NN>-dossier-news-YYYY-MM-DD.md`—avoiding a second LLM agent invocation and eliminating `context_from` race conditions and concurrent `HTTP 402` credit spikes altogether!
|
||||
|
||||
---
|
||||
|
||||
## 3. Standard Operating Procedures (SOPs)
|
||||
|
||||
### SOP 1: Running or Backfilling `d28b479ec217` for a Specific UTC Date (`YYYY-MM-DD`) on `localhost`
|
||||
1. **Pre-Verify Headlines at `0` LLM Token Cost:**
|
||||
```bash
|
||||
TZ=UTC python3 /workspace/ingglish-hyperdope-gematria/ingglish-aq-archive/scripts/collect_news_aq.py \
|
||||
--date YYYY-MM-DD \
|
||||
--out /workspace/ingglish-hyperdope-gematria/ingglish-aq-archive/news-aq-harvest-YYYY-MM-DD.json
|
||||
```
|
||||
2. **Trigger `d28b479ec217` on `localhost`:**
|
||||
```text
|
||||
cronjob_manage(
|
||||
action="run",
|
||||
job_id="d28b479ec217",
|
||||
prompt="CRITICAL OVERRIDE: pass --date YYYY-MM-DD to collect_news_aq.py, write the dossier for YYYY-MM-DD, and run ci_provision_ingglish.py --tier 2 --apply-repo."
|
||||
)
|
||||
```
|
||||
|
||||
### SOP 2: What Happens If `localhost` Is Off or `d28b479ec217` Is Paused
|
||||
- Because all market, FRED macro, time-series, Bayesian daily-brief, archive-rotation, and SQLite logrotate jobs run autonomously on `hyperstitionstud.io` via `systemd` timers and `/etc/cron.d/hyperstition-archive-rotate` (`0` LLM tokens, `0` API keys):
|
||||
- **If `localhost` is asleep or `d28b479ec217` is paused**, `https://hyperstitionstud.io/quant/` continues updating its closing-bell market bars, FRED macro series, `Dose 0..3+` scores, and 5-Agenda Bayesian Daily Brief on schedule (`equation_counts` for any date without a news dossier simply serialize as `{"eq_333": null, "eq_666": null, "eq_777": null, "total": null}`, `"No data available"`).
|
||||
- When `localhost` wakes up, `d28b479ec217` (`catch_up=True` default) backfills the missed UTC news dossier (`collect_news_aq.py` automatically checks `now_utc - 48h` before `now_utc - 24h`) and pushes to `git.libre.audio`, which the VPS pulls on its next `00:20 UTC` / `21:30 UTC` timer tick.
|
||||
|
||||
---
|
||||
|
||||
## 4. Troubleshooting Reference for `d28b479ec217` (`localhost` Exegesis)
|
||||
|
||||
| Symptom / Failure Mode | Root Cause | Exact Operator Remedy |
|
||||
| :--- | :--- | :--- |
|
||||
| **1. `collect_news_aq.py` returns `0` Wikipedia items at `00:00 UTC`** | At `00:00 UTC`, the newly started UTC day section on Wikipedia `Portal:Current_events` is still empty while `now_utc - 24h` holds the completed 24-hour global ledger; or `_` HTML entities in `id="2026_November_30"` were not unescaped. | `collect_news_aq.py` automatically targets `now_utc - 24h` (and checks `now_utc - 48h` for unarchived backfills) and runs `html.unescape()`. If running manually during afternoon UTC, pass `--date YYYY-MM-DD` explicitly. |
|
||||
| **2. Foreground `terminal` timeout (`> 180s`) during `333/666/777` equation search** | The agent wrote a global 6-nested combinatorial loop across all 5–8 stories simultaneously (`> 600M` iterations). | Always partition vocabulary by story cluster (`<= 15` items per part of speech per story) so all clusters complete in `< 2s`. |
|
||||
| **3. Node `ERR_MODULE_NOT_FOUND: Cannot find package 'ingglish'`** | The agent invoked `node --input-type=module -e 'import("ingglish")...'` from `/root` or `/workspace` instead of `/workspace/ingglish-hyperdope-gematria`. | Always pass `workdir="/workspace/ingglish-hyperdope-gematria"` (or use `python3 -c "from hyperstitionstud_io.phonetics import translate_batch..."` with `PYTHONPATH=/workspace/hyperstitionstudio-core/src`). |
|
||||
| **4. `ci_provision_ingglish.py` Gate 2 drops an 8–9 word `666/777` equation as `long-scraped`** | Lines with `nw >= 15` total tokens (including `[Ingglish: ...]`) require `>= 40%` standard `/usr/share/dict/words` hits; equations packed with out-of-dictionary acronyms (`TSMC`, `ASML`, `NVDA`, `Dario`, `Amodei`) dip below `0.40`. | Pair proper-noun anchors in `666/777` equations with standard English nouns (`proof`, `grid`, `wafer`, `silicon`, `drone`, `laser`, `loss`) so `dict_hits / nw >= 0.45`. |
|
||||
| **5. LLM invents or guesses an AQ sum or Ingglish spelling in prose** | Mental arithmetic by the LLM instead of copying deterministic script output. | Never allow mental AQ calculation: every `(word, ing, eng_aq, ing_aq, breakdown = 333/666/777)` printed in a dossier must be copied verbatim from `collect_news_aq.py` / `hyperstitionstud_io.ciphers.compute_aq()`, and verified afterward by `ci_provision_ingglish.py` Gate 4 (`aq_mismatches == 0`). |
|
||||
BIN
Binary file not shown.
@@ -1,77 +0,0 @@
|
||||
# Plan: Rotating Completed Archives (`docs/archive/`) Into Compressed Cold-Storage Bundles (`.tar.gz`) to Economize Stylistic Refreshes, Revisions & Search Sweeps (`v2.0.28`)
|
||||
|
||||
- **Document ID:** `PLAN-ARCHIVE-ROTATION-AND-COMPRESSION-ECONOMIZER` (`v2.0.28`)
|
||||
- **Roadmap Status:** **ACTIVE / READY**
|
||||
- **Target Directories & Modules:**
|
||||
- `/workspace/encyclopedia-knowledge-graph/docs/archive/` (`56` loose `.md`/`.pdf` files = `3,215,398` bytes -> compressed `completed-plans-archive.tar.gz` + `archive-manifest.json` + `README.md`)
|
||||
- `/workspace/technocapital-singularity-zoology/docs/archive/` (`6` completed loose `.md`/`.pdf` files -> compressed `completed-plans-archive.tar.gz` + `archive-manifest.json`; moving the deferred `podcast-series-plan-encyclopedia-of-technocapital-singularity-zoology.{md,pdf}` for `Episodes 06–09` up to `technocapital-singularity-zoology/docs/` so `docs/archive/` holds strictly completed cold records)
|
||||
- `/workspace/hyperstitionstudio-core/src/hyperstitionstud_io/publishing/archive_rotator.py` (`hs-archive-rotate` CLI & deterministic `.tar.gz` rotator)
|
||||
- `/workspace/hyperstitionstudio-core/src/hyperstitionstud_io/publishing/pdf_compiler.py` (Excluding `docs/archive/` from `discover_web_and_repo_pdf_pairs()`)
|
||||
- `/workspace/hyperstitionstudio-core/tests/test_core_suite.py`
|
||||
|
||||
---
|
||||
|
||||
## 1. Problem Statement & Empirical Economy Analysis
|
||||
|
||||
Currently, completed planning documents and historical audits are stored as **uncompressed loose `.md` and `.pdf` files** inside `/workspace/encyclopedia-knowledge-graph/docs/archive/` (`28` `.md` + `28` `.pdf` = `56` files, `3.22 MB`) and `/workspace/technocapital-singularity-zoology/docs/archive/` (`4` `.md` + `4` `.pdf` = `8` files, `351 KB`):
|
||||
|
||||
| Overhead Dimension | Current Uncompressed Loose `docs/archive/` State | After Compressed `.tar.gz` Rotation & Archive Exclusion | Measured Savings |
|
||||
| :--- | :--- | :--- | :---: |
|
||||
| **1. Stylistic PDF Refreshes (`hs-pdf-build --refresh-all-web-pdfs`)** | `84` total `.md -> .pdf` compilations (`32` of which are historical `docs/archive/` files never linked from the web UI). | **`52` active/web-linked `.md -> .pdf` compilations** (`0` compilations inside `docs/archive/`). | **`-38.1%` fewer PDFs compiled** (`32` redundant PDF builds eliminated on every refresh) |
|
||||
| **2. Repository Content Search (`search_files` / `rglob("*.md")`)** | Every content search or glob sweep scans `31` historical `.md` files (`~410,000` chars / `~128,000` BPE tokens of superseded specs), polluting search matches and context windows. | Loose `.md` and `.pdf` files are packed inside `completed-plans-archive.tar.gz`; only `docs/archive/README.md` and `archive-manifest.json` remain unpacked. | **`-100%` (`~128K` BPE tokens) of stale plan prose excluded from `search_files` & glob sweeps** |
|
||||
| **3. Disk & `tmpfs` Webroot Footprint (`/var/www/hyperstitionstud.io/repos`)** | `3,566,151` bytes (`3.57 MB`) across `64` loose files (`128` files after `.gz`/`.br` pre-compression in `sync-vps-repos.sh`). | Single deterministic `completed-plans-archive.tar.gz` per `docs/archive/` directory + `README.md` + `archive-manifest.json` (and `sync-vps-repos.sh` `--exclude='docs/archive/*.tar.gz'`). | **`62` loose files consolidated into `2` cold `.tar.gz` bundles** |
|
||||
|
||||
---
|
||||
|
||||
## 2. Boundary Guardrail: What Gets Rotated vs. What Must Never Be Compressed
|
||||
|
||||
1. **Rotated Into Cold Storage (`docs/archive/completed-plans-archive.tar.gz`):**
|
||||
- `/workspace/encyclopedia-knowledge-graph/docs/archive/*.{md,pdf}` (excluding `README.md`, which stays unpacked as the human-readable index).
|
||||
- `/workspace/technocapital-singularity-zoology/docs/archive/*.{md,pdf}` (after moving the still-deferred `podcast-series-plan-encyclopedia-of-technocapital-singularity-zoology.{md,pdf}` for `Episodes 06–09` to `/workspace/technocapital-singularity-zoology/docs/` so no deferred plan is buried in cold storage).
|
||||
2. **Never Rotated / Always Kept Live & Uncompressed:**
|
||||
- `/workspace/ingglish-hyperdope-gematria/ingglish-aq-archive/dossiers/*.md` (`71` verified dossiers & `21` dated `00:00 UTC` news-wire dossiers served live at `/archive/*` and `/api/v1/dossiers/{number}` and ingested by `timeseries.py` and `sqlite_meta.py`).
|
||||
- All 22 Encyclopedia PDF volumes (`/workspace/technocapital-singularity-zoology/encyclopedia/00..08/*.{md,pdf}`) and top-level `/zoology/*.{md,pdf}` manuals/proposals.
|
||||
- Active and long-term deferred plans in top-level `/workspace/encyclopedia-knowledge-graph/docs/PLAN-*.{md,pdf}`.
|
||||
|
||||
---
|
||||
|
||||
## 3. Architecture of `hyperstitionstud_io.publishing.archive_rotator` (`hs-archive-rotate`)
|
||||
|
||||
### 3.1 Deterministic `.tar.gz` Rotation & Manifest Schema (`docs/archive/archive-manifest.json`)
|
||||
|
||||
The new module `/workspace/hyperstitionstudio-core/src/hyperstitionstud_io/publishing/archive_rotator.py` (registered in `pyproject.toml` as `hs-archive-rotate = "hyperstitionstud_io.publishing.archive_rotator:main"`) implements:
|
||||
|
||||
1. **`rotate_docs_archive_directory(archive_dir: Path) -> dict[str, Any]`:**
|
||||
- If `completed-plans-archive.tar.gz` already exists in `archive_dir`, extracts its existing members into a temporary staging directory first so newly archived `.md`/`.pdf` files are **merged** into the bundle without losing any previously rotated files.
|
||||
- Collects all loose `*.md` (except `README.md`) and `*.pdf` files in `archive_dir`.
|
||||
- Writes a deterministic gzip-compressed tarball `completed-plans-archive.tar.gz` (`gzip.GzipFile(mtime=0)`, sorted member names, normalized `TarInfo` permissions `0644` and `mtime=0` so identical contents always produce the exact same SHA-256 digest).
|
||||
- Writes `archive_dir / "archive-manifest.json"` recording:
|
||||
- `bundle_filename`: `"completed-plans-archive.tar.gz"`,
|
||||
- `bundle_size_bytes` and `bundle_sha256`,
|
||||
- `member_count` and `total_uncompressed_bytes`,
|
||||
- `members`: sorted array of `{name, size_bytes, sha256}` for every `.md` and `.pdf` stored inside the `.tar.gz` archive.
|
||||
- Unlinks the loose `.md` (except `README.md`) and `.pdf` files from `archive_dir` only after verifying that every member in `archive-manifest.json` can be read back from `completed-plans-archive.tar.gz` with matching SHA-256 digests.
|
||||
2. **Inspection & On-Demand Extraction CLI (`hs-archive-rotate`):**
|
||||
- `hs-archive-rotate`: Rotates any loose `.md`/`.pdf` files in `encyclopedia-knowledge-graph/docs/archive/` and `technocapital-singularity-zoology/docs/archive/` into their `completed-plans-archive.tar.gz` bundles.
|
||||
- `hs-archive-rotate --list`: Lists all members and SHA-256 hashes from `archive-manifest.json`.
|
||||
- `hs-archive-rotate --extract <filename> --out-dir <dir>`: Extracts a specific historical `.md` or `.pdf` on demand without unpacking the rest of the archive.
|
||||
|
||||
### 3.2 Hardening `discover_web_and_repo_pdf_pairs()` in `src/hyperstitionstud_io/publishing/pdf_compiler.py`
|
||||
- Update `discover_web_and_repo_pdf_pairs()` to explicitly skip any path whose parent directory is named `archive` (`if "archive" in p.parts: continue`), guaranteeing that even before `hs-archive-rotate` runs, `hs-pdf-build --refresh-all-web-pdfs` **never** wastes cycles recompiling archived documents.
|
||||
|
||||
---
|
||||
|
||||
## 4. Three-Phase Implementation Roadmap (`Phases 1–3`)
|
||||
|
||||
### Phase 1: Build `src/hyperstitionstud_io/publishing/archive_rotator.py` & Update `pdf_compiler.py`
|
||||
1. Create `/workspace/hyperstitionstudio-core/src/hyperstitionstud_io/publishing/archive_rotator.py` implementing `rotate_docs_archive_directory()`, `rotate_all_docs_archives()`, `list_archive_members()`, and `extract_archive_member()`.
|
||||
2. Register `hs-archive-rotate = "hyperstitionstud_io.publishing.archive_rotator:main"` in `pyproject.toml`.
|
||||
3. Update `discover_web_and_repo_pdf_pairs()` in `src/hyperstitionstud_io/publishing/pdf_compiler.py` to exclude `/docs/archive/` paths.
|
||||
|
||||
### Phase 2: Relocate Deferred Podcast Plan & Rotate Both `docs/archive/` Directories
|
||||
1. Move `/workspace/technocapital-singularity-zoology/docs/archive/podcast-series-plan-encyclopedia-of-technocapital-singularity-zoology.{md,pdf}` (`Episodes 06–09` deferred plan) up to `/workspace/technocapital-singularity-zoology/docs/` so it remains an accessible deferred plan outside cold storage.
|
||||
2. Archive `PLAN-ARCHIVE-ROTATION-AND-COMPRESSION-ECONOMIZER.{md,pdf}` into `/workspace/encyclopedia-knowledge-graph/docs/archive/`, update `docs/archive/README.md`, and run `hs-archive-rotate` across both repositories so all loose historical `.md` and `.pdf` files in `docs/archive/` are rotated into `completed-plans-archive.tar.gz` + `archive-manifest.json`.
|
||||
|
||||
### Phase 3: Update Skill Procedure & Verify in `tests/test_core_suite.py`
|
||||
1. Update `hyperstitionstudio-roadmap-and-release` (`SKILL.md` Procedure 3: Archiving Completed Plans) so archiving a completed plan moves the `.md`/`.pdf` pair into `docs/archive/`, updates `docs/archive/README.md`, and runs `hs-archive-rotate` to fold the pair into `completed-plans-archive.tar.gz`.
|
||||
2. Add unit assertions in `tests/test_core_suite.py` verifying that `docs/archive/completed-plans-archive.tar.gz` and `docs/archive/archive-manifest.json` exist, contain `0` loose `.pdf` files in `docs/archive/`, and that `discover_web_and_repo_pdf_pairs()` returns `0` paths inside `docs/archive/`.
|
||||
@@ -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`.
|
||||
Binary file not shown.
@@ -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.
@@ -1,103 +0,0 @@
|
||||
# Technical Assessment: Integrating the IPLD `dag-json` Codec (`0x0129`) Across the `hyperstitionstud.io` JSON Data Ecosystem
|
||||
|
||||
- **Document ID:** `ASSESSMENT-IPLD-DAG-JSON-CODEC-INTEGRATION` (`v2.0.0`)
|
||||
- **Codec Specification:** IPLD `dag-json` (`multicodec 0x0129`) + `sha2-256` (`multihash 0x12`) + `CIDv1` Base32 (`baguqeera...`)
|
||||
- **Evaluated Scope:** All 8 JSON registries in `technocapital-singularity-zoology`, `encyclopedia-graph.json` and `graph-data.js` in `encyclopedia-knowledge-graph`, `db.json` and `db_lite.json` in `haiperdohp-jemaytreeah`, and `ReadOnlyIsolationGuard` in `hyperstitionstudio-core` (`hyperstitionstud_io.*`).
|
||||
|
||||
---
|
||||
|
||||
## 1. Executive Summary
|
||||
|
||||
Integrating the **IPLD `dag-json` codec** (`multicodec 0x0129`, paired with `SHA-256` `multihash 0x12` and `CIDv1` `{"/": "baguqeera..."}` content-addressed links) aligns directly with the `hyperstitionstud.io` architecture. Because the workspace already enforces `SHA-256` immutability gates, offline-first `URN:` identifiers (`urn:io:hyperstitionstud:*`), and a multi-repository directed acyclic graph (`DAG`) of dependencies, adopting `dag-json` upgrades existing JSON artifacts into a cryptographically linked **Merkle DAG** while remaining `100%` valid RFC 8259 JSON readable by standard browser `JSON.parse()`, Python `json.loads()`, and `jq`.
|
||||
|
||||
---
|
||||
|
||||
## 2. Five Core Architectural Benefits
|
||||
|
||||
### 2.1 Deterministic Canonical Serialization (Eliminating Formatting-Induced Hash Drift)
|
||||
- **Current Limitation:**
|
||||
`ReadOnlyIsolationGuard` hashes raw file bytes (`hashlib.sha256(path.read_bytes())`). A non-semantic change in indentation (`indent=2` vs. minified), key ordering, or trailing newline alters the file's SHA-256 digest even when the underlying data model is identical (which previously required a separate normalized-JSON forensic audit).
|
||||
- **How `dag-json` Solves It:**
|
||||
The `dag-json` specification mandates a single deterministic byte representation for any IPLD Data Model object:
|
||||
1. Map/object keys are sorted deterministically by UTF-8 byte sequence (RFC 8949 / IPLD canonical ordering),
|
||||
2. All insignificant whitespace is omitted (`separators=(",", ":")`),
|
||||
3. Non-portable IEEE-754 tokens (`NaN`, `Infinity`, `-Infinity`, `-0.0`) are rejected, and
|
||||
4. Strings are encoded in canonical UTF-8 without arbitrary `\uXXXX` escape variations.
|
||||
- **Result:** Any two runtimes (Python `hyperstitionstud_io` and browser JavaScript `window.HyperstitionStudio`) serializing the same in-memory structure always produce the **exact same byte stream, the exact same `SHA-256` digest, and the exact same `CIDv1`**.
|
||||
|
||||
### 2.2 First-Class Merkle-DAG Provenance Links (`{"/": "<CIDv1>"}`) Across Repositories
|
||||
- **Current Limitation:**
|
||||
`encyclopedia-graph.json` records upstream provenance via custom string fields (`"glossary_registry_sha256_pre": "7564ef40fb3e..."` and `"encyclopedia_manifest_sha256_pre": "0d7ce833bb0a..."`).
|
||||
- **How `dag-json` Upgrades Provenance:**
|
||||
In `dag-json`, cross-artifact references are represented as native **IPLD Links**:
|
||||
```json
|
||||
{
|
||||
"upstream_glossary": {"/": "baguqeera..."},
|
||||
"upstream_encyclopedia": {"/": "baguqeera..."}
|
||||
}
|
||||
```
|
||||
Because a `dag-json` `CIDv1` consists of the 4-byte multicodec/multihash prefix (`0x01` `CIDv1` + `0x8002`/`0x0129` `dag-json` varint + `0x12` `sha2-256` + `0x20` 32-byte length) followed immediately by the raw **32-byte SHA-256 digest** (encoded in lowercase RFC 4648 Base32 with multibase prefix `b` -> `baguqeera...`), every `CIDv1` is **100% mathematically reversible to and from our existing SHA-256 baseline locks** while turning all 8 JSON registries and `encyclopedia-graph.json` into a verifiable Merkle DAG.
|
||||
|
||||
### 2.3 Constant-Time `O(1)` Sub-Graph Diffing for `M7+` Two-Run (`Run N -> Run N+1`) Nucleation
|
||||
- **Current Limitation:**
|
||||
In `technocapital-singularity-zoology`, detecting whether an emergent `M7_candidate` or an `S1–S6` equivalence ring changed between daily `00:00 GMT` wire harvests requires traversing nested dictionaries and lists.
|
||||
- **How `dag-json` Solves It:**
|
||||
When each assemblage build (`build:S1..Q0`), AQ coordinate hub (`aq:71..777`), and lexical specimen (`spec:*`) is canonicalized as a `dag-json` block with its own `CIDv1`, any unchanged node or equivalence ring retains the exact same CID across runs. Cross-run persistence checking (`Run N -> Run N+1`) and incremental graph rebuilds reduce to `O(1)` CID comparisons.
|
||||
|
||||
### 2.4 100% Standard RFC 8259 JSON Compatibility in Browser (`file://`) and CLI (`jq`)
|
||||
- Unlike binary `dag-cbor` (`multicodec 0x71`), which requires a CBOR decoder library in the browser and cannot be inspected directly with standard text tools, `dag-json` is **strictly valid UTF-8 JSON**.
|
||||
- Consequently:
|
||||
- `<script src="graph-data.js">` and `JSON.parse()` in `index.html` work with zero external JS libraries,
|
||||
- `json.loads()` in Python 3.10+ standard library parses it natively, and
|
||||
- `jq` in the terminal queries it directly, preserving 100% offline `file://` portability.
|
||||
|
||||
### 2.5 Transport-Agnostic Content Addressing (Local Disk, Static HTTP/3, `.car` Archives & IPFS)
|
||||
- Just as replacing `https://` schema URLs with `urn:io:hyperstitionstud:*` eliminated outbound DNS/HTTPS dependencies for offline users, `CIDv1` links (`{"/": "baguqeera..."}`) address data purely by cryptographic content rather than server hostname.
|
||||
- The exact same `dag-json` blocks can be resolved from local disk (`/workspace/...`), from RAM-backed Caddy HTTP/3 routes (`https://hyperstitionstud.io/...`), from a single-file Content-Addressable Archive (`.car`), or from IPFS/Helia/Iroh gateways without modifying a single byte of data.
|
||||
|
||||
---
|
||||
|
||||
## 3. Zero-Dependency Implementation Footprint in `hyperstitionstud_io`
|
||||
|
||||
Implementing `dag-json` canonical encoding and `CIDv1` (`baguqeera...`) generation inside `hyperstitionstudio-core` (`src/hyperstitionstud_io/ipld/__init__.py`) requires **zero third-party Python packages** (`100%` Python standard library: `hashlib`, `base64`, `json`):
|
||||
|
||||
```python
|
||||
import base64
|
||||
import hashlib
|
||||
import json
|
||||
from typing import Any
|
||||
|
||||
# Multicodec varint header for CIDv1 (0x01) + dag-json (0x0129 -> varint 0xa9 0x02)
|
||||
# + sha2-256 (0x12) + 32-byte digest length (0x20)
|
||||
_CIDV1_DAG_JSON_SHA256_PREFIX = bytes([0x01, 0xA9, 0x02, 0x12, 0x20])
|
||||
|
||||
def encode_dag_json(obj: Any) -> bytes:
|
||||
"""Serialize a Python object to canonical UTF-8 dag-json bytes."""
|
||||
return json.dumps(
|
||||
obj,
|
||||
sort_keys=True,
|
||||
separators=(",", ":"),
|
||||
ensure_ascii=False,
|
||||
allow_nan=False,
|
||||
).encode("utf-8")
|
||||
|
||||
def compute_dag_json_cidv1(obj: Any) -> str:
|
||||
"""Compute the multibase Base32lower CIDv1 ('baguqeera...') for a dag-json object."""
|
||||
raw_bytes = encode_dag_json(obj)
|
||||
digest = hashlib.sha256(raw_bytes).digest()
|
||||
cid_bytes = _CIDV1_DAG_JSON_SHA256_PREFIX + digest
|
||||
b32 = base64.b32encode(cid_bytes).decode("ascii").lower().rstrip("=")
|
||||
return "b" + b32
|
||||
```
|
||||
|
||||
- **Zero Schema Collisions:** In `dag-json`, single-key maps of the form `{"/": "..."}` are reserved for IPLD Links and Bytes. None of the 8 JSON schemas in the workspace use `"/"` as a property key, so all existing registries are 100% compatible with the `dag-json` data model.
|
||||
|
||||
---
|
||||
|
||||
## 4. Trade-Off Analysis & Recommended Hybrid Adoption Strategy
|
||||
|
||||
| Dimension | Pure On-Disk `dag-json` Everywhere | Recommended Hybrid `dag-json` Strategy |
|
||||
| :--- | :--- | :--- |
|
||||
| **Human-Edited Source Registries (`glossary-registry.json`, `quantitative-economic-anchors.json`)** | Minified single-line JSON makes line-by-line `git diff` harder to read during manual review. | Keep pretty-printed (`indent=2`) on disk for readable Git diffs, while computing and verifying their canonical `dag-json` `CIDv1` (`baguqeera...`) in `ReadOnlyIsolationGuard` and `hs-doctor` (alongside raw file SHA-256). |
|
||||
| **Compiled Machine Bundles (`encyclopedia-graph.json`, `graph-data.js`, `db_lite.json`, `db.json`)** | Ideal: minified canonical `dag-json` reduces uncompressed payload size by `~18–25%` before Brotli-11 compression. | Emit strict canonical `dag-json` with embedded `{"/": "baguqeera..."}` IPLD Links pointing to the upstream source registries and node sub-blocks. |
|
||||
| **Existing Raw SHA-256 Locks (`7564ef40fb3e...` & `0d7ce833bb0a...`)** | Replacing raw file SHA-256 outright would change gate receipt format. | Preserve raw file `SHA-256` gates (`Gate 1` & `Gate 2`) unchanged while adding `dag_json_cidv1` (`{"/": "baguqeera..."}`) alongside them for zero-regression backwards compatibility. |
|
||||
Binary file not shown.
@@ -1,56 +0,0 @@
|
||||
# Dependencies, Peer-Sibling Architecture & First-Push Instructions (`v1.0.0`)
|
||||
|
||||
- **Repository:** `/workspace/encyclopedia-knowledge-graph` (`branch: main`, `tag: v1.0.0`)
|
||||
- **Upstream Read-Only Sibling:** `/workspace/technocapital-singularity-zoology` (`v1.7.0`)
|
||||
- **PDF Compiler Dependency:** `/workspace/ingglish-hyperdope-gematria/ingglish-aq-archive/scripts/build_wire_report_pdf.py`
|
||||
|
||||
---
|
||||
|
||||
## 1. Peer-Sibling Dependency Manifest
|
||||
|
||||
`scripts/build_encyclopedia_knowledge_graph.py` reads the following upstream files from `/workspace/technocapital-singularity-zoology` strictly in read-only mode (`open(..., "r")`):
|
||||
|
||||
1. `/workspace/technocapital-singularity-zoology/taxonomy/glossary-registry.json` (`282` unique entries; verified invariant via pre/post SHA-256 `7564ef40fb3e0e18d1d8547522db431b6a369c40139713b573df6e58b972d43d`)
|
||||
2. `/workspace/technocapital-singularity-zoology/encyclopedia/encyclopedia-manifest.json` (`9` divisions, `22` PDF volumes; verified invariant via pre/post SHA-256 `0d7ce833bb0aa0eea069bf764b2e3b0b36ac2631821c42f3d6bcb897335f8a7d`)
|
||||
3. `/workspace/technocapital-singularity-zoology/taxonomy/assemblage-builds-tier-list.json` (`9` ranked `ETI` builds across `Tiers S+` to `D`)
|
||||
4. `/workspace/technocapital-singularity-zoology/taxonomy/memetic-superclass-registry.json` (`M1–M6` canonical subclasses + `M7_candidate_2026_11_28`)
|
||||
5. `/workspace/technocapital-singularity-zoology/dossiers/65..69-dossier-*.md` (`150` verified `333 / 666 / 777` dossier equations)
|
||||
|
||||
---
|
||||
|
||||
## 2. Step-by-Step Instructions for First Push to Remote `origin`
|
||||
|
||||
The repository `/workspace/encyclopedia-knowledge-graph` is initialized on branch `main` with initial commit and annotated/lightweight tag `v1.0.0`. No remote `origin` is hardcoded so you can push to GitHub, Forgejo/Gitea (`git.libre.audio`), or GitLab without URL collisions.
|
||||
|
||||
### Option A — One-Command Verified Push (`push-to-origin.sh`)
|
||||
|
||||
Run the bundled executable script, which automatically runs `--verify-only` (confirming all 6 CI gates and upstream glossary SHA-256 isolation) before adding `origin` and pushing `main` and `v1.0.0`:
|
||||
|
||||
```bash
|
||||
/workspace/encyclopedia-knowledge-graph/push-to-origin.sh https://github.com/<your-org>/encyclopedia-knowledge-graph.git
|
||||
```
|
||||
|
||||
Or using SSH:
|
||||
|
||||
```bash
|
||||
/workspace/encyclopedia-knowledge-graph/push-to-origin.sh ssh://git@git.libre.audio:2222/<your-org>/encyclopedia-knowledge-graph.git
|
||||
```
|
||||
|
||||
### Option B — Manual Git CLI Commands
|
||||
|
||||
```bash
|
||||
cd /workspace/encyclopedia-knowledge-graph
|
||||
|
||||
# 1. Verify clean working tree and commit log
|
||||
git status -s -b
|
||||
git log --oneline -n 1
|
||||
|
||||
# 2. Register your remote repository URL as 'origin'
|
||||
git remote add origin <REMOTE_GIT_URL>
|
||||
|
||||
# 3. Push the 'main' branch and set upstream tracking
|
||||
git push -u origin main
|
||||
|
||||
# 4. Push the 'v1.0.0' release tag
|
||||
git push origin v1.0.0
|
||||
```
|
||||
@@ -1,62 +0,0 @@
|
||||
# Cross-Repository Modularity & Coupling Audit: `encyclopedia-knowledge-graph`, `technocapital-singularity-zoology` & `hyperdope-ci-build`
|
||||
|
||||
- **Evaluated Sibling Repositories in `/workspace`:**
|
||||
1. `/workspace/encyclopedia-knowledge-graph` (`v1.0.0`, branch `main`)
|
||||
2. `/workspace/technocapital-singularity-zoology` (`v1.7.0`, branch `main`)
|
||||
3. `/workspace/hyperdope-ci-build` (branch `feat/ingglish-aq-corpus`)
|
||||
- **Upstream Shared Reference Repository:** `/workspace/ingglish-hyperdope-gematria` (`node_modules/ingglish` & `ingglish-aq-archive/`)
|
||||
- **Glossary & Encyclopedia Isolation:** Verified (`0` changes to `taxonomy/glossary-registry.json` or `encyclopedia/`).
|
||||
|
||||
---
|
||||
|
||||
## 1. `/workspace/encyclopedia-knowledge-graph` *(Modularity Rating: HIGH at Runtime / MEDIUM-HIGH at Compile Time)*
|
||||
|
||||
### 1.1 What Is Fully Modular & Self-Contained
|
||||
- **Zero-Server, `100%` Standalone Runtime Bundle:**
|
||||
Once compiled, the interactive workbench (`index.html` + `graph-data.js`) and the four open-source exports (`encyclopedia-graph.json`, `.graphml`, `.gexf`, and `encyclopedia.canvas`) have zero runtime dependencies on Python, Node.js, CDN scripts, or sibling repositories. You can copy `/workspace/encyclopedia-knowledge-graph` to another machine and open `index.html` directly via `file://`.
|
||||
- **Parameterized CLI & Strictly Unidirectional Read-Only Ingestion:**
|
||||
`scripts/build_encyclopedia_knowledge_graph.py` accepts `--upstream-repo` and `--out-dir`, reads upstream JSON and Markdown files strictly in read-only mode (`open(..., "r")`), and enforces pre/post `SHA-256` assertions so zero graph concepts ever leak back into the upstream glossary or encyclopedia.
|
||||
|
||||
### 1.2 Remaining Coupling Points
|
||||
- **Upstream Schema Coupling at Build Time:**
|
||||
Rebuilding the graph requires `--upstream-repo` (default `/workspace/technocapital-singularity-zoology`) to provide the expected JSON files (`taxonomy/glossary-registry.json`, `encyclopedia/encyclopedia-manifest.json`, `taxonomy/assemblage-builds-tier-list.json`, `taxonomy/memetic-superclass-registry.json`) and `dossiers/*.md`.
|
||||
- **Relative PDF Deep-Links in `index.html`:**
|
||||
The `"Open Encyclopedia Volume PDF"` button inside the right-hand Inspector Drawer links to `../technocapital-singularity-zoology/encyclopedia/<div_id>/<slug>.pdf`, assuming the sibling repository sits beside it under `/workspace/` (and operator-manual PDF compilation calls `/workspace/ingglish-hyperdope-gematria/ingglish-aq-archive/scripts/build_wire_report_pdf.py`).
|
||||
|
||||
---
|
||||
|
||||
## 2. `/workspace/technocapital-singularity-zoology` *(Modularity Rating: MEDIUM-HIGH — Self-Contained Data & Encyclopedia, Coupled to Upstream Runtime Helpers)*
|
||||
|
||||
### 2.1 What Is Fully Modular & Self-Contained
|
||||
- **Isolated Domain Data, Taxonomies & 22-Volume Encyclopedia Compiler:**
|
||||
Owns all `S1–S6`, `M1–M7+`, `ETI` tier-list, quantitative-anchor, citation-ledger, and glossary JSON registries (`taxonomy/*.json`), canonical dossiers (`dossiers/65..69-dossier-*.md`), and the 22-volume PDF Encyclopedia (`encyclopedia/`). Notably, `build_encyclopedia()` compiles all 22 Encyclopedia PDFs in-process using ReportLab directly without calling any external script.
|
||||
- **Configurable CLI Paths:**
|
||||
`scripts/classify_technocapital_singularity.py` exposes `--workdir`, `--anchors-file`, `--memetic-registry`, `--terms`, `--quant-mode`, and `--out`.
|
||||
|
||||
### 2.2 Remaining Coupling Points to `/workspace/ingglish-hyperdope-gematria`
|
||||
- **Node.js `ingglish` (`CMUdict`) Package Resolution:**
|
||||
`batch_translate()` spawns `node --input-type=module` with `cwd=--workdir` (defaulting to `/workspace/ingglish-hyperdope-gematria`) because `node_modules/ingglish` is installed there rather than in `/workspace/technocapital-singularity-zoology/node_modules/`.
|
||||
- **Visual Tier-List & Glossary PDF Subprocess Handoffs:**
|
||||
By deliberate DRY design, `build_assemblage_tier_list()` delegates `.pdf`/`.png` rendering to `/workspace/ingglish-hyperdope-gematria/ingglish-aq-archive/scripts/generate_aq_tier_list.py --rows-json`, and `sync_glossary()` delegates glossary PDF compilation to `/workspace/ingglish-hyperdope-gematria/ingglish-aq-archive/scripts/build_wire_report_pdf.py`. To make `technocapital-singularity-zoology` `100%` standalone on a machine without `ingglish-hyperdope-gematria`, it would need its own local `node_modules/ingglish` install and local fallbacks for those two helper scripts.
|
||||
|
||||
---
|
||||
|
||||
## 3. `/workspace/hyperdope-ci-build` *(Modularity Rating: HIGH as a Downstream PR Artifact Repo / COUPLED to Upstream Provisioner for Ingestion)*
|
||||
|
||||
### 3.1 What Is Fully Modular & Self-Contained
|
||||
- **Clean Upstream Fork Structure for Pull Requests:**
|
||||
Once provisioned, `/workspace/hyperdope-ci-build` (branch `feat/ingglish-aq-corpus`) is a `100%` self-contained clone of `malonehunter/hyperdope-gematria` containing `db.txt`, `config.default.js`, `docs/ONBOARDING-INGGLISH-AQ.md`, its own `tools/` (`normalize_caps.py`, `classify_candidates.py`, `generate_db_json.py`), pre-verified PR artifacts (`ci-audit-report.json`, `pr-body.md`, `pr-payload.json`), and an autonomous `submit-pr.sh` script that pushes and opens a GitHub PR with zero external sibling dependencies.
|
||||
|
||||
### 3.2 Remaining Coupling Points to `/workspace/ingglish-hyperdope-gematria`
|
||||
- **External Provisioning Engine (By Design):**
|
||||
To avoid polluting the upstream PR diff with custom archive-scraping scripts, the ingestion driver (`ci_provision_ingglish.py`) lives outside the repo at `/workspace/ingglish-hyperdope-gematria/ingglish-aq-archive/scripts/ci_provision_ingglish.py` and reads `/workspace/ingglish-hyperdope-gematria/ingglish-aq-archive/*.md`. Thus, `hyperdope-ci-build` is completely modular for testing, building `db.json`, and submitting PRs, but relies on `ingglish-hyperdope-gematria` whenever new dossiers are ingested into `db.txt`.
|
||||
|
||||
---
|
||||
|
||||
## 4. Summary Comparison Matrix
|
||||
|
||||
| Repository | Standalone Runtime? | Standalone Rebuild? | External Sibling Dependencies |
|
||||
| :--- | :--- | :--- | :--- |
|
||||
| **`encyclopedia-knowledge-graph`** | **YES** (`100%` offline via `index.html` + `graph-data.js`) | Needs upstream JSONs (`--upstream-repo`) | Reads `technocapital-singularity-zoology` JSONs & dossiers (strictly read-only) |
|
||||
| **`technocapital-singularity-zoology`** | **YES** (`taxonomy/*.json`, `dossiers/*.md`, `encyclopedia/*.pdf`) | Needs Node `ingglish` (`--workdir`) | Uses `ingglish-hyperdope-gematria` for `node_modules/ingglish` & 2 PDF helper scripts |
|
||||
| **`hyperdope-ci-build`** | **YES** (`tools/*.py`, `db.txt`, `submit-pr.sh`) | Needs external provisioner | Populated by `ci_provision_ingglish.py` from `ingglish-aq-archive/*.md` |
|
||||
Binary file not shown.
@@ -1,181 +0,0 @@
|
||||
# Architecture & Implementation Plan: Shared Common Library Under the `hyperstitionstud.io` Namespace (`v1.2.0` — 100% Offline `URN:` Namespace & Dual `file://` + `http://` Portability Edition)
|
||||
|
||||
- **Document ID:** `PLAN-COMMON-LIBRARY-HYPERSTITIONSTUDIO` (`v1.2.0`)
|
||||
- **Offline Namespace Authority (Zero `https://` Network Calls):**
|
||||
- **Python PEP 420 Namespace:** `hyperstitionstud_io.*`
|
||||
- **JavaScript / Browser Global Namespace:** `@hyperstitionstud.io/*` & `window.HyperstitionStudio.*`
|
||||
- **URN Schema, XML & Entity Authority (RFC 8141):** `urn:io:hyperstitionstud:schema:v1:*`, `urn:io:hyperstitionstud:ns:kg:1.0`, and `urn:io:hyperstitionstud:<domain>:<type>:<id>`
|
||||
- **Local Relative Schema Paths:** `./schemas/v1/<name>.schema.json`
|
||||
- **Dual Deployment Target:**
|
||||
1. **Scenario A (`file://` Direct Offline In-Browser Application):** Zero HTTP server, zero `fetch()` CORS errors, zero external CDN/font/schema requests.
|
||||
2. **Scenario B (`http://` Static Web Server Hosting):** Works identically under `python3 -m http.server`, Nginx, Caddy, or LAN self-hosting whether served from the `/workspace` parent directory or as a standalone web root.
|
||||
- **Artifact & Citation URL Resolution Rule:** **100% Local-Configuration Driven** (`[citations.path_mounts]` in local `workspace.toml`, falling back to verified local paths).
|
||||
- **Version-Control Operations in Scope:** **0%** (All file integrity and isolation checks use pure Python `hashlib.sha256` and atomic `.tmp -> os.replace()` writes).
|
||||
|
||||
---
|
||||
|
||||
## 1. Review of `https://hyperstitionstud.io` URLs: Why They Are Replaced by Offline `urn:io:hyperstitionstud:*` & Relative Paths in `v1.2.0`
|
||||
|
||||
In `v1.0.0–v1.1.0`, the domain `hyperstitionstud.io` was formatted as `https://hyperstitionstud.io/...` in two places: JSON Schema `$id`/`$schema` fields and GraphML/GEXF `xmlns:hs` declarations. Reviewing those against a **100% offline, portable in-browser and static-HTTP deployment requirement** exposes three concrete failure modes:
|
||||
|
||||
| Former `https://` Usage (`v1.1.0`) | Why It Hurts 100% Offline & Portable Deployment | `v1.2.0` Portable Replacement (Zero Network Calls) |
|
||||
| :--- | :--- | :--- |
|
||||
| **`$schema: "https://hyperstitionstud.io/schemas/v1/*.schema.json"`** | IDEs (VS Code, JetBrains), browser JSON inspectors, and schema validators attempt to **HTTP-fetch `https://` `$schema` URLs**. Offline or on an air-gapped LAN, this triggers DNS timeouts or validation warnings. | **Dual Offline Identity:**<br/>• `"$id": "urn:io:hyperstitionstud:schema:v1:encyclopedia-graph"` (RFC 8141 URN — never fetched over DNS)<br/>• `"$schema": "./schemas/v1/encyclopedia-graph.schema.json"` (relative local file path that resolves both on `file://` and on any `http://` server) |
|
||||
| **`xmlns:hs="https://hyperstitionstud.io/ns/kg/1.0"`** | Conflates a nominal XML namespace with a live `https://` endpoint; some XML/GEXF tools probe `https://` namespace URIs for XSD files. | **`xmlns:hs="urn:io:hyperstitionstud:ns:kg:1.0"`**<br/>Explicitly location-independent URN namespace; Gephi, Cytoscape, yEd, and `xml.etree.ElementTree` parse it 100% offline. |
|
||||
| **External Web Fonts / CDNs (`https://fonts.googleapis.com/...`)** | Stalls browser rendering on `file://` or offline LAN `http://` while waiting for external DNS/TLS handshakes to fail. | **Zero External `<link>` or `<script>` URLs:**<br/>All HTML workbenches and SVG diagrams use pure inline/local CSS and local font stacks (`'DejaVu Sans Mono', 'JetBrains Mono', ui-monospace, monospace`). |
|
||||
|
||||
**Rule in `v1.2.0`:** Zero `https://hyperstitionstud.io` URLs appear anywhere in code, schemas, XML exports, HTML files, or citation ledgers. Every `hyperstitionstud.io` namespace identifier uses **reverse-DNS module/URN syntax (`hyperstitionstud_io.*` / `urn:io:hyperstitionstud:*`)** or **relative local paths (`./...`)**.
|
||||
|
||||
---
|
||||
|
||||
## 2. Canonical `hyperstitionstud.io` Offline Namespace Table (`v1.2.0`)
|
||||
|
||||
| Layer / Ecosystem | Offline-First Namespace Pattern | Concrete Examples |
|
||||
| :--- | :--- | :--- |
|
||||
| **Python 3.10+ (PEP 420)** | `hyperstitionstud_io.<module>` | `hyperstitionstud_io.{config,ciphers,phonetics,publishing,glossary,graph,ci,audio}` |
|
||||
| **JavaScript / ESM Modules** | `@hyperstitionstud.io/<pkg>` | `@hyperstitionstud.io/{ciphers-aq,phonetics-g2p,graph-workbench}` |
|
||||
| **In-Browser Offline Global (`file://` & `http://`)** | `window.HyperstitionStudio.<Module>` | `window.HyperstitionStudio.EncyclopediaGraphData`<br/>`window.HyperstitionStudio.Config`<br/>`window.HyperstitionStudio.GraphWorkbench` |
|
||||
| **JSON Schema `$id` (Nominal Identity)** | `urn:io:hyperstitionstud:schema:v1:<name>` | `"$id": "urn:io:hyperstitionstud:schema:v1:glossary-registry"`<br/>`"$id": "urn:io:hyperstitionstud:schema:v1:encyclopedia-graph"` |
|
||||
| **JSON Schema `$schema` (Local Resolution)** | `./schemas/v1/<name>.schema.json` | `"$schema": "./schemas/v1/encyclopedia-graph.schema.json"` |
|
||||
| **GraphML / GEXF XML Namespace** | `xmlns:hs="urn:io:hyperstitionstud:ns:kg:1.0"` | `<graphml xmlns="http://graphml.graphdrawing.org/xmlns" xmlns:hs="urn:io:hyperstitionstud:ns:kg:1.0">` |
|
||||
| **Graph Node & Entity URNs** | `urn:io:hyperstitionstud:<domain>:<type>:<id>` | `urn:io:hyperstitionstud:zoology:build:S1`<br/>`urn:io:hyperstitionstud:aq:hub:125` |
|
||||
|
||||
---
|
||||
|
||||
## 3. Engineering for Both Deployment Scenarios (`Scenario A: file://` & `Scenario B: http://`)
|
||||
|
||||
To make the interactive application (`index.html`) 100% portable across both **direct offline browser opens (`file://`)** and **any static HTTP server (`http://`)**, `hyperstitionstud_io.graph` and the operator documentation must explicitly address five browser-level behaviors:
|
||||
|
||||
### 3.1 How Data Loading Works in Both Scenarios (`graph-data.js` Synchronous Script vs. `fetch()`)
|
||||
- **Why `fetch("./encyclopedia-graph.json")` Fails on `file://`:**
|
||||
Every modern browser (Firefox, Chromium, Brave, Safari) blocks `fetch()` and `XMLHttpRequest` when the page origin is `file://` (`Cross-Origin Request Blocked: CORS request not http`).
|
||||
- **Portable Dual-Mode Design:**
|
||||
`build_encyclopedia_knowledge_graph.py` emits **both**:
|
||||
1. `encyclopedia-graph.json` (for Python, `jq`, or HTTP API consumers), and
|
||||
2. `graph-data.js` (`window.HyperstitionStudio = window.HyperstitionStudio || {}; window.HyperstitionStudio.EncyclopediaGraphData = {...};`), loaded via `<script src="./graph-data.js"></script>`.
|
||||
- Because `<script src="./graph-data.js">` is permitted on **both** `file://` and `http://` origins without CORS restrictions, the exact same `index.html` boots instantaneously in both deployment modes with zero network configuration.
|
||||
|
||||
### 3.2 How Encyclopedia PDF Links Work in Both Scenarios (`encyclopediaBasePath` Auto-Resolution)
|
||||
When a user clicks `"Open Encyclopedia Volume PDF"` inside the right-hand Inspector Drawer of `index.html`, the target path depends on how the folder is deployed:
|
||||
|
||||
| Deployment Scenario | How the User Opens `index.html` | How `encyclopedia/<div_id>/<slug>.pdf` Resolves |
|
||||
| :--- | :--- | :--- |
|
||||
| **Scenario A: Direct Offline `file://` Open** | Opens `file:///.../workspace/encyclopedia-knowledge-graph/index.html` directly in a browser | Relative link `../technocapital-singularity-zoology/encyclopedia/<div_id>/<slug>.pdf` (or `./encyclopedia/<div_id>/<slug>.pdf` if bundled) opens directly in the browser's built-in PDF viewer. |
|
||||
| **Scenario B1: Static HTTP Server at `/workspace` Root** | Runs `python3 -m http.server 8090 --directory /workspace` and opens `http://127.0.0.1:8090/encyclopedia-knowledge-graph/index.html` | Relative link `../technocapital-singularity-zoology/encyclopedia/<div_id>/<slug>.pdf` resolves to `http://127.0.0.1:8090/technocapital-singularity-zoology/encyclopedia/...`. |
|
||||
| **Scenario B2: Static HTTP Server Inside `/workspace/encyclopedia-knowledge-graph` Only** | Runs `python3 -m http.server 8090 --directory /workspace/encyclopedia-knowledge-graph` (or drops the folder onto Nginx/Caddy) and opens `http://127.0.0.1:8090/index.html` | **Notice the `../` Boundary:** An HTTP server cannot serve files *above* its `--directory` root (`../` clamps to `/` and 404s unless `encyclopedia/` is reachable inside the root).<br/>**Solution in `hyperstitionstud_io.graph`:** Provide `--bundle-encyclopedia` (copies or symlinks `./encyclopedia/` into the output directory and sets `encyclopediaBasePath = "./encyclopedia"` in `graph-data.js`), OR run `hs-kg serve` which mounts both directories automatically on `http://127.0.0.1:8090`. |
|
||||
|
||||
### 3.3 Side-by-Side Documentation Pattern for End Users (Zsh / Jellyfin Style)
|
||||
Every operator manual and `README.md` produced by `hyperstitionstud_io.publishing` will document **both** deployment modes side by side so the user never has to guess why a path behaves differently under `file://` vs. `http://`:
|
||||
|
||||
```text
|
||||
DEPLOYMENT MODE A — 100% OFFLINE IN-BROWSER APPLICATION (ZERO SERVER, file://)
|
||||
1. Open index.html directly in any modern browser:
|
||||
xdg-open /workspace/encyclopedia-knowledge-graph/index.html
|
||||
or paste into the address bar:
|
||||
file:///home/m00t/hermes/workspace/encyclopedia-knowledge-graph/index.html
|
||||
2. All 388 nodes, 1,282 edges, 4 layout modes, search filters, PNG canvas export,
|
||||
and ../technocapital-singularity-zoology/encyclopedia/*.pdf links work offline.
|
||||
|
||||
DEPLOYMENT MODE B — STATIC HTTP SERVER HOSTING (LOCALHOST OR LAN, http://)
|
||||
Option B1 (Serve parent /workspace so sibling ../technocapital-singularity-zoology/encyclopedia/*.pdf resolves):
|
||||
python3 -m http.server 8090 --bind 127.0.0.1 --directory /workspace
|
||||
Open: http://127.0.0.1:8090/encyclopedia-knowledge-graph/index.html
|
||||
|
||||
Option B2 (Serve /workspace/encyclopedia-knowledge-graph as a single self-contained web root):
|
||||
python3 /workspace/encyclopedia-knowledge-graph/scripts/build_encyclopedia_knowledge_graph.py --bundle-encyclopedia
|
||||
python3 -m http.server 8090 --bind 127.0.0.1 --directory /workspace/encyclopedia-knowledge-graph
|
||||
Open: http://127.0.0.1:8090/index.html
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 4. Repository Layout of `/workspace/hyperstitionstudio-core` (`v1.2.0`)
|
||||
|
||||
```text
|
||||
/workspace/hyperstitionstudio-core/
|
||||
├── pyproject.toml # Editable install: pip install --no-deps -e /workspace/hyperstitionstudio-core
|
||||
├── package.json # Local workspace root for @hyperstitionstud.io/* ESM packages (0 network deps)
|
||||
├── requirements.txt # Pillow>=10.0, reportlab>=4.0, pypdf>=4.0, pdfplumber>=0.10
|
||||
├── workspace.example.toml # Template for /workspace/workspace.toml
|
||||
├── schemas/
|
||||
│ └── v1/ # Offline JSON Schemas ($id = urn:io:hyperstitionstud:schema:v1:*)
|
||||
│ ├── glossary-registry.schema.json
|
||||
│ ├── encyclopedia-manifest.schema.json
|
||||
│ ├── singularity-zoology-matrix.schema.json
|
||||
│ ├── memetic-superclass-registry.schema.json
|
||||
│ ├── assemblage-builds-tier-list.schema.json
|
||||
│ ├── quantitative-economic-anchors.schema.json
|
||||
│ ├── citations-ledger.schema.json # Separates canonical `local_path` from local-config `url`
|
||||
│ └── encyclopedia-graph.schema.json
|
||||
├── src/
|
||||
│ └── io/
|
||||
│ └── hyperstitionstud/ # PEP 420 Namespace Root
|
||||
│ ├── config/
|
||||
│ │ ├── __init__.py
|
||||
│ │ └── settings.py # Loads workspace.toml, resolves [paths] & [citations.path_mounts]
|
||||
│ ├── ciphers/
|
||||
│ │ ├── __init__.py
|
||||
│ │ ├── base36_aq.py # compute_aq(), digit/spoken/dual quant modes, zero-d-filter guard
|
||||
│ │ ├── primes.py # Prime sieve, prime_rank(), twin-prime & repdigit (37*k) predicates
|
||||
│ │ └── vectors_g1_g6.py # G1 variance collapse, G2 cross-gen twins, G3 steps, G4 iso, G5 twin-prime
|
||||
│ ├── phonetics/
|
||||
│ │ ├── __init__.py
|
||||
│ │ ├── ingglish_bridge.py # Self-contained G2P translator + pure-Python CMUdict fallback
|
||||
│ │ └── cmudict_fallback.json # Offline deterministic fallback (removes --workdir coupling)
|
||||
│ ├── publishing/
|
||||
│ │ ├── __init__.py
|
||||
│ │ ├── fonts.py # Local DejaVu Sans / Mono TrueType resolver (zero remote font fetches)
|
||||
│ │ ├── pdf_compiler.py # Unified Markdown->PDF compiler (atomic .tmp.pdf + pypdf verification)
|
||||
│ │ ├── tier_list_renderer.py # Unified S+..F & ETI 0-100 .pdf/.png renderer (Pillow + ReportLab)
|
||||
│ │ ├── encyclopedia_pdf.py # Multi-division, alphabetized volume PDF compiler
|
||||
│ │ └── pokedex_compositor.py # Gen IV INFO Pokedex & meme-card compositor with box collision audit
|
||||
│ ├── glossary/
|
||||
│ │ ├── __init__.py
|
||||
│ │ ├── registry.py # GlossaryRegistry CRUD, source_type provenance filter
|
||||
│ │ └── isolation_guard.py # Pure-Python hashlib.sha256 ReadOnlyIsolationGuard context manager
|
||||
│ ├── graph/
|
||||
│ │ ├── __init__.py
|
||||
│ │ ├── builder.py # Multi-partite property graph builder & seen_edges deduplicator
|
||||
│ │ ├── layouts.py # Mode 1 Trophic, Mode 2 Concentric ETI Radar, Mode 3 Funnel, Mode 4 Grid
|
||||
│ │ ├── exporters.py # JSON, GraphML (urn:io:hyperstitionstud:ns:kg:1.0), GEXF 1.3, Canvas 1.0
|
||||
│ │ ├── atlas_png.py # 1600x1060 high-res static board renderer with pill-masked arrows
|
||||
│ │ └── bundler.py # Supports --bundle-encyclopedia for single-folder static HTTP deployment
|
||||
│ ├── ci/
|
||||
│ │ ├── __init__.py
|
||||
│ │ ├── gates_hyperdope.py # 4-Gate CI validator (normalize_caps, classify_candidates, db.json)
|
||||
│ │ ├── citation_sources.py # Pure local-config path_mounts resolver + local_path quote verifier
|
||||
│ │ └── doctor.py # `hs-doctor`: single-command offline readiness, font, schema & SHA-256 check
|
||||
│ └── audio/
|
||||
│ ├── __init__.py
|
||||
│ └── multi_voice_tts.py # 5-voice TTS lecture synthesizer, ffmpeg concat, mutagen duration audit
|
||||
└── tests/
|
||||
├── test_offline_portability_no_https.py # Asserts zero outbound https:// schema/font/CDN links in HTML/XML/JSON
|
||||
├── test_config_and_citation_mounts.py
|
||||
├── test_ciphers_and_vectors.py
|
||||
├── test_phonetics_offline.py
|
||||
├── test_publishing_pdf_and_png.py
|
||||
├── test_glossary_isolation_guard.py
|
||||
└── test_graph_exporters_and_urns.py
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 5. Four-Phase Implementation Roadmap (`v1.2.0`)
|
||||
|
||||
### Phase 1: Scaffold `/workspace/hyperstitionstudio-core`, `workspace.toml` & Offline `URN:` JSON Schemas
|
||||
1. Create `/workspace/hyperstitionstudio-core` with `pyproject.toml`, `src/io/hyperstitionstud/config/settings.py`, and `/workspace/workspace.toml`.
|
||||
2. Author the 8 JSON Schema files under `schemas/v1/*.schema.json` using `"$id": "urn:io:hyperstitionstud:schema:v1:<name>"` (zero `https://` schema URLs).
|
||||
3. Add `test_offline_portability_no_https.py` to verify that no HTML workbench, SVG diagram, XML export, or JSON schema contains external `https://` font, script, or namespace links.
|
||||
|
||||
### Phase 2: Implement `ciphers`, `phonetics` (Offline `CMUdict`), `glossary` & `ci.citation_sources`
|
||||
1. Extract `hyperstitionstud_io.ciphers` (`compute_aq`, `prime_rank`, `G1–G6` vectors, `assert_zero_d_filter`).
|
||||
2. Extract `hyperstitionstud_io.phonetics` with bundled `cmudict_fallback.json` for 100% offline `Gen 0 -> Gen 1` translation.
|
||||
3. Implement `hyperstitionstud_io.glossary.ReadOnlyIsolationGuard` (`hashlib.sha256`) and `hyperstitionstud_io.ci.citation_sources` (pure `[citations.path_mounts]` resolution).
|
||||
|
||||
### Phase 3: Implement `publishing` & `graph` Modules (With Dual `file://` + `http://` Support)
|
||||
1. Extract ReportLab/Pillow rendering into `hyperstitionstud_io.publishing` and `hyperstitionstud_io.graph`.
|
||||
2. Add `--bundle-encyclopedia` support in `hyperstitionstud_io.graph.bundler` so `index.html` resolves PDF links both when opened via `file://` / `/workspace` HTTP root (`../technocapital-singularity-zoology/encyclopedia/...`) and when served as a standalone single-folder HTTP root (`./encyclopedia/...`).
|
||||
|
||||
### Phase 4: Cut Over Consumer Projects & Verify Offline + HTTP Portability
|
||||
1. Update `classify_technocapital_singularity.py` and `build_encyclopedia_knowledge_graph.py` to import from `hyperstitionstud_io.*`.
|
||||
2. Run `hs-doctor`, `pytest`, and `build_encyclopedia_knowledge_graph.py --verify-only`, confirming `all_gates_passed == true`, `0` external `https://` dependencies in HTML/XML/JSON, and `0` SHA-256 mutations on `glossary-registry.json` and `encyclopedia-manifest.json`.
|
||||
Binary file not shown.
@@ -1,147 +0,0 @@
|
||||
# Plan: Daily Portfolio & Memetic Regime Update Feature (`hs-daily-brief`) — Zero-Synthetic-Data Bayesian Inference, Cross-Species Support/Challenge Audit & Compounding Methodological Rigor (`v2.0.24`)
|
||||
|
||||
- **Document ID:** `PLAN-DAILY-PORTFOLIO-AND-MEMETIC-REGIME-UPDATE-FEATURE` (`v2.0.24`)
|
||||
- **Roadmap Status:** **ACTIVE / READY**
|
||||
- **Strict Zero-Synthetic-Data & Null-Preserving Mandate:**
|
||||
1. **100% Real Observations Only:** Every price, basis-point move, volume ratio, macro yield/volatility reading, news headline, and `333/666/777` equation in the Daily Update is drawn strictly from real exchange feeds (`site/quant/real-market-history.json`, Yahoo Finance v8, Stooq CSV, CoinGecko v3) and real dated `00:00 UTC` news-wire dossiers (`25..71-dossier-news-YYYY-MM-DD.md` & `news-aq-harvest-latest.json`).
|
||||
2. **Language-Appropriate `null` When Unavailable:** Whenever any instrument (such as private company `ANTHR-PVT`), market session (such as a weekend, US market holiday, or pre-close session), or feed field (such as unreported equity `market_cap_str`) lacks a real observation on date $t$, it is stored as `None` (Python) / `null` (JSON/JS) / `NULL` (SQLite) and rendered in the brief and UI as `"No data available"`—never `0.0`, never interpolated, and never simulated.
|
||||
- **Target Modules, Routes & Artifacts:**
|
||||
- `/workspace/hyperstitionstudio-core/src/hyperstitionstud_io/quant/daily_brief.py` (`hs-daily-brief` CLI & Python engine)
|
||||
- `/workspace/hyperstitionstudio-core/site/quant/{index.html,quant-app.js,daily-brief-latest.json,daily-brief-data.js}` (Interactive **Daily Portfolio & Memetic Regime Update** panel on `/quant/`)
|
||||
- `/workspace/ingglish-hyperdope-gematria/ingglish-aq-archive/daily-brief-state.json` (Longitudinal Bayesian prior/posterior & daily macro question ledger)
|
||||
|
||||
---
|
||||
|
||||
## 1. Five-Part Daily Update Agenda & Architectural Specification
|
||||
|
||||
Each execution of `hs-daily-brief` (designed to run automatically after the `21:30 UTC` US closing-bell harvest and/or `00:00 UTC` news-wire rollover, or on demand via CLI/REST) produces a structured 5-section analytical brief backed by a machine-verifiable JSON state (`daily-brief-latest.json`):
|
||||
|
||||
---
|
||||
|
||||
### Agenda 1: Executive Summary — Portfolio-Impacting Findings, Trend Durability/Severity, Risk-On/Off Regime & Bayesian Best/Base/Worst-Case Scenarios
|
||||
|
||||
**Core Question:** *What was learned today that will likely have the greatest impact on asset portfolios?*
|
||||
|
||||
1. **Ranking Today's Findings by Portfolio Impact Score ($I_{i,t}$):**
|
||||
Every real instrument observation on date $t$ is scored across two orthogonal dimensions—**Trend Durability** and **Shock Severity**—without inventing missing numbers:
|
||||
- **Financial & Memetic Durability ($D^{\text{dur}}_{i,t}$):**
|
||||
- Consecutive-run persistence count ($k \ge 1$ days in a row that ticker $i$ or its guild has held an active `Scope 1/2` lock or `Scope 3` news-wire co-presence),
|
||||
- Structural `G4` Isometric Chokepoint status ($\Delta = \text{AQ}_{\text{Ing}} - \text{AQ}_{\text{Eng}} == 0$, e.g., `ASML = 81`, `TSMC = 91`, `ARM = 59`, `SOL = 73`), and
|
||||
- Cross-species Confluence Dose ($D_{i,t} \in \{0, 1, 2, 3, 4\}$).
|
||||
- **Financial & Memetic Severity ($S^{\text{sev}}_{i,t}$):**
|
||||
- Within-ticker volatility $z$-score $z_{i,t} = \frac{|\Delta\text{bps}_{i,t}|}{\bar{\sigma}_i}$ (computed strictly over available real trading bars for ticker $i$; `null` if $< 3$ bars exist),
|
||||
- Relative 20-day volume surge (`Vol20d` $V_{i,t} / \bar{V}_{20}$), and
|
||||
- Same-day news-wire equation velocity ($M_t$ total verified `333/666/777` equations in that date's dossier).
|
||||
|
||||
2. **Macro Risk-On / Risk-Off Regime Classification (Real Market Barometers):**
|
||||
Evaluates four real cross-asset indicators from the watchlist (reporting `"No data available"` for any indicator whose market was closed on date $t$):
|
||||
- **Volatility Barometer (`^VIX`):** Close level (e.g. `< 18` Risk-On Calm, `18–24` Elevated Caution, `>= 25` Risk-Off Stress / `M2` trigger) and daily $\Delta\text{bps}$.
|
||||
- **Rates / Duration Barometer (`^TNX` 10-Year US Treasury Yield):** Yield level (`%`) and daily basis-point shift.
|
||||
- **Industrial Cyclical Barometer (`HG=F` Copper):** Real price & $\Delta\text{bps}$ vs. `S1` AI / `S3` Semiconductor equity breadth.
|
||||
- **24/7 Liquidity Barometer (`BTC-USD`, `ETH-USD`, `SOL-USD`):** Continuous weekend/overnight risk-appetite proxy when US equity markets are closed (`"No data available"` on equity bars).
|
||||
|
||||
3. **Bayesian Inference Engine with Extant Priors (`Best Case`, `Base Case`, `Worst Case` Portfolio Scenarios):**
|
||||
Rather than using arbitrary subjective probabilities, the brief maintains an explicit 3-state **Portfolio Regime Prior** $\mathbf{P}_{t-1} = \big(P_{t-1}(\text{Bull / Risk-On}),\; P_{t-1}(\text{Pinned / Range-Bound}),\; P_{t-1}(\text{Tail Drawdown / Risk-Off})\big)$ loaded directly from the previous run's `daily-brief-state.json` (initialized on cold start from the empirical base rates of the real historical window in `real-market-history.json`):
|
||||
- **Empirical Likelihood Update (Bayes' Rule):**
|
||||
Given today's observed evidence vector $E_t = (\text{Breadth}_t,\; \text{VIX}_t,\; \text{MeanVol20d}_t,\; \text{Dose2Share}_t,\; \text{Dose3Count}_t)$, the engine computes empirical likelihoods $L(E_t \mid R_m)$ from the historical distribution of real bars and updates the posterior via Bayes' theorem:
|
||||
$$P_t(R_m \mid E_t) = \frac{P_{t-1}(R_m) \cdot L(E_t \mid R_m)}{\sum_{j} P_{t-1}(R_j) \cdot L(E_t \mid R_j)}$$
|
||||
- **Three Portfolio Scenarios Grounded in Real Empirical Quantiles (Zero Fabricated Targets):**
|
||||
- **Best-Case Scenario (`Risk-On / Constructive Breakout`, Posterior $P_t(R_{\text{Bull}})$):** Projects the empirical **80th/90th percentile (`P80/P90`)** daily basis-point return observed across real historical bars in that regime, identifying which guilds (`S1..S6`) hold the strongest positive lead-lag and chokepoint protection.
|
||||
- **Base-Case Scenario (`Isometric Pinning / Range Equilibrium`, Posterior $P_t(R_{\text{Pinned}})$):** Projects the empirical **median (`P50`)** basis-point displacement, highlighting `Dose 2` variance-pinned tickers (`has_doss = 1, has_wire = 0`, where empirical move variance compresses by `-33%` to `-50%`).
|
||||
- **Worst-Case Scenario (`Risk-Off / M1 Halt or M2 Tail Drawdown`, Posterior $P_t(R_{\text{Tail}})$):** Projects the empirical **10th percentile (`P10` / worst historical drawdown)** in basis points from the real exchange dataset, flagging high-beta concentration risks and `137` (`M1` halt) / `193` (`M2` flash-crash) exposure.
|
||||
|
||||
---
|
||||
|
||||
### Agenda 2: Substantive Support for Active Memetic Themes & Consensus Expectations (`Confirming Signals`)
|
||||
|
||||
**Core Question:** *What key macro financial and memetic signals provide substantive support for active memetic themes or consensus expectations?*
|
||||
|
||||
1. **Cross-Species Confirmations (`Financial Tape × Memetic Wire Alignment`):**
|
||||
Lists every real observation on date $t$ where financial price/volume action and memetic news-wire coordinates reinforce each other:
|
||||
- **Confirmed Sector Leadership:** E.g., when `S1` AI or `S3` Semiconductor tickers post positive returns/volume while simultaneously locking onto active coordinates in that day's `00:00 UTC` dossier (`Scope 3B` Dossier Confluence).
|
||||
- **Confirmed Isometric Moat Stability (`G4` $\Delta = 0$):** Tracks whether the physical/legal chokepoints (`ASML = 81`, `TSM = 91`, `ARM = 59`, `BLK`) held their ground relative to high-beta peers.
|
||||
- **Confirmed Multi-Run Persistence (`Run N-1 -> Run N`):** Highlights coordinates and equations that appeared in yesterday's brief and re-confirmed today.
|
||||
|
||||
---
|
||||
|
||||
### Agenda 3: Substantive Challenges to Active Memetic Themes & Consensus Expectations (`Disconfirming & Counter-Trend Signals`)
|
||||
|
||||
**Core Question:** *What key macro financial and memetic signals provide substantive challenges for active memetic themes or consensus expectations?*
|
||||
|
||||
1. **Four Explicit Falsification & Divergence Detectors:**
|
||||
- **Detector 1 — Narrative-Tape Divergence (`High Memetic Velocity vs. Negative Financial Breadth`):**
|
||||
Flags when a guild dominates the `00:00 UTC` news wire (`has_wire = 1`, multiple `333/666/777` equations) but its constituent stocks sell off on heavy volume (e.g., `NVDA` on `2026-11-12` & `2026-11-13` dropping `-434 bps` on `4.52x` volume and `-201 bps` on `1.86x` volume while co-occurring in Dossiers 52 & 53).
|
||||
- **Detector 2 — Macro Rate/Volatility Headwinds Against Consensus Equity Themes:**
|
||||
Flags when rising `^TNX` 10-Year Treasury yields or spiking `^VIX` volatility challenge long-duration `S1` AI / `S2` crypto consensus positioning.
|
||||
- **Detector 3 — Chokepoint vs. Application-Layer Decoupling:**
|
||||
Flags when upstream hardware/foundry chokepoints (`ASML`, `TSM`, `HG=F` Copper) diverge from downstream software/model valuations (`MSFT`, `GOOGL`, `META`, `PLTR`).
|
||||
- **Detector 4 — Expired / Unconfirmed Provisional Candidates:**
|
||||
Lists any provisional memetic or ring lock from the prior run that failed to re-occur today, preventing survivorship bias.
|
||||
|
||||
---
|
||||
|
||||
### Agenda 4: Delta-Since-Last-Run Audit — Newly Analyzed Macro Financial, Policy & Memetic Signals (`Run N-1 -> Run N`)
|
||||
|
||||
**Core Question:** *What other key macro financial and memetic data or policy signals were analyzed since the last run that may have a significant impact on financial and memetic asset markets?*
|
||||
|
||||
1. **Deterministic Run-to-Run Diff (`diff_since_previous_run()`):**
|
||||
Compares today's harvest state against the previous run stored in `daily-brief-state.json`:
|
||||
- **New Policy, Regulatory, Sovereign & Geopolitical Wire Signals:** Extracts all newly ingested headlines and verified `333/666/777` equations from the latest `*-dossier-news-YYYY-MM-DD.md` that were not present in the prior run (categorized by tariff/trade policy, central-bank/fiscal policy, antitrust/governance, infrastructure/grid outages, and defense/kinetic events).
|
||||
- **New Cross-Asset Moves & Regime Flips:** Lists every ticker whose daily move $|\Delta\text{bps}_{i,t}|$ exceeded `200 bps` or whose `Vol20d` exceeded `1.5x` since the prior run, plus any newly activated or cleared `M1–M3` regime flags.
|
||||
- **Data Availability Audit:** Explicitly lists which markets were open vs. closed (`"No data available"`) since the last run.
|
||||
|
||||
---
|
||||
|
||||
### Agenda 5: Daily Key Macro Question & Compounding Qualitative + Quantitative Methodological Rigor
|
||||
|
||||
**Core Question:** *Given all prior analytical questions, what is today's key macro question, how is the multi-day trend evolving, and how do today's qualitative and quantitative methods hold up under scrutiny?*
|
||||
|
||||
1. **Formulating Today's Testable Daily Key Macro Question + Scoring Yesterday's Question (`Longitudinal Compounding`):**
|
||||
- **Review of Prior Run's Question ($Q_{t-1}$):** Reads yesterday's Daily Key Macro Question from `daily-brief-state.json`, evaluates what today's real market and news-wire observations showed, and records a permanent verdict (`CONFIRMED`, `CHALLENGED / REFUTED`, or `PENDING — Market Closed / No Data Available`).
|
||||
- **Today's New Key Macro Question ($Q_t$):** Synthesizes the single highest-stakes question at the intersection of Agenda 1 (Bayesian portfolio risk), Agenda 2 (confirming signals), Agenda 3 (challenging divergences), and Agenda 4 (new policy/wire inputs), specifying the exact observable metrics (`Tickers`, `Coordinates`, `bps / Vol20d thresholds`) that will test $Q_t$ on tomorrow's run ($t+1$).
|
||||
|
||||
2. **Compounding Qualitative Rigor (`Contingent Meaning & Anti-Apophenia Audit`):**
|
||||
- Explicitly documents *why* each highlighted lock in today's brief passes **"The Room Filter"** (co-occurrence within the same day's news wire, supply chain, or closing bell) and rejects ungrounded dictionary fishing.
|
||||
- Tracks the cumulative **Multi-Day Signal-to-Noise Ratio** across consecutive daily runs.
|
||||
|
||||
3. **Compounding Quantitative Rigor (`Statistical Significance, Exact Sample Sizes & Methodological Applicability`):**
|
||||
Every daily brief includes a transparent **Methodological & Statistical Audit Table** explaining both the numbers and *why each statistical method is or is not applicable to that specific problematic*:
|
||||
|
||||
| Analytical Problematic | Statistical Method Applied | Reported Metrics in Daily Brief | Why This Method Applies & Its Explicit Limitations |
|
||||
| :--- | :--- | :--- | :--- |
|
||||
| **1. Regime Belief Updating (`Agenda 1`)** | **Discrete Bayesian Inference with Extant Priors** ($P_{t-1} \to P_t$) | Prior $P_{t-1}(R_m)$, Likelihood Ratio $\Lambda_t$, Posterior $P_t(R_m \mid E_t)$, Historical `P10 / P50 / P90` bps bounds ($n$ stated) | **Why applicable:** Explicitly compounds evidence day-over-day without resetting context to zero.<br/>**Limitation disclosed:** Likelihood estimates are bounded by the historical sample size ($n$ trading days); when a market session is closed (`null`), the posterior is held invariant ($\Lambda_t = 1.0$, `"No new market data"`). |
|
||||
| **2. Cross-Sectional Volatility & Pinning (`Agendas 2–3`)** | **Spearman Rank Correlation ($\rho$) & Within-Ticker $z$-Score ($z_{i,t} = |\Delta\text{bps}_{i,t}|/\bar{\sigma}_i$)** alongside Pearson $r$ & Student $t$-stat ($\text{df}=n-2$) | $\rho$, $r$, $t$-stat, two-tailed $p$-value, exact $n$ (e.g. `has_doss` pinning: $\rho = -0.2101, r = -0.1518, t = -3.19, p < 0.002, n = 433$; `has_wire` shock: $r = +0.2334, t = +4.98, p < 0.0001, n = 433$) | **Why applicable:** Spearman $\rho$ and within-ticker $z$-scores prevent high-volatility instruments (`^VIX`, crypto) from distorting cross-sectional Pearson $r$.<br/>**Limitation disclosed:** Opposite-signed species (`has_doss` $< 0$ vs. `has_wire` $> 0$) must never be summed into a single linear regressor. |
|
||||
| **3. Multi-Species Tail Breakouts (`Dose 3+`)** | **Exact Small-Sample Regime Flagging (`n < 10` Gate)** | Exact count $n$, mean `Vol20d` (`1.98x`), next-day mean $|\Delta\text{bps}|$ (`377.5 bps`), $t$-stat (`+1.52`) | **Why applicable:** Surfaces high-impact tail confluences (`NVDA 4.52x` volume on `2026-11-12`) without hiding them.<br/>**Limitation disclosed:** Automatically badged `Exploratory / Small-Sample (n=4, |t|<1.96)` until cumulative daily runs reach $n \ge 10$ tail observations. |
|
||||
| **4. News-Volume Confounding (`Agenda 3 & 5`)** | **Conditional Split (`Locked News Days` vs. `Unlocked News Days`)** | $\mathbb{E}[|\Delta\text{bps}| \mid \text{wire}=1, \text{lock}=1]$ vs. $\mathbb{E}[|\Delta\text{bps}| \mid \text{wire}=1, \text{lock}=0]$ | **Why applicable:** Separates ordinary fundamental news volatility from incremental coordinate-lock confluence. |
|
||||
|
||||
---
|
||||
|
||||
## 2. Four-Phase Implementation Roadmap (`Phases 1–4`)
|
||||
|
||||
### Phase 1: Build `src/hyperstitionstud_io/quant/daily_brief.py` & `hs-daily-brief` CLI
|
||||
1. Create `/workspace/hyperstitionstudio-core/src/hyperstitionstud_io/quant/daily_brief.py` implementing:
|
||||
- `build_daily_portfolio_regime_brief(target_date_utc=None, write_files=True)`:
|
||||
- Reads strictly real market history (`site/quant/real-market-history.json`), `quant-timeseries.json`, and dated news dossiers (`25..71-dossier-news-YYYY-MM-DD.md`),
|
||||
- Loads extant Bayesian priors and prior Daily Key Macro Questions from `daily-brief-state.json`,
|
||||
- Computes Agendas 1–5 with zero synthetic data and `None` / `null` (`"No data available"`) on all missing observations,
|
||||
- Writes `site/quant/daily-brief-latest.json`, `site/quant/daily-brief-data.js` (`window.HyperstitionStudio.DailyBrief`), and `site/quant/DAILY-PORTFOLIO-AND-MEMETIC-REGIME-BRIEF.{md,pdf}`.
|
||||
2. Register `hs-daily-brief = "hyperstitionstud_io.quant.daily_brief:main"` in `pyproject.toml`.
|
||||
|
||||
### Phase 2: Integrate the Interactive Daily Update Panel into `/quant/` (`site/quant/index.html` & `site/quant/quant-app.js`)
|
||||
1. Add a collapsible **Daily Portfolio & Memetic Regime Update (`Agenda 1–5`)** panel on `/quant/index.html` displaying:
|
||||
- **Agenda 1 Card:** Executive Summary, Durability/Severity top movers, Risk-On/Risk-Off barometer pills (`^VIX`, `^TNX`, `HG=F`, `BTC-USD`), and the Bayesian Prior -> Posterior `Best / Base / Worst Case` scenario table,
|
||||
- **Agenda 2 & 3 Split Cards:** Side-by-side **Confirming Signals (Support)** vs. **Challenging Signals (Divergences & Falsifications)**,
|
||||
- **Agenda 4 Card:** Delta-Since-Last-Run Policy, Macro & Memetic Wire Diff, and
|
||||
- **Agenda 5 Card:** Today's Testable Key Macro Question ($Q_t$), Prior Question Verdict ($Q_{t-1}$), and the Qualitative + Quantitative Methodological Rigor Audit table (with inline `ⓘ` info icons).
|
||||
|
||||
### Phase 3: Wire into `version_sync.py` & `hs-quant-harvest`
|
||||
1. Call `build_daily_portfolio_regime_brief(write_files=True)` at the end of `hs-quant-harvest` (`src/hyperstitionstud_io/quant/collector.py`) so every scheduled closing-bell harvest automatically compounds the Bayesian prior/posterior ledger and refreshes `/quant/daily-brief-latest.json`.
|
||||
2. Register `site/quant/daily-brief-data.js?v={V}` in `src/hyperstitionstud_io/version_sync.py`.
|
||||
|
||||
### Phase 4: Verification in `tests/test_core_suite.py` & `deploy/test-first-deployment.sh`
|
||||
1. Add unit assertions in `tests/test_core_suite.py` verifying:
|
||||
- `build_daily_portfolio_regime_brief()` executes with `synthetic_data_eliminated == True`,
|
||||
- Bayesian posterior probabilities sum to `1.0` (`abs(sum(posteriors.values()) - 1.0) < 1e-6`) and update deterministically from extant priors,
|
||||
- All 5 agenda sections (`executive_summary`, `supporting_signals`, `challenging_signals`, `delta_since_last_run`, `daily_macro_question_and_rigor`) are populated from real data and use `None` / `null` when unavailable, and
|
||||
- Statistical audit fields (`pearson_r`, `spearman_rho`, `t_stat`, `sample_n`, `is_exploratory_low_n`) are present and accurate.
|
||||
2. Add `/quant/daily-brief-latest.json` and `/quant/daily-brief-data.js` to `deploy/test-first-deployment.sh`.
|
||||
Binary file not shown.
@@ -1,46 +0,0 @@
|
||||
# Plan: Minimal Element & Text Reduction of `/donate/` (`site/donate/index.html`) — Three-Sentence Lemur Note + Existing Payment Channel Elements Only (`v2.0.24`)
|
||||
|
||||
- **Document ID:** `PLAN-DONATE-SUBPAGE-MINIMAL-REDUCTION` (`v2.0.24`)
|
||||
- **Roadmap Status:** **ACTIVE / READY**
|
||||
- **Target File:** `/workspace/hyperstitionstudio-core/site/donate/index.html`
|
||||
- **Core Objective:**
|
||||
Reduce `/donate/index.html` strictly by **removing intermediate essay/sandbox elements and excess prose**—recreating zero UI components—so the page consists of:
|
||||
1. The existing `<header>` navigation bar (`lines 340–355`),
|
||||
2. A single **<= 3-sentence note of love and appreciation from the Lemurs** in the established authorial affect,
|
||||
3. The existing `#fuel-channels` payment panel (`lines 439–481`: the centerpiece `.tactile-donate-btn.centerpiece`, `#copyFeedbackBanner`, and `#channelCardsGrid` displaying the existing `BTC` and `XMR` `.channel-card` payment elements), and
|
||||
4. The existing `<footer>` (`lines 491–494`: `"Made with ♥ by Lemurs."`) and copy-to-clipboard `<script>`.
|
||||
|
||||
---
|
||||
|
||||
## 1. Exact Element Retention vs. Deletion Specification (`site/donate/index.html`)
|
||||
|
||||
No new UI components, CSS rules, or payment cards are created; the edit is a pure subtraction of multi-section prose and sandbox chrome:
|
||||
|
||||
| DOM Section in `site/donate/index.html` | Current Lines | Action (`KEEP` / `REDUCE` / `DELETE`) | Details |
|
||||
| :--- | :---: | :---: | :--- |
|
||||
| **1. `<header>` & `.top-nav`** | `340–355` | **KEEP AS-IS** | Preserves the title, `urn:io:hyperstitionstud:donate:v2.0.24` subtitle (required by `version_sync.py`), and `.top-nav` links (`/`, `/quant/`, `/graph/`, `/learn/`, `/calc/`). |
|
||||
| **2. Top Intro Note (`<section class="panel">`)** | `358–384` | **REDUCE TO `<= 3` SENTENCES** | Strips the 4-paragraph essay and duplicate `#heroDonateBtn` column, leaving a single clean `<section class="panel">` containing **3 sentences max** of love from the Lemurs (see Section 2 below). |
|
||||
| **3. Section 1: `<section class="questions-grid">`** | `386–403` | **DELETE (`100%`)** | Removes the 3 long essay cards (*"01 // The Ghost in the Spelling"*, *"02 // The Load-Bearing Chokepoints"*, *"03 // The Discipline of the Room"*). |
|
||||
| **4. Section 2: `<section class="sandbox-card">`** | `405–427` | **DELETE (`100%`)** | Removes *"04 // Interactive Curiosity Sandbox"* (`#curiosityPills`, `#expInputA`, `#expInputB`, `#expReadout`) and its unused `PHONEMIC_MAP` JS (`lines 515–584`), along with unused `.questions-grid` / `.sandbox-card` CSS rules. |
|
||||
| **5. Section 3: `<section class="panel">`** | `429–436` | **DELETE (`100%`)** | Removes *"05 // Backing the Signal — Where Patronage Goes"*. |
|
||||
| **6. Section 4: `<section class="panel" id="fuel-channels">`** | `439–481` | **KEEP EXISTING PAYMENT ELEMENTS AS-IS** | Retains `#primaryDonateActionBtn` (`.tactile-donate-btn.centerpiece`), `#copyFeedbackBanner`, and `#channelCardsGrid` (the existing `BTC` and `XMR` `.channel-card` blocks with their `.addr-box` and `.copy-channel-btn` buttons untouched). Deletes only the redundant 4-button bottom nav row (`lines 483–488`) that duplicates `<header>`. |
|
||||
| **7. `<footer>` & Copy Handler `<script>`** | `491–645` | **KEEP (TRIM UNUSED SANDBOX JS)** | Retains the `version_sync.py` footer (`hyperstitionstud.io/donate v2.0.24` + `"Made with ♥ by Lemurs."`), `file:` protocol route mapper, and `copyChannelAddress()` handler. |
|
||||
|
||||
---
|
||||
|
||||
## 2. Exact Three-Sentence Introductory Copy (Love From the Lemurs, Established Authorial Affect)
|
||||
|
||||
Inside the single introductory `<section class="panel">`, the text is capped at **three sentences**:
|
||||
|
||||
> **Sentence 1:** Every instrument on `hyperstitionstud.io`—the 388-node knowledge graph, the 22-volume encyclopedia, the multi-cipher calculator, and the closing-bell time-series workbench—is built and tended with ♥ by Lemurs as an open, zero-tracker laboratory.
|
||||
> **Sentence 2:** We leave the cover off the machine so anyone curious enough to trace where spoken English, supply-chain bottlenecks, and market tape cross can inspect the raw readout and test their own hypotheses for free.
|
||||
> **Sentence 3:** If an equation lock, a field dossier, or an hour spent exploring the workbench sparked a new line of thought, toss a little fuel into the reactor via the payment channels below.
|
||||
|
||||
---
|
||||
|
||||
## 3. Two-Step Implementation & Verification Plan
|
||||
|
||||
1. **Step 1 — Prune `site/donate/index.html`:**
|
||||
- Remove the intermediate sections (`lines 358–436` & `483–488` and the unused `PHONEMIC_MAP` sandbox script/styles), insert the 3-sentence Lemur note above `#fuel-channels`, and keep the existing `#fuel-channels` payment elements (`#primaryDonateActionBtn`, `#copyFeedbackBanner`, and `#channelCardsGrid` with the existing `BTC` and `XMR` cards) completely intact.
|
||||
2. **Step 2 — Verify via `tests/test_core_suite.py` & `deploy/test-first-deployment.sh`:**
|
||||
- Assert that `site/donate/index.html` passes `version_sync --check`, `ReadOnlyIsolationGuard`, offline URN/portability checks, and returns `HTTP 200 OK` in `deploy/test-first-deployment.sh`.
|
||||
Binary file not shown.
@@ -1,290 +0,0 @@
|
||||
# Plan: Updating `git.libre.audio` Repositories for Direct Per-Repository Install Directory Mapping on the Linode / Akamai VPS (`v1.0.0`)
|
||||
|
||||
- **Document ID:** `PLAN-GIT-LIBRE-AUDIO-REPO-SYNC-FOR-VPS-INSTALL-DIRS` (`v1.0.0`)
|
||||
- **Git Forge Authority:** `git.libre.audio` (SSH push: `ssh://git@git.libre.audio:2222/seasharp/<repo>.git`; Public HTTPS clone/pull on VPS: `https://git.libre.audio/seasharp/<repo>.git`)
|
||||
- **Target Production Domain:** `https://hyperstitionstud.io` (Linode / Akamai Connected Cloud VPS)
|
||||
- **Core Architectural Principle:** **1-to-1 Repository-to-Install-Directory Mapping on the VPS (`/srv/hyperstitionstud.io/repos/<repo-slug>`)** — Caddy routes each URL path on `https://hyperstitionstud.io` directly to the corresponding cloned repository directory on the VPS, eliminating ad-hoc file copying across repositories and enabling independent, atomic `git pull --ff-only` updates per repository.
|
||||
|
||||
---
|
||||
|
||||
## 1. Master Mapping Matrix: Source `/workspace` Repo -> `git.libre.audio` Remote -> VPS Install Dir -> Web Route
|
||||
|
||||
Every sibling repository in `/workspace` maps deterministically to a single repository under `seasharp` on `git.libre.audio`, a dedicated clone directory under `/srv/hyperstitionstud.io/repos/` on the Linode VPS, and a direct Caddy route on `https://hyperstitionstud.io`:
|
||||
|
||||
| # | Local `/workspace` Source Dir | `git.libre.audio` SSH Push URL (`origin`) | `git.libre.audio` Public HTTPS Clone URL (Used by VPS) | Dedicated VPS Install Directory (`/srv/hyperstitionstud.io/repos/*`) | Direct Web Route(s) on `https://hyperstitionstud.io` |
|
||||
| :- | :--- | :--- | :--- | :--- | :--- |
|
||||
| **1** | `/workspace/hyperstitionstudio-core`<br/>(`main`, `tag: v1.2.0`) | `ssh://git@git.libre.audio:2222/seasharp/hyperstitionstudio-core.git` | `https://git.libre.audio/seasharp/hyperstitionstudio-core.git` | `/srv/hyperstitionstud.io/repos/hyperstitionstudio-core` | • `/` (`site/index.html` Portal Homepage)<br/>• `/schemas/v1/*` (`schemas/v1/*.schema.json`) |
|
||||
| **2** | `/workspace/ingglish-hyperdope-gematria`<br/>(`main`, `commit: 3b5bb05`) | `ssh://git@git.libre.audio:2222/seasharp/ingglish-hyperdope-gematria.git` | `https://git.libre.audio/seasharp/ingglish-hyperdope-gematria.git` | `/srv/hyperstitionstud.io/repos/ingglish-hyperdope-gematria` | • `/archive/*` (`ingglish-aq-archive/`) |
|
||||
| **3** | `/workspace/technocapital-singularity-zoology`<br/>(`main`, `tag: v1.7.0`) | `ssh://git@git.libre.audio:2222/seasharp/technocapital-singularity-zoology.git` | `https://git.libre.audio/seasharp/technocapital-singularity-zoology.git` | `/srv/hyperstitionstud.io/repos/technocapital-singularity-zoology` | • `/encyclopedia/*` (`encyclopedia/`)<br/>• `/technocapital-singularity-zoology/encyclopedia/*` (`encyclopedia/` — direct sibling link target!)<br/>• `/zoology/*` (root PDFs, tier list, glossary, `dossiers/`) |
|
||||
| **4** | `/workspace/encyclopedia-knowledge-graph`<br/>(`main`, `tag: v1.0.0`) | `ssh://git@git.libre.audio:2222/seasharp/encyclopedia-knowledge-graph.git` | `https://git.libre.audio/seasharp/encyclopedia-knowledge-graph.git` | `/srv/hyperstitionstud.io/repos/encyclopedia-knowledge-graph` | • `/graph/*` (root `index.html`, `graph-data.js`, `atlas-mode*.png`, `.json`, `.graphml`, `.gexf`, `.canvas`, `docs/`) |
|
||||
| **5** | `/workspace/hyperdope-ci-build`<br/>(`feat/ingglish-aq-corpus`) | `ssh://git@git.libre.audio:2222/seasharp/ingglish-hyperdope-ci.git` | `https://git.libre.audio/seasharp/ingglish-hyperdope-ci.git` | `/srv/hyperstitionstud.io/repos/ingglish-hyperdope-ci` | • `/calc/*` (root `index.html`, `calc/*.js`, `db.json`, `config.default.js`) |
|
||||
|
||||
---
|
||||
|
||||
## 2. Why Per-Repository Install Directories on the VPS Eliminate Build & Path Friction
|
||||
|
||||
1. **Zero File-Copy Drift Between Git and the Live Web Root:**
|
||||
Instead of a deployment script cherry-picking individual `.html`, `.js`, `.png`, and `.pdf` files out of multiple repositories and copying them into a synthetic directory tree, each repository on the VPS **is** its own install directory (`/srv/hyperstitionstud.io/repos/<repo>`). What is committed and tagged in Git on `git.libre.audio` is byte-for-byte what exists in `/srv/hyperstitionstud.io/repos/<repo>`.
|
||||
2. **Native Sibling Relative-Link Compatibility (`../technocapital-singularity-zoology/encyclopedia/`):**
|
||||
Inside `encyclopedia-knowledge-graph/index.html`, clicking `"Open Encyclopedia Volume PDF"` links to `../technocapital-singularity-zoology/encyclopedia/<div_id>/<slug>.pdf`.
|
||||
When the user visits `https://hyperstitionstud.io/graph/index.html`, the browser resolves `../technocapital-singularity-zoology/encyclopedia/<div_id>/<slug>.pdf` to:
|
||||
`https://hyperstitionstud.io/technocapital-singularity-zoology/encyclopedia/<div_id>/<slug>.pdf`!
|
||||
By mapping `/technocapital-singularity-zoology/*` (as well as the short alias `/encyclopedia/*`) directly to `/srv/hyperstitionstud.io/repos/technocapital-singularity-zoology` in Caddy, **zero rewriting of `graph-data.js` or `index.html` is needed on the VPS**—the exact same unmodified repository works via `file://`, via local `python3 -m http.server`, and on `https://hyperstitionstud.io/graph/`!
|
||||
3. **Independent Per-Repo Updates & Rollbacks:**
|
||||
Updating the Knowledge Graph on the VPS requires only:
|
||||
`git -C /srv/hyperstitionstud.io/repos/encyclopedia-knowledge-graph fetch origin && git -C /srv/hyperstitionstud.io/repos/encyclopedia-knowledge-graph checkout v1.0.0`
|
||||
without touching the 22-Volume PDF Encyclopedia repo or the Calculator repo.
|
||||
|
||||
---
|
||||
|
||||
## 3. Phase 1 (Git Operator on Workstation): Prepare & Push All 5 Repositories to `git.libre.audio`
|
||||
|
||||
### Step 1.1: Include the Static Portal Homepage (`site/index.html`) in `hyperstitionstudio-core`
|
||||
So that even the root homepage (`https://hyperstitionstud.io/`) comes directly from a version-controlled repository install directory (`/srv/hyperstitionstud.io/repos/hyperstitionstudio-core/site/index.html`) rather than an unversioned file on the VPS:
|
||||
- Commit the `< 8 KB` inline-CSS/SVG dark-mode portal homepage at `/workspace/hyperstitionstudio-core/site/index.html`, linking directly to `/graph/`, `/encyclopedia/`, `/zoology/`, `/archive/`, and `/calc/`.
|
||||
|
||||
### Step 1.2: Configure `git.libre.audio` Remotes & Verify Pre-Push Gates Across All 5 Repositories
|
||||
|
||||
Run the pre-push verification suite first to confirm all 5 repositories are clean and pass all 6 Knowledge Graph & SHA-256 isolation gates:
|
||||
|
||||
```bash
|
||||
# 1. Verify environment, 4,897 offline CMUdict entries, and SHA-256 locks
|
||||
hs-doctor
|
||||
|
||||
# 2. Run the 6-suite core library unit & integration tests
|
||||
python3 /workspace/hyperstitionstudio-core/tests/test_core_suite.py
|
||||
|
||||
# 3. Verify all 6 Knowledge Graph gates
|
||||
python3 /workspace/encyclopedia-knowledge-graph/scripts/build_encyclopedia_knowledge_graph.py --verify-only
|
||||
```
|
||||
|
||||
### Step 1.3: Create Missing Repositories on `git.libre.audio` (If Not Yet Created) & Push in Dependency Order
|
||||
|
||||
Ensure the three new repositories exist under `seasharp` on `git.libre.audio` (`Visibility: Public` so the Linode VPS can clone over `https://` without storing SSH private keys on the web server):
|
||||
- `seasharp/hyperstitionstudio-core`
|
||||
- `seasharp/technocapital-singularity-zoology`
|
||||
- `seasharp/encyclopedia-knowledge-graph`
|
||||
*(Note: `seasharp/ingglish-hyperdope-gematria` and `seasharp/ingglish-hyperdope-ci` already exist on `git.libre.audio` and are already configured as `origin` in their respective `/workspace` folders).*
|
||||
|
||||
Then execute the topological push sequence:
|
||||
|
||||
```bash
|
||||
FORGE_SSH="ssh://git@git.libre.audio:2222/seasharp"
|
||||
|
||||
# 1. Push Repo #1: hyperstitionstudio-core (main + tag v1.2.0)
|
||||
/workspace/hyperstitionstudio-core/push-to-origin.sh "${FORGE_SSH}/hyperstitionstudio-core.git"
|
||||
|
||||
# 2. Push Repo #2: ingglish-hyperdope-gematria (main, commit 3b5bb05 with Dossiers 48-70)
|
||||
cd /workspace/ingglish-hyperdope-gematria
|
||||
git push -u origin main
|
||||
|
||||
# 3. Push Repo #3: technocapital-singularity-zoology (main + tags v1.0.0..v1.7.0)
|
||||
cd /workspace/technocapital-singularity-zoology
|
||||
git remote add origin "${FORGE_SSH}/technocapital-singularity-zoology.git" 2>/dev/null || \
|
||||
git remote set-url origin "${FORGE_SSH}/technocapital-singularity-zoology.git"
|
||||
git push -u origin main
|
||||
git push origin --tags
|
||||
|
||||
# 4. Push Repo #4: encyclopedia-knowledge-graph (main + tag v1.0.0)
|
||||
/workspace/encyclopedia-knowledge-graph/push-to-origin.sh "${FORGE_SSH}/encyclopedia-knowledge-graph.git"
|
||||
|
||||
# 5. Push Repo #5: hyperdope-ci-build (feat/ingglish-aq-corpus -> seasharp/ingglish-hyperdope-ci.git)
|
||||
cd /workspace/hyperdope-ci-build
|
||||
git push -u origin feat/ingglish-aq-corpus
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 4. Phase 2 (VPS Operator on Linode / Akamai): Per-Repository Install Layout & Direct Caddy Routing
|
||||
|
||||
### Step 2.1: Clone Each `git.libre.audio` Repository into `/srv/hyperstitionstud.io/repos/<repo>`
|
||||
|
||||
On the Linode VPS, create `/srv/hyperstitionstud.io/repos` and clone each repository over public HTTPS directly into its permanent install directory:
|
||||
|
||||
```bash
|
||||
sudo mkdir -p /srv/hyperstitionstud.io/repos
|
||||
sudo chown -R "$USER:$USER" /srv/hyperstitionstud.io
|
||||
cd /srv/hyperstitionstud.io/repos
|
||||
|
||||
FORGE_HTTPS="https://git.libre.audio/seasharp"
|
||||
|
||||
git clone "${FORGE_HTTPS}/hyperstitionstudio-core.git"
|
||||
git clone "${FORGE_HTTPS}/ingglish-hyperdope-gematria.git"
|
||||
git clone "${FORGE_HTTPS}/technocapital-singularity-zoology.git"
|
||||
git clone "${FORGE_HTTPS}/encyclopedia-knowledge-graph.git"
|
||||
git clone -b feat/ingglish-aq-corpus "${FORGE_HTTPS}/ingglish-hyperdope-ci.git"
|
||||
|
||||
# Initialize local workspace.toml and Python venv at the /srv/hyperstitionstud.io/repos parent level
|
||||
cp hyperstitionstudio-core/workspace.example.toml ./workspace.toml
|
||||
python3 -m venv .venv
|
||||
.venv/bin/pip install --upgrade pip
|
||||
.venv/bin/pip install -r hyperstitionstudio-core/requirements.txt
|
||||
.venv/bin/pip install --no-deps -e ./hyperstitionstudio-core
|
||||
|
||||
# Verify all 4 repos and SHA-256 locks directly inside /srv/hyperstitionstud.io/repos
|
||||
.venv/bin/hs-doctor
|
||||
.venv/bin/python3 encyclopedia-knowledge-graph/scripts/build_encyclopedia_knowledge_graph.py --verify-only
|
||||
```
|
||||
|
||||
### Step 2.2: Pre-Compress In-Place Inside Each Repo Install Dir (& Optional `tmpfs` Mirror)
|
||||
|
||||
Run a single non-destructive sidecar compression pass that creates `.br` (`brotli -q 11 -k`) and `.gz` (`gzip -9 -k`) sidecar files alongside the tracked `.html`, `.js`, `.json`, `.graphml`, `.gexf`, and `.canvas` files inside `/srv/hyperstitionstud.io/repos/` (with `*.br` and `*.gz` listed in `/srv/hyperstitionstud.io/repos/.git/info/exclude` or `.gitignore` so `git status` remains 100% clean!), or sync `/srv/hyperstitionstud.io/repos/` 1-to-1 into the RAM-backed `/var/www/hyperstitionstud.io/repos/` `tmpfs` mount:
|
||||
|
||||
```bash
|
||||
# Sync all 5 repo install directories 1-to-1 into RAM-backed tmpfs (/var/www/hyperstitionstud.io/repos/<repo>)
|
||||
sudo mkdir -p /var/www/hyperstitionstud.io/repos
|
||||
sudo rsync -a --delete --exclude='.git' --exclude='.venv' \
|
||||
/srv/hyperstitionstud.io/repos/ /var/www/hyperstitionstud.io/repos/
|
||||
|
||||
# Generate .br and .gz precompressed sidecars inside the RAM mount
|
||||
sudo find /var/www/hyperstitionstud.io/repos -type f \
|
||||
\( -name "*.html" -o -name "*.js" -o -name "*.json" -o -name "*.graphml" -o -name "*.gexf" -o -name "*.canvas" -o -name "*.css" \) \
|
||||
-exec gzip -9 -k -f {} \; \
|
||||
-exec brotli -q 11 -k -f {} \;
|
||||
```
|
||||
|
||||
### Step 2.3: Caddy Configuration Referencing Each Repository Install Directory Directly (`/etc/caddy/Caddyfile`)
|
||||
|
||||
Every route in `/etc/caddy/Caddyfile` maps explicitly to its owning repository install directory under `/var/www/hyperstitionstud.io/repos/<repo-slug>` (or `/srv/hyperstitionstud.io/repos/<repo-slug>`):
|
||||
|
||||
```caddyfile
|
||||
# /etc/caddy/Caddyfile — Direct Per-Repository Install Directory Routing
|
||||
{
|
||||
servers {
|
||||
protocols h1 h2 h3
|
||||
}
|
||||
}
|
||||
|
||||
www.hyperstitionstud.io {
|
||||
redir https://hyperstitionstud.io{uri} permanent
|
||||
}
|
||||
|
||||
hyperstitionstud.io {
|
||||
encode zstd gzip
|
||||
|
||||
header {
|
||||
Alt-Svc "h3=\":443\"; ma=2592000"
|
||||
Strict-Transport-Security "max-age=63072000; includeSubDomains; preload"
|
||||
X-Content-Type-Options "nosniff"
|
||||
Referrer-Policy "strict-origin-when-cross-origin"
|
||||
-Server
|
||||
}
|
||||
|
||||
# 1. Repo: encyclopedia-knowledge-graph -> https://hyperstitionstud.io/graph/*
|
||||
handle_path /graph/* {
|
||||
root * /var/www/hyperstitionstud.io/repos/encyclopedia-knowledge-graph
|
||||
file_server {
|
||||
precompressed br gzip
|
||||
}
|
||||
}
|
||||
redir /graph /graph/ permanent
|
||||
|
||||
# 2. Repo: technocapital-singularity-zoology -> /encyclopedia/*, /zoology/*, and sibling path
|
||||
handle_path /encyclopedia/* {
|
||||
root * /var/www/hyperstitionstud.io/repos/technocapital-singularity-zoology/encyclopedia
|
||||
file_server {
|
||||
precompressed br gzip
|
||||
}
|
||||
}
|
||||
handle_path /technocapital-singularity-zoology/* {
|
||||
root * /var/www/hyperstitionstud.io/repos/technocapital-singularity-zoology
|
||||
file_server {
|
||||
precompressed br gzip
|
||||
}
|
||||
}
|
||||
handle_path /zoology/* {
|
||||
root * /var/www/hyperstitionstud.io/repos/technocapital-singularity-zoology
|
||||
file_server {
|
||||
precompressed br gzip
|
||||
}
|
||||
}
|
||||
|
||||
# 3. Repo: ingglish-hyperdope-gematria -> /archive/*
|
||||
handle_path /archive/* {
|
||||
root * /var/www/hyperstitionstud.io/repos/ingglish-hyperdope-gematria/ingglish-aq-archive
|
||||
file_server {
|
||||
precompressed br gzip
|
||||
}
|
||||
}
|
||||
|
||||
# 4. Repo: ingglish-hyperdope-ci -> /calc/*
|
||||
handle_path /calc/* {
|
||||
root * /var/www/hyperstitionstud.io/repos/ingglish-hyperdope-ci
|
||||
file_server {
|
||||
precompressed br gzip
|
||||
}
|
||||
}
|
||||
redir /calc /calc/ permanent
|
||||
|
||||
# 5. Repo: hyperstitionstudio-core -> /schemas/* and Root Portal Homepage (/)
|
||||
handle_path /schemas/* {
|
||||
root * /var/www/hyperstitionstud.io/repos/hyperstitionstudio-core/schemas
|
||||
file_server {
|
||||
precompressed br gzip
|
||||
}
|
||||
}
|
||||
handle {
|
||||
root * /var/www/hyperstitionstud.io/repos/hyperstitionstudio-core/site
|
||||
file_server {
|
||||
precompressed br gzip
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 5. Phase 3: Per-Repository Update & Audit Workflow on the VPS (`sync-vps-repos.sh`)
|
||||
|
||||
Whenever any repository on `git.libre.audio` receives a new commit or tag, the VPS operator updates either all repositories or a single named repository (`./sync-vps-repos.sh encyclopedia-knowledge-graph`) using the following script:
|
||||
|
||||
```bash
|
||||
#!/usr/bin/env bash
|
||||
# /srv/hyperstitionstud.io/sync-vps-repos.sh
|
||||
# Pulls latest verified commits from git.libre.audio per repo install dir, runs 6-gate audit,
|
||||
# and syncs updated repo(s) into the RAM-backed /var/www/hyperstitionstud.io/repos/ tmpfs mount.
|
||||
set -euo pipefail
|
||||
|
||||
REPOS_ROOT="/srv/hyperstitionstud.io/repos"
|
||||
LIVE_REPOS="/var/www/hyperstitionstud.io/repos"
|
||||
TARGET_REPO="${1:-all}"
|
||||
|
||||
REPOS=(
|
||||
"hyperstitionstudio-core:main"
|
||||
"ingglish-hyperdope-gematria:main"
|
||||
"technocapital-singularity-zoology:main"
|
||||
"encyclopedia-knowledge-graph:main"
|
||||
"ingglish-hyperdope-ci:feat/ingglish-aq-corpus"
|
||||
)
|
||||
|
||||
for entry in "${REPOS[@]}"; do
|
||||
repo="${entry%%:*}"
|
||||
branch="${entry##*:}"
|
||||
if [[ "${TARGET_REPO}" != "all" && "${TARGET_REPO}" != "${repo}" ]]; then
|
||||
continue
|
||||
fi
|
||||
echo "[git.libre.audio -> VPS] Updating ${REPOS_ROOT}/${repo} (${branch})..."
|
||||
git -C "${REPOS_ROOT}/${repo}" fetch origin "${branch}" --tags
|
||||
git -C "${REPOS_ROOT}/${repo}" merge --ff-only "origin/${branch}"
|
||||
done
|
||||
|
||||
echo "[audit] Running hs-doctor and 6-gate Knowledge Graph verification..."
|
||||
"${REPOS_ROOT}/.venv/bin/hs-doctor" >/dev/null
|
||||
"${REPOS_ROOT}/.venv/bin/python3" "${REPOS_ROOT}/encyclopedia-knowledge-graph/scripts/build_encyclopedia_knowledge_graph.py" --verify-only >/dev/null
|
||||
|
||||
echo "[ram-sync] Syncing per-repo install dirs to ${LIVE_REPOS} and pre-compressing (.br / .gz)..."
|
||||
for entry in "${REPOS[@]}"; do
|
||||
repo="${entry%%:*}"
|
||||
if [[ "${TARGET_REPO}" != "all" && "${TARGET_REPO}" != "${repo}" ]]; then
|
||||
continue
|
||||
fi
|
||||
mkdir -p "${LIVE_REPOS}/${repo}"
|
||||
rsync -a --delete --exclude='.git' "${REPOS_ROOT}/${repo}/" "${LIVE_REPOS}/${repo}/"
|
||||
find "${LIVE_REPOS}/${repo}" -type f \
|
||||
\( -name "*.html" -o -name "*.js" -o -name "*.json" -o -name "*.graphml" -o -name "*.gexf" -o -name "*.canvas" -o -name "*.css" \) \
|
||||
-exec gzip -9 -k -f {} \; \
|
||||
-exec brotli -q 11 -k -f {} \;
|
||||
done
|
||||
|
||||
echo "[ok] Live per-repo install directories updated at ${LIVE_REPOS}"
|
||||
```
|
||||
Binary file not shown.
@@ -1,186 +0,0 @@
|
||||
# Git Operator Release & Public HTTP Repository Update Plan: Guaranteeing Zero-Error New-User Onboarding (`v1.0.0`)
|
||||
|
||||
- **Document ID:** `PLAN-GIT-OPERATOR-PUBLIC-HTTP-RELEASE-AND-ONBOARDING` (`v1.0.0`)
|
||||
- **Target Audience:** Git Operator maintaining the public HTTP repositories (`https://git.libre.audio/seasharp/*` and/or GitHub mirrors)
|
||||
- **End-User Guarantee:** A completely new user cloning the public HTTP repositories into **any** arbitrary local parent directory (e.g., `~/hyperstition-workspace/` on Linux or macOS, **not** `/workspace/`) can follow `README.md` and `OPERATORS-MANUAL-ENCYCLOPEDIA-KNOWLEDGE-GRAPH.md` from top to bottom with **zero errors**.
|
||||
- **Glossary & Encyclopedia Isolation Invariant:** Verified (`0` changes to `taxonomy/glossary-registry.json` or `encyclopedia/encyclopedia-manifest.json`).
|
||||
|
||||
---
|
||||
|
||||
## 1. Executive Audit: Current Repository & Remote State vs. Public HTTP Readiness
|
||||
|
||||
An audit of the 5 sibling repositories in `/workspace` reveals two categories of blockers that a Git Operator must resolve before updating the public HTTP remotes:
|
||||
|
||||
### 1.1 Current Git Working-Tree & Remote Status Across `/workspace`
|
||||
|
||||
| Repository | Current Branch & Tag | Configured Remote (`git remote -v`) | Working-Tree State & Blocker to Resolve |
|
||||
| :--- | :--- | :--- | :--- |
|
||||
| **`hyperstitionstudio-core`** | `main` (`v1.2.0`, `f8235a2`) | *None configured yet* | Clean working tree; needs remote `origin` added and pushed first. |
|
||||
| **`ingglish-hyperdope-gematria`** | `main` | `origin`: `ssh://git@git.libre.audio:2222/seasharp/ingglish-hyperdope-gematria.git` | **Has uncommitted modified & untracked files** (`48..70-dossier-*.md`, `news-aq-harvest-latest.json`, `build_wire_report_pdf.py`). If not committed & pushed, a new user cloning from HTTP will miss Dossiers `48–70`! |
|
||||
| **`technocapital-singularity-zoology`** | `main` (`v1.7.0`, `1f2c4f4`) | *None configured yet* | Clean working tree (`8` JSON registries tracked); needs remote `origin` added and pushed. |
|
||||
| **`encyclopedia-knowledge-graph`** | `main` (`v1.0.0`, `b4ca2ce`) | *None configured yet* | Clean working tree (`388` nodes, `1,282` edges); needs remote `origin` added and pushed. |
|
||||
| **`hyperdope-ci-build`** | `feat/ingglish-aq-corpus` (`ahead 43`) | `origin`: `ssh://git@git.libre.audio:2222/seasharp/ingglish-hyperdope-ci.git` | Clean working tree (`43` local commits ahead of `origin`); needs `git push origin feat/ingglish-aq-corpus`. |
|
||||
|
||||
### 1.2 Four Hidden "/workspace" Traps That Would Break a Brand-New User Outside `/workspace`
|
||||
|
||||
Even if all 5 repositories are pushed as-is today, a new user who clones them into `~/projects/hyperstition/` (instead of `/workspace/`) and follows the docs will hit **four deterministic errors** unless the Git Operator applies the Phase 1 portability hardening below before pushing:
|
||||
|
||||
1. **Trap 1 — Hardcoded `/workspace/...` Default Paths in Python CLI Scripts:**
|
||||
- `build_encyclopedia_knowledge_graph.py` currently sets `KG_REPO_ROOT = Path("/workspace/encyclopedia-knowledge-graph")` and `UPSTREAM_REPO_DEFAULT = Path("/workspace/technocapital-singularity-zoology")`.
|
||||
- `hyperstitionstud_io/config/__init__.py` defaults to `Path("/workspace/...")` when `/workspace/workspace.toml` does not exist.
|
||||
- **Effect on New User:** Running `python3 scripts/build_encyclopedia_knowledge_graph.py` or `hs-doctor` inside `~/projects/hyperstition/encyclopedia-knowledge-graph` raises `FileNotFoundError: '/workspace/technocapital-singularity-zoology/...'`.
|
||||
- **Fix:** Derive `REPO_ROOT = Path(__file__).resolve().parent.parent` and `WORKSPACE_ROOT = REPO_ROOT.parent` dynamically in every script and in `hyperstitionstud_io.config`.
|
||||
2. **Trap 2 — Absolute `/workspace/...` Paths Stored Inside `encyclopedia-manifest.json` (`vol["md_path"]`):**
|
||||
- `encyclopedia/encyclopedia-manifest.json` stores `"md_path": "/workspace/technocapital-singularity-zoology/encyclopedia/00-.../00-....md"`.
|
||||
- In `build_encyclopedia_knowledge_graph.py` (line 197), `md_p = Path(vol["md_path"])` checks that literal `/workspace/...` path instead of resolving `upstream_repo / "encyclopedia" / vol["division_id"] / f"{vol['slug']}.md"`.
|
||||
- **Effect on New User:** Outside `/workspace`, `md_p.exists()` returns `False`, causing all `281` `IN_VOLUME` edges to drop to `0` and failing Gate 3 (`edges >= 1282`)!
|
||||
- **Fix:** Resolve volume Markdown paths relative to `upstream_repo / "encyclopedia" / vol["division_id"] / f"{vol['slug']}.md"` first, falling back to `Path(vol["md_path"])`.
|
||||
3. **Trap 3 — Relative Local Paths in `verify_draft()` When Running Outside `/workspace`:**
|
||||
- In `taxonomy/citations-ledger-common.json`, entries `[3]..[7]` store `/workspace/technocapital-singularity-zoology/dossiers/65-dossier-...md`.
|
||||
- When a new user runs `hs-citations verify` or `test_core_suite.py` inside `~/projects/hyperstition/`, `load_ledger()` should resolve `/workspace/technocapital-singularity-zoology/...` prefix against the active `cfg.zoology_dir` when `/workspace` does not exist on the host machine.
|
||||
4. **Trap 4 — OS-Specific DejaVu TrueType Font Paths (`/usr/share/fonts/truetype/dejavu/`):**
|
||||
- Debian/Ubuntu stores DejaVu fonts in `/usr/share/fonts/truetype/dejavu/`, whereas Fedora/RHEL uses `/usr/share/fonts/dejavu-sans-fonts/`, Arch uses `/usr/share/fonts/TTF/`, and macOS uses `/Library/Fonts/` or Homebrew paths.
|
||||
- **Fix:** Implement a multi-path TrueType font resolver in `hyperstitionstud_io.publishing.fonts` (with graceful fallback to `ImageFont.load_default()` in Pillow and built-in `Helvetica`/`Courier` in ReportLab) so new users on Fedora, Arch, Ubuntu, or macOS never hit `TTFError` or `OSError`.
|
||||
|
||||
---
|
||||
|
||||
## 2. Step-by-Step Git Operator Execution Plan (`Phases 1–5`)
|
||||
|
||||
### Phase 1: Eliminate All Hardcoded `/workspace` & OS-Font Assumptions (Location-Independent Sibling Discovery)
|
||||
|
||||
Before pushing to any public HTTP remote, update the path-resolution logic in `hyperstitionstudio-core`, `encyclopedia-knowledge-graph`, and `technocapital-singularity-zoology`:
|
||||
|
||||
1. **Dynamic Sibling Discovery in `hyperstitionstud_io.config`:**
|
||||
Instead of defaulting to `/workspace`, `load_workspace_config()` computes:
|
||||
```python
|
||||
PACKAGE_REPO_ROOT = Path(__file__).resolve().parents[3] # .../hyperstitionstudio-core
|
||||
WORKSPACE_ROOT = PACKAGE_REPO_ROOT.parent # Parent folder containing all sibling repos
|
||||
```
|
||||
and searches for `WORKSPACE_ROOT / "workspace.toml"` before `/workspace/workspace.toml`. All default sibling paths (`core_dir`, `archive_dir`, `zoology_dir`, `knowledge_graph_dir`, `ci_build_dir`) resolve relative to `WORKSPACE_ROOT`.
|
||||
2. **Dynamic `REPO_ROOT` & Relative `encyclopedia/` Lookup in `build_encyclopedia_knowledge_graph.py`:**
|
||||
- Set `KG_REPO_ROOT = Path(__file__).resolve().parent.parent` and `UPSTREAM_REPO_DEFAULT = KG_REPO_ROOT.parent / "technocapital-singularity-zoology"`.
|
||||
- Resolve each volume Markdown file as `md_p = upstream_repo / "encyclopedia" / div_id / f"{slug}.md"` (falling back to `Path(vol["md_path"])` only if the relative path is absent).
|
||||
3. **Cross-Distro / Cross-OS Font Resolver (`hyperstitionstud_io.publishing.fonts`):**
|
||||
Search candidate font directories (`/usr/share/fonts/truetype/dejavu`, `/usr/share/fonts/dejavu-sans-fonts`, `/usr/share/fonts/dejavu-sans-mono-fonts`, `/usr/share/fonts/TTF`, `/Library/Fonts`) and fall back cleanly to built-in fonts if DejaVu is not installed.
|
||||
|
||||
---
|
||||
|
||||
### Phase 2: Synchronize & Commit Pending Upstream Archive Files in `/workspace/ingglish-hyperdope-gematria`
|
||||
|
||||
Ensure the upstream archive repository has zero uncommitted or untracked files before pushing:
|
||||
|
||||
```bash
|
||||
cd /workspace/ingglish-hyperdope-gematria
|
||||
# 1. Verify .mp3 files are ignored in .gitignore so audio binaries do not bloat HTTP clones
|
||||
grep -q '\*.mp3' .gitignore || printf "\n*.mp3\n__pycache__/\n*.pyc\n" >> .gitignore
|
||||
|
||||
# 2. Stage all dossiers (48..70-dossier-*.md), news-aq-harvest-latest.json, and updated scripts
|
||||
git add -A
|
||||
git commit -m "feat(archive): sync dossiers 48-70, 2026-11-28 wire harvest, zoology dossiers 65-69, and lecture transcripts"
|
||||
git status -s -b
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
### Phase 3: Provision & Push Repositories in Strict Dependency Order
|
||||
|
||||
The Git Operator must create the remote repositories on the Git host (e.g., `https://git.libre.audio/seasharp/<repo>.git` or `https://github.com/<org>/<repo>.git`) with **public HTTP read access enabled** so anonymous users can `git clone https://...` without SSH keys, and push them in topological order:
|
||||
|
||||
```bash
|
||||
# Set your remote base URL (SSH for operator push; public HTTP for new-user clone)
|
||||
OPERATOR_PUSH_BASE="ssh://git@git.libre.audio:2222/seasharp"
|
||||
PUBLIC_HTTP_BASE="https://git.libre.audio/seasharp"
|
||||
|
||||
# 1. Push Tier 0 Common Library: hyperstitionstudio-core (v1.2.0)
|
||||
/workspace/hyperstitionstudio-core/push-to-origin.sh "${OPERATOR_PUSH_BASE}/hyperstitionstudio-core.git"
|
||||
|
||||
# 2. Push Tier 1 Upstream Archive: ingglish-hyperdope-gematria
|
||||
cd /workspace/ingglish-hyperdope-gematria
|
||||
git push -u origin main
|
||||
|
||||
# 3. Push Tier 2 Domain Taxonomy & Encyclopedia: technocapital-singularity-zoology (v1.7.0)
|
||||
cd /workspace/technocapital-singularity-zoology
|
||||
git remote add origin "${OPERATOR_PUSH_BASE}/technocapital-singularity-zoology.git" 2>/dev/null || \
|
||||
git remote set-url origin "${OPERATOR_PUSH_BASE}/technocapital-singularity-zoology.git"
|
||||
git push -u origin main
|
||||
git push origin --tags
|
||||
|
||||
# 4. Push Tier 3 Interactive Knowledge Graph: encyclopedia-knowledge-graph (v1.0.0)
|
||||
/workspace/encyclopedia-knowledge-graph/push-to-origin.sh "${OPERATOR_PUSH_BASE}/encyclopedia-knowledge-graph.git"
|
||||
|
||||
# 5. Push Tier 4 Downstream CI PR Fork: hyperdope-ci-build
|
||||
cd /workspace/hyperdope-ci-build
|
||||
git push -u origin feat/ingglish-aq-corpus
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
### Phase 4: Standardize the Public HTTP "New User Quickstart" Across All `README.md` Files
|
||||
|
||||
Every repository's top-level `README.md` must present the exact same, copy-pasteable **5-Minute New-User Onboarding Block** using **public `https://` clone URLs** and **relative paths** (never requiring `/workspace` or root privileges):
|
||||
|
||||
```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
|
||||
|
||||
# 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 default workspace configuration and run the pre-flight health check
|
||||
cp hyperstitionstudio-core/workspace.example.toml ./workspace.toml
|
||||
hs-doctor
|
||||
|
||||
# 5. Verify the Knowledge Graph (all 6 CI gates) & launch in your browser
|
||||
python3 encyclopedia-knowledge-graph/scripts/build_encyclopedia_knowledge_graph.py --verify-only
|
||||
|
||||
# Deployment Option A (100% Offline Direct Browser Open — Zero Server):
|
||||
xdg-open encyclopedia-knowledge-graph/index.html # Linux (or `open` on macOS)
|
||||
|
||||
# Deployment Option B (Local HTTP Server — Serves Both Graph Workbench & 22 Encyclopedia PDFs):
|
||||
python3 -m http.server 8090 --bind 127.0.0.1 --directory .
|
||||
# Then open: http://127.0.0.1:8090/encyclopedia-knowledge-graph/index.html
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
### Phase 5: Mandatory Clean-Room New-User Simulation Gate (Pre-Release Verification)
|
||||
|
||||
Before announcing or closing the release, the Git Operator must execute a **Clean-Room New-User Simulation** in an isolated directory outside `/workspace` (e.g., `/tmp/new-user-cleanroom-test`) while temporarily hiding or ignoring `/workspace` defaults:
|
||||
|
||||
```bash
|
||||
rm -rf /tmp/new-user-cleanroom-test
|
||||
mkdir -p /tmp/new-user-cleanroom-test && cd /tmp/new-user-cleanroom-test
|
||||
|
||||
# Clone strictly via git clone (from public HTTP URLs or local bare/repo paths during staging)
|
||||
git clone /workspace/hyperstitionstudio-core
|
||||
git clone /workspace/ingglish-hyperdope-gematria
|
||||
git clone /workspace/technocapital-singularity-zoology
|
||||
git clone /workspace/encyclopedia-knowledge-graph
|
||||
|
||||
# Run every documented new-user command inside /tmp/new-user-cleanroom-test
|
||||
PYTHONPATH="/tmp/new-user-cleanroom-test/hyperstitionstudio-core/src" \
|
||||
python3 /tmp/new-user-cleanroom-test/hyperstitionstudio-core/tests/test_core_suite.py
|
||||
|
||||
PYTHONPATH="/tmp/new-user-cleanroom-test/hyperstitionstudio-core/src" \
|
||||
python3 /tmp/new-user-cleanroom-test/encyclopedia-knowledge-graph/scripts/build_encyclopedia_knowledge_graph.py
|
||||
|
||||
PYTHONPATH="/tmp/new-user-cleanroom-test/hyperstitionstudio-core/src" \
|
||||
python3 /tmp/new-user-cleanroom-test/encyclopedia-knowledge-graph/scripts/build_encyclopedia_knowledge_graph.py --verify-only
|
||||
```
|
||||
|
||||
**Release Acceptance Criteria (All 5 Must Pass):**
|
||||
1. `test_core_suite.py` exits `0` (`ALL 6 TEST SUITES PASSED`) inside `/tmp/new-user-cleanroom-test`.
|
||||
2. `build_encyclopedia_knowledge_graph.py` exits `0` inside `/tmp/new-user-cleanroom-test` without passing `--upstream-repo` or `--out-dir` flags, producing all `388` nodes and `1,282` deduplicated edges (`281` `IN_VOLUME` edges preserved).
|
||||
3. `build_encyclopedia_knowledge_graph.py --verify-only` reports `"all_gates_passed": true`.
|
||||
4. `sources.py verify --evidence` exits `0` (`citations OK`) on all 5 stakeholder proposals inside `/tmp/new-user-cleanroom-test`.
|
||||
5. `git status -s` is completely empty across every repository in `/workspace`.
|
||||
@@ -1,55 +0,0 @@
|
||||
# Plan: Global Site Footer (`"Made with ♥ by Lemurs."`) Across All `hyperstitionstud.io` Web Surfaces (`v2.0.0`)
|
||||
|
||||
- **Document ID:** `PLAN-GLOBAL-SITE-FOOTER-LEMURS` (`v2.0.0`)
|
||||
- **Visible Footer Copy:** `Made with ♥ by Lemurs.`
|
||||
- **Unicode Heart Specification:** `U+2665` (`♥`, BLACK HEART SUIT, UTF-8 `0xE2 0x99 0xA5` / HTML entity `♥`) wrapped in an accessible `<span class="hs-heart" role="img" aria-label="love">♥</span>` styled in `#fb7185` / `#ff4d4d`.
|
||||
- **Target Scope:** All HTML web entry points across `hyperstitionstudio-core`, `encyclopedia-knowledge-graph`, and `haiperdohp-jemaytreeah` (both on `https://hyperstitionstud.io` and in offline `file://` mode).
|
||||
|
||||
---
|
||||
|
||||
## 1. Typography, Unicode & Accessibility Specification
|
||||
|
||||
1. **Why Unicode `U+2665` (`♥`) Over Multi-Codepoint Emoji (`U+2764 U+FE0F`):**
|
||||
- `U+2665` (`♥`) is natively embedded in `DejaVu Sans Mono`, `DejaVu Sans`, `JetBrains Mono`, `SF Mono`, `Menlo`, and `Consolas`. Unlike color emoji fonts (which are often absent on minimal Linux desktop setups and render inconsistently across operating systems), `U+2665` renders deterministically offline across 100% of browsers and OSes without external font files.
|
||||
2. **Accessible HTML & CSS Pattern:**
|
||||
```html
|
||||
<span class="hs-lemur-credit">Made with <span class="hs-heart" role="img" aria-label="love">♥</span> by Lemurs.</span>
|
||||
```
|
||||
```css
|
||||
.hs-lemur-credit {
|
||||
color: #94a3b8;
|
||||
font-size: 0.74rem;
|
||||
letter-spacing: 0.02em;
|
||||
}
|
||||
.hs-heart {
|
||||
color: #fb7185;
|
||||
display: inline-block;
|
||||
padding: 0 2px;
|
||||
}
|
||||
```
|
||||
- Screen readers announce `role="img" aria-label="love"` as `"Made with love by Lemurs."` instead of reading `"Black Heart Suit"`.
|
||||
|
||||
---
|
||||
|
||||
## 2. Target HTML Surfaces Across the 6-Repository Workspace
|
||||
|
||||
| # | Web Route on `https://hyperstitionstud.io` | Repository & File Path | Placement & Layout Integration |
|
||||
| :- | :--- | :--- | :--- |
|
||||
| **1** | `/` (Root Portal Homepage) | `/workspace/hyperstitionstudio-core/site/index.html` | Appended inside the existing `<footer>` element at the bottom of `.container`. |
|
||||
| **2** | `/learn/` (Self-Paced Learning Sub-Page) | `/workspace/hyperstitionstudio-core/site/learn/index.html` | Included in the shared `<footer>` element at the bottom of `.container`. |
|
||||
| **3** | `/graph/` (Interactive Knowledge Graph Workbench) | `/workspace/encyclopedia-knowledge-graph/index.html` | Added as a compact `24px` bottom bar (`<footer class="hs-global-footer">`) directly below `.workspace` inside the `100vh` flex column so the graph canvas remains `100%` viewport-fitted without scrollbars. |
|
||||
| **4** | `/graph/docs/cross-repo-dependency-and-audit-flow-diagram.html` | `/workspace/encyclopedia-knowledge-graph/docs/cross-repo-dependency-and-audit-flow-diagram.html` | Appended inside `<p class="footer">` at the bottom of `.container`. |
|
||||
| **5** | `/calc/` (Integrated Gematria Calculator) | `/workspace/haiperdohp-jemaytreeah/index.html` | Added as `<footer id="hsGlobalFooter">` below `<div id="calcMain">`, styled in monospace to match the calculator's dark interface. |
|
||||
|
||||
---
|
||||
|
||||
## 3. Implementation & Automated Regression Gate (`Phases 1–2`)
|
||||
|
||||
### Phase 1: Patch All HTML Entry Points
|
||||
1. Update `/workspace/hyperstitionstudio-core/site/index.html` (and `/workspace/hyperstitionstudio-core/site/learn/index.html` when built).
|
||||
2. Update `/workspace/encyclopedia-knowledge-graph/index.html` and `/workspace/encyclopedia-knowledge-graph/docs/cross-repo-dependency-and-audit-flow-diagram.html`.
|
||||
3. Update `/workspace/haiperdohp-jemaytreeah/index.html`.
|
||||
|
||||
### Phase 2: Add Automated Footer Presence Check in `tests/test_core_suite.py` & Verify
|
||||
1. In `/workspace/hyperstitionstudio-core/tests/test_core_suite.py`, assert that every HTML surface contains `"by Lemurs."` and the Unicode heart (`"♥"` or `"♥"`).
|
||||
2. Run `test_core_suite.py` and `deploy/test-first-deployment.sh`, commit cleanly across the modified repositories, and push via `/home/m00t/hermes/workspace/push-all-to-git-libre-audio.sh`.
|
||||
Binary file not shown.
-197
@@ -1,197 +0,0 @@
|
||||
# Plan: Unified Visual Style Augmentation (v2) — Universal `45°` Chamfered `haiperdohp-jemaytreeah` Silhouettes, Low-Distraction Tactile Textures & Explicit-Attention Sensory Budgeting in the `hyperstitionstud.io` Palette (`3` New Candidate Groups with Full Page & Artifact Mockups) (`v2.0.24`)
|
||||
|
||||
- **Document ID:** `PLAN-HAIPERDOHP-SILHOUETTE-HYPERSTITION-PALETTE-UNIFIED-STYLE-AUGMENTATION` (`v2.0.24`, Iteration 2)
|
||||
- **Roadmap Status:** **ACTIVE / READY — Group 3 (`"Stealth Basalt Plate & Micro-Pip Signal Ribbon"`) Selected as Preferred & Default Option Unless Otherwise Specified**
|
||||
- **Core Aesthetic & Sensory-Budget Mandate:**
|
||||
1. **Universal `45°` Chamfered Bezels Across All 3 Groups:** Every outer panel, `.phraseGemContainer` score tile, `#BreakTableContainer` breakdown well, `#ChartSpot` viewport, `.HistoryTable` frame, and `.png` Ticker Stats Card uses **45-degree chamfered instrument bezels** while preserving `haiperdohp-jemaytreeah`'s compact `fit-content` geometry, flush `#inputArea` command strip, `180%` score readouts, and zebra-striped tables.
|
||||
2. **Tactile Texture Without Visual Distraction (Sensory Room for Interactive Elements):**
|
||||
- **90% Quiet Matte Substrate (At Rest):** Static frames, headers, zebra rows, and ambient `#canv` backgrounds stay strictly within a low-contrast, monochromatic obsidian-to-slate luminance range (`#020617` void -> `#070d1b` recessed well -> `#0c1324` odd row -> `#111a2e` even row -> `#182338` bezel -> `#26344d` muted border). Physical surface texture (brushed micro-hatch, recessed blueprint etch, or matte basalt stipple) operates at a subtle `2%–4%` luminance delta (`ΔL <= 4%`) so the interface feels tactile and crafted without competing for the eye.
|
||||
- **7% Interactive Affordance Layer (`#38bdf8` Sky-Cyan & Crisp `#475569` Tactile Controls):** Reserved for elements the user can click, type into, scrub, or toggle (`#phraseBox`, `Query`, `↵`, `⚡`, `[i]` info buttons, deep-link pills `[PDF ↗]`, and active tabs) so interactive controls stand out effortlessly against the matte slate chassis.
|
||||
- **3% Explicit Attention Beacons (`#f59e0b` Amber-Gold, `#f43f5e` Crimson-Rose, `#10b981` Emerald):** High-chroma color is **withheld from static chrome** and deployed **only** where attention must be explicitly directed: active `Dose 3+` breakouts (`#f43f5e`), `Dose 2` / `G4` isometric pins (`#10b981`), primary `137 / 292 / 333` lock hits and the `Signal Support` Donate pill (`#f59e0b`), and active tutorial spotlights.
|
||||
- **Rendered High-Resolution Concept Art Boards (`1800 × 1350 px` PNGs in `/workspace/untracked/concept-art-haiperdohp-style/`):**
|
||||
- `/workspace/untracked/concept-art-haiperdohp-style/group-1-matte-machined-slate-chamfer-mockup.png`
|
||||
- `/workspace/untracked/concept-art-haiperdohp-style/group-2-recessed-blueprint-etch-chamfer-mockup.png`
|
||||
- `/workspace/untracked/concept-art-haiperdohp-style/group-3-stealth-basalt-signal-pip-chamfer-mockup.png`
|
||||
|
||||
---
|
||||
|
||||
## 1. Shared Sensory-Budget & Palette Architecture Across All 3 New `45°` Chamfered Groups
|
||||
|
||||
| Visual Layer & Sensory Budget Share | `haiperdohp-jemaytreeah` Structural Silhouette | `hyperstitionstud.io` Token & Hex Value | Strict Attention-Control Rule |
|
||||
| :--- | :--- | :--- | :--- |
|
||||
| **Layer 0: Ambient Underlay (`#canv`)**<br/>*(Quiet Texture Only — `0%` Chroma)* | Fixed full-viewport `#canv` (`position: fixed; z-index: -1`) | Base `#020617` (`--bg-void`) + `#091122` (`3%` contrast) micro-dot / ring / stipple | Zero bright colors or fast motion in the background; provides subtle depth behind centered `#calcMain` panels. |
|
||||
| **Layer 1: Matte Chamfered Chassis & Zebra Tables (`90%` of Pixels)** | `45°` Chamfered `.phraseGemContainer`, `#BreakTableContainer`, `.HistoryTable` | • Recessed Well: `#070d1b`<br/>• Odd Row: `#0c1324`<br/>• Even Row: `#111a2e`<br/>• Bezel Rail: `#182338`<br/>• Muted Hairline: `#26344d` | All static borders, unfocused table cells, and background headers use muted slate (`#26344d` borders, `#94a3b8` labels, `#e2e8f0` values)—never neon/gold borders on inactive boxes. |
|
||||
| **Layer 2: Interactive Controls (`7%` of Pixels — Sensory Room)** | Flush `#inputArea` (`#queryDBbtn`, `#phraseBox`, `#enterPhraseBtn`, `#autoMatchBtn`), `.intBtn`, `.hs-info-icon` `[i]` | • Control Fill: `#132038`<br/>• Interactive Border: `#38bdf8` (`55%` alpha at rest, `100%` on hover/focus)<br/>• Label: `#f8fafc` / `#38bdf8` | Because static containers are matte slate (`#26344d`), every interactive input, button, `[i]` icon, and deep-link pill is immediately recognizable by its `#38bdf8` cyan edge and raised bevel. |
|
||||
| **Layer 3: Explicit Attention Beacons (`3%` of Pixels — High Chroma)** | `.highlightCipherTable`, Active `Dose 2 / 3+` cells, `137 / 292 / 333` locks, `.btn-donate-nav`, Tutorial Spotlight | • Primary Lock / Donate: **`#f59e0b` (Amber-Gold)**<br/>• `Dose 3+` / `M2` Alert: **`#f43f5e` (Crimson-Rose)**<br/>• `Dose 2` Pin / `Δ=0`: **`#10b981` (Emerald)** | High-saturation color appears **only** when a data point locks (`Dose 2`, `Dose 3+`, `Prime 137`, `388`) or when guiding user action. |
|
||||
|
||||
---
|
||||
|
||||
## 2. Candidate Group 1: `"Matte Machined Slate & Hairline Micro-Hatch"` (Asymmetric `8px / 2px` `45°` Chamfers, Anodized Scanline Header Grain & Double-Groove Shadow Trench)
|
||||
|
||||
### 2.1 Bezel Geometry & Tactile Texture (Group 1)
|
||||
- **Asymmetric `8px / 2px` `45°` Chamfer Silhouette:** Diagonal corner pairing—top-left and bottom-right corners have an `8px` `45°` precision chamfer; top-right and bottom-left corners have a tight `2px` micro-chamfer.
|
||||
- **Double-Groove Recessed Shadow Trench (Zero Neon Inset):** Instead of a bright gold inner border on every panel, Group 1 uses a **machined dark shadow trench** (`1px solid #26344d` outer bevel -> `2px solid #020617` recessed dark groove -> `1px solid #1a263b` inner lip).
|
||||
- **Tactile Texture:** `.cH` table headers and `#BreakTableContainer` wells carry a **horizontal `2px` brushed-anodized micro-hatch** (`repeating-linear-gradient(0deg, #0b1222 0px, #0b1222 1px, #0e1628 1px, #0e1628 2px)`) over a quiet `24px` `#091122` dot-matrix `#canv`.
|
||||
- **How Attention Is Directed:** Static panels are 100% cool anodized slate; only the active `#phraseBox` input, clickable `[i]` / `[↗]` controls (`#38bdf8`), the `Signal Support` pill (`#f59e0b`), and triggered `Dose 2` (`#10b981`) / `Dose 3+` (`#f43f5e`) cells emit color.
|
||||
|
||||
### 2.2 Group 1 ASCII Wireframe Mockup (Pages 1–6 & Artifacts 1–3)
|
||||
|
||||
```text
|
||||
====================================================================================================
|
||||
GROUP 1 ("MATTE MACHINED SLATE & MICRO-HATCH") — Asymmetric 8px/2px 45° Chamfer + Shadow Trench
|
||||
Quiet Layer (90%): #020617 Void | #070d1b Well | #0c1324/#111a2e Zebra | #26344d Muted Bezel Trench
|
||||
Interactive (7%): #38bdf8 Cyan Controls | Explicit Attention Only (3%): #f59e0b Gold / #f43f5e Rose
|
||||
====================================================================================================
|
||||
|
||||
/===============================================================================================+
|
||||
/ H Y P E R S T I T I O N S T U D I O (Matte #e2e8f0 Title; "137" Badge in #f59e0b Gold) |
|
||||
| :::::: .cH Brushed Anodized Micro-Hatch Header (#0b1222 / #0e1628 1px scanlines) :::::: |
|
||||
| +-------+----------------------------------------+---+---+--------------+---+----------------+ |
|
||||
| | Query | [ #phraseBox: envideea (Focus #38bdf8)]| ↵ | ⚡ | highlight #s | ▼ | ● Signal Supp. | | <- Interactive
|
||||
| +-------+----------------------------------------+---+---+--------------+---+----------------+ |
|
||||
| |
|
||||
| /180% .phraseGemContainer (Matte #26344d)+ /Active Lock Cell (Explicit #f59e0b Attention!)+ |
|
||||
| / Gen 0 Written AQ | Ordinal / Red. | / ★ Gen 1 Ingglish AQ (LOCKED ON DEX #137!) | |
|
||||
| | 113 | 65 / 29 | | 137 [33rd PRIME] | |
|
||||
| | (#cbd5e1 Matte) | (#94a3b8 Matte) | | (#f59e0b Gold Value + Glow Border) | |
|
||||
| +---------------------+--------------------+ +------------------------------------------------+ /
|
||||
| /
|
||||
+================================================================================================/
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 3. Candidate Group 2: `"Recessed Blueprint Etch & Corner-Rivet Chronograph"` (Symmetric `8px` 4-Corner `45°` Chamfers, Muted Bezel Status Ears & `16px` Etched Graph-Paper Wells)
|
||||
|
||||
### 3.1 Bezel Geometry & Tactile Texture (Group 2)
|
||||
- **Symmetric `8px` 4-Corner `45°` Chamfer + Corner Crosshair Fiducials (`+`):** Inspired directly by the previous iteration's Group B Chronograph Bench, all 4 corners use an `8px` `45°` chamfer with tiny `#334155` `+` alignment ticks at the 4 inner vertices and trapezoidal top bezel ears (`/[ PANEL ID ]\`).
|
||||
- **De-Noised Bezel Ears & Borders:** Unlike the previous iteration where every panel had a bright gold inner ring and gold ear text, Group 2 keeps all static inner borders and bezel ears in **matte slate (`#182338` fill, `#26344d` border, `#64748b` text)**. A bezel ear or inner ring turns `#f59e0b` (Amber-Gold) or `#f43f5e` (Crimson-Rose) **only when that specific panel is actively selected or contains a triggered `Dose 3+` alert**!
|
||||
- **Tactile Texture:** Recessed `#BreakdownSpot` and `#ChartSpot` wells (`#070d1b`) feature a **fine `16px` etched blueprint grid (`#0d1629`, `3%` luminance delta)** so character breakdowns and 30-day sparklines look like precision oscilloscope/blueprint traces without visual clutter.
|
||||
|
||||
### 3.2 Group 2 ASCII Wireframe Mockup (Pages 1–6 & Artifacts 1–3)
|
||||
|
||||
```text
|
||||
====================================================================================================
|
||||
GROUP 2 ("RECESSED BLUEPRINT ETCH & CHRONOGRAPH") — Symmetric 8px 45° Chamfer + Etched Wells
|
||||
Quiet Layer (90%): Matte #26344d Bezels & Muted #64748b Ears | #070d1b Well + #0d1629 16px Etch Grid
|
||||
Interactive (7%): #38bdf8 Controls & Sparkline | Explicit Attention (3%): Active Ear/Cell Only!
|
||||
====================================================================================================
|
||||
|
||||
/[ P2: QUANT MATRIX (Matte #64748b Ear) ]\________/[ ★ ACTIVE ALERT: DOSE 3+ (Lit #f43f5e!) ]\
|
||||
/ +-----------------------------------------------+------------------------------------------+ \
|
||||
| | + #BreakdownSpot (16px Blueprint Etch Well) + | + #ChartSpot (16px Blueprint Etch Well) +| |
|
||||
| | | e(14) n(23) v(31) i(18) d(13) e(14)... | | $212 ┼───┬───█───┬───┬───┬───┬───┼ || |
|
||||
| | | (Calm #cbd5e1 letters on #070d1b grid) | | $150 ┼───┴───┴───┴───★───┴───●───┼ || |
|
||||
| | +--------------------------------------------+ | (Only ★ Nov 12 D3 & ● Nov 27 lit)|| |
|
||||
| +-----------------------------------------------+------------------------------------------+ |
|
||||
| | .HistoryTable (Matte #0c1324 / #111a2e rows; ONLY Dose 2/3+ badges & [i] icons colored): | |
|
||||
| | NVDA | 113 -> 137 | $150.49 | +80 bps | 0.53x | [● D2 Pin #10b981] | [i] [Card ↗] | |
|
||||
| | SOL-USD | 134 -> 134 | $73.07 | -75 bps | 1.42x | [▲ D3 Surge #f43f5e] | [i] [Card ↗] | |
|
||||
| | ANTHR | 195 -> 189 | No data available (null — muted #475569 text) | [i] | |
|
||||
\ +------------------------------------------------------------------------------------------+ /
|
||||
\____________________________________________________________________________________________/
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 4. Candidate Group 3 *(PREFERRED & DEFAULT OPTION)*: `"Stealth Basalt Plate & Micro-Pip Signal Ribbon"` (Top-Heavy `10px / 4px` `45°` Chamfered Plates, Matte Basalt Stipple Grain, `24px` Selective Signal Pips & Retained `border-radius: 999px` Tactile Donate Pills)
|
||||
|
||||
### 4.1 Bezel Geometry & Tactile Texture (Group 3 — Preferred Default)
|
||||
- **Default Status:** **Group 3 is the preferred and default style specification across the ecosystem unless otherwise specified.**
|
||||
- **Top-Heavy `10px / 4px` `45°` Chamfered Specimen Plates:** Inspired by Iteration 1's Illuminated Codex, outer containers and `.png` Stats Cards use a bold `10px` `45°` chamfer on the top-left and top-right shoulders and a compact `4px` `45°` chamfer on the bottom corners.
|
||||
- **Micro-Pip Signal Ribbon (Replacing Full-Width Neon Bars):** Instead of painting a bright full-width `4px` colored bar across the top of every card and table column, Group 3 crowns each chamfered plate with a **matte basalt structural rail (`#182338`)** containing a compact **`24px × 3px` indicator pip** on the left shoulder:
|
||||
- At rest on ordinary panels, the pip is muted slate (`#475569`).
|
||||
- On interactive modules, the pip is Sky-Cyan (`#38bdf8`).
|
||||
- On active `Dose 2` (`#10b981`), `Dose 3+` (`#f43f5e`), or `137 / 292 / 333` lock plates (`#f59e0b`), the indicator pip lights up and casts a subtle localized `24px` spotlight directly over that metric!
|
||||
- **Tactile Texture:** Fine **matte basalt micro-stipple (`1px` alternating `#0b1120` / `#0e1526` dither grain)** inside `.cH` header bands and `.png` card frames, giving every web panel, `.png` trading card, and `.pdf` table the tactile feel of matte-sleeved card stock.
|
||||
|
||||
### 4.2 Retaining the Current Donation Button Style in Group 3 (`.btn-donate-pill` & `.tactile-donate-btn`) & Geometric Justification
|
||||
|
||||
In Group 3, the live donation buttons across the top navigation / `#inputArea` bar (`.btn-donate-pill`) and on `/donate/index.html` (`.tactile-donate-btn`) **retain 100% of their current rounded stadium-pill (`border-radius: 999px`) and circular inset-emblem (`border-radius: 50%`) styling**:
|
||||
|
||||
1. **Exact Retained CSS & Proportions:**
|
||||
- **Navbar / `#inputArea` Stadium Pill (`.btn-donate-pill`):**
|
||||
- `height: 34px; border-radius: 999px; padding: 0.28rem 0.9rem 0.28rem 0.35rem; gap: 0.45rem;`
|
||||
- `background: linear-gradient(180deg, #ffd86b 0%, #f59e0b 52%, #d97706 100%); border: 1px solid #f5c630;`
|
||||
- `box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.55), 0 2px 8px rgba(245, 158, 11, 0.22);`
|
||||
- **Circular Inset Emblem (`.donate-pill-emblem`):** `width: 20px; height: 20px; border-radius: 50%; background: #0f172a; border: 1px solid rgba(245, 198, 48, 0.7); color: #f43f5e` (`♥` glyph) + bold `#020617` `DONATE` label (`0.74rem`, `font-weight: 700`, `letter-spacing: 0.05em`).
|
||||
- **Alignment & Separation Lock:** All adjacent `45°`-chamfered `#inputArea` / `.top-nav` controls in Group 3 are locked to `height: 34px; box-sizing: border-box;`, separated from `.btn-donate-pill` by `.nav-donate-sep` (`width: 1px; height: 20px; background: #26344d; margin: 0 0.4rem;`) so the `34px` stadium pill aligns on the exact same vertical centerline without shifting row height or horizontal rhythm.
|
||||
- **`/donate/index.html` Hero & Centerpiece Tactile Pill (`.tactile-donate-btn`):**
|
||||
- `width: 260px; height: 68px` (and `.centerpiece` `280px × 72px`), `border-radius: 999px;`
|
||||
- `background: linear-gradient(180deg, #ffd86b 0%, #f59e0b 48%, #d97706 52%, #b45309 100%); border: 3px solid #fde68a;`
|
||||
- `box-shadow: inset 0 2px 3px rgba(255, 255, 255, 0.65), 0 6px 0 #78350f, 0 12px 24px rgba(245, 158, 11, 0.35);` + top `44%` specular glass highlight (`::before`) + `44px × 44px` circular `.tactile-emblem` (`#1e293b -> #020617` radial gradient, `2px solid #fde68a`, crimson `#f43f5e` `♥`) + stacked `#020617` `DONATE` label.
|
||||
2. **Why Breaking With the `45°` Chamfer Geometry Here Is Justified:**
|
||||
- **Intentional Silhouette Contrast (Curved Patronage Seal vs. Angular Instrument Controls):** Because every analytical panel and calculator button (`Query`, `↵`, `⚡`, `▼`) in Group 3 is an angular `45°`-chamfered polygon, keeping `.btn-donate-pill` and `.tactile-donate-btn` as the **only `border-radius: 999px` stadium curves** creates immediate figure-ground separation by silhouette as well as color—preventing the patronage button from ever blending into the calculator toolbar.
|
||||
- **Concentric Annular Tangency (`R_outer = 17px` around `R_inner = 10px`):** A `20px` circular `.donate-pill-emblem` (`R = 10px`) nested inside the left semicircle of a `34px` stadium pill (`R = 17px`) maintains a mathematically uniform `7px` annular ring around the entire left arc (`12px` ring for the `44px` emblem inside the `68px` hero pill). Chamfering the outer pill while keeping the inner emblem circular (or octagon-cutting the small `20px` emblem) would pinch the diagonal corners to `2.1px` and break concentric proportion.
|
||||
3. **Pillow `.png` & CSS Layout Guardrails (Preventing Text Border Breaches & Off-Center Emblem Glyphs):**
|
||||
- **Bounding-Box Width Clamping (`draw_fitted_text()` / CSS `min-width: 0; overflow-wrap: anywhere`):** Never draw text in Pillow with a fixed font size without checking `bx0, by0, bx1, by1 = draw.textbbox((x, y), text, font=f)`. Every panel header, sub-box header, and table cell uses `draw_fitted_text(draw, x, y, text, fill, font_cascade, max_x=box_x1 - pad_right)`, which steps down through `font_cascade` (and truncates cleanly with `…` if needed) so `final_x1 <= max_x` (`breach_count == 0`).
|
||||
- **Exact Ink-Bounding-Box Midpoint Centering (`draw_centered_in_box()` / SVG ViewBox Centering for `♥`):** Because `DejaVuSansMono` has top ascender headroom above `♥` and an asymmetric advance width, hardcoded top-left offsets (`cx - 5, cy - 7`) push `♥` down-and-left off center. Instead, Pillow renderers compute the exact ink bounding box `bx0, by0, bx1, by1 = draw.textbbox((0, 0), "♥", font=DejaVuSans)` and place the glyph at `(round(cx - (bx0 + bx1) / 2.0), round(cy - (by0 + by1) / 2.0))` (while HTML surfaces use `display: inline-flex; align-items: center; justify-content: center; line-height: 1` or centered `<svg viewBox="0 0 24 24">`), centering both the `♥` inside the circular emblem and the `DONATE` label on the exact horizontal midline `cy = (y0 + y1) / 2.0`.
|
||||
|
||||
### 4.3 Group 3 ASCII Wireframe Mockup (Pages 1–6 & Artifacts 1–3, With Retained `( ♥ DONATE )` Stadium Pill)
|
||||
|
||||
```text
|
||||
====================================================================================================
|
||||
GROUP 3 [PREFERRED DEFAULT] ("STEALTH BASALT PLATE & MICRO-PIP") — 10px/4px 45° Chamfers +
|
||||
Retained border-radius:999px ( ♥ DONATE ) Stadium Pill (.btn-donate-pill & .tactile-donate-btn)
|
||||
====================================================================================================
|
||||
|
||||
[A] TOP BAR / #inputArea ALIGNMENT LOCK (34px Chamfered Controls | .nav-donate-sep | 34px Rounded Pill)
|
||||
/Query\ / #phraseBox: envideea (34px, 45° Chamfer, #38bdf8) \ /↵\ /⚡\ | (( (♥) DONATE ))
|
||||
\_____/ \___________________________________________________/ \_/ \_/ | ^^^^^^^^^^^^^^^
|
||||
|<-------------- 45° Chamfered Interactive Controls (34px) ------------->|sep| Retained 999px Pill
|
||||
(20px)| (20px #0f172a circle
|
||||
| + #f43f5e ♥ + Gold)
|
||||
|
||||
[B] THREE-STATE BASALT PLATES & /donate/ TACTILE VECTOR PILL (.tactile-donate-btn 260x68 / 280x72)
|
||||
/==============================\ /==============================\ /==============================\
|
||||
/ [■■■ #475569 Muted Pip] \ / [■■■ #38bdf8 Interactive Pip] \ / [★★★ #f59e0b ACTIVE LOCK PIP!] \
|
||||
| MATTE BASALT PLATE (AT REST) | /donate/ CUSTODY VAULT PLATE | EXPLICIT ATTENTION LOCK PLATE |
|
||||
| • Gen 0 Written AQ: 113 | • BTC & XMR Chamfered Copy Rows | • Gen 1 Ingglish: 137 [P33] |
|
||||
| • Calm #cbd5e1 typography | • Retained 999px Tactile Pill: | • SOL-USD $73.07 == AQ("SOL")! |
|
||||
| • Zero visual distraction | (( ( ♥ ) D O N A T E )) | • Eye snaps here immediately |
|
||||
\ / \ `------0 6px 0 #78350f--' / \ /
|
||||
\==============================/ \==============================/ \==============================/
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 5. Side-by-Side Comparison of the 3 New `45°` Chamfered Candidate Groups
|
||||
|
||||
| Design Dimension | **Group 1: `"Matte Machined Slate & Micro-Hatch"`** | **Group 2: `"Recessed Blueprint Etch & Chronograph"`** | **Group 3: `"Stealth Basalt Plate & Micro-Pip"`** |
|
||||
| :--- | :--- | :--- | :--- |
|
||||
| **`45°` Chamfer Silhouette** | **Asymmetric `8px / 2px` `45°` Chamfers** (diagonal `8px` top-left/bottom-right, `2px` top-right/bottom-left). | **Symmetric `8px` 4-Corner `45°` Chamfers** + trapezoidal top status ears (`/[ ... ]\`) + corner `+` fiducials. | **Top-Shoulder `10px / 4px` `45°` Chamfers** (`10px` top corners, `4px` bottom corners) + `3px` top structural rail. |
|
||||
| **Bezel Edge Detail** | Recessed dark shadow trench (`#26344d` -> `#020617` groove -> `#1a263b`). | Muted `#26344d` double rule + corner `+` ticks (inner rule lights up *only* on active selection). | Matte `#182338` top rail with a **`24px × 3px` left-shoulder Signal Pip** (`#475569` at rest; lit when active). |
|
||||
| **Non-Distracting Surface Texture** | `2px` horizontal **brushed-anodized scanline micro-hatch** (`#0b1222 / #0e1628`) in headers & wells + `24px` dot grid on `#canv`. | `16px` **fine-etched blueprint graph grid** (`#0d1629` on `#070d1b`) inside `#BreakdownSpot` & `#ChartSpot` wells + faint radar rings on `#canv`. | `2px` **matte basalt micro-stipple / card-stock grain** (`#0b1120 / #0e1526`) in headers & card borders + subtle diagonal weave on `#canv`. |
|
||||
| **How Interactive Elements Stand Out** | Flush `#inputArea` controls, `[i]` buttons, and links carry crisp `#38bdf8` cyan borders against `100%` neutral slate chrome. | Interactive controls and active bezel ears highlight in `#38bdf8` cyan / `#f59e0b` gold against the recessed dark blueprint wells. | Interactive plates carry a `#38bdf8` cyan shoulder pip and raised `#132038` button pills against matte basalt plates. |
|
||||
| **How Explicit Attention Is Directed** | Only active `Dose 2` (`#10b981`), `Dose 3+` (`#f43f5e`), `137/292/333` lock cells, and the `Signal Support` pill use high-chroma fills/borders. | Only triggered `Dose 2/3+` rows, locked sparkline markers, and active bezel ears light up in `#f59e0b` / `#f43f5e` / `#10b981`. | The `24px` shoulder Signal Pip and target metric cell ignite in `#f59e0b` / `#f43f5e` / `#10b981` with a localized top spotlight. |
|
||||
|
||||
---
|
||||
|
||||
## 6. Exhaustive Surface-by-Surface Inventory: Accounting for Every Web Page & Visual Artifact (`9/9` Surfaces)
|
||||
|
||||
To guarantee zero visual drift across the 6-repository ecosystem, the preferred default (**Group 3: `"Stealth Basalt Plate & Micro-Pip Signal Ribbon"` + Retained `border-radius: 999px` Donate Pills**) accounts for every HTML page, interactive modal/popover, PNG renderer, and PDF compiler:
|
||||
|
||||
| # | Surface / Visual Artifact | Canonical Repository & File Path(s) | Exact Group 3 (`10px/4px` `45°` Chamfer + `24px` Pip + `90/7/3%` Budget) Transformation |
|
||||
| :- | :--- | :--- | :--- |
|
||||
| **1** | **Main Portal Homepage (`/`)** | `/workspace/hyperstitionstudio-core/site/index.html` | • `<header>` & `.top-nav`: `34px` height-locked `45°`-chamfered nav buttons (`#132038` fill, `#38bdf8` interactive border) + `20px` `.nav-donate-sep` + **retained `34px` `border-radius: 999px` `.btn-donate-pill` (`( ♥ DONATE )`)**.<br/>• Telemetry strip: `.phraseGemContainer` `180%` score plates (`#0c1324/#111a2e` matte basalt; only locked `137/388/71` badges carry lit `#f59e0b` pips).<br/>• Archive & Encyclopedia cards: `10px/4px` `45°` chamfered basalt plates (`#0c1324`, `#26344d` border, `24px` left-shoulder pip) + `.HistoryTable` zebra dossier lists. |
|
||||
| **2** | **Quant Time-Series & Macro Workbench (`/quant/`)** | `/workspace/hyperstitionstudio-core/site/quant/{index.html,quant-app.js,quant-tutorials.js}` | • Top bar: `34px` `45°`-chamfered ticker/lens/date `#inputArea` controls + `.nav-donate-sep` + **retained `34px` `border-radius: 999px` `.btn-donate-pill`**.<br/>• Panel 1 (30d Trajectory): Recessed `#070d1b` `#ChartSpot` well (calm `#94a3b8` price line; only `Dose 2` `#10b981` and `Dose 3+` `#f43f5e` lock points lit) + `.phraseGemContainer` summary cells.<br/>• Panel 2 (`24×30` Heatmap): `.HistoryTable` zebra grid (`#0c1324 / #111a2e`, `#26344d` hairlines) where `Dose 0/1` cells remain quiet slate and only `Dose 2` (`#10b981`) and `Dose 3+` (`#f43f5e`) cells ignite.<br/>• Panel 3 & 4 (Inspector, Info Popovers `#quantInfoPopover`, Guided Tour `.qt-hud-card`, FRED Macro Strip & Daily Regime Brief): `10px/4px` `45°` chamfered basalt plates with `#38bdf8` `[i]` triggers and `24px` shoulder pips. |
|
||||
| **3** | **Self-Paced Learning Hub (`/learn/`)** | `/workspace/hyperstitionstudio-core/site/learn/{index.html,learn-app.js}` | • Top bar: `34px` `45°`-chamfered controls + `.nav-donate-sep` + **retained `34px` `border-radius: 999px` `.btn-donate-pill`**.<br/>• 6-Module curriculum cards & live cipher sandbox: `10px/4px` `45°` chamfered basalt plates containing a recessed `#070d1b` `#BreakTableContainer` character-by-character breakdown table and `#ChartSpot` vertical column histogram. |
|
||||
| **4** | **Patronage & Custody Subpage (`/donate/`)** | `/workspace/hyperstitionstudio-core/site/donate/index.html` | • Hero Panel & Section 4 Custody Vault: `10px/4px` `45°` chamfered basalt plates (`#0c1324`, `#26344d` border, `#f59e0b` `24px` shoulder pip) housing the **retained `border-radius: 999px` `.tactile-donate-btn` (`260×68px` hero & `280×72px` centerpiece with `0 6px 0 #78350f` 3D lip and `44px` circular `.tactile-emblem`)**.<br/>• `BTC` (`bc1q...`) & `XMR` (`83ZC...`) rows: Recessed `#070d1b` `#BreakTableContainer` address boxes with `34px` `45°`-chamfered `#38bdf8` `[Copy BTC]` / `[Copy XMR]` buttons.<br/>• "Try a Wire Experiment" sandbox: Flush `#inputArea` + `.phraseGemContainer` readout. |
|
||||
| **5** | **388-Node Knowledge Graph (`/graph/`)** | `/workspace/encyclopedia-knowledge-graph/index.html` | • `#canv` Force-Directed Canvas: `#020617` void background; unselected nodes/edges stay in calm matte slate (`#182338` / `#26344d`) while **only** the selected node (`?select=aq:N`) and its 1-hop trophic neighbors ignite in `#f59e0b` (Gold), `#38bdf8` (Cyan), and `#f43f5e` (Rose).<br/>• Floating Top Toolbar & Right `.splitInterface` Inspector Drawer: `10px/4px` `45°` chamfered basalt plates with `34px` `#38bdf8` filter controls + `.nav-donate-sep` + **retained `34px` `border-radius: 999px` `.btn-donate-pill`**. |
|
||||
| **6** | **Cypher Calculator (`/calc/`)** | `/workspace/haiperdohp-jemaytreeah/{index.html,calc/styles.css,config.default.js}` | • Maps `--body-bg-accent: #020617`, `--breakdown-bg-accent: #070d1b`, `--table-row-odd: #0c1324`, `--table-row-even: #111a2e`, `--menu-bg-accent: #182338`, and `--border-accent: #26344d` in `calc/styles.css`.<br/>• Applies Group 3 `10px/4px` `45°` chamfers and `24px` shoulder pips to `.phraseGemContainer`, `#BreakTableContainer`, `#ChartSpot`, and `.HistoryTable`, while locking `#inputArea` controls to `34px` alongside the **retained `34px` `border-radius: 999px` `.btn-donate-pill`**. |
|
||||
| **7** | **Artifact 1: One-Shot Ticker Stats Card (`.png` + `.json`)** | `/workspace/hyperstitionstudio-core/src/hyperstitionstud_io/quant/cards.py` (`hs-ticker-card` & MCP `hs_generate_ticker_stats_card`) | • Renders the `900 × 1260 px` (`5:7` TCG portrait) `.png` card using Group 3's `10px/4px` `45°` chamfered basalt plates, matte `#0b1120/#0e1526` micro-stipple header bands, `24px` shoulder Signal Pips, recessed `#070d1b` `#BreakdownSpot` + `#ChartSpot` wells, calm slate TierZoo 6-stat bars (`>=90` peaks highlighted in `#f59e0b`), and `.HistoryTable` season box score (`null` -> `"No data available"`). |
|
||||
| **8** | **Artifact 2: ETI Assemblage Tier List Matrix (`.png`)** | `/workspace/technocapital-singularity-zoology/scripts/build_eti_tier_list_png.py` (`aq-tier-list-visualizer`) | • Renders the `S+` through `F` tier matrix on a `#020617` canvas using Group 3 `10px/4px` `45°` chamfered `.HistoryTable` rows (`#0c1324 / #111a2e`), matte basalt stipple headers, and tier-colored `24px` shoulder Signal Pips (`S+` `#f43f5e`, `S` `#f59e0b`, `A` `#10b981`, `B` `#38bdf8`). |
|
||||
| **9** | **Artifact 3: Compiled PDF Documents, Manuals & Wire Reports (`.pdf`)** | `/workspace/hyperstitionstudio-core/src/hyperstitionstud_io/publishing/pdf_compiler.py` (`hs-pdf-build`) | • Coordinates directly with `PLAN-HS-PDF-BUILD-DARK-MODE-AND-GLYPH-SANITIZATION`: full-bleed `#020617` page canvas, `10pt/4pt` `45°` chamfered outer page frame (`#26344d`) with a `24pt × 3pt` `#f59e0b` top-left Signal Pip, `#070d1b` `#BreakTableContainer` code/equation wells, and `#0c1324 / #111a2e` `.HistoryTable` zebra tables. |
|
||||
|
||||
---
|
||||
|
||||
## 7. Four-Phase Uniform Implementation Roadmap (`Phases 1–4`)
|
||||
|
||||
1. **Phase 1 — Shared Group 3 Stylesheet & CSS Variable Tokenization (`site/assets/hs-group3-basalt-chamfer.css` & `/calc/styles.css`):**
|
||||
- Author the shared CSS rules implementing the `90% / 7% / 3%` sensory budget (`#020617` void, `#070d1b` well, `#0c1324/#111a2e` zebra, `#182338` basalt rail, `#26344d` muted border, `#38bdf8` interactive controls, `#f59e0b/#f43f5e/#10b981` explicit-attention beacons), the `10px/4px` `45°` chamfer utility classes (`.hs-plate-g3`, `.phraseGemContainer`, `#BreakTableContainer`, `#ChartSpot`, `.HistoryTable`), the `24px × 3px` left-shoulder Signal Pip (`::after`), and the retained `34px` `border-radius: 999px` `.btn-donate-pill` + `68px/72px` `.tactile-donate-btn`.
|
||||
2. **Phase 2 — Uniform Rollout Across All 6 Web Pages (`/`, `/quant/`, `/learn/`, `/donate/`, `/graph/`, `/calc/`):**
|
||||
- Apply the Group 3 stylesheet and `34px` top-bar alignment lock across `site/index.html`, `site/quant/index.html` (+ `quant-app.js` & `quant-tutorials.js`), `site/learn/index.html` (+ `learn-app.js`), `site/donate/index.html`, `encyclopedia-knowledge-graph/index.html`, and `haiperdohp-jemaytreeah/{index.html,calc/styles.css}`—verifying zero external `https://` font/script embeds (`file://` portability preserved).
|
||||
3. **Phase 3 — Uniform Rollout Across All 3 Visual Artifact Generators (`.png` Stats Cards, `.png` ETI Tier List & Dark-Mode `.pdf` Compiler):**
|
||||
- Wire the exact same Group 3 `10px/4px` `45°` chamfer geometry, matte basalt stipple header grain, `24px` shoulder Signal Pips, and `#020617/#070d1b/#0c1324/#111a2e/#26344d` palette into `src/hyperstitionstud_io/quant/cards.py` (One-Shot Ticker Stats Card `.png`), `build_eti_tier_list_png.py` (ETI Tier List `.png`), and `src/hyperstitionstud_io/publishing/pdf_compiler.py` (`hs-pdf-build` Dark-Mode `.pdf`).
|
||||
4. **Phase 4 — Automated Verification (`tests/test_core_suite.py` & `deploy/test-first-deployment.sh`):**
|
||||
- Verify all 6 web pages, generated `.png` artifacts, and recompiled `.pdf` documents pass offline URN/portability checks, link integrity checks (`671+` links), `ReadOnlyIsolationGuard` audits, and `HTTP 200 OK` smoke tests in `deploy/test-first-deployment.sh`.
|
||||
BIN
Binary file not shown.
@@ -1,134 +0,0 @@
|
||||
# Plan: Upgrading `hs-pdf-build` (`pdf_compiler.py`) — Eliminating Escape Symbols & Missing Chromium/Fedora 41 Glyphs and Adopting the Dark-Mode `haiperdohp-jemaytreeah × hyperstitionstud.io` Visual Style (`v2.0.24`)
|
||||
|
||||
- **Document ID:** `PLAN-HS-PDF-BUILD-DARK-MODE-AND-GLYPH-SANITIZATION` (`v2.0.24`)
|
||||
- **Roadmap Status:** **ACTIVE / READY**
|
||||
- **Target Modules & Files:**
|
||||
- `/workspace/hyperstitionstudio-core/src/hyperstitionstud_io/publishing/pdf_compiler.py` (`hs-pdf-build`)
|
||||
- `/workspace/hyperstitionstudio-core/src/hyperstitionstud_io/publishing/fonts.py`
|
||||
- All `.pdf` artifacts across `/workspace/encyclopedia-knowledge-graph/docs/`, `/workspace/hyperstitionstudio-core/site/quant/`, and `/workspace/technocapital-singularity-zoology/` (recompiled in dark mode with zero escape artifacts and zero missing glyphs)
|
||||
- `/workspace/hyperstitionstudio-core/tests/test_core_suite.py`
|
||||
|
||||
---
|
||||
|
||||
## 1. Root-Cause Forensic Diagnosis: Why Current PDFs Render With Escape Symbols & Missing Characters in Chromium on Fedora 41
|
||||
|
||||
A forensic inspection of `src/hyperstitionstud_io/publishing/pdf_compiler.py` (`lines 18–195`) and the `pypdf` font/text tables of all compiled PDFs in `/workspace/encyclopedia-knowledge-graph/docs/*.pdf` identified **five exact root causes** for the broken characters and escape sequences seen in Chromium (PDFium) on Fedora 41:
|
||||
|
||||
| # | Defect Observed in Chromium (Fedora 41) | Exact Root Cause in `pdf_compiler.py` | Measured Count in Current `docs/*.pdf` |
|
||||
| :- | :--- | :--- | :--- |
|
||||
| **1** | **Raw LaTeX Math Escapes Printed Literally** (`\mathbb{E}`, `\Delta`, `\text{bps}`, `\sum_{k=1}^3`, `\in`, `\tau`, `\rho`, `\bar{\sigma}`, `$D_{i,t}$`) | `_format_inline()` (`lines 18–32`) only parses `` `code` ``, `**bold**`, and `*italic*`. It leaves `$...$` math delimiters and `\command` LaTeX macros untouched, printing raw backslashes, braces, and dollar signs directly into the PDF text stream. | `66` LaTeX escapes & `47` `$` delimiters in `PLAN-QUANT-BIDIRECTIONAL...pdf`; `55` escapes & `132` `$` in `PLAN-DAILY-PORTFOLIO...pdf`. |
|
||||
| **2** | **Literal `<br/>` and `<br>` Printed in Table Cells** | `_format_inline()` runs `html.escape(s)` (`line 27`) *before* converting Markdown line-break tags, turning `<br/>` into `<br/>` so ReportLab prints the literal 5-character string `<br/>` instead of breaking the line. | `29` literal `<br/>` strings in `PLAN-QUANT-BIDIRECTIONAL...pdf`; `24` in `PLAN-MACROECONOMIC...pdf`. |
|
||||
| **3** | **Table Pipes (`\|` or `` `a|b` ``) Split Columns & Leave Dangling `\`** | `line 157` splits table rows with naive `ln.strip()[1:-1].split("|")`. Whenever a cell contains an escaped pipe or a pipe inside backticks, naive `.split()` breaks the row into `10+` narrow columns, leaving a trailing `\` backslash or raising ReportLab `LayoutError`. | Occurs in REST API tables, absolute-value formulas, and backtick pipe expressions. |
|
||||
| **4** | **Missing-Character Tofu Boxes (`□` / `.notdef`) in Chromium on Fedora 41** | Comparing every Unicode codepoint in `docs/*.md` against the TrueType `cmap` tables of `/usr/share/fonts/dejavu-sans-fonts/DejaVuSans.ttf` and `DejaVuSansMono.ttf` reveals **9 codepoints absent from DejaVu**:<br/>• `ⓘ` (`U+24D8` Circled Latin Small Letter I — missing in both `DejaVuSans` & `DejaVuSansMono`!)<br/>• `𝔼` (`U+1D53C` Double-Struck E — missing in `DejaVuSansMono`)<br/>• `⏭` (`U+23ED`), `⏮` (`U+23EE`), `U+FE0F` (Variation Selector-16), and astral emojis `📄 📖 📜 🔊 🕸` (`U+1F4C4..U+1F578`).<br/>In addition, `TableStyle` and `getSampleStyleSheet()` leave an unembedded `/Helvetica` Type1 reference in the PDF page resources (`fonts=['/AAAAAA+DejaVuSans', ..., '/Helvetica']`), and 4 older PDFs in `docs/` still use unembedded `/Helvetica`, `/Courier`, `/Symbol`, and `/ZapfDingbats`. | Every instance of `ⓘ` (`PLAN-QUANT-INTERFACE-INFO-ICONS...pdf`), `⏭/⏮`, and emoji badges renders as `□` in Fedora 41 Chromium. |
|
||||
| **5** | **Generic Light-Mode Styling (`#FFFFFF` / `#8B1A1A`) Clashes With the Project's Dark-Mode Identity** | `pdf_compiler.py` (`lines 90–138`) renders on a plain `#FFFFFF` white background with `#8B1A1A` maroon headings and `#F3F4F6` grey boxes instead of the dark-mode `haiperdohp-jemaytreeah × hyperstitionstud.io` palette (`#020617` Void, `#0f172a` / `#162038` Zebra, `#334155` `1px` Grid, `#f59e0b` Amber-Gold, `#38bdf8` Sky-Cyan, `#10b981` Emerald, `#f43f5e` Rose). | All compiled PDFs currently lack the dark-mode visual identity. |
|
||||
|
||||
---
|
||||
|
||||
## 2. Complete Fix for Escape Symbols, Math Expressions, Links & Missing Chromium Glyphs
|
||||
|
||||
### 2.1 Deterministic LaTeX-to-Unicode & ReportLab Markup Transpiler (`_sanitize_and_format_inline()`)
|
||||
|
||||
Before `html.escape()` runs, `pdf_compiler.py` will pass every text segment through a deterministic sanitizer and math transpiler:
|
||||
|
||||
1. **Preserve Intentional Line Breaks (`<br/>` / `<br>`):**
|
||||
- Replace `<br/>` and `<br>` with a sentinel token `\x00BR\x00` prior to `html.escape()`, then restore `<br/>` so ReportLab's `Paragraph` parser executes a clean line break inside table cells.
|
||||
2. **Unescape Markdown Table Pipes & Punctuation Escapes:**
|
||||
- Split Markdown table rows using negative lookbehind `re.split(r"(?<!\\)\|", ln.strip()[1:-1])` so `\|` never splits a cell, then unescape `\|` -> `|`, `\$` -> `$`, `\_` -> `_`, and `\*` -> `*`.
|
||||
3. **Transpile Inline & Block `$...$` LaTeX Math to Native DejaVu Unicode + `<sub/>`/`<super/>` Tags:**
|
||||
- Strip `$` math delimiters (`$D_{i,t} \in \{0..4\}$` -> `D<sub>i,t</sub> ∈ {0..4}`) while preserving currency amounts (`$150.49`, `$23,532.8B`, `$33.06T`).
|
||||
- Map all LaTeX commands to codepoints **verified present in both `DejaVuSans.ttf` and `DejaVuSansMono.ttf`**:
|
||||
- `\mathbb{E}` -> `E` (bold `<b>E</b>`), `\mathbb{R}` -> `R`, `\mathbb{P}` -> `P`
|
||||
- `\text{...}` / `\mathrm{...}` / `\textbf{...}` -> plain/bold text without backslashes or braces
|
||||
- `\bar{\sigma}` -> `σ̄`, `\bar{V}` -> `V̄`, `\hat{y}` -> `ŷ`
|
||||
- `\Delta` -> `Δ`, `\delta` -> `δ`, `\rho` -> `ρ`, `\tau` -> `τ`, `\sigma` -> `σ`, `\mu` -> `μ`, `\alpha` -> `α`, `\beta` -> `β`, `\lambda` -> `λ`, `\pi` -> `π`
|
||||
- `\sum` -> `∑`, `\prod` -> `∏`, `\in` -> `∈`, `\notin` -> `∉`, `\subset` -> `⊂`, `\cup` -> `∪`, `\cap` -> `∩`
|
||||
- `\le` / `\leq` -> `≤`, `\ge` / `\geq` -> `≥`, `\ne` / `\neq` -> `≠`, `\approx` -> `≈`, `\equiv` -> `≡`, `\pm` -> `±`, `\times` -> `×`, `\cdot` -> `·`, `\rightarrow` / `\to` -> `→`, `\leftarrow` -> `←`, `\leftrightarrow` -> `↔`
|
||||
- `\{` -> `{`, `\}` -> `}`, `\|` -> `‖`
|
||||
- Subscripts `_{...}` -> `<sub rise="-2" size="6.5">...</sub>` and superscripts `^{...}` -> `<super rise="3" size="6.5">...</super>`.
|
||||
4. **Convert Markdown Links `[label](url)` Instead of Printing Raw Brackets & Parentheses:**
|
||||
- Render `[label](url)` as `<font color="#38bdf8"><u>label</u></font>` (and `<a href="url">...</a>` when `url` is an `http(s)://` link) so raw Markdown syntax never clutters prose or table cells.
|
||||
5. **TrueType `cmap` Glyph Verification & Fallback Filter (Zero `.notdef` Tofu Boxes Guaranteed):**
|
||||
- Load the exact `charToGlyph` dictionary from `DejaVuSans.ttf` and `DejaVuSansMono.ttf` at compile time:
|
||||
- Replace `ⓘ` (`U+24D8`, missing in DejaVu) with **`[i]`** (styled as `<font name="DejaVuMono-Bold" color="#38bdf8">[i]</font>`),
|
||||
- Replace `⏭` (`U+23ED`) with `>>|` and `⏮` (`U+23EE`) with `|<<`,
|
||||
- Strip `U+FE0F` (`VARIATION SELECTOR-16`),
|
||||
- Replace astral-plane emojis (`📄`, `📖`, `📜`, `🔊`, `🕸`) with crisp monochrome badges (`[PDF]`, `[DOC]`, `[DOS]`, `[AUD]`, `[KG]`),
|
||||
- For any remaining codepoint `ord(ch) > 127` not found in the active font's `charToGlyph` table, automatically replace it with its NFKD ASCII decomposition or symbol alias so **zero unmapped codepoints ever enter the PDF stream**.
|
||||
6. **Eliminate Unembedded `/Helvetica` from Page Resources:**
|
||||
- Explicitly set ` ("FONTNAME", (0, 0), (-1, -1), "DejaVu")` on every `TableStyle` and construct every `ParagraphStyle` without inheriting unembedded `Helvetica` defaults, ensuring 100% of fonts in the PDF are embedded `DejaVu` / `DejaVuMono` TrueType subsets.
|
||||
|
||||
---
|
||||
|
||||
### 2.2 Formal Character, Glyph & Element Translation Specification (`T_math`, `T_char`, `T_elem`, `T_box`)
|
||||
|
||||
To make the translation deterministic and testable for token economy during PDF redesigns, `hs-pdf-build` defines four formal translation tables:
|
||||
|
||||
| Translation Class | Source Pattern in Markdown / LaTeX / HTML | Target Glyph / ReportLab Flowable Element | BPE Tokens (Source -> Target) | Token Savings Rate |
|
||||
| :--- | :--- | :--- | :---: | :---: |
|
||||
| **`T_math 1` (Blackboard & Text Macros)** | `\mathbb{E}`, `\mathbb{R}`, `\mathbb{P}`, `\text{bps}`, `\mathrm{Vol}`, `\textbf{x}` | `<b>E</b>`, `<b>R</b>`, `<b>P</b>`, `bps`, `Vol`, `<b>x</b>` (`0` backslashes/braces in PDF text) | `5–6` -> `1` | **`-80%` to `-83%`** |
|
||||
| **`T_math 2` (Greek & Operators)** | `\Delta`, `\rho`, `\tau`, `\sigma`, `\mu`, `\sum`, `\prod`, `\in`, `\notin`, `\le`, `\ge`, `\ne`, `\approx`, `\equiv`, `\pm`, `\times`, `\cdot`, `\rightarrow` | Single verified DejaVu codepoints: `Δ`, `ρ`, `τ`, `σ`, `μ`, `∑`, `∏`, `∈`, `∉`, `≤`, `≥`, `≠`, `≈`, `≡`, `±`, `×`, `·`, `→` | `2–3` -> `1` | **`-50%` to `-67%`** |
|
||||
| **`T_math 3` (Overbars & Sub/Superscripts)** | `\bar{\sigma}`, `\bar{V}`, `_{i,t}`, `^{null}`, `$...$` | `σ̄`, `V̄`, `<sub rise="-2" size="6.5">i,t</sub>`, `<super rise="3" size="6.5">null</super>`, stripped `$` delimiters | `5–8` -> `1–3` | **`-60%`** |
|
||||
| **`T_char 1` (Missing DejaVu Glyphs)** | `ⓘ` (`U+24D8`), `⏭` (`U+23ED`), `⏮` (`U+23EE`), `U+FE0F`, `📄`, `📖`, `📜`, `🔊`, `🕸` | `[i]`, `>>|`, `|<<`, `""` (stripped), `[PDF]`, `[DOC]`, `[DOS]`, `[AUD]`, `[KG]` (`100%` DejaVu `cmap`-safe) | `2–3` -> `1–2` (`0` `.notdef` boxes) | **`-33%` + `100%` Glyph Validity** |
|
||||
| **`T_elem 1` (Inline Line Breaks & Pipes)** | `<br/>`, `<br>`, `\|`, `|` | Native ReportLab cell newline `<br/>` (`0` visible characters in PDF text stream) & unescaped `|` | `3–4` -> **`0` visible tokens** | **`-100%` in Extracted PDF Text** |
|
||||
| **`T_box 1` (Element Shorthand vs. ASCII Box Borders)** | `100`-char ASCII wireframe borders (`+===+`, `+---+`, `| ... |`) inside fenced blocks | Native ReportLab `Table` / `Preformatted` `#BreakTableContainer` & `.phraseGemContainer` vector borders (`0.8pt solid #334155`) | `11,888` border tokens -> **`0` text tokens** (vector lines) | **`-100%` Border Token Overhead** |
|
||||
|
||||
---
|
||||
|
||||
### 2.3 Empirical Validation: Does This Specification Provide Token Economy for PDF Redesigns?
|
||||
|
||||
Scanning all **`38` Markdown documents (`536,770` chars / `167,484` BPE tokens)** in `/workspace/encyclopedia-knowledge-graph/docs/` validates that the specification provides **substantial, measurable token economy across specialized math, table, and wireframe blocks**, while providing a modest (`~1.5%`–`8.6%`) reduction on whole-document prose:
|
||||
|
||||
1. **Where the Specification Delivers High Token Economy (`-37.1%` to `-100%` Savings):**
|
||||
- **Mathematical & Statistical Formulas (`T_math 1–3`):** Across all `38` docs, inline math expressions shrink from **`5,946` BPE tokens down to `3,738` BPE tokens (`-37.1%` token reduction, saving `2,208` tokens)** by replacing `\mathbb{E}[|\Delta\text{bps}_{i,t+1}|]` with `E[|Δbps_{i,t+1}|]`.
|
||||
- **Table Cell Line Breaks & Escapes (`T_elem 1`):** Converting literal `<br/>` strings (`260` tokens across the corpus) into structural ReportLab line breaks eliminates **`100%` (`260 -> 0` tokens)** of visible `<br/>` tag clutter from extracted PDF text during audit/redesign reads.
|
||||
- **Vector Element Borders vs. ASCII Wireframe Borders (`T_box 1`):** Across the `38` docs, manual ASCII box-drawing borders (`+====+`, `+----+`) consume **`11,888` characters / `11,888` BPE tokens**. Rendering `.phraseGemContainer`, `#BreakTableContainer`, and `.HistoryTable` frames natively as ReportLab vector borders (`TableStyle` / `_draw_dark_mode_page_frame`) reduces border text tokens by **`100%` (`11,888 -> 0` text tokens)**!
|
||||
2. **Where Token Economy Is Modest (`-1.5%` on Plain Prose Alone):**
|
||||
- On pure English prose paragraphs that contain no math, no `<br/>` tags, and no ASCII box borders, `T_char` and `T_math` save only **`2,514` tokens out of `167,484` (`-1.50%`)**.
|
||||
- **Validation Conclusion:** The Character/Glyph Translation (`T_char`, `T_math`, `T_elem`) is primarily a **rendering-fidelity & math-compression upgrade (`-37.1%` on math spans, `0` broken glyphs in Chromium)**, whereas true **multi-thousand-token economy for PDF redesigns (`-8.6%` whole-corpus / `14,402` tokens saved)** comes from combining `T_math` + `T_elem` with **`T_box 1` (replacing ASCII box-drawing wireframes with native ReportLab vector flowables)**.
|
||||
|
||||
---
|
||||
|
||||
## 3. Dark-Mode Visual Design Specification (Matching `PLAN-HAIPERDOHP-SILHOUETTE-HYPERSTITION-PALETTE-UNIFIED-STYLE-AUGMENTATION`)
|
||||
|
||||
Every PDF compiled by `hs-pdf-build` will render in a **high-contrast Dark-Mode `haiperdohp-jemaytreeah × hyperstitionstud.io` theme** that matches the web workbench and one-shot `.png` cards:
|
||||
|
||||
### 3.1 Color & Silhouette Mapping for Dark-Mode PDFs
|
||||
|
||||
| PDF Element / Flowable | `haiperdohp × hyperstitionstud.io` Silhouette | Exact Hex / RGB Color & Typography |
|
||||
| :--- | :--- | :--- |
|
||||
| **1. Full-Bleed Page Canvas (`onFirstPage` / `onLaterPages`)** | `#canv` + `#calcMain` Outer Instrument Frame | • Full-page background: **`#020617` (`--bg-void` Abyssal Obsidian)**<br/>• Outer `1pt` perimeter frame at `0.40"` margin: **`#334155` (`--border-subtle`)**<br/>• Top `3pt` semantic accent ribbon across the frame header: **`#f59e0b` (Amber-Gold)** on left `70%` + **`#38bdf8` (Sky-Cyan)** on right `30%`. |
|
||||
| **2. Running Header & Footer Bars** | `.cH` Dark Header & Provenance Footer Strip | • Top bar (`#0f172a` fill, `#334155` bottom border): `HYPERSTITION STUDIO // CYPHER & TELEMETRY CODEX` in `#f59e0b` `DejaVuMono-Bold 7.5pt` (left) + Document ID in `#38bdf8` (right).<br/>• Bottom bar (`#0f172a` fill, `#334155` top border): `urn:io:hyperstitionstud:doc:v2.0.24 • Zero Synthetic Data` in `#94a3b8` (left) + `PAGE N` in `#f59e0b` (right). |
|
||||
| **3. Document Title (`H1`)** | `#calcLogo` Title Banner | **`#f59e0b` (Solar Amber-Gold)** `DejaVu-Bold 14.5pt`, framed in a `#0f172a` header plate with a `2pt #f59e0b` bottom rule. |
|
||||
| **4. Major Section Headings (`H2`)** | `.phraseGemContainer` / `.cH` Section Plate | **`#38bdf8` (Sky-Cyan)** `DejaVu-Bold 11.5pt` inside a `#0f172a` band with a `3pt #f59e0b` left accent bar and `0.6pt #334155` border. |
|
||||
| **5. Subsection Headings (`H3`)** | `.colLabel` Instrument Sub-Header | **`#10b981` (Emerald)** `DejaVu-Bold 10pt` with `#cbd5e1` subtitle contrast. |
|
||||
| **6. Body Prose & Bullet Lists** | High-Contrast Obsidian Readability | • Body text: **`#f8fafc` (`--text-primary` Alabaster)** `DejaVu 9.0pt / 13.0pt leading`<br/>• Bold `<b>...</b>` spans: **`#fbbf24` (Warm Amber-Gold)**<br/>• Italic `<i>...</i>` spans: **`#cbd5e1` (Silver-Slate)**<br/>• Inline `` `code` `` spans: **`#38bdf8` (Sky-Cyan)** `DejaVuMono 8.3pt` |
|
||||
| **7. Code Blocks & ASCII Wireframes (`Preformatted`)** | `#BreakTableContainer` Recessed Breakdown Well | • Background fill: **`#090f20` (`--breakdown-bg-accent` Recessed Well)**<br/>• Border: `0.8pt solid #334155` with `2pt #38bdf8` top accent rule<br/>• Text: **`#38bdf8` (Sky-Cyan)** / **`#f8fafc`** `DejaVuMono 7.2pt` (with Unicode box-drawing `─ │ ┌ ┐ └ ┘` verified in `DejaVuSansMono.ttf`). |
|
||||
| **8. Data Tables (`Table` / `TableStyle`)** | `.HistoryTable` / `.borderCipherTable` Zebra Grid | • Header row (`row 0`): **`#090f20`** background, **`#f59e0b` (Amber-Gold)** `DejaVu-Bold 7.8pt` text, `1.2pt #f59e0b` bottom rule.<br/>• Odd rows (`row 1, 3, ...`): **`#0f172a` (`--table-row-odd`)** background, **`#f8fafc`** `DejaVu 7.8pt` text.<br/>• Even rows (`row 2, 4, ...`): **`#162038` (`--table-row-even`)** background, **`#f8fafc`** `DejaVu 7.8pt` text.<br/>• Grid lines: **`0.5pt solid #334155` (`--border-subtle`)** across all cells. |
|
||||
|
||||
---
|
||||
|
||||
## 4. Three-Phase Implementation Roadmap (`Phases 1–3`)
|
||||
|
||||
### Phase 1: Upgrade `src/hyperstitionstud_io/publishing/pdf_compiler.py` (`hs-pdf-build`)
|
||||
1. Implement `_sanitize_and_format_inline(text, sans_cmap, mono_cmap)`:
|
||||
- Converts `<br/>` / `<br>` to line-break sentinels before `html.escape()`,
|
||||
- Unescapes `\|`, `\$`, `\_`, `\*`,
|
||||
- Transpiles `$...$` inline math and LaTeX macros (`\mathbb{E}`, `\Delta`, `\text{...}`, `\bar{...}`, `\sum`, `\in`, `\rho`, `\tau`, `\sigma`, `\ge`, `\le`, `\times`, `\approx`, subscripts `_{...}`, superscripts `^{...}`) into verified DejaVu Unicode and ReportLab `<sub/>`/`<super/>` tags,
|
||||
- Formats `[label](url)` links cleanly in `#38bdf8`,
|
||||
- Maps `ⓘ` -> `[i]`, `⏭` -> `>>|`, `⏮` -> `|<<`, strips `U+FE0F`, maps emojis to monochrome ASCII tags, and filters every character against `sans_cmap` / `mono_cmap` so zero missing glyphs can ever be emitted.
|
||||
2. Fix Markdown table row parsing to split on unescaped pipes (`re.split(r"(?<!\\)\|", ln.strip()[1:-1])`) and wrap wide code/table lines automatically so the `>= 0.25` line-ratio parity check passes natively without needing a preprocessor script.
|
||||
3. Implement `_draw_dark_mode_page_frame(canvas, doc)` (`onFirstPage` & `onLaterPages`) painting the `#020617` Abyssal Obsidian page background, `#334155` outer `haiperdohp-jemaytreeah` frame, `#f59e0b` / `#38bdf8` top 3pt ribbon, and `#0f172a` running header/footer bars, and apply the Dark-Mode `ParagraphStyle` and `.HistoryTable` zebra `TableStyle` palette (`#090f20`, `#0f172a`, `#162038`, `#334155`, `#f59e0b`, `#38bdf8`, `#10b981`, `#f8fafc`).
|
||||
|
||||
### Phase 2: Recompile All Project PDFs in Dark Mode & Audit Every Page
|
||||
1. Recompile all active and archived `.pdf` documents in `/workspace/encyclopedia-knowledge-graph/docs/`, `/workspace/encyclopedia-knowledge-graph/docs/archive/`, and `/workspace/hyperstitionstudio-core/site/quant/OPERATORS-MANUAL-QUANT-TIMESERIES-WORKBENCH.pdf` (plus any legacy `/Helvetica` PDFs in `docs/` that have matching `.md` sources).
|
||||
2. Run a `pypdf` verification pass across every compiled PDF asserting:
|
||||
- `0` literal `<br/>` strings,
|
||||
- `0` raw LaTeX backslash macros (`\mathbb`, `\Delta`, `\text`, `\sum`, `\in`, `\tau`, `\rho`, `\|`),
|
||||
- `0` unembedded `/Helvetica`, `/Courier`, `/Symbol`, or `/ZapfDingbats` fonts in any newly compiled PDF, and
|
||||
- `0` characters outside the embedded `DejaVuSans` / `DejaVuSansMono` glyph tables.
|
||||
|
||||
### Phase 3: Regression Tests in `tests/test_core_suite.py`
|
||||
1. Add a dedicated unit test in `tests/test_core_suite.py` (`test_pdf_compiler_dark_mode_and_glyph_sanitization`) that compiles a torture-test Markdown snippet containing `<br/>`, `\|`, `$\mathbb{E}[|\Delta\text{bps}_{i,t}|] \in \{0..4\}$`, `ⓘ`, `[Link](https://hyperstitionstud.io)`, and multi-column tables, and verifies via `pypdf.PdfReader` that:
|
||||
- Extracted text contains `0` `<br/>`, `0` `\mathbb`, `0` `\Delta`, and `0` unmapped codepoints,
|
||||
- Page resources reference only embedded `/AAAAAA+DejaVu*` TrueType fonts (no `/Helvetica`), and
|
||||
- The page content stream includes the `#020617` (`0.0078 0.0235 0.0902 rg`) dark-mode background canvas fill.
|
||||
Binary file not shown.
@@ -1,126 +0,0 @@
|
||||
# Architecture & Curriculum Plan: Self-Paced `/learn/` Sub-Page with Anonymous Local State Upload & Download for `hyperstitionstud.io` (`v2.0.0`)
|
||||
|
||||
- **Document ID:** `PLAN-LEARNING-SUBPAGE-AND-LOCAL-STATE-PORTABILITY` (`v2.0.0`)
|
||||
- **Target Web Route:** `https://hyperstitionstud.io/learn/` (`/learn/index.html`)
|
||||
- **Offline `file://` Path:** `/workspace/hyperstitionstudio-core/site/learn/index.html`
|
||||
- **State Schema Authority:** `urn:io:hyperstitionstud:schema:v1:learn-progress-state` (`/schemas/v1/learn-progress-state.schema.json`)
|
||||
- **Privacy & Portability Guarantee:** `100%` client-side execution (`0` cookies, `0` server databases, `0` user accounts, `0` external network requests); full progress portability across browsers and devices via deterministic JSON State Download (`Blob` export) and State Upload (`FileReader` + drag-and-drop import with schema & `SHA-256` / `CIDv1` verification).
|
||||
|
||||
---
|
||||
|
||||
## 1. Pedagogical Goal: Bridging Complete Newcomers into the Ecosystem
|
||||
|
||||
A first-time visitor arriving at `https://hyperstitionstud.io` sees six dense research tools: a 388-node Knowledge Graph, a 22-volume PDF Encyclopedia, an Ecological Trophic Index (`ETI`) Tier List, a 282-term Glossary, a 71-dossier Archive, and a 69-cipher Gematria Calculator.
|
||||
|
||||
The **`/learn/`** sub-page provides a **self-paced, interactive 6-module onboarding track** where visitors learn one concept at a time through small, hands-on micro-sandboxes before jumping into the full workbenches—and can save their progress, bookmarked coordinates, preferred stakeholder lens, and personal notes to a local `.json` file at any time.
|
||||
|
||||
---
|
||||
|
||||
## 2. Six-Module Self-Paced Curriculum & Interactive Micro-Sandboxes
|
||||
|
||||
Each module is a collapsible, self-contained interactive card with a **Concept Brief (Plain-English Summary)**, an **Interactive Try-It Micro-Sandbox**, a **1-Question Verification Checkpoint** (which marks the module complete when solved), and **Direct Launch Links** into the corresponding full workbench:
|
||||
|
||||
| Module ID | Title & Core Question Answered | Interactive Micro-Sandbox Built Into the Module | Checkpoint Task (Unlocks Module Badge) | Deep-Link Into Full Workbench |
|
||||
| :--- | :--- | :--- | :--- | :--- |
|
||||
| **`M01`** | **Base-36 Alphanumeric Qabbala (`AQ` 101):**<br/>*How does `0–9 = 0..9, A–Z = 10..35` turn words and numbers into a continuous arithmetic space?* | **Live Character-by-Character `AQ` Breakdown Box:** Type any word or ticker (`ASML`, `TSMC`, `GPU`, `capital`) and see each letter's `10..35` value sum in real time alongside prime-rank and repdigit (`37×k`) badges. | Type `ASML` and `asset` (or `TSMC` and `loss`) into the compare boxes to verify an exact Base-36 collision (`81 == 81` or `91 == 91`). | `/calc/index.html` |
|
||||
| **`M02`** | **Sound Over Spelling (`Gen 0` Written English vs. `Gen 1` Phonemic Ingglish):**<br/>*Why strip silent etymological "ghost mass" using the CMU Pronouncing Dictionary?* | **Interactive `Gen 0 -> Gen 1` Phonemic Drift (`Δ`) Slider:** Click or type sample words (`knight -> nait`, `capital -> kapatal`, `Anthropic -> anthropik`, `Blackwell -> blakwel`) to inspect `Gen 0 AQ`, `Gen 1 AQ`, net drift `Δ`, and **Isometric Chokepoints (`Δ = 0`)**. | Identify one `Δ = 0` Isometric Fixed Point (`kapatal = 125`, `charter = 136`, `asml = 81`, `tsmc = 91`, `gpu = 71`). | `/archive/00-index-and-methodology.md` & `/ci/ONBOARDING-INGGLISH-AQ.pdf` |
|
||||
| **`M03`** | **What Makes a "Singularity"? (`G1` Variance Collapse & `G2` Twins):**<br/>*How do dispersed written concepts collapse onto a single zero-variance integer when spoken?* | **`G1` Variance-Collapse Visualizer:** Toggle between `Gen 0` Written Mode and `Gen 1` Ingglish Mode on canonical triads (e.g., `schizoanalysis [306]`, `abstract machine [272]`, `synthetic data [266]` -> `Gen 0 Var = 310.22`) and watch all three bars snap onto **`292`** (`Gen 1 Var = 0.0`). | Collapse either the `292` (`S1`), `256` (`S2/S6`), or `125` (`S6/S2`) triad to `variance = 0.0` in the widget. | `/graph/index.html` (`Mode 3: Bipartite G1 Funnel`) |
|
||||
| **`M04`** | **The Six Guilds (`S1–S6`), Double Articulation & State-Gated Memetics (`M1–M7+`):**<br/>*How do hardware/AI flows (`S1–S5`) couple with capital capture (`S6`) and headline states (`M`)?* | **Interactive Guild & State-Gate Matcher:** Click through the 6 guilds (`S1` AI, `S2` Flash-Crash Liquidity, `S3` Silicon War Machine, `S4` Carrier Wave, `S5` Cutaneous BwO, `S6` Apparatus of Capture) and test how the Two-Gate rule blocks or unlocks `M1–M7+` on real `2026-11-28/29` wire headlines. | Match a halted/outage headline to its state-gated memetic lock (`129: awflain == ruhsha == blakwel` or `137: hawlts == inersha == envideea`). | `/encyclopedia/00-index-and-ontological-atlas/00-master-encyclopedia-index-a-to-z.pdf` |
|
||||
| **`M05`** | **Ecological Trophic Index (`ETI 0–100`) & The `D Periphery` Radar:**<br/>*How are assemblage builds ranked from `Tier S+` (`93 ETI`) at the center to `Tier D` (`49 ETI`) on the outer ring?* | **Interactive 6-Stat (`ARM, VEL, COL, CAP, PRM, RES`) & Concentric Ring Widget:** Click any of the 10 builds (`#1 S1` through `#9 Q-Stub` & `M7+`) or any of the `13` Multi-Build Flex Pivots (`125, 133, 137, 193, 256, 292`) to see its polar radius $R(\text{ETI})$ and trophic bridges. | Inspect a multi-build Flex Singularity (`125` or `137`) and identify at least two guilds it bridges. | `/zoology/tier-list-technocapital-assemblage-builds.pdf` & `/graph/index.html` (`Mode 2: ETI Radar`) |
|
||||
| **`M06`** | **Practical Use Cases & Choosing Your Register:**<br/>*How do I apply this as a Fund Manager, Corporate Board Member, Fantasy Roster Builder, or Researcher?* | **4-Way Stakeholder Register Translator:** Switch a single control between *Academic/Philosophical*, *Out-of-Sample Fund Manager ("Uncaptured Gem" Screen)*, *Corporate Board (Supply-Chain Moat)*, and *Fantasy Football Roster (`QB / RB / OL / Flex`)*—watching the exact same `ETI` stats and `AQ` locks translate into your chosen domain vocabulary. | Select your preferred default register and bookmark at least one `AQ` coordinate or encyclopedia volume to your personal study list. | `/zoology/proposal-fund-manager-novel-investment-discovery.pdf` & Corporate/Roster PDFs |
|
||||
|
||||
---
|
||||
|
||||
## 3. Anonymous Local State Persistence, Upload & Download Specification
|
||||
|
||||
### 3.1 State Data Model (`urn:io:hyperstitionstud:schema:v1:learn-progress-state`)
|
||||
|
||||
All user progress is represented by a deterministic, self-verifying JSON document:
|
||||
|
||||
```json
|
||||
{
|
||||
"$schema": "../schemas/v1/learn-progress-state.schema.json",
|
||||
"$id": "urn:io:hyperstitionstud:schema:v1:learn-progress-state",
|
||||
"version": "2.0.0",
|
||||
"updated_at_utc": "2026-11-30T01:30:00Z",
|
||||
"preferred_register": "fund_manager",
|
||||
"completed_modules": ["M01", "M02", "M03"],
|
||||
"checkpoint_answers": {
|
||||
"M01": {"term_a": "ASML", "term_b": "asset", "aq": 81, "verified": true},
|
||||
"M02": {"isometric_term": "kapatal", "aq": 125, "verified": true},
|
||||
"M03": {"triad_coord": 292, "gen1_variance": 0.0, "verified": true}
|
||||
},
|
||||
"bookmarked_coordinates": [81, 125, 129, 137, 193, 292],
|
||||
"sandbox_history": [
|
||||
{"input_eng": "Blackwell", "input_ing": "blakwel", "eng_aq": 182, "ing_aq": 129, "delta": -53}
|
||||
],
|
||||
"user_notes": {
|
||||
"M03": "292 triad links synthetic data directly to asset management (Gen 0 = 292).",
|
||||
"M06": "Screen Tier B/C builds with high COL/VEL and low CAP (<65) for pre-institutional themes."
|
||||
},
|
||||
"integrity": {
|
||||
"canonical_codec": "dag-json (0x0129)",
|
||||
"payload_sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
||||
"payload_cidv1": "baguqeera..."
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
### 3.2 Three-Tier Client-Side Storage & Portability Controls (Top Sticky Bar in `/learn/`)
|
||||
|
||||
The `/learn/` header bar provides an always-visible **Progress & State Portability Control Bar**:
|
||||
1. **Progress Meter & Auto-Save Status Pill:**
|
||||
- Displays `Progress: 3 / 6 Modules Completed (50%) • Saved Locally (localStorage)`.
|
||||
- Every interaction automatically writes to `window.localStorage.getItem("hs_learn_state_v2")` (with an automatic in-memory fallback if the visitor's browser has `localStorage` disabled in strict private/incognito mode).
|
||||
2. **`Download State (.json)` Button (`exportLearnState()`):**
|
||||
- Computes the canonical `dag-json` byte representation of the state payload (excluding the `integrity` block), calculates its `SHA-256` hex digest and `CIDv1` (`baguqeera...`) using the Web Crypto API (`crypto.subtle.digest("SHA-256", ...)` with a pure-JS SHA-256 fallback so it works on both `https://` and `file://` / `http://` origins!), attaches the `integrity` block, and triggers a browser file download named:
|
||||
`hyperstition-learn-state-YYYY-MM-DD.json`.
|
||||
3. **`Upload State (.json)` Button & Drag-and-Drop Zone (`importLearnState(file)`):**
|
||||
- Opens a local file picker (`<input type="file" accept=".json,application/json">`) or accepts a `.json` file dropped anywhere onto the State Bar.
|
||||
- **Four-Gate Client-Side Import Verification & Security Sanitization:**
|
||||
- *Gate 1 (Size & Parse Guard):* Rejects files `> 1 MB` or invalid JSON before parsing.
|
||||
- *Gate 2 (Schema & Whitelist Validation):* Verifies `"$id" === "urn:io:hyperstitionstud:schema:v1:learn-progress-state"`, filters `completed_modules` against the known `{"M01".."M06"}` set, validates `bookmarked_coordinates` as bounded integers (`0..9999`), and caps `user_notes` string lengths.
|
||||
- *Gate 3 (Cryptographic Checksum Verification):* Recomputes the canonical `dag-json` `SHA-256` / `CIDv1` of the imported payload and verifies it matches `integrity.payload_sha256` (warning the user if the file was manually edited outside the app while still allowing safe import if schema-valid).
|
||||
- *Gate 4 (Zero-XSS DOM Rendering):* Every imported user note and sandbox string is rendered exclusively via `element.textContent` or `value` properties (never `innerHTML`), making imported state files 100% immune to DOM XSS.
|
||||
- Supports two import modes selectable by a toggle: **`Replace Current State`** (default) or **`Merge With Current State`** (unions completed modules and bookmarked coordinates, keeping newer notes).
|
||||
4. **`Reset Local State` Button (`resetLearnState()`):**
|
||||
- Clears `localStorage["hs_learn_state_v2"]` and resets all 6 modules to `0 / 6` so anonymous users on shared machines can wipe their local state in one click.
|
||||
|
||||
---
|
||||
|
||||
## 4. File Layout & Integration Across Repositories
|
||||
|
||||
```text
|
||||
/workspace/hyperstitionstudio-core/
|
||||
├── schemas/v1/
|
||||
│ └── learn-progress-state.schema.json # Offline URN JSON Schema for exported/imported user state
|
||||
├── site/
|
||||
│ ├── index.html # Updated with prominent "Start Self-Paced Learning Track (/learn/)" banner & card link
|
||||
│ └── learn/
|
||||
│ ├── index.html # Self-contained offline/HTTP3 Learning Sub-Page (6 modules + state upload/download)
|
||||
│ └── learn-app.js # Pure-JS AQ/Ingglish micro-sandboxes, SHA-256/CIDv1 state engine & DOM controller
|
||||
└── deploy/
|
||||
├── sync-vps-repos.sh # Adds ${LIVE_REPOS}/learn -> hyperstitionstudio-core/site/learn symlink
|
||||
├── Caddyfile # Root `handle` block serves /learn/* automatically from hyperstitionstudio-core/site
|
||||
└── test-first-deployment.sh # Adds /learn/index.html, /learn/learn-app.js, and /schemas/v1/learn-progress-state.schema.json
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 5. Phased Implementation Sequence (`Phases 1–3`)
|
||||
|
||||
### Phase 1: Author `learn-progress-state.schema.json` & Pure-JS State / `CIDv1` Engine (`site/learn/learn-app.js`)
|
||||
1. Create `/workspace/hyperstitionstudio-core/schemas/v1/learn-progress-state.schema.json` (`$id: "urn:io:hyperstitionstud:schema:v1:learn-progress-state"`).
|
||||
2. Implement `site/learn/learn-app.js` containing:
|
||||
- Pure-JS `computeAQ()`, `primeRank()`, and a curated embedded subset of core `Gen 0 -> Gen 1` Ingglish vocabulary + `S1–S6` / `M1–M7+` / `ETI` build data so all 6 interactive micro-sandboxes run instantaneously in `< 5 ms` with zero external network fetches.
|
||||
- Deterministic `dag-json` serializer + pure-JS SHA-256 & `CIDv1` (`baguqeera...`) calculator (works identically on `file://`, `http://`, and `https://`).
|
||||
- `exportLearnState()`, `importLearnState(file, mode)`, `resetLearnState()`, and automatic `localStorage` persistence.
|
||||
|
||||
### Phase 2: Build `/workspace/hyperstitionstudio-core/site/learn/index.html` & Link from Portal Homepage (`site/index.html`)
|
||||
1. Build `site/learn/index.html` using the workspace's dark-mode design system (`#020617` Slate-950 canvas, local monospace font stack, zero external CDN/font requests, and automatic `file://` vs. `https://` deep-link adaptation).
|
||||
2. Add a prominent top-of-page **"New Here? Launch the Self-Paced Interactive Learning Track (`/learn/`)"** callout banner in `/workspace/hyperstitionstudio-core/site/index.html`.
|
||||
|
||||
### 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/learn" "${LIVE_REPOS}/learn"` in `deploy/sync-vps-repos.sh`.
|
||||
2. Add `/learn/index.html`, `/learn/learn-app.js`, and `/schemas/v1/learn-progress-state.schema.json` to `deploy/test-first-deployment.sh` (`28 -> 31` verified HTTP routes) and `tests/test_core_suite.py`.
|
||||
3. Verify both local `file://` execution and HTTP route tests, then commit and push via `push-all-to-git-libre-audio.sh`.
|
||||
Binary file not shown.
@@ -1,194 +0,0 @@
|
||||
# Production VPS & Git Operator Deployment Guide (`v2.3.0` — Direct Per-Repository Install Directory & Untracked `.gitignore` Artifact Edition)
|
||||
|
||||
- **Document ID:** `VPS-AND-GIT-OPERATOR-DEPLOYMENT-GUIDE` (`v2.3.0`)
|
||||
- **Target Domain:** `https://hyperstitionstud.io` (and `https://www.hyperstitionstud.io` -> `308` redirect)
|
||||
- **Upstream Git Forge:** `git.libre.audio` (`https://git.libre.audio/seasharp/<repo-slug>.git`)
|
||||
- **Bundled Deployment Automation (`hyperstitionstudio-core/deploy/`):**
|
||||
- `deploy/sync-vps-repos.sh` — Pulls from `git.libre.audio`, automatically supplies untracked `haiperdohp-jemaytreeah/.gitignore` runtime files (`config.js`, `db.json`, `db_lite.json`) if absent, runs `hs-doctor` and 6-gate Knowledge Graph verification, syncs per-repo install directories into RAM (`/var/www/hyperstitionstud.io/repos`), creates relative route symlinks, and pre-compresses `.br` (Brotli-11) and `.gz` (Gzip-9) sidecars.
|
||||
- `deploy/Caddyfile` — Production Caddy 2 configuration (`HTTP/3 QUIC` + `precompressed br gzip` + direct per-repo `handle_path` routing).
|
||||
- `deploy/hyperstition-tmpfs-sync.service` — `systemd` unit that hydrates `/var/www/hyperstitionstud.io/repos` on VPS boot before Caddy starts.
|
||||
- `deploy/test-first-deployment.sh` — Automated 28-route HTTP verification harness (verifies all portal, graph, encyclopedia, `haiperdohp-jemaytreeah` `.gitignore` files `config.js`/`db_lite.json`/`db.json`, CI, and schema routes).
|
||||
|
||||
---
|
||||
|
||||
## 1. Master 1-to-1 Mapping: `git.libre.audio` Repository -> VPS Install Dir -> Web Route
|
||||
|
||||
Each sibling repository on `git.libre.audio` is cloned into `/srv/hyperstitionstud.io/repos/<repo-slug>` on NVMe and synced 1-to-1 into the `512 MB` RAM-backed `tmpfs` mount at `/var/www/hyperstitionstud.io/repos/<repo-slug>`:
|
||||
|
||||
| # | Repository Slug (`seasharp/<repo>`) | Public HTTPS Clone URL (`git.libre.audio`) | Persistent VPS Clone (`/srv/hyperstitionstud.io/repos/*`) | Direct Web Route(s) on `https://hyperstitionstud.io` |
|
||||
| :- | :--- | :--- | :--- | :--- |
|
||||
| **1** | `hyperstitionstudio-core` (`v1.2.0`) | `https://git.libre.audio/seasharp/hyperstitionstudio-core.git` | `/srv/hyperstitionstud.io/repos/hyperstitionstudio-core` | • `/` (`site/index.html` Portal Homepage)<br/>• `/schemas/*` (`schemas/v1/*.schema.json`) |
|
||||
| **2** | `ingglish-hyperdope-gematria` (`main`) | `https://git.libre.audio/seasharp/ingglish-hyperdope-gematria.git` | `/srv/hyperstitionstud.io/repos/ingglish-hyperdope-gematria` | • `/archive/*` (`ingglish-aq-archive/`) |
|
||||
| **3** | `technocapital-singularity-zoology` (`v1.7.0`) | `https://git.libre.audio/seasharp/technocapital-singularity-zoology.git` | `/srv/hyperstitionstud.io/repos/technocapital-singularity-zoology` | • `/encyclopedia/*` (`encyclopedia/`)<br/>• `/technocapital-singularity-zoology/*` (sibling PDF link target)<br/>• `/zoology/*` (root reports, tier list, glossary, `dossiers/`) |
|
||||
| **4** | `encyclopedia-knowledge-graph` (`v1.0.0`) | `https://git.libre.audio/seasharp/encyclopedia-knowledge-graph.git` | `/srv/hyperstitionstud.io/repos/encyclopedia-knowledge-graph` | • `/graph/*` (`index.html`, `graph-data.js`, `atlas-mode*.png`, `.json`, `.graphml`, `.gexf`, `.canvas`, `docs/`) |
|
||||
| **5** | `haiperdohp-jemaytreeah` (`main`) | `https://git.libre.audio/seasharp/haiperdohp-jemaytreeah.git` | `/srv/hyperstitionstud.io/repos/haiperdohp-jemaytreeah` | • `/calc/*` (`index.html`, `config.js`, `calc/*.js`, `db.json`, `db_lite.json` — confluence of `hyperdope-ci-build` output & upstream `hyperdope-gematria`) |
|
||||
| **6** | `ingglish-hyperdope-ci` (`feat/ingglish-aq-corpus`) | `https://git.libre.audio/seasharp/ingglish-hyperdope-ci.git` | `/srv/hyperstitionstud.io/repos/ingglish-hyperdope-ci` | • `/ci/*` (`ONBOARDING-INGGLISH-AQ.pdf`, `ci-audit-report.json`, `db.txt`, `db_ingglish_entries.txt`) |
|
||||
|
||||
---
|
||||
|
||||
## 2. Supplying Untracked Runtime Files Listed in `haiperdohp-jemaytreeah/.gitignore`
|
||||
|
||||
Because `haiperdohp-jemaytreeah/.gitignore` intentionally excludes three runtime files from Git version control to avoid bloating repository clones with `100 MB` of compiled JSON binaries, a fresh `git clone` of `haiperdohp-jemaytreeah` must be supplied with those three files before serving `/calc/`:
|
||||
|
||||
| Untracked File in `haiperdohp-jemaytreeah/.gitignore` | Size | Tracked Source File in Git | How It Is Supplied for `/calc/*` |
|
||||
| :--- | :--- | :--- | :--- |
|
||||
| **`config.js`** | `3.3 KB` | `config.default.js` | Copied directly from `config.default.js`:<br/>`cp config.default.js config.js` |
|
||||
| **`db.json`** | `80.7 MB` | `db.txt` (`231,615` entries) + `tools/generate_db_json.py` | Precomputed 82-cipher JSON database; generated by running:<br/>`python3 tools/generate_db_json.py db.txt db.json` |
|
||||
| **`db_lite.json`** | `19.4 MB` | `db.txt` (`231,615` entries) + `tools/generate_db_json.py` | Precomputed 16-cipher progressive first-paint database; automatically written alongside `db.json` by the same `python3 tools/generate_db_json.py db.txt db.json` command. |
|
||||
|
||||
Operators can supply these three untracked files on the target machine using **either Option A (Self-Contained Local Generation)** or **Option B (Direct `rsync` from Workstation)**:
|
||||
|
||||
- **Option A — Generate on the Target Machine / VPS from Tracked Git Files (Automatic in `sync-vps-repos.sh`):**
|
||||
```bash
|
||||
cd /srv/hyperstitionstud.io/repos/haiperdohp-jemaytreeah
|
||||
cp -n config.default.js config.js
|
||||
python3 tools/generate_db_json.py db.txt db.json
|
||||
cd /srv/hyperstitionstud.io/repos
|
||||
```
|
||||
*(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} \
|
||||
<user>@<LINODE_IP>:/srv/hyperstitionstud.io/repos/haiperdohp-jemaytreeah/
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 3. Testing the First Deployment Locally (Zero VPS / Zero Root Required)
|
||||
|
||||
Before touching a production VPS, any operator or new user can test the complete deployment hydration, untracked `haiperdohp-jemaytreeah` file check (`config.js`, `db_lite.json`, `db.json`), route mapping, and all 28 portal & deep-link routes locally in **one command**:
|
||||
|
||||
```bash
|
||||
# Hydrates /tmp/hyperstition-live-repos, starts a local HTTP server on 127.0.0.1:18090,
|
||||
# and verifies HTTP 200 OK across all 28 routes (including /calc/config.js, /calc/db_lite.json, /calc/db.json):
|
||||
./hyperstitionstudio-core/deploy/test-first-deployment.sh
|
||||
```
|
||||
|
||||
To keep the hydrated local deployment running on `http://127.0.0.1:8090` for interactive browser inspection:
|
||||
|
||||
```bash
|
||||
LIVE_REPOS=/tmp/hyperstition-live-repos ./hyperstitionstudio-core/deploy/sync-vps-repos.sh --no-pull
|
||||
python3 -m http.server 8090 --bind 127.0.0.1 --directory /tmp/hyperstition-live-repos
|
||||
# Open in browser: http://127.0.0.1:8090/
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 4. Production Linode / Akamai VPS First Deployment (Sequential Steps 1–7)
|
||||
|
||||
Follow Steps 1 through 7 in order on a fresh **Debian 12 (Bookworm)** or **Ubuntu 24.04 LTS** Linode VPS (`2 GB` or `4 GB` RAM plan):
|
||||
|
||||
### Step 1: Push Latest Verified Commits to `git.libre.audio` (On Workstation)
|
||||
|
||||
```bash
|
||||
./push-all-to-git-libre-audio.sh
|
||||
```
|
||||
|
||||
### Step 2: Configure Linode Cloud Firewall & DNS Records
|
||||
|
||||
1. **Linode Cloud Firewall:** Allow inbound `TCP 443`, `UDP 443` (**HTTP/3 QUIC**), `TCP 80`, and restricted `TCP 22`.
|
||||
2. **Linode DNS Manager (`hyperstitionstud.io`):**
|
||||
- `A` (`@` and `www`) -> `<LINODE_IPV4>`
|
||||
- `AAAA` (`@` and `www`) -> `<LINODE_IPV6>`
|
||||
- `CAA` (`@`) -> `0 issue "letsencrypt.org"`
|
||||
- `HTTPS` (`@`) -> `1 . alpn="h3,h2"`
|
||||
|
||||
### Step 3: Install OS Packages & Apply Kernel TCP BBR / QUIC Tuning (On VPS)
|
||||
|
||||
```bash
|
||||
sudo apt update && sudo apt install -y git python3 python3-venv python3-pip brotli rsync curl caddy fonts-dejavu-core
|
||||
|
||||
sudo tee /etc/sysctl.d/99-hyperstition-fastnet.conf >/dev/null <<'EOF'
|
||||
net.core.default_qdisc = fq
|
||||
net.ipv4.tcp_congestion_control = bbr
|
||||
net.ipv4.tcp_fastopen = 3
|
||||
net.ipv4.tcp_slow_start_after_idle = 0
|
||||
net.core.rmem_max = 16777216
|
||||
net.core.wmem_max = 16777216
|
||||
net.core.rmem_default = 2097152
|
||||
net.core.wmem_default = 2097152
|
||||
EOF
|
||||
sudo sysctl --system
|
||||
```
|
||||
|
||||
### Step 4: Create Persistent Repo Root (`/srv/...`) & RAM-Backed `tmpfs` Mount (`/var/www/...`)
|
||||
|
||||
```bash
|
||||
sudo mkdir -p /srv/hyperstitionstud.io/repos /var/www/hyperstitionstud.io/repos
|
||||
sudo chown -R "$USER:$USER" /srv/hyperstitionstud.io
|
||||
|
||||
# Add 512 MB tmpfs mount to /etc/fstab (idempotent) and mount immediately
|
||||
grep -q '/var/www/hyperstitionstud.io/repos' /etc/fstab || \
|
||||
echo 'tmpfs /var/www/hyperstitionstud.io/repos tmpfs defaults,size=512M,mode=0755 0 0' | sudo tee -a /etc/fstab
|
||||
sudo mount -a
|
||||
```
|
||||
|
||||
### Step 5: Clone All 6 `git.libre.audio` Repositories, Supply `.gitignore` Files & Initialize `.venv`
|
||||
|
||||
```bash
|
||||
cd /srv/hyperstitionstud.io/repos
|
||||
FORGE_HTTPS="https://git.libre.audio/seasharp"
|
||||
|
||||
git clone "${FORGE_HTTPS}/hyperstitionstudio-core.git"
|
||||
git clone "${FORGE_HTTPS}/ingglish-hyperdope-gematria.git"
|
||||
git clone "${FORGE_HTTPS}/technocapital-singularity-zoology.git"
|
||||
git clone "${FORGE_HTTPS}/encyclopedia-knowledge-graph.git"
|
||||
git clone "${FORGE_HTTPS}/haiperdohp-jemaytreeah.git"
|
||||
git clone -b feat/ingglish-aq-corpus "${FORGE_HTTPS}/ingglish-hyperdope-ci.git"
|
||||
|
||||
# Supply 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)
|
||||
|
||||
cp hyperstitionstudio-core/workspace.example.toml ./workspace.toml
|
||||
python3 -m venv .venv
|
||||
.venv/bin/pip install --upgrade pip
|
||||
.venv/bin/pip install -r hyperstitionstudio-core/requirements.txt
|
||||
.venv/bin/pip install --no-deps -e ./hyperstitionstudio-core
|
||||
|
||||
# Verify environment & all 6 Knowledge Graph CI gates
|
||||
.venv/bin/hs-doctor
|
||||
.venv/bin/python3 hyperstitionstudio-core/tests/test_core_suite.py
|
||||
```
|
||||
|
||||
### Step 6: Hydrate RAM Mount, Enable Boot Persistence & Reload Caddy
|
||||
|
||||
```bash
|
||||
# 1. Hydrate /var/www/hyperstitionstud.io/repos and pre-compress (.br / .gz)
|
||||
/srv/hyperstitionstud.io/repos/hyperstitionstudio-core/deploy/sync-vps-repos.sh --no-pull
|
||||
|
||||
# 2. Install systemd boot-time tmpfs hydration unit
|
||||
sudo cp /srv/hyperstitionstud.io/repos/hyperstitionstudio-core/deploy/hyperstition-tmpfs-sync.service \
|
||||
/etc/systemd/system/hyperstition-tmpfs-sync.service
|
||||
sudo systemctl daemon-reload
|
||||
sudo systemctl enable hyperstition-tmpfs-sync.service
|
||||
|
||||
# 3. Install Caddyfile, validate syntax, and reload Caddy
|
||||
sudo cp /srv/hyperstitionstud.io/repos/hyperstitionstudio-core/deploy/Caddyfile /etc/caddy/Caddyfile
|
||||
sudo caddy validate --config /etc/caddy/Caddyfile
|
||||
sudo systemctl reload caddy
|
||||
```
|
||||
|
||||
### Step 7: Verify Live Production Deployment (`test-first-deployment.sh`)
|
||||
|
||||
```bash
|
||||
# Verify all 28 routes (including /calc/config.js, /calc/db_lite.json, /calc/db.json) return HTTP 200 OK
|
||||
/srv/hyperstitionstud.io/repos/hyperstitionstudio-core/deploy/test-first-deployment.sh https://hyperstitionstud.io
|
||||
|
||||
# Measure DNS, QUIC/TLS handshake, and sub-15ms TTFB
|
||||
curl -o /dev/null -s -w "DNS: %{time_namelookup}s | TLS/QUIC: %{time_appconnect}s | TTFB: %{time_starttransfer}s | Total: %{time_total}s\n" https://hyperstitionstud.io/
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 5. Ongoing Per-Repository Updates on the VPS
|
||||
|
||||
To pull and deploy updates from `git.libre.audio` for all repositories or a single repository:
|
||||
|
||||
```bash
|
||||
# Update all 6 repositories, run 6-gate audit, and sync to RAM:
|
||||
/srv/hyperstitionstud.io/repos/hyperstitionstudio-core/deploy/sync-vps-repos.sh all
|
||||
|
||||
# Or update a single repository in < 1.5 seconds:
|
||||
/srv/hyperstitionstud.io/repos/hyperstitionstudio-core/deploy/sync-vps-repos.sh encyclopedia-knowledge-graph
|
||||
```
|
||||
Binary file not shown.
@@ -1,97 +0,0 @@
|
||||
# Plan: Integrating Real Macroeconomic & Monetary Indicators (`CPI`, `PPI`, `US10Y`, `EFFR/SOFR` Overnight Lending Rates, `M2`, `M1 vs. M2 Spread`, `Real M2 Growth`, `GDP` & `Gross Product / Aggregate Output`) (`v2.0.24`)
|
||||
|
||||
- **Document ID:** `PLAN-MACROECONOMIC-INDICATORS-INTEGRATION-CPI-PPI-RATES-M2-GDP` (`v2.0.24`)
|
||||
- **Roadmap Status:** **ACTIVE / READY**
|
||||
- **Keyless Primary Data Source (`100%` Real Federal Reserve Data, `0` API Keys, `0` Synthetic Values):**
|
||||
All macroeconomic series are ingested directly from the official **St. Louis Federal Reserve (`FRED`) keyless CSV endpoint** (`https://fred.stlouisfed.org/graph/fredgraph.csv?id=<SERIES_ID>`) paired with Yahoo Finance (`^TNX`) and cached in `/workspace/hyperstitionstudio-core/site/quant/real-macro-indicators.json` for offline `file://` portability.
|
||||
- **Strict Cadence Honesty & Null-Preserving Policy:**
|
||||
- **Zero Interpolation / Zero Forward-Filling:** Monthly (`1mo`: `CPI`, `PPI`, `M1`, `M2`, `Real M2`, `INDPRO`) and quarterly (`1q`: `GDP`, `GDPC1`, `GNP`, `OUTBS`) series are **never** linearly interpolated or duplicated into fake daily bars.
|
||||
- **Language-Appropriate `null` When Unavailable:** On any date where a daily series (`DGS10`, `EFFR`, `SOFR`) has no published observation (e.g., weekends or US federal holidays such as `2026-11-26` Thanksgiving where FRED reports `.` / empty), all numeric and `AQ` fields store `None` (Python) / `null` (JSON/JS) / `NULL` (SQLite) and display `"No data available"` in the UI—never `0.0`.
|
||||
- **Target Modules & Files:**
|
||||
- `/workspace/hyperstitionstudio-core/src/hyperstitionstud_io/quant/macro.py` (`hs-macro-harvest` CLI & Python collector/analyzer)
|
||||
- `/workspace/hyperstitionstudio-core/src/hyperstitionstud_io/quant/{collector,timeseries,daily_brief}.py`
|
||||
- `/workspace/hyperstitionstudio-core/site/quant/{index.html,quant-app.js,real-macro-indicators.json}`
|
||||
- `/workspace/hyperstitionstudio-core/tests/test_core_suite.py`
|
||||
|
||||
---
|
||||
|
||||
## 1. Master Specification of the 12 Integrated Macroeconomic & Aggregate Output Series
|
||||
|
||||
Every series below has been live-tested against `https://fred.stlouisfed.org/graph/fredgraph.csv?id=<SERIES_ID>` and verified to return real observations without authentication:
|
||||
|
||||
| # | Indicator Slug & UI Label | Official FRED Series ID(s) | Native Cadence | Latest Verified Real Observation in FRED | Derived Metrics Computed (`MoM / QoQ / YoY` & Spreads) | Taxonomic Guild & Regime Role (`S1–S6` / `M1–M3`) |
|
||||
| :- | :--- | :--- | :---: | :--- | :--- | :--- |
|
||||
| **1** | **`CPI` — Consumer Price Index (All Urban Consumers)** | `CPIAUCSL` | Monthly (`1mo`) | `2026-10-01`: **`337.476`**<br/>*(prior `336.298`)* | • `MoM_bps` (`+35 bps` / `+0.35%`)<br/>• `YoY_pct` & `YoY_bps` | Purchasing-power denominator; gates `M1` stagflation vs. `M2` inflationary fever. |
|
||||
| **2** | **`PPI` — Producer Price Index (All Commodities)** | `PPIACO` | Monthly (`1mo`) | `2026-10-01`: **`293.921`**<br/>*(prior `294.473`)* | • `MoM_bps` (`-19 bps` / `-0.19%`)<br/>• `YoY_pct` & `YoY_bps`<br/>• **`PPI - CPI` Pipeline Margin Spread** | Upstream industrial/supply-chain cost pressure feeding `S3` fabs, defense, and energy. |
|
||||
| **3** | **`US10Y` — 10-Year US Treasury Yield** | `DGS10` *(+ Yahoo `^TNX`)* | Daily (`1d`) | `2026-11-25`: **`4.85%` (`485 bps`)**<br/>`2026-11-27`: **`4.94%` (`494 bps`)** | • Yield in `bps` (`485` / `494`)<br/>• Daily `change_bps`<br/>• Real 10Y Yield (`US10Y - CPI YoY%`) | Risk-free discount rate governing `S6` sovereign debt capture and `S1` long-duration AI multiples. |
|
||||
| **4** | **Overnight Lending Rates (`EFFR` & `SOFR`)** | `EFFR` *(Fed Funds)* & `SOFR` *(Secured Overnight)* + `DFEDTARU` | Daily (`1d`) | `2026-11-27`:<br/>• `EFFR`: **`3.88%` (`388 bps`)**<br/>• `SOFR`: **`3.98%` (`398 bps`)**<br/>• `DFEDTARU`: **`4.00%`** | • Rate in `bps` (`EFFR = 388`, `SOFR = 398`)<br/>• **`SOFR - EFFR` Repo Plumbing Spread (`+10 bps`)**<br/>• **`US10Y - EFFR` Term Curve Slope (`+106 bps`)** | Short-end funding cost & overnight repo collateral stress (`S2` liquidity & `S6` banking plumbing). |
|
||||
| **5** | **`M1` — Narrow Liquid Money Stock** | `M1SL` | Monthly (`1mo`) | `2026-10-01`: **`$20,166.9B`** (`$20.17T`) | • Level (`$B` / `$T`)<br/>• `MoM_bps` (`+52 bps`) & `YoY_bps` | Immediate demand-deposit & checking liquidity available for transaction velocity. |
|
||||
| **6** | **`M2` — Broad Money Supply** | `M2SL` | Monthly (`1mo`) | `2026-10-01`: **`$23,532.8B`** (`$23.53T`) | • Level (`$B` / `$T`)<br/>• `MoM_bps` (`+51 bps`) & `YoY_bps` | Aggregate monetary liquidity reservoir driving `M3` Leviathan asset-price inflation. |
|
||||
| **7** | **`M1 vs. M2 Spread` (Time-Deposit & Velocity Spread)** | Derived from `M1SL` & `M2SL` | Monthly (`1mo`) | `2026-10-01`:<br/>• `M2 - M1`: **`$3,365.9B` (`$3.37T`)**<br/>• `M1 / M2 Ratio`: **`85.70%`** | • **Level Spread (`M2SL - M1SL` in `$B`)**: Non-M1 parked retail time deposits & money-market funds<br/>• **Growth Spread (`M1 YoY bps - M2 YoY bps`)** | Measures whether liquidity is mobilizing into active transaction balances (`M1` rising faster than `M2` -> Risk-On) or retreating into parked yield-bearing deposits (`M2 - M1` widening -> `M1` Stagnation). |
|
||||
| **8** | **`Real M2` & `Real M2 Growth` (CPI-Deflated Money Supply)** | `M2REAL` | Monthly (`1mo`) | `2026-10-01`: **`$6,973.2B`**<br/>*(prior `$6,962.4B`)* | • `Real_M2_MoM_bps` (`+16 bps` / `+0.16%`)<br/>• **`Real_M2_YoY_pct` & `Real_M2_YoY_bps`** | True inflation-adjusted monetary expansion/contraction; leading liquidity indicator for `S1/S2` risk assets. |
|
||||
| **9** | **Nominal & Real `GDP` (Gross Domestic Product)** | `GDP` *(Nominal `$B SAAR`)* & `GDPC1` *(Real Chained-2017 `$B`)* | Quarterly (`1q`) | `2026-Q3` (`2026-07-01`):<br/>• `GDP`: **`$33,056.20B` (`$33.06T`)**<br/>• `GDPC1`: **`$24,665.20B` (`$24.67T`)** | • `QoQ_annualized_pct` & `YoY_pct`<br/>• **`GDP / M2` Monetary Velocity (`1.405x`)**<br/>• **Implicit GDP Deflator (`GDP / GDPC1`)** | Sovereign domestic output denominator (`S6` Apparatus of Capture & macro growth regime). |
|
||||
| **10** | **Gross Product & Aggregate Output (`GNP`, `OUTBS`, `INDPRO`)** | • `GNP` *(Gross National Product `$B`)*<br/>• `OUTBS` *(Business Sector Real Output Index)*<br/>• `INDPRO` *(Monthly Industrial Production Index)* | Quarterly (`1q`) & Monthly (`1mo`) | • `GNP` (`2026-Q3`): **`$33,026.51B`**<br/>• `OUTBS` (`2026-Q3`): **`128.965`**<br/>• `INDPRO` (`2026-10-01`): **`102.2421`** | • `GNP_QoQ_bps`, `OUTBS_QoQ_bps`, `INDPRO_MoM_bps` (`-43 bps`)<br/>• **`GNP - GDP` Net Foreign Factor Income Spread (`-$29.69B`)** | Real physical & business-sector aggregate output benchmark against which financial market capitalization is measured. |
|
||||
|
||||
---
|
||||
|
||||
## 2. Bidirectional (`eng_aq` Gen 0 & `ing_aq` Gen 1) Evaluation of Macroeconomic Readouts
|
||||
|
||||
Just like the 24 market tickers, every macroeconomic observation is evaluated across both **Standard Written English (`Gen 0` `eng_aq`)** and **Phonemic Ingglish (`Gen 1` `ing_aq`)**—revealing remarkable structural locks in the real Federal Reserve data:
|
||||
|
||||
| Indicator & Real Observation | Numerical Representation | `Gen 0` Written (`eng_aq`) | `Gen 1` Phonemic (`ing_aq`) | Structural / Taxonomic Lock Discovered in Real FRED Data |
|
||||
| :--- | :--- | :--- | :--- | :--- |
|
||||
| **`EFFR` (`2026-11-27` = `3.88%`)** | Rate in basis points = **`388 bps`** | Face integer **`388`** | `"three huhndrad aytee ayt"` = `348` | **`388` == Exact Total Node Count of the Encyclopedia Knowledge Graph (`388` Nodes)**! |
|
||||
| **`OUTBS` (`2026-Q3` = `128.965`)** | Rounded integer index = **`129`** (`floor = 128`) | Face integers **`129` / `128`** | `"wuhn huhndrad twentee nain"` | **`129 == blakwel == ruhsha == awflain [S3 / M7+]`**; **`128 == nik land == masheen == serkat [S3]`**! |
|
||||
| **`CPI` (`2026-10-01` = `337.476`)** | Rounded integer = **`337`**; `MoM = +35 bps` | **`337` (`68th PRIME`)** | `"therdee faiv"` (`35 bps`) = **`166`** | `MoM +35 bps` spoken in `Gen 1` (`"therdee faiv"`) = **`166 == order buk == noo flesh [S2]`**! |
|
||||
| **`PPI` (`2026-10-01` = `293.921`)** | `MoM = -19 bps`; Prior = `294` | `"nineteen"` = **`137 [33rd PRIME]`** | `"nainteen"` = **`137 [33rd PRIME]`** ($\Delta = 0$ Isometric!) | **`19` spoken (`"nineteen" -> "nainteen"`) is a `G4` Isometric Chokepoint (`137 == envideea == hawlts == inersha [S3 / M1]`)**! |
|
||||
| **`M2 - M1 Spread` (`$3,365.9B`)** | Scaled string `"$3.37T"` (`337`) | `"three point three seven trillion"` | `"three point three sevan trilyan"` | Matches the `337 [68th PRIME]` CPI coordinate and scales alongside Nvidia's `$3.35T–$3.37T` mega-cap tier (`M3` Leviathan). |
|
||||
|
||||
---
|
||||
|
||||
## 3. Macro-to-Equity & Macro-to-Memetic Regime Coupling Rules
|
||||
|
||||
Integrating these 12 macroeconomic series unlocks four objective macro-regime signals that feed directly into `/quant/` and the **Daily Portfolio & Memetic Regime Update (`PLAN-DAILY-PORTFOLIO-AND-MEMETIC-REGIME-UPDATE-FEATURE`)**:
|
||||
|
||||
1. **Overnight Plumbing & Yield-Curve Stress Gate (`SOFR - EFFR` & `US10Y - EFFR`):**
|
||||
- **Repo Plumbing Spread (`SOFR - EFFR`):** On `2026-11-27`, `SOFR (3.98%) - EFFR (3.88%) = +10 bps`. When `SOFR - EFFR >= +15 bps`, overnight collateral is scarce, signaling an `S2` liquidity squeeze (`M2` flash-crash precursor).
|
||||
- **Term Structure Slope (`DGS10 - EFFR`):** On `2026-11-25/27`, `4.85% - 3.88% = +97 bps` (`+97 bps -> "naintee sevan" [Gen 1] = 237 == kansorsheeam [S6]`).
|
||||
2. **Monetary Velocity & Liquidity Impulse Gate (`Real M2 Growth` & `M1 vs. M2 Spread`):**
|
||||
- When `Real M2 YoY % > 0` and `M1 MoM bps >= M2 MoM bps` (`+52 bps >= +51 bps` in `2026-10`), real liquidity is expanding into active transaction balances, supporting `S1` AI and `S2` crypto multiples.
|
||||
- When `Real M2 YoY % < 0` and `M2 - M1 Spread` widens while `INDPRO` contracts (`-43 bps` in `2026-10`), money is parked in defensive time deposits while industrial output slows—activating **`M1_ENTROPIC_STAGNATION`**.
|
||||
3. **Upstream-Downstream Inflation Margin Gate (`PPI MoM bps - CPI MoM bps`):**
|
||||
- In `2026-10`, `PPI MoM (-19 bps) - CPI MoM (+35 bps) = -54 bps`, indicating easing upstream commodity input costs relative to consumer prices (margin expansion for `S1/S6` corporate operators).
|
||||
4. **Aggregate Output & Leviathan Capitalization Ratio (`GDP`, `GNP`, `OUTBS`, `INDPRO`):**
|
||||
- Compares the combined market capitalization of the top `M3` Leviathan tickers against US `GDP` (`$33.06T`) and `GNP` (`$33.03T`) and tracks `GDP / M2` velocity (`1.405x`).
|
||||
|
||||
---
|
||||
|
||||
## 4. Four-Phase Implementation Roadmap (`Phases 1–4`)
|
||||
|
||||
### Phase 1: Build `src/hyperstitionstud_io/quant/macro.py` & `hs-macro-harvest` CLI
|
||||
1. Create `/workspace/hyperstitionstudio-core/src/hyperstitionstud_io/quant/macro.py` implementing:
|
||||
- `fetch_fred_series_csv(series_id, timeout=8.0)`: Keyless HTTP fetcher for `https://fred.stlouisfed.org/graph/fredgraph.csv?id=<series_id>` that strips missing `.` rows (converting missing dates to `None` / `null`, never `0.0`).
|
||||
- `build_macro_indicators_bundle(allow_live_network=True, write_files=True)`:
|
||||
- Ingests all 12 series (`CPIAUCSL`, `PPIACO`, `DGS10`, `EFFR`, `SOFR`, `DFEDTARU`, `M1SL`, `M2SL`, `M2REAL`, `GDP`, `GDPC1`, `GNP`, `OUTBS`, `INDPRO`),
|
||||
- Computes `M1 vs. M2 Spread` (`M2SL - M1SL` in `$B`, `M1/M2` ratio `%`, and `M1_MoM_bps - M2_MoM_bps`), `Real M2 Growth` (`MoM_bps` & `YoY_pct`), `SOFR - EFFR` repo spread, `DGS10 - EFFR` curve slope, `PPI - CPI` margin spread, `GDP / M2` velocity, and `GNP - GDP` net foreign factor spread,
|
||||
- Computes bidirectional `Gen 0` (`eng_aq`) and `Gen 1` (`ing_aq`) evaluations on every observation and change rate, and
|
||||
- Persists `/workspace/hyperstitionstudio-core/site/quant/real-macro-indicators.json` with an IPLD `dag-json` `CIDv1` digest.
|
||||
2. Register `hs-macro-harvest = "hyperstitionstud_io.quant.macro:main"` in `pyproject.toml`.
|
||||
|
||||
### Phase 2: Integrate Macro Indicators into `timeseries.py`, `daily_brief.py` & `/api/v1/quant/macro`
|
||||
1. Attach the `macro_indicators_summary` block to `quant-timeseries.json` / `quant-timeseries-data.js` and expose `GET /api/v1/quant/macro` on `src/hyperstitionstud_io/mcp/rest.py` (and `hs_scan_financial_quant_harvest` in `mcp/tools.py`).
|
||||
2. Feed the 12 real macroeconomic indicators directly into **Agendas 1–4** of `PLAN-DAILY-PORTFOLIO-AND-MEMETIC-REGIME-UPDATE-FEATURE` (`daily_brief.py`).
|
||||
|
||||
### Phase 3: Add the Macroeconomic & Aggregate Output Strip on `/quant/` (`site/quant/index.html` & `quant-app.js`)
|
||||
1. Add a dedicated **Macroeconomic, Monetary & Aggregate Output Telemetry Panel** on `/quant/index.html` displaying:
|
||||
- **Inflation & Pipeline:** `CPI` (`337.48`, `+35 bps MoM`) & `PPI` (`293.92`, `-19 bps MoM`, `nainteen = 137 [Iso]`),
|
||||
- **Rates & Overnight Plumbing:** `US10Y` (`4.85% / 4.94%`), `EFFR` (`3.88% = 388 bps`), `SOFR` (`3.98% = 398 bps`), `SOFR - EFFR` (`+10 bps`), and `10Y - EFFR` (`+97 bps -> 237`),
|
||||
- **Money Supply & Velocity:** `M2` (`$23.53T`), `M1` (`$20.17T`), `M1 vs. M2 Spread` (`$3.37T` / `85.7%`), and `Real M2` (`$6,973.2B`, `+16 bps MoM`),
|
||||
- **Aggregate Output:** Nominal `GDP` (`$33.06T`), Real `GDPC1` (`$24.67T`), `GNP` (`$33.03T`), `OUTBS` Business Output (`128.97 -> 129 == blakwel`), and `INDPRO` Industrial Production (`102.24`),
|
||||
- Plus inline `ⓘ` info icons (`QUANT_TERM_GLOSSARY`) explaining each macroeconomic indicator in `<= 1 paragraph` of plain English.
|
||||
|
||||
### Phase 4: Verification in `tests/test_core_suite.py` & `deploy/test-first-deployment.sh`
|
||||
1. Add unit assertions in `tests/test_core_suite.py` verifying:
|
||||
- All 12 macroeconomic series load from real FRED data with `synthetic_data_eliminated == True`,
|
||||
- Missing holiday dates (such as `2026-11-26` on `EFFR`/`SOFR`/`DGS10`) return `None` / `null` (`"No data available"`) rather than `0.0`,
|
||||
- Derived indicators (`M1 vs. M2 Spread`, `Real M2 Growth`, `SOFR - EFFR`, `GDP / M2` velocity) and their `eng_aq` / `ing_aq` evaluations match exact arithmetic, and
|
||||
- `/quant/real-macro-indicators.json` returns `HTTP 200 OK` in `deploy/test-first-deployment.sh`.
|
||||
Binary file not shown.
@@ -1,194 +0,0 @@
|
||||
# Plan: Unified Stateless REST API & OpenAPI 3.1 Adapter (`/api/v1/*`) for the `hyperstitionstud.io` MCP Server (`v2.0.17`)
|
||||
|
||||
- **Document ID:** `PLAN-MCP-REST-API-ADAPTER` (`v2.0.17`)
|
||||
- **Target Module:** `/workspace/hyperstitionstudio-core/src/hyperstitionstud_io/mcp/server.py` & `/workspace/hyperstitionstudio-core/src/hyperstitionstud_io/mcp/rest.py`
|
||||
- **Public HTTPS & Local Routes:**
|
||||
- **REST API v1 Base URL:** `https://hyperstitionstud.io/api/v1/*` (and `http://127.0.0.1:8095/api/v1/*`)
|
||||
- **OpenAPI 3.1.0 Specification:** `https://hyperstitionstud.io/api/v1/openapi.json` (auto-compiled at runtime from `MCP_TOOLS_SCHEMA`, `STATIC_RESOURCES`, `RESOURCE_TEMPLATES`, and `MCP_PROMPTS`)
|
||||
- **Existing JSON-RPC 2.0 MCP Endpoint (100% Preserved):** `https://hyperstitionstud.io/mcp` (`POST /mcp` & `GET /mcp`)
|
||||
- **Core Architectural Principle:** **Single Daemon, Single Port (`127.0.0.1:8095`), Zero Code Duplication.** The existing `_MCPHTTPHandler` inside `hyperstitionstud_io.mcp.server` (`hyperstition-mcp.service`) serves both MCP JSON-RPC 2.0 clients at `/mcp` and standard HTTP/REST clients (`curl`, browser `fetch()`, Python `requests`, Pandas/R notebooks, TradingView webhooks, OpenAI/Anthropic function-calling) at `/api/v1/*`, wrapping every execution inside `ReadOnlyIsolationGuard` and returning unwrapped native JSON with an embedded cryptographic `isolation_receipt`.
|
||||
|
||||
---
|
||||
|
||||
## 1. Why Non-MCP Clients Need a First-Class REST Adapter (`/api/v1/*`)
|
||||
|
||||
While Model Context Protocol (`MCP`) clients communicate via stateful `stdio` pipes or JSON-RPC 2.0 envelopes (`{"jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": {"name": "...", "arguments": {...}}}`) where tool results are double-serialized as stringified JSON inside `result.content[0].text`, standard non-MCP consumers face three unnecessary friction points:
|
||||
|
||||
1. **Double-Encoded JSON Unwrapping Overhead:** In MCP `tools/call`, the payload returned by `call_mcp_tool()` is serialized into a string inside `{"result": {"content": [{"type": "text", "text": "{...}"}]}}`. Standard HTTP clients (`curl | jq`, browser `fetch()`, Pandas `pd.read_json()`, quantitative scripts) expect a single-pass parsed JSON response (`application/json`) with standard HTTP status codes (`200 OK`, `400 Bad Request`, `404 Not Found`, `405 Method Not Allowed`, `422 Unprocessable Entity`).
|
||||
2. **`GET` Query-String Addressability & HTTP Edge Caching:** Read-only queries—such as looking up node `125` in the Knowledge Graph, fetching `NVDA` from the closing-bell financial harvest, or reading Dossier `65`—should be directly addressable via idempotent `GET` URLs (`GET /api/v1/quant/harvest?symbol=NVDA` or `GET /api/v1/graph/nodes/aq:125`) that work in any browser address bar without constructing a `POST` body.
|
||||
3. **OpenAPI 3.1.0 Discovery (`openapi.json`):** Non-MCP agent frameworks (OpenAI Actions, LangChain OpenAPI toolkits, Postman, Insomnia, Swagger UI) ingest standard OpenAPI 3.1.0 schemas rather than MCP `tools/list` JSON-RPC handshakes.
|
||||
|
||||
---
|
||||
|
||||
## 2. Unified Dual-Protocol Architecture (`Caddy :443` -> `hs-mcp 127.0.0.1:8095`)
|
||||
|
||||
No second background daemon or extra systemd service is needed. Caddy routes both `/mcp*` and `/api/v1*` to the same stateless, `ProtectSystem=strict` `hyperstition-mcp.service` process on `127.0.0.1:8095`:
|
||||
|
||||
```text
|
||||
+---------------------------------------------------------------------------------------------------+
|
||||
| CLIENT LAYER |
|
||||
| • MCP Clients (Hermes, Claude, Cursor) -----> POST /mcp (JSON-RPC 2.0 Envelope) |
|
||||
| • Non-MCP Clients (curl, JS fetch, Pandas, -> GET / POST /api/v1/* (Native REST JSON + OpenAPI) |
|
||||
| OpenAI Actions, Quant Notebooks, Browser) |
|
||||
+---------------------------------------------------+-----------------------------------------------+
|
||||
|
|
||||
v
|
||||
+---------------------------------------------------------------------------------------------------+
|
||||
| CADDY 2 REVERSE PROXY (`/etc/caddy/Caddyfile` on `hyperstitionstud.io`) |
|
||||
| @api_and_mcp path /mcp /mcp/* /api/v1 /api/v1/* |
|
||||
| handle @api_and_mcp { reverse_proxy 127.0.0.1:8095 } |
|
||||
+---------------------------------------------------+-----------------------------------------------+
|
||||
|
|
||||
v
|
||||
+---------------------------------------------------------------------------------------------------+
|
||||
| SINGLE STATELESS PYTHON DAEMON (`hyperstitionstud_io.mcp.server` • `127.0.0.1:8095`) |
|
||||
| • Enforces `ReadOnlyIsolationGuard` (pre/post SHA-256 verification of upstream registries) |
|
||||
| • Routes `/mcp` -> `dispatch_jsonrpc()` (MCP 2025-03-26 / 2024-11-05 JSON-RPC 2.0) |
|
||||
| • Routes `/api/v1/*` -> `dispatch_rest_v1()` (Unwrapped REST JSON + Query-Param Coercion) |
|
||||
+---------------------------------------------------------------------------------------------------+
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 3. Complete `/api/v1/*` REST Endpoint Specification
|
||||
|
||||
Every capability in `hyperstitionstud_io.mcp` (`11` tools, `7` static resources, `2` resource templates, and `4` guided prompts) is exposed through **both** a generic 1-to-1 reflection endpoint (`/api/v1/tools/<tool_name>`) and ergonomic resource-oriented REST aliases:
|
||||
|
||||
### 3.1 Discovery, Health & OpenAPI 3.1 Endpoints
|
||||
|
||||
| HTTP Method & Path | Description | Underlying Function |
|
||||
| :--- | :--- | :--- |
|
||||
| `GET /api/v1` or `GET /api/v1/status` | Server version (`v2.0.17`), URN namespace, endpoint directory, tool/resource/prompt counts, and live `ReadOnlyIsolationGuard` SHA-256 status. | `SERVER_INFO` + `guard.audit_receipt()` |
|
||||
| `GET /api/v1/openapi.json` | Full **OpenAPI 3.1.0** schema dynamically compiled from `MCP_TOOLS_SCHEMA`, `STATIC_RESOURCES`, `RESOURCE_TEMPLATES`, and `MCP_PROMPTS`. | `build_openapi_v1_spec()` |
|
||||
| `GET /api/v1/doctor` | Run `hs-doctor` environment, font, CMUdict, and SHA-256 isolation diagnostics. | `hs_run_doctor_and_audit` |
|
||||
|
||||
### 3.2 Generic 1-to-1 Tool Execution Endpoints (Supports Both `GET` Query Params & `POST` JSON Body)
|
||||
|
||||
Any existing or future tool registered in `MCP_TOOLS_SCHEMA` is automatically callable at `/api/v1/tools/{tool_name}` with zero manual routing code:
|
||||
|
||||
| HTTP Method & Path | Query / Body Parameters | Behavior & Type Coercion |
|
||||
| :--- | :--- | :--- |
|
||||
| `GET /api/v1/tools` | None | Returns the list of all `11` tool definitions and their JSON Schemas (`MCP_TOOLS_SCHEMA`). |
|
||||
| `POST /api/v1/tools/{tool_name}` | JSON object matching the tool's `inputSchema` (e.g. `{"terms": ["Nvidia", "Anthropic"], "quant_mode": "spoken"}`). | Validates required fields against `inputSchema`, executes `call_mcp_tool(tool_name, body)`, and returns native JSON. |
|
||||
| `GET /api/v1/tools/{tool_name}?...` | URL query parameters (e.g. `?symbol_filter=NVDA&harvest_mode=us-closing-bell` or `?terms=Nvidia,Anthropic`). | Automatically coerces query strings using the tool's `inputSchema` (`"integer" -> int`, `"boolean" -> bool`, `"array" -> comma-separated or repeated param`) and executes `call_mcp_tool()`. |
|
||||
|
||||
### 3.3 Ergonomic Domain-Specific REST Endpoints (Ciphers, Zoology, Graph, Quant, IPLD & Citations)
|
||||
|
||||
For clean integration with `/quant/`, `/learn/`, `/graph/`, and external scripts, the REST adapter maps domain nouns directly onto the 11 MCP tools:
|
||||
|
||||
| Domain | HTTP Method & Path | Query / JSON Parameters | Mapped MCP Tool |
|
||||
| :--- | :--- | :--- | :--- |
|
||||
| **Ciphers & Phonetics** | `GET` or `POST` `/api/v1/ciphers/evaluate` | `terms` (array or comma-list), `quant_mode` (`digit\|off\|spoken\|dual`) | `hs_evaluate_aq_and_ingglish` |
|
||||
| **Singularity Zoology** | `GET` or `POST` `/api/v1/zoology/classify` | `terms` (array or comma-list), `headline_text` (optional string) | `hs_classify_singularity` |
|
||||
| **ETI Tier List** | `GET /api/v1/zoology/tier-list` | `?build_filter=all®ister=academic\|fund_manager\|corporate_board\|fantasy_football` | `hs_inspect_eti_tier_list` |
|
||||
| **Anchor Revisions** | `GET` or `POST` `/api/v1/zoology/anchor-revision` | `anchor_id`, `new_digit_str`, `new_spoken_eng` | `hs_simulate_anchor_revision` |
|
||||
| **Knowledge Graph** | `GET /api/v1/graph/query` | `?query=125&include_neighbors=true` (also `GET /api/v1/graph/nodes/{node_id}`) | `hs_query_knowledge_graph` |
|
||||
| **Glossary & Encyclopedia** | `GET /api/v1/glossary/search` | `?query=monopoly&guild_filter=S6&limit=15` | `hs_search_glossary_encyclopedia` |
|
||||
| **Archive Equations** | `GET /api/v1/archive/equations` | `?target_sum=333&keyword=envideea&limit=20` | `hs_search_archive_equations` |
|
||||
| **Quant Finance Harvest** | `GET /api/v1/quant/harvest` | `?harvest_mode=us-closing-bell&symbol_filter=NVDA` (also `GET /api/v1/quant/instruments/{symbol}`) | `hs_scan_financial_quant_harvest` |
|
||||
| **IPLD `dag-json` `CIDv1`** | `GET` or `POST` `/api/v1/ipld/cid` | `?registry_name=glossary-registry` (or `POST` arbitrary `{"json_object": {...}}`) | `hs_compute_ipld_dag_json_cid` |
|
||||
| **Grounded Citations** | `POST /api/v1/citations/verify` | `{"draft_path": "...", "ledger_variant": "common", "require_evidence": true}` | `hs_verify_grounded_citations` |
|
||||
|
||||
### 3.4 Static Resources, Dossiers, Schemas & Guided Prompts Endpoints
|
||||
|
||||
| HTTP Method & Path | Description | Underlying Resource / Prompt |
|
||||
| :--- | :--- | :--- |
|
||||
| `GET /api/v1/resources` | Lists all `7` static URN resources and `2` URI templates. | `STATIC_RESOURCES` + `RESOURCE_TEMPLATES` |
|
||||
| `GET /api/v1/resources/{slug}` | Returns parsed JSON for `slug` in `{glossary-registry, encyclopedia-manifest, eti-tier-list, singularity-matrix, memetic-registry, quantitative-anchors, knowledge-graph-summary}`. | `read_mcp_resource("urn:io:hyperstitionstud:resource:" + slug)` |
|
||||
| `GET /api/v1/dossiers/{number}` | Returns `{dossier_number, uri, mime_type: "text/markdown", markdown: "..."}` for Dossier `01..71` (or raw `text/markdown` when `Accept: text/markdown` or `?format=raw` is passed). | `read_mcp_resource("urn:io:hyperstitionstud:dossier:" + number)` |
|
||||
| `GET /api/v1/schemas/{schema_slug}` | Returns the raw v1 JSON Schema (`glossary-registry`, `encyclopedia-graph`, `learn-progress-state`, `financial-aq-harvest`). | `read_mcp_resource("urn:io:hyperstitionstud:schema:v1:" + schema_slug)` |
|
||||
| `GET /api/v1/prompts` | Lists all `4` guided workflow prompt templates and their required arguments. | `MCP_PROMPTS` |
|
||||
| `GET` or `POST` `/api/v1/prompts/{prompt_name}` | Renders the prompt messages with supplied query/JSON arguments (`?headline=...` or `?audience=fund_manager&focus_guild=S1`). | `get_mcp_prompt(prompt_name, args)` |
|
||||
|
||||
---
|
||||
|
||||
## 4. Standardized REST Response Envelope & Error Contract
|
||||
|
||||
To give non-MCP callers deterministic metadata without double-stringifying the result, every `/api/v1/*` JSON response uses a flat, single-parsed envelope (with optional `?raw=1` query flag to return the bare data object directly):
|
||||
|
||||
### 4.1 Successful Response (`HTTP 200 OK`)
|
||||
```json
|
||||
{
|
||||
"ok": true,
|
||||
"version": "2.0.17",
|
||||
"endpoint": "/api/v1/quant/harvest",
|
||||
"tool": "hs_scan_financial_quant_harvest",
|
||||
"data": {
|
||||
"$schema": "./schemas/v1/financial-aq-harvest.schema.json",
|
||||
"$id": "urn:io:hyperstitionstud:schema:v1:financial-aq-harvest",
|
||||
"harvest_mode": "us-closing-bell",
|
||||
"instruments": [ ... ]
|
||||
},
|
||||
"isolation_verified": true
|
||||
}
|
||||
```
|
||||
*(When `?raw=1` or `?unwrap=true` is passed, `data` is returned at the top level directly so `curl -s 'https://hyperstitionstud.io/api/v1/quant/harvest?symbol_filter=NVDA&raw=1' | jq .instruments[0]` works with zero wrapper keys).*
|
||||
|
||||
### 4.2 Error Response (`HTTP 400 / 404 / 405 / 422 / 500`)
|
||||
```json
|
||||
{
|
||||
"ok": false,
|
||||
"version": "2.0.17",
|
||||
"error": {
|
||||
"code": "INVALID_ARGUMENTS",
|
||||
"status": 422,
|
||||
"message": "Missing required parameter 'terms' for tool 'hs_evaluate_aq_and_ingglish'."
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 5. Concrete Client Usage Examples (Zero MCP Client Required)
|
||||
|
||||
1. **`curl` + `jq` (Evaluate Base-36 AQ & Ingglish Locks via `GET`):**
|
||||
```bash
|
||||
curl -s "https://hyperstitionstud.io/api/v1/ciphers/evaluate?terms=schizoanalysis,abstract%20machine,synthetic%20data" | jq .data
|
||||
```
|
||||
2. **`curl` (Fetch `NVDA` Closing-Bell Quantitative Telemetry & Scope 1–3 Locks):**
|
||||
```bash
|
||||
curl -s "https://hyperstitionstud.io/api/v1/quant/instruments/NVDA" | jq .data
|
||||
```
|
||||
3. **Browser `fetch()` / JavaScript Client:**
|
||||
```javascript
|
||||
const resp = await fetch("/api/v1/graph/nodes/aq:125?include_neighbors=true");
|
||||
const { data } = await resp.json();
|
||||
console.log(data.matched_nodes, data.neighbors);
|
||||
```
|
||||
4. **Python `urllib` / `requests` / Pandas Notebook:**
|
||||
```python
|
||||
import requests
|
||||
df_rows = requests.get("https://hyperstitionstud.io/api/v1/zoology/tier-list", params={"register": "fund_manager", "raw": "1"}).json()["builds"]
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 6. Three-Phase Implementation Sequence (`Phases 1–3`)
|
||||
|
||||
### Phase 1: Create `src/hyperstitionstud_io/mcp/rest.py` (Router, Schema-Driven Query Coercer & OpenAPI 3.1 Builder)
|
||||
1. Implement `coerce_query_params(query_str, input_schema)` to convert URL query strings (`?terms=a,b&limit=10&include_neighbors=false`) into typed Python dicts matching each tool's JSON Schema in `MCP_TOOLS_SCHEMA`.
|
||||
2. Implement `build_openapi_v1_spec()` to auto-generate the OpenAPI 3.1.0 specification document (`/api/v1/openapi.json`) directly from `MCP_TOOLS_SCHEMA`, `STATIC_RESOURCES`, `RESOURCE_TEMPLATES`, and `MCP_PROMPTS` so adding a new MCP tool automatically adds its REST route and OpenAPI entry.
|
||||
3. Implement `dispatch_rest_v1(method, path, query_str, body_bytes, headers)` executing inside `ReadOnlyIsolationGuard(cfg.read_only_files)` and returning `(http_status, content_type, payload)`.
|
||||
|
||||
### Phase 2: Wire `/api/v1/*` into `src/hyperstitionstud_io/mcp/server.py` & `deploy/Caddyfile`
|
||||
1. Update `_MCPHTTPHandler.do_GET()` and `_MCPHTTPHandler.do_POST()` in `src/hyperstitionstud_io/mcp/server.py` to route any path starting with `/api/v1` to `dispatch_rest_v1()`, while keeping `/mcp` 100% unchanged for MCP Streamable HTTP JSON-RPC 2.0 clients.
|
||||
2. Register `src/hyperstitionstud_io/mcp/rest.py` in `src/hyperstitionstud_io/version_sync.py` if it carries version strings (or import `SERVER_INFO["version"]` directly from `server.py`).
|
||||
3. Update `/workspace/hyperstitionstudio-core/deploy/Caddyfile` so the reverse proxy rule matches both `/mcp` and `/api/v1`:
|
||||
```caddyfile
|
||||
@mcp_and_rest_api path /mcp /mcp/* /api/v1 /api/v1/*
|
||||
handle @mcp_and_rest_api {
|
||||
reverse_proxy 127.0.0.1:8095
|
||||
}
|
||||
```
|
||||
|
||||
### Phase 3: Verification in `tests/test_core_suite.py` & `deploy/test-first-deployment.sh`
|
||||
1. Add unit tests in `tests/test_core_suite.py` testing `dispatch_rest_v1()` across:
|
||||
- `GET /api/v1/status` and `GET /api/v1/openapi.json` (validating OpenAPI 3.1.0 structure),
|
||||
- `GET /api/v1/ciphers/evaluate?terms=schizoanalysis,abstract%20machine,synthetic%20data`,
|
||||
- `POST /api/v1/tools/hs_evaluate_aq_and_ingglish`,
|
||||
- `GET /api/v1/quant/instruments/NVDA`,
|
||||
- `GET /api/v1/graph/nodes/aq:125`,
|
||||
- `GET /api/v1/resources/eti-tier-list` and `GET /api/v1/dossiers/65`,
|
||||
- `GET /api/v1/prompts/analyze_headline_zoology?headline=Nvidia+halts`, and
|
||||
- `404` / `422` structured error responses + `ReadOnlyIsolationGuard` invariance.
|
||||
2. Add `/api/v1/status`, `/api/v1/openapi.json`, and `/api/v1/quant/instruments/NVDA` checks to `deploy/test-first-deployment.sh`.
|
||||
Binary file not shown.
@@ -1,170 +0,0 @@
|
||||
# Architecture & Implementation Plan: Model Context Protocol (`MCP`) Server for `hyperstitionstud.io` (`hyperstitionstud_io.mcp` — `v2.0.0`)
|
||||
|
||||
- **Document ID:** `PLAN-MCP-SERVER-HYPERSTITIONSTUDIO` (`v2.0.0`)
|
||||
- **MCP Protocol Version Supported:** `2025-03-26` & `2024-11-05` (JSON-RPC 2.0 over `stdio` and Stateless Read-Only Streamable HTTP `/mcp`)
|
||||
- **Python Module & CLI Entrypoint:** `hyperstitionstud_io.mcp` -> `hs-mcp` (installed by `/workspace/hyperstitionstudio-core`)
|
||||
- **Resource & Tool Namespace Authority:** `urn:io:hyperstitionstud:*`
|
||||
- **External SDK Dependencies:** **Zero (`0`)** — Implemented in `100%` Python 3.10+ standard library (`json`, `sys`, `http.server`, `hashlib`, `pathlib`) on top of `hyperstitionstud_io.{config,ciphers,phonetics,glossary,graph,ci}`, guaranteeing zero third-party SDK breakage and `100%` offline air-gapped portability.
|
||||
- **Safety & Isolation Invariant:** Every MCP tool call executes inside `ReadOnlyIsolationGuard` over `taxonomy/glossary-registry.json` (`7564ef40fb3e...`) and `encyclopedia/encyclopedia-manifest.json` (`0d7ce833bb0a...`), guaranteeing zero mutations to protected upstream registries.
|
||||
|
||||
---
|
||||
|
||||
## 1. Architectural Vision: Turning the 6-Repository Ecosystem into an AI-Queryable Instrument
|
||||
|
||||
The `hyperstitionstud.io` workspace already exposes its corpus to human operators through static web workbenches (`/`, `/graph/`, `/encyclopedia/`, `/zoology/`, `/archive/`, `/calc/`, `/ci/`) and CLI tools (`hs-doctor`, `hs-citations`, `hs-pdf-build`, `hs-kg-build`).
|
||||
|
||||
Adding a **Model Context Protocol (`MCP`) Server (`hs-mcp`)** inside `hyperstitionstudio-core` exposes the exact same deterministic algorithms, 8 versioned JSON registries, 388-node Knowledge Graph, 22-volume Encyclopedia, 71-dossier Archive, and 4,897-entry offline `CMUdict` phonetics engine directly to any MCP-compatible AI client (**Hermes Agent**, **Claude Desktop**, **Claude Code**, **Cursor**, **Zed**, **OpenCode**, **Continue**, or remote HTTP MCP clients) with **zero hallucinated arithmetic**.
|
||||
|
||||
---
|
||||
|
||||
## 2. Dual-Transport Architecture (`stdio` Local & `/mcp` Streamable HTTP on VPS)
|
||||
|
||||
```text
|
||||
+---------------------------------------------------------------------------------------------------+
|
||||
| AI CLIENTS (Hermes Agent, Claude Desktop, Cursor, Zed, OpenCode, Web MCP Clients) |
|
||||
+-----------------------------------+-------------------------------------------+-------------------+
|
||||
| |
|
||||
Transport A: Local stdio | (JSON-RPC 2.0 line-delimited) | Transport B: HTTPS POST /mcp
|
||||
(`hs-mcp` / `--transport stdio`)| | (`https://hyperstitionstud.io/mcp`)
|
||||
v v
|
||||
+---------------------------------------------------------------------------------------------------+
|
||||
| hyperstitionstud_io.mcp.server (`hs-mcp`) |
|
||||
| • Protocol Dispatcher: initialize, ping, tools/list, tools/call, resources/*, prompts/* |
|
||||
| • Mandatory Guard: `with ReadOnlyIsolationGuard(cfg.read_only_files):` on every request |
|
||||
+---------------------------------------------------------------------------------------------------+
|
||||
| | | |
|
||||
v v v v
|
||||
[ciphers & phonetics] [technocapital-zoology] [encyclopedia-kg] [ci & ipld dag-json]
|
||||
• Base-36 AQ (digit/ • S1-S6 & M1-M7+ Taxa • 388 Nodes, 1,282 Edges • verify_draft() citations
|
||||
spoken/off/dual) • ETI 0-100 Tier List • 4 Spatial Layouts • Local-config path_mounts
|
||||
• 4,897 Offline CMUdict • 282-Term Glossary • 1-Hop Ego-Networks • Canonical dag-json (0x0129)
|
||||
• Prime Rank & G1-G6 • 22 Encyclopedia Vols • 13 Flex Pivot Bridges & CIDv1 (`baguqeera...`)
|
||||
```
|
||||
|
||||
### 2.1 Why a 100%-Stdlib JSON-RPC 2.0 Engine Beats Heavy Third-Party MCP SDKs
|
||||
1. **Zero Dependency Hell on Workstation or VPS:**
|
||||
Third-party MCP Python wrappers pull in `pydantic`, `anyio`, `starlette`, `uvicorn`, and `sse-starlette`, which frequently conflict across Python 3.11–3.13 environments or fail in offline containers.
|
||||
2. **Instant `< 15 ms` Cold Start:**
|
||||
Because the MCP wire specification is pure JSON-RPC 2.0 over newline-delimited `stdin`/`stdout` (and single-request `POST /mcp` JSON-RPC 2.0 in Streamable HTTP `2025-03-26`), a 350-line stdlib dispatcher starts in `< 15 ms` and uses `< 25 MB` RAM.
|
||||
3. **Strict Read-Only Guarantee for Public HTTP Exposure (`https://hyperstitionstud.io/mcp`):**
|
||||
When run with `--transport http --host 127.0.0.1 --port 8095` behind Caddy (`handle /mcp* { reverse_proxy 127.0.0.1:8095 }`), the server exposes **only read-only, deterministic computation and query tools** with a hard request-body cap (`64 KB`) and zero filesystem write paths.
|
||||
|
||||
---
|
||||
|
||||
## 3. Complete MCP Capability Specification (`10 Tools`, `9 Resources / Templates`, `4 Prompts`)
|
||||
|
||||
### 3.1 Ten Deterministic MCP Tools (`tools/list` & `tools/call`)
|
||||
|
||||
| # | Tool Name | Input Parameters (JSON Schema) | Deterministic Output & Backing Module |
|
||||
| :- | :--- | :--- | :--- |
|
||||
| **1** | `hs_evaluate_aq_and_ingglish` | `terms: list[str]`, `quant_mode: "digit"\|"off"\|"spoken"\|"dual"` (default `"digit"`) | Translates each English term to `Gen 1` Ingglish via `hyperstitionstud_io.phonetics` (`4,897`-entry offline CMUdict + optional Node bridge), computes `eng_aq`, `ing_aq`, `delta`, `eng_prime_rank`, `ing_prime_rank`, `isometric` (`Δ=0`), `twin_prime_mutation` (`G5`), `g3_quantized_step`, and group `G1` variance collapse (`Gen 0 Var -> Gen 1 Var`). |
|
||||
| **2** | `hs_classify_singularity` | `terms: list[str]`, `headline_text: str` (optional), `quant_mode: str` (default `"off"`) | Classifies entities into Landian-Deleuzean classes `S1–S6`, checks Double Articulation (`S[1–5] × S6`), evaluates Two-Gate state-matched `M1–M7+` memetic activation on `headline_text`, and returns matching signature coordinate rings. |
|
||||
| **3** | `hs_query_knowledge_graph` | `query: str` (node ID, headword, Ingglish token, or integer `AQ`), `include_neighbors: bool` (default `true`) | Queries the 388-node, 1,282-edge Encyclopedia Knowledge Graph (`encyclopedia-graph.json`), returning all matching nodes, 4-mode layout coordinates (`mode1_trophic`, `mode2_radar`, `mode3_bipartite`, `mode4_hierarchy`), incident typed edges (`G1`, `G2`, `G4`, `G5`, `TROPHIC_GUILD_BRIDGE`), and Encyclopedia Volume PDF paths. |
|
||||
| **4** | `hs_search_glossary_encyclopedia` | `query: str`, `section_filter: str` (optional), `guild_filter: str` (optional), `limit: int` (default `15`) | Searches the `282` canonical glossary entries and `190` bilingual specimens in `taxonomy/glossary-registry.json` plus the `22` Encyclopedia volumes, returning full definitions, `AQ` telemetry, verified `333/666/777` equations, and volume locations. |
|
||||
| **5** | `hs_inspect_eti_tier_list` | `build_filter: str` (optional, e.g. `"S1"`, `"M7+"`, or `"all"`), `register: "academic"\|"fund_manager"\|"corporate_board"\|"fantasy_football"` | Returns the Ecological Trophic Index (`ETI 0–100`) Assemblage Builds Tier List (`S+` to `D/F`), 6-stat scorecards (`ARM, VEL, COL, CAP, PRM, RES`), the `13` Multi-Build Flex Pivots, and translates stat labels into the requested stakeholder register. |
|
||||
| **6** | `hs_simulate_anchor_revision` | `anchor_id: str` (e.g. `"lazarus_heist_6b"`, `"anthropic_ipo_83"`, `"halted_factories_481"`), `new_digit_str: str`, `new_spoken_eng: str` | Runs the Quantitative Economic Anchor Revision solver (`Δ_digit`, `Δ_spoken`, Type 1 Iso-Digital Conservation, Type 2 Equivalence-Ring Migration, Type 3 Prime/Square/Repdigit transitions, and 3-Path Counter-Substitution candidates). |
|
||||
| **7** | `hs_search_archive_equations` | `target_sum: int` (optional, e.g. `333`, `666`, `777`), `keyword: str` (optional), `dossier_filter: str` (optional), `limit: int` (default `25`) | Scans all `71` verified dossiers (`01..71-dossier-*.md` in `ingglish-aq-archive/` and `65..69` in Zoology) and returns matching `<ing> ("<eng>") — <breakdown> = <target>` equations with source dossier provenance. |
|
||||
| **8** | `hs_verify_grounded_citations` | `draft_path: str`, `ledger_variant: "common"\|"english_aq"` (default `"common"`), `require_evidence: bool` (default `true`) | Runs `hyperstitionstud_io.ci.citation_sources.verify_draft()` against the specified Markdown file, checking inline `[n]` markers, `## Sources` block URLs (via local-config `[citations.path_mounts]`), sentence coverage, and verbatim evidence quotes. |
|
||||
| **9** | `hs_compute_ipld_dag_json_cid` | `registry_name: str` (optional, e.g. `"glossary-registry"`, `"encyclopedia-graph"`) or `json_object: dict` | Serializes the target workspace registry or custom JSON object into canonical IPLD `dag-json` (`multicodec 0x0129`) bytes and returns its byte length, `SHA-256` hex digest, and multibase Base32 `CIDv1` (`baguqeera...`). |
|
||||
| **10** | `hs_run_doctor_and_audit` | `run_six_gate_graph_check: bool` (default `true`) | Runs `hs-doctor` (`hyperstitionstud_io.ci.doctor.run_diagnostics()`) and `verify_published_artifacts()`, returning package/font status, offline CMUdict entry count (`4,897`), 6-gate graph status, and `ReadOnlyIsolationGuard` SHA-256 receipts. |
|
||||
|
||||
---
|
||||
|
||||
### 3.2 Nine MCP Resources & URI Templates (`resources/list`, `resources/templates/list`, `resources/read`)
|
||||
|
||||
All resources use our offline-first `urn:io:hyperstitionstud:*` URI authority:
|
||||
|
||||
1. **Static Resources (`resources/list`):**
|
||||
- `urn:io:hyperstitionstud:resource:glossary-registry` (`application/json`) — 282-entry Glossary & 190-specimen Bilingual Ledger
|
||||
- `urn:io:hyperstitionstud:resource:encyclopedia-manifest` (`application/json`) — 9-Division, 22-Volume PDF Encyclopedia Manifest
|
||||
- `urn:io:hyperstitionstud:resource:eti-tier-list` (`application/json`) — Assemblage Builds `ETI v2.0.0` Scorecard Registry
|
||||
- `urn:io:hyperstitionstud:resource:singularity-matrix` (`application/json`) — `S1–S6` Taxonomy Matrix
|
||||
- `urn:io:hyperstitionstud:resource:memetic-registry` (`application/json`) — `M1–M6` & `M7+` Memetic Superclass Registry
|
||||
- `urn:io:hyperstitionstud:resource:quantitative-anchors` (`application/json`) — Quantitative Economic Anchors Registry
|
||||
- `urn:io:hyperstitionstud:resource:knowledge-graph-summary` (`application/json`) — Top 15 AQ Coordinate Hubs, Node/Edge Counts & Isolation Receipt from `encyclopedia-graph.json`
|
||||
2. **Parameterized Resource Templates (`resources/templates/list`):**
|
||||
- `urn:io:hyperstitionstud:dossier:{dossier_number}` (`text/markdown`) — Reads the full Markdown text of any archive or zoology dossier (e.g., `65` -> `65-dossier-technocapital-singularity-autoregressive-ai.md`, `71` -> `71-dossier-news-2026-11-29.md`).
|
||||
- `urn:io:hyperstitionstud:encyclopedia:{division_id}/{volume_slug}` (`text/markdown`) — Reads the full Markdown source of any of the 22 Encyclopedia volumes.
|
||||
- `urn:io:hyperstitionstud:schema:v1:{schema_slug}` (`application/schema+json`) — Reads any of the canonical `schemas/v1/*.schema.json` contracts.
|
||||
|
||||
---
|
||||
|
||||
### 3.3 Four Guided MCP Prompts (`prompts/list` & `prompts/get`)
|
||||
|
||||
1. **`analyze_headline_zoology`** (`arguments: {headline: str, quant_mode: str}`):
|
||||
Guides the AI agent to evaluate `headline` with `hs_evaluate_aq_and_ingglish` and `hs_classify_singularity`, verify Two-Gate state-matched `M1–M7+` activation, and synthesize a zero-padding analysis.
|
||||
2. **`draft_stakeholder_proposal_section`** (`arguments: {audience: "fund_manager"|"corporate_board"|"fantasy_football", focus_guild: str, english_gen0_only: str}`):
|
||||
Instructs the agent to query `hs_inspect_eti_tier_list` in the target register, drop French philosophical jargon in favor of concrete tech/finance nouns from each equivalence ring, and ground every cited equation in `citations-ledger-{common,english-aq}.json`.
|
||||
3. **`trace_knowledge_graph_bridge`** (`arguments: {start_query: str, target_query: str}`):
|
||||
Guides the agent to inspect both nodes via `hs_query_knowledge_graph` and trace the shortest path across the `13` Multi-Build Flex Singularities and `333/666/777` repdigit attractors.
|
||||
4. **`pokedex_field_scanner_card`** (`arguments: {specimen_or_coord: str}`):
|
||||
Formats a specimen or emergent `M7+` coordinate hub into a Gen IV INFO Pokedex field-scanner specification (`National/Singularity Dex #`, `Type`, `ETI Base Stats`, `G1 Variance Collapse`, and `Signature Locks`).
|
||||
|
||||
---
|
||||
|
||||
## 4. Repository Layout & Client Registration Configs
|
||||
|
||||
### 4.1 Code Layout Inside `/workspace/hyperstitionstudio-core`
|
||||
|
||||
```text
|
||||
/workspace/hyperstitionstudio-core/
|
||||
├── pyproject.toml # Adds `hs-mcp = "hyperstitionstud_io.mcp.server:main"` to [project.scripts]
|
||||
├── src/
|
||||
│ └── hyperstitionstud_io/
|
||||
│ ├── ipld/
|
||||
│ │ └── __init__.py # Canonical dag-json (0x0129) encoder & CIDv1 (`baguqeera...`) generator
|
||||
│ └── mcp/
|
||||
│ ├── __init__.py
|
||||
│ ├── tools.py # 10 deterministic tool handlers + JSON Schemas
|
||||
│ ├── resources.py # 9 static & template URN resource resolvers
|
||||
│ ├── prompts.py # 4 guided workflow prompts
|
||||
│ └── server.py # Dual-transport JSON-RPC 2.0 server (`--transport stdio|http`)
|
||||
└── tests/
|
||||
└── test_mcp_server.py # End-to-end JSON-RPC 2.0 tests for initialize, tools/*, resources/*, prompts/*
|
||||
```
|
||||
|
||||
### 4.2 Ready-to-Use Client Configuration Snippets
|
||||
|
||||
- **Hermes Agent (`~/.hermes/config.yaml`) / Claude Desktop / Cursor / Zed (`mcpServers` JSON):**
|
||||
```json
|
||||
{
|
||||
"mcpServers": {
|
||||
"hyperstitionstudio": {
|
||||
"command": "python3",
|
||||
"args": [
|
||||
"/home/m00t/hermes/workspace/hyperstitionstudio-core/src/hyperstitionstud_io/mcp/server.py",
|
||||
"--transport",
|
||||
"stdio"
|
||||
],
|
||||
"env": {
|
||||
"HYPERSTITIONSTUDIO_CONFIG": "/home/m00t/hermes/workspace/workspace.toml"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
- **Optional Linode / Akamai VPS Public Read-Only Streamable HTTP Endpoint (`https://hyperstitionstud.io/mcp`):**
|
||||
- Run `hs-mcp --transport http --host 127.0.0.1 --port 8095` under a non-privileged `systemd` service (`hyperstition-mcp.service`).
|
||||
- Add to `/etc/caddy/Caddyfile`:
|
||||
```caddyfile
|
||||
handle /mcp* {
|
||||
reverse_proxy 127.0.0.1:8095
|
||||
}
|
||||
```
|
||||
- Supports `GET /mcp` (returns server manifest, capabilities, and tool/resource catalog as JSON) and `POST /mcp` (executes stateless JSON-RPC 2.0 `initialize`, `tools/list`, `tools/call`, `resources/*`, and `prompts/*` inside `ReadOnlyIsolationGuard`).
|
||||
|
||||
---
|
||||
|
||||
## 5. Phased Implementation Roadmap (`Phases 1–3`)
|
||||
|
||||
### Phase 1: Implement `hyperstitionstud_io.ipld` (`dag-json` + `CIDv1`) & `hyperstitionstud_io.mcp` Core (`tools.py`, `resources.py`, `prompts.py`)
|
||||
1. Create `src/hyperstitionstud_io/ipld/__init__.py` providing `encode_dag_json(obj)` and `compute_dag_json_cidv1(obj)`.
|
||||
2. Create `src/hyperstitionstud_io/mcp/{tools,resources,prompts}.py` wiring all 10 tools, 9 resources/templates, and 4 prompts directly to `hyperstitionstud_io.*` and the sibling repositories.
|
||||
|
||||
### Phase 2: Implement Dual-Transport Server (`server.py`: `stdio` + Streamable HTTP `/mcp`) & Register `hs-mcp` CLI
|
||||
1. Implement `src/hyperstitionstud_io/mcp/server.py` handling MCP `2025-03-26` / `2024-11-05` JSON-RPC 2.0 messages over both `stdio` and `http.server` (`GET /mcp` + `POST /mcp` with CORS headers for browser inspector tools).
|
||||
2. Add `hs-mcp = "hyperstitionstud_io.mcp.server:main"` to `pyproject.toml`.
|
||||
|
||||
### Phase 3: End-to-End Verification (`test_mcp_server.py`) & Deployment Integration
|
||||
1. Write `tests/test_mcp_server.py` exercising all 10 tools, resource templates, and prompts over both in-memory JSON-RPC dispatch and subprocess `stdio` / local HTTP `:18095` requests, asserting `ReadOnlyIsolationGuard` (`0` SHA-256 mutations on `glossary-registry.json` and `encyclopedia-manifest.json`).
|
||||
2. Add optional `hyperstition-mcp.service` to `hyperstitionstudio-core/deploy/` and document in `VPS-AND-GIT-OPERATOR-DEPLOYMENT-GUIDE.{md,pdf}`.
|
||||
Binary file not shown.
@@ -1,124 +0,0 @@
|
||||
# Architecture & Reversibility Plan: Lens-Neutral Mathematical Substrate & Hot-Swappable Projection Registry (`LENS_REGISTRY`) Across TierZoo, Pokédex, Fantasy Sabermetrics & Quantitative Factor Models (`v2.0.17`)
|
||||
|
||||
- **Document ID:** `PLAN-MODULAR-LENS-PROJECTION-AND-REVERSIBILITY-ARCHITECTURE` (`v2.0.17`)
|
||||
- **Companion Plans Governed:**
|
||||
- `PLAN-QUANTITATIVE-FINANCE-TIMESERIES-SUBPAGE` (`/quant/` Time-Series Workbench)
|
||||
- `PLAN-TIERZOO-AND-POKEDEX-TIMESERIES-SABERMETRICS-ENRICHMENT` (`ETI-TS` & Gen IV Pokédex Time-Series Enrichment)
|
||||
- `PLAN-MCP-REST-API-ADAPTER` (`/api/v1/*` & `/mcp` Register Projections)
|
||||
- **Core Architectural Mandate:** **100% of stored time-series ledgers, JSON schemas, and core Python calculators must compute and persist strictly lens-neutral mathematical invariants.** Interpretive metaphors—including **TierZoo (`ETI`)**, **Gen IV Pokédex**, **Fantasy Football / Sabermetrics**, **Quantitative Hedge-Fund Factor Risk**, and **Corporate Board Governance**—must operate exclusively as stateless, late-bound projection plugins registered in a single declarative `LENS_REGISTRY` (`hyperstitionstud_io.lenses`), guaranteeing that any lens can be removed or replaced in `< 15 minutes` with zero schema migrations and zero data regeneration.
|
||||
|
||||
---
|
||||
|
||||
## 1. Executive Summary: Coupling Audit & Removal/Replacement Cost Across the 6 Repositories
|
||||
|
||||
An audit of the 6-repository `hyperstitionstud.io` ecosystem confirms that the core mathematical, phonetic, cryptographic, and periodic-harvest engines already maintain **`0.0%` coupling** to the TierZoo, Pokédex, and Fantasy Football lenses. All metaphor-specific terminology is confined to a thin presentation layer (`Layer 2`):
|
||||
|
||||
| Architectural Layer | Modules & Artifacts Included | Coupling to Pokédex / TierZoo / Fantasy Football | Effort to Remove or Replace |
|
||||
| :--- | :--- | :---: | :--- |
|
||||
| **Layer 0: Core Ciphers, Phonetics, IPLD & Periodic Collectors** | `hyperstitionstud_io.{ciphers,phonetics,ipld,quant}`, `01–71` Archive Dossiers, `haiperdohp-jemaytreeah` (`/calc/`), `hyperdope-ci-build` (`/ci/`) | **`0.0%` (`Zero references`)** | **Zero (`0` lines of code or data touched).** |
|
||||
| **Layer 1: Structural Singularity Vectors & Time-Series Moments** | `G1` variance collapse ($\sigma^2_0 \to 0$), `G2` cross-gen twins, `G3` quantized steps, `G4` isometric ratio ($\Delta=0$), `G5` twin-prime density, `S[1–5]×S6` coupling, and periodic moments ($\Pr[X_t>0], P_{20}, P_{90}, \text{CV}, \rho(\tau), \Delta_{S_t}$) | **`0.0%` (`Pure mathematical invariants`)** | **Zero (`0` lines of code or data touched).** |
|
||||
| **Layer 2A: Runtime API & UI Projection Layer (`LENS_REGISTRY`)** | `REGISTER_STAT_LABELS` in `src/hyperstitionstud_io/mcp/tools.py` (lines 27–60), `pokedex_field_scanner_card` in `mcp/prompts.py`, and the `/quant/` UI lens selector | **Isolated to dictionary entries (`~8–25` lines per lens)** | **Trivial (`< 2 minutes` to delete a key or register a new lens dict).** |
|
||||
| **Layer 2B: Static Stakeholder Proposals & Division `07/08` PDFs** | `ZOOLOGICAL_TIER_DEFS` & `roster_slot` in `classify_technocapital_singularity.py`, `proposal-fantasy-football-*.{md,pdf}`, and Encyclopedia Divisions `07` & `08` | **Confined to static published reports** *(Protected at runtime by `ReadOnlyIsolationGuard`)* | **Low (`~10–15 minutes` to swap `ZOOLOGICAL_TIER_DEFS` and re-run `--build-tier-list` / `--build-encyclopedia`).** |
|
||||
|
||||
---
|
||||
|
||||
## 2. Mathematical Isomorphism: How 12 Domain-Agnostic Invariants Project Into Any Interpretive Lens
|
||||
|
||||
Every existing and planned lens is mathematically an **isomorphic basis relabeling** of the exact same **6 Structural Combine Invariants** ($\mathbf{v}_{\text{struct}} \in [0, 100]^6$) and **6 Longitudinal Time-Series Moments** ($\mathbf{v}_{\text{ts}}$):
|
||||
|
||||
$$\mathbf{v}_{\text{struct}} = \begin{bmatrix} v_1: \text{Isometric Ratio } (G_4, \Delta=0) \\ v_2: \text{Inverse Drift Velocity } (G_3, |\Delta|) \\ v_3: \text{Log Variance Collapse } (G_1, \sigma^2_0 \to 0) \\ v_4: \text{Cross-Guild Coupling } (S \times S_6) \\ v_5: \text{Prime & Twin-Prime Density } (G_5) \\ v_6: \text{Repricing Closure } (\Delta Q) \end{bmatrix}, \qquad \mathbf{v}_{\text{ts}} = \begin{bmatrix} m_1: \text{Active Duty Cycle } (\Pr[X_t > 0]) \\ m_2: \text{Volume-Weighted Lock Share} \\ m_3: \text{Excess Locks Over Null } (X_t - \mathbb{E}_0) \\ m_4: \text{Quantile & Dispersion Profile } (P_{20}, P_{90}, \text{CV}) \\ m_5: \text{Optimal Cross-Correlation Lag } (\tau^*) \\ m_6: \text{Conditional Regime Delta } (\mathbb{E}[X_t \mid S_t] - \mu) \end{bmatrix}$$
|
||||
|
||||
Because $\mathbf{v}_{\text{struct}}$ and $\mathbf{v}_{\text{ts}}$ are computed purely from Base-36 `AQ` arithmetic, CMUdict phonetics, and periodic `(Market × News-Wire)` timestamps, they project into **any** domain lens without altering a single underlying number:
|
||||
|
||||
| # | Canonical Schema Key (Stored on Disk in `quant-timeseries.json`) | Lens 1: **TierZoo (`tierzoo_ecology`)** | Lens 2: **Gen IV Pokédex (`pokedex_scanner`)** | Lens 3: **Fantasy Sabermetrics (`fantasy_sabermetrics`)** | Lens 4: **Quant Hedge Fund (`fund_manager`)** | Lens 5: **Cybernetic Control (`cybernetic_control`)** | Lens 6: **Epidemiology (`network_contagion`)** |
|
||||
| :- | :--- | :--- | :--- | :--- | :--- | :--- | :--- |
|
||||
| **1** | `struct_isometric_armor` ($v_1$) | `ARM` (Chokepoint Armor) | `Base DEF` (Isometric Shield) | `Pass Protection` (OL Blocker) | `Chokepoint Moat` | `Phase-Lock Invariance` | `Structural Immunity` |
|
||||
| **2** | `struct_drift_velocity` ($v_2$) | `VEL` (Escape Velocity) | `Base SPE` (Speed Stat) | `Breakaway Speed` (RB/WR) | `Signal Velocity` | `Slew Rate / Bandwidth` | `Transmission Velocity` |
|
||||
| **3** | `struct_variance_collapse` ($v_3$) | `COL` (Compression Power) | `Base ATK` (Collapse Strike) | `Stack Power` (QB-WR Stack) | `Convergence Power` | `Attractor Basin Depth` | `Basic Reproduction ($R_0$)` |
|
||||
| **4** | `struct_trophic_capture` ($v_4$) | `CAP` (Trophic Capture) | `Base HP` (Apparatus Mass) | `Front-Office Cap Reach` | `Institutional Coupling` | `Bus Fan-Out Gain` | `Cross-Host Reservoir` |
|
||||
| **5** | `struct_prime_density` ($v_5$) | `PRM` (Prime Mutation IQ) | `Base SPA` (Special Prime) | `Playbook IQ` (Audibles) | `Idiosyncratic Asymmetry` | `Orthogonal Code Density` | `Antigenic Drift Rate` |
|
||||
| **6** | `struct_repricing_resilience` ($v_6$) | `RES` (State Resilience) | `Base SPD` (Repricing Guard) | `All-Weather Durability` | `Regime Robustness` | `Fault Damping Ratio` | `Endemic Persistence` |
|
||||
| **7** | `ts_duty_cycle_pct` ($m_1$) | `Foraging Activity %` | `Encounter Rate %` (`Route`) | `Snap Share (SNAP%)` | `Signal Duty Cycle %` | `Carrier Occupancy %` | `Prevalence Rate %` |
|
||||
| **8** | `ts_weighted_resonance` ($m_2$) | `Trophic Dominance Index` | `Combat Level (Lv. 1–100)` | `WOPR` (Opportunity Rating) | `Conviction Exposure` | `Spectral Power Flux` | `Force of Infection ($\lambda_t$)` |
|
||||
| **9** | `ts_excess_over_replacement` ($m_3$) | `Apex Surplus Over Tier D` | `EV Yield (+1..+3 Stats)` | `LOE / WAR_30d` | `Information Ratio / Alpha` | `SNR Gain Over Noise (dB)` | `Excess Morbidity Over Null` |
|
||||
| **10** | `ts_quantile_profile` ($m_4$) | `Metabolic Niche Archetype` | `Nature (+10% / -10% Trait)` | `Floor P20 / Ceil P90 / Boom%` | `VaR_20 & Convexity Skew` | `Crest Factor / Kurtosis` | `Endemic vs. Outbreak Skew` |
|
||||
| **11** | `ts_optimal_lag_days` ($m_5$) | `Predator-Prey Phase Lead` | `Move Priority Bracket` | `Pace / Leverage Index (LI)` | `Granger Lead-Lag ($\tau^*$)` | `Group Delay / Phase Lead` | `Incubation Lead ($\tau^*$)` |
|
||||
| **12** | `ts_regime_splits` ($m_6$) | `Biome Adaptation Split` | `Passive Ability (Weather)` | `Weather / SOS Matchup Split` | `Regime-Conditional Beta` | `Mode Transfer Gain` | `Seasonal Multiplier` |
|
||||
|
||||
---
|
||||
|
||||
## 3. The Pluggable `LENS_REGISTRY` Architecture (`hyperstitionstud_io.lenses`)
|
||||
|
||||
To guarantee that lenses never leak into core data pipelines, we formalize a standalone, zero-dependency projection module `/workspace/hyperstitionstudio-core/src/hyperstitionstud_io/lenses/__init__.py`:
|
||||
|
||||
```text
|
||||
+---------------------------------------------------------------------------------------------------+
|
||||
| LAYER 1: LENS-NEUTRAL TIME-SERIES & STRUCTURAL BUNDLE (`quant-timeseries.json`) |
|
||||
| Stores ONLY canonical mathematical keys: |
|
||||
| • `structural_vector`: {isometric_armor, drift_velocity, variance_collapse, ...} |
|
||||
| • `timeseries_moments`: {duty_cycle_pct, weighted_resonance, excess_over_null, |
|
||||
| value_over_baseline, p20_floor, p90_ceiling, cv, optimal_lag_days, |
|
||||
| regime_splits: {M1: +14.0, M2: -2.1, M3: +4.5}} |
|
||||
+---------------------------------------------------+-----------------------------------------------+
|
||||
|
|
||||
v
|
||||
+---------------------------------------------------------------------------------------------------+
|
||||
| LAYER 2: DECLARATIVE `LENS_REGISTRY` (`src/hyperstitionstud_io/lenses/__init__.py`) |
|
||||
| Stateless pure function: `apply_lens(neutral_record, lens_slug="fund_manager")` |
|
||||
| • Built-in Lenses: |
|
||||
| 1. `neutral_math` (Raw mathematical & statistical terminology — zero metaphor) |
|
||||
| 2. `fund_manager` (Factor alpha, chokepoint moat, VaR/convexity, Granger lead-lag) |
|
||||
| 3. `corporate_board` (Supply-chain moat, execution agility, balance-sheet coupling) |
|
||||
| 4. `tierzoo_ecology` (ETI S+..F, Apex Predator / Keystone Guild / Symbiont / Nomad) |
|
||||
| 5. `fantasy_sabermetrics` (QB/RB/WR/OL/DEF slots, SNAP%, WOPR, WAR_30d, Floor/Ceil/Boom%) |
|
||||
| 6. `pokedex_scanner` (DEX #, Lv., Nature +10%/-10%, Passive Ability, EV Yield, Stage 1-3)|
|
||||
+---------------------------------------------------------------------------------------------------+
|
||||
```
|
||||
|
||||
### 3.1 Schema of a Single `LensSpec` Plugin Entry (`~20` Lines of Declarative Python/JSON)
|
||||
Each lens in `LENS_REGISTRY` is defined by a self-contained `LensSpec` dictionary with four keys:
|
||||
1. `lens_id` & `title`: Identifier (`e.g., "fund_manager"` or `"fantasy_sabermetrics"`) and human-readable display name.
|
||||
2. `field_labels`: 1-to-1 dictionary mapping the 12 canonical schema keys (`struct_isometric_armor` .. `ts_regime_splits`) to the lens's display labels and tooltips.
|
||||
3. `tier_bands`: Thresholds and badge names mapping the `0–100` composite score into the lens's native hierarchy (e.g., `S+ / S / A / B / C / D / F` for `tierzoo_ecology`, vs. `Core Overweight / Tactical Long / Market Perform / Event Flyer / Underweight` for `fund_manager`).
|
||||
4. `classify_qualitative_profile(neutral_record)`: A pure function of `(p20_floor, p90_ceiling, cv, optimal_lag_days, peak_regime)` that returns deterministic qualitative tags grounded in the time series:
|
||||
- When `p20_floor >= 75` and `cv < 0.45`:
|
||||
- `neutral_math` returns `"Low-Variance High-Floor Stationary Series"`
|
||||
- `fund_manager` returns `"Core Compounding Moat (Low Drawdown Beta)"`
|
||||
- `fantasy_sabermetrics` returns `"Ironclad Cash-Game Floor Anchor"`
|
||||
- `pokedex_scanner` returns `"Relaxed Nature (+DEF / -SPE) • Isometric Shield"`.
|
||||
|
||||
---
|
||||
|
||||
## 4. Operational Playbook: How to Remove or Replace Any Lens in the Future
|
||||
|
||||
### 4.1 Scenario A: Removing Pokédex, TierZoo, or Fantasy Football Completely (`< 15 Minutes`)
|
||||
If you ever decide to retire one or all of the gaming/sports lenses (`pokedex_scanner`, `tierzoo_ecology`, `fantasy_sabermetrics`) and run the platform purely as a **Quantitative Factor & Continental Philosophy Research Terminal (`neutral_math` + `fund_manager` + `corporate_board`)**:
|
||||
|
||||
1. **Runtime API & `/quant/` UI Removal (`< 2 Minutes`):**
|
||||
- Remove `"pokedex_scanner"`, `"tierzoo_ecology"`, and/or `"fantasy_sabermetrics"` from `ENABLED_LENSES` in `src/hyperstitionstud_io/lenses/__init__.py`.
|
||||
- Set `DEFAULT_LENS = "fund_manager"` (or `"neutral_math"`).
|
||||
- **Impact on `quant-timeseries.json`, `financial-aq-harvest-latest.json`, `encyclopedia-graph.json`, and all 3 Hermes cronjobs:** **Zero (`0` files modified, `0` cron changes, `0` schema changes).** Both `/quant/index.html` and `/api/v1/*` dynamically populate their lens selector dropdown from `ENABLED_LENSES`.
|
||||
2. **Optional Static Document & Encyclopedia Archival (`~10 Minutes`):**
|
||||
- If you also want the static Fantasy Football proposal (`proposal-fantasy-football-*.{md,pdf}`) and Pokédex/TierZoo glossary entries moved out of the active Encyclopedia:
|
||||
- Move `proposal-fantasy-football-technocapital-roster-engine.{md,pdf}` to `technocapital-singularity-zoology/docs/archive/`.
|
||||
- Filter `source_type in ("pokedex_lens", "fantasy_lens")` in `classify_technocapital_singularity.py --sync-glossary --build-encyclopedia` and rebuild the Knowledge Graph (`build_encyclopedia_knowledge_graph.py`).
|
||||
|
||||
### 4.2 Scenario B: Adding a Brand-New Replacement Lens (`< 10 Minutes`)
|
||||
To introduce a new lens—such as **`options_volatility_surface`** (Delta, Gamma, Vega, Theta, Skew, Pin Risk), **`cybernetic_signal_processing`** (Carrier SNR, Phase-Locked Loop, Group Delay, Bandwidth), or **`chess_engine_evaluation`** (Centipawn Advantage, Piece Activity, King Safety, Zugzwang Lock):
|
||||
|
||||
1. Add one `20`-line `LensSpec` dictionary to `src/hyperstitionstud_io/lenses/__init__.py` mapping the 12 canonical mathematical keys (`struct_*` and `ts_*`) to the new lens's terminology.
|
||||
2. Re-run `build_quant_timeseries_bundle()` (or query `/api/v1/zoology/tier-list?register=<new_lens>`).
|
||||
3. The `/quant/index.html` workbench, the REST API (`/api/v1/*`), the OpenAPI 3.1 schema (`/api/v1/openapi.json`), and the MCP server (`/mcp`) immediately expose the new lens with zero HTML or chart-rendering changes.
|
||||
|
||||
---
|
||||
|
||||
## 5. Mandatory Guardrails Added to the Active Implementation Roadmap
|
||||
|
||||
To lock in this reversibility before implementing Plans B, C, and A:
|
||||
|
||||
1. **Guardrail 1 (No Lens Jargon in Stored Time-Series Keys):**
|
||||
- `schemas/v1/quant-timeseries.schema.json` and `site/quant/quant-timeseries.json` must use **100% lens-neutral field names** (`duty_cycle_pct`, `weighted_resonance_share`, `excess_locks_over_null`, `value_over_baseline`, `p20_floor`, `p90_ceiling`, `cv`, `optimal_lag_days`, `regime_splits`), with a pre-computed `lens_projections: {neutral_math, fund_manager, corporate_board, tierzoo_ecology, fantasy_sabermetrics, pokedex_scanner}` dictionary attached via `apply_all_lenses()`.
|
||||
2. **Guardrail 2 (UI Lens Switcher on `/quant/index.html`):**
|
||||
- Add a top-bar **`[ Lens: Quant Factor | Neutral Math | TierZoo | Fantasy Sabermetrics | Pokédex | Corporate Board ]`** selector to `/quant/index.html` so the user can switch the entire workbench's labels, tooltips, and Panel 3 inspector cards across lenses in real time—or hide any lens by toggling one array entry.
|
||||
3. **Guardrail 3 (Unit Test for Lens-Removal Invariance in `tests/test_core_suite.py`):**
|
||||
- Add an automated test asserting that `build_quant_timeseries_bundle(enabled_lenses=["neutral_math", "fund_manager"])` succeeds with `100%` schema validity when `pokedex_scanner`, `tierzoo_ecology`, and `fantasy_sabermetrics` are disabled.
|
||||
Binary file not shown.
@@ -1,244 +0,0 @@
|
||||
# Plan: One-Shot Ticker Stats Card Generator & API (`.png` + `.json`) — Pokémon / Sports Card / TCG / TierZoo Hybrid in the `haiperdohp-jemaytreeah` Visual Design System (`v2.0.24`)
|
||||
|
||||
- **Document ID:** `PLAN-ONE-SHOT-TICKER-STATS-CARDS-API-PNG-AND-JSON` (`v2.0.24`)
|
||||
- **Roadmap Status:** **ACTIVE / READY**
|
||||
- **Strict Zero-Synthetic-Data & Null-Preserving Mandate:**
|
||||
Every market price, basis-point move, 20-day volume ratio, sabermetric moment (`SNAP%`, `WOPR`, `WAR_30d`), and `Dose 0..3+` confluence score rendered on the `.png` card and emitted in the `.json` file comes **100% from real exchange observations** (`site/quant/real-market-history.json`) and real dated news dossiers (`25..71-dossier-news-YYYY-MM-DD.md`). Whenever market data is unavailable (such as private entity `ANTHR-PVT`, closed weekend/holiday equity sessions, or unreported equity `market_cap_str`), the `.json` field is `null` (`None` in Python) and the `.png` card explicitly prints `"No data available"` / `"N/A"`—never `0.0` and never synthesized.
|
||||
- **Target Modules, Existing Chatbot REST Dispatcher & MCP Integration (`0` New REST Endpoints):**
|
||||
- `/workspace/hyperstitionstudio-core/src/hyperstitionstud_io/quant/cards.py` (`hs-ticker-card` CLI & deterministic Pillow `.png` + `.json` compiler)
|
||||
- `/workspace/hyperstitionstudio-core/src/hyperstitionstud_io/mcp/tools.py` (Wired into MCP & the existing Chatbot OpenAPI `/api/v1/tools/{tool_name}`, `/api/v1/zoology/pokedex/{symbol}`, and `/api/v1/quant/timeseries` dispatchers—**creating zero new REST endpoint routes in `src/hyperstitionstud_io/mcp/rest.py`**)
|
||||
- `/workspace/hyperstitionstudio-core/schemas/v1/ticker-stats-card.schema.json` (Offline URN JSON Schema contract)
|
||||
- `/workspace/hyperstitionstudio-core/tests/test_core_suite.py`
|
||||
|
||||
---
|
||||
|
||||
## 1. Visual Design System: Matching the `haiperdohp-jemaytreeah` Calculator (`calc/styles.css` & `calc/ciphers.js`)
|
||||
|
||||
To make every generated `.png` card look like a native artifact of the `haiperdohp-jemaytreeah` Cypher Calculator (`/calc/`), the Pillow renderer (`hyperstitionstud_io.quant.cards`) uses the exact HSL/RGB color tokens, zebra-table rows, breakdown boxes, and cipher accent hues defined in `/workspace/haiperdohp-jemaytreeah/calc/styles.css`, `config.default.js`, and `calc/ciphers.js`:
|
||||
|
||||
| `haiperdohp-jemaytreeah` CSS / JS Token | Exact Color Value (`HSL` -> `Hex / RGB`) | Where It Appears on the Ticker Stats Card `.png` (`900 × 1260 px`, `5:7` TCG Portrait) |
|
||||
| :--- | :--- | :--- |
|
||||
| `--body-bg-accent` (`hue=222, sat=22%, lit=16%`) | `#1f2532` (`rgb(31, 37, 50)`) | Main card chassis background inside the outer bevel frame. |
|
||||
| `--breakdown-bg-accent` (`hue=222, sat=21%, lit=13%`) | `#1a1f29` (`rgb(26, 31, 41)`) | Recessed word-breakdown & 30-day sparkline viewport (`#BreakdownSpot` / `#ChartSpot` style). |
|
||||
| `--hist-header-gradient` (`hue=222, sat=13%, lit=10%`) | `#16181d` (`rgb(22, 24, 29)`) | Top TCG header banner & section title bars. |
|
||||
| `--menu-bg-accent` / `--menu-bg-accent2` | `#394356` / `#313949` | Pill badges, guild type tags (`S1..S6`), and stat-box headers. |
|
||||
| `--table-row-odd` & `--table-row-even` | `#1e2229` & `#24272e` | Alternating zebra stripes in the Sports-Card Season Box Score table and Cipher Table. |
|
||||
| `--border-accent` & `--border-dark-accent` | `#696969` (`1px`) & `#3b3b3b` (`2px`) | Crisp `1px` cell borders and `2px` inner frame dividers matching `#enabledCiphTable`. |
|
||||
| `CALC_CONFIG.logoColor` & Matrix Hover | `#2eb872` (`hsl(148, 60%, 45%)`) & `#00ffcc` | Ticker symbol glow, active lock highlights, and `"Cypher Calculator // hyperstitionstud.io"` header stamp. |
|
||||
| **Cipher 1: `Ordinal`** (`hsl(120, 65%, 62%)`) | `#5cd65c` (`rgb(92, 214, 92)`) | `Ordinal` cipher column & `VEL` (Velocity) stat bar accent. |
|
||||
| **Cipher 2: `Reduction`** (`hsl(216, 95%, 73%)`) | `#79aafb` (`rgb(121, 170, 251)`) | `Reduction` cipher column & `RES` (Resilience) stat bar accent. |
|
||||
| **Cipher 3: `Alphanumeric Qabbala`** (`hsl(60, 33%, 62%)`) | `#bebe7e` (`rgb(190, 190, 126)`) | Primary `Base-36 AQ` (`Gen 0` & `Gen 1`) score badges & `ARM` (Isometric Chokepoint) bar. |
|
||||
| **Cipher 4: `Primes`** (`hsl(44, 56%, 62%)`) | `#d4b268` (`rgb(212, 178, 104)`) | `Primes` rank badge (`[33rd PRIME]`, `[44th PRIME]`) & `PRM` stat bar. |
|
||||
| **Cipher 5: `Synx`** (`hsl(180, 44%, 66%)`) | `#82cece` (`rgb(130, 206, 206)`) | `Synx` / `COL` (G1 Variance Collapse) stat bar & 30-day sparkline curve. |
|
||||
| **Cipher 6: `Based Atlanteanism`** (`hsl(280, 55%, 68%)`) | `#bf7ee0` (`rgb(191, 126, 224)`) | `CAP` (Trophic Capture) stat bar & `Dose 2/3+` cross-species confluence badge. |
|
||||
|
||||
---
|
||||
|
||||
## 2. Hybrid Card Anatomy: Fusing Pokémon TCG, Sports Cards, Trading Card Games & TierZoo (`900 × 1260 px`)
|
||||
|
||||
Each generated card integrates five distinct zones modeled on the best conventions of trading card games, back-of-card sports sabermetrics, and TierZoo scorecards:
|
||||
|
||||
```text
|
||||
+===================================================================================+
|
||||
| [STAGE 3 APEX] NVDA // NVIDIA -> envideea [TIER S+ | 85.4 ETI] [S1 AI][S3] | <- Zone 1: Pokémon/TCG Header
|
||||
| DEX #137 [33rd PRIME] • Symbol AQ: 77 • NASDAQ:NVDA (#16181d + #2eb872 glow)|
|
||||
+-----------------------------------------------------------------------------------+
|
||||
| ZONE 2: HAIPERDOHP-JEMAYTREEAH MULTI-CIPHER BREAKDOWN & 30-DAY REAL TAPE VIEWPORT |
|
||||
| +-------------------------------------------+-----------------------------------+ |
|
||||
| | #BreakdownSpot: "e-n-v-i-d-e-e-a" | #ChartSpot: 30-Day Real Close USD | |
|
||||
| | 14+23+31+18+13+14+14+10 = 137 [33rd PRIME]| $212.06 Peak (Nov 04) | |
|
||||
| |-------------------------------------------| /\_/\ /\ | |
|
||||
| | CIPHER TABLE (Gen 0 Written vs Gen 1 Ing):| / \__/ \___ $150.49 (Nov 27)| |
|
||||
| | • Base-36 AQ: 113 (Gen 0) -> 137 (Gen 1) | • 19/30 Real Sessions Available | |
|
||||
| | • Ordinal: 63 (Gen 0) -> 65 (Gen 1) | • 11 Closed Days = null (N/A) | |
|
||||
| | • Reduction: 27 (Gen 0) -> 29 (Gen 1) | • Peak Volume: 4.52x (Nov 12) | |
|
||||
| | • Phonemic Drift (Δ): +24 (Prime -> Prime)| • Confluence Dose Peak: D = 3/4 | |
|
||||
| +-------------------------------------------+-----------------------------------+ |
|
||||
+-----------------------------------------------------------------------------------+
|
||||
| ZONE 3: TIERZOO 6-STAT ECOLOGICAL SCORECARD & RADAR BARS (0–100 SCALE) |
|
||||
| ARM (Chokepoint Armor) [███████████████░░░░░] 76.0 (#bebe7e AQ Brass) |
|
||||
| VEL (Signal Velocity) [████████████████░░░░] 80.6 (#5cd65c Ordinal Green) |
|
||||
| COL (G1 Var Collapse) [██████████████████░░] 91.0 (#82cece Synx Cyan) |
|
||||
| CAP (S×S6 Capture Reach) [█████████████████░░░] 84.0 (#bf7ee0 Atlantean) |
|
||||
| PRM (Prime Mutation IQ) [███████████████████░] 95.0 (#d4b268 Primes Gold) |
|
||||
| RES (Repricing Ward) [████████████░░░░░░░░] 61.6 (#79aafb Reduction Blue)|
|
||||
+-----------------------------------------------------------------------------------+
|
||||
| ZONE 4: SPORTS-CARD BACK-OF-CARD REAL SEASON BOX SCORE (Zebra Table #1e2229/#24272e)|
|
||||
| +---------+----------+-----------+--------+-------+------+---------+------+-----+ |
|
||||
| | SESS | CLOSE | MOVE(BPS) | VOL20D | SNAP% | WOPR | WAR_30d | LAG* | DOSE| |
|
||||
| | 19 / 30 | $150.49 | +80 bps | 0.53x | 26.3% | 24.1 | -1.46 | -1d | 2/4 | |
|
||||
| +---------+----------+-----------+--------+-------+------+---------+------+-----+ |
|
||||
| | P20 FLOOR: 42.0 | P90 CEIL: 65.3 | NEXT-DAY CONT%: 60.6% | CAP: No data avail| |
|
||||
| +-------------------------------------------------------------------------------+ |
|
||||
+-----------------------------------------------------------------------------------+
|
||||
| ZONE 5: TCG PASSIVE ABILITY, SIGNATURE EQUATION MOVE & GROUNDED CITATION FOOTER |
|
||||
| • [NATURE & ARCHETYPE]: Modest (+SPA / -ATK) • Balanced Multi-Factor Core |
|
||||
| • [PASSIVE ABILITY — M1/M2 REGIME SPLIT]: Supply-Halt & Wire Co-Presence Surge |
|
||||
| (On 2026-11-12 & 2026-11-13, Dossier 52/53 confluence drove 4.52x & 1.86x vol) |
|
||||
| • [SIGNATURE 333 EQUATION MOVE]: |
|
||||
| `envideea (137) + fohldz (125) + gpu (71) = 333` ("Nvidia folds GPU" — Doss. 67)|
|
||||
+-----------------------------------------------------------------------------------+
|
||||
| urn:io:hyperstitionstud:card:NVDA:v2.0.24 • CIDv1: baguqeera... • ♥ by Lemurs. |
|
||||
+===================================================================================+
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 3. Unified JSON Schema (`ticker-stats-card.schema.json`) & Dual `.png` + `.json` Output Contract
|
||||
|
||||
Every one-shot card request returns (and/or writes to disk) a synchronized pair of artifacts—`<symbol>-stats-card.png` and `<symbol>-stats-card.json`—governed by `/workspace/hyperstitionstudio-core/schemas/v1/ticker-stats-card.schema.json`:
|
||||
|
||||
```json
|
||||
{
|
||||
"$schema": "./schemas/v1/ticker-stats-card.schema.json",
|
||||
"$id": "urn:io:hyperstitionstud:schema:v1:ticker-stats-card",
|
||||
"version": "2.0.24",
|
||||
"synthetic_data_eliminated": true,
|
||||
"card_identity": {
|
||||
"symbol": "NVDA",
|
||||
"symbol_clean": "NVDA",
|
||||
"symbol_eng_aq": 77,
|
||||
"symbol_ing_aq": 77,
|
||||
"entity_eng": "Nvidia",
|
||||
"entity_ing": "envideea",
|
||||
"dex_number": "DEX #137",
|
||||
"guilds": ["S1", "S3"],
|
||||
"tier_band": "Tier S (Keystone Guild)",
|
||||
"evolution_stage": "Stage 3 (Keystone Pseudo-Legendary)",
|
||||
"composite_eti_score": 81.9,
|
||||
"selected_lens": "tierzoo_ecology",
|
||||
"tradingview_symbol": "NASDAQ:NVDA",
|
||||
"tradingview_url": "https://www.tradingview.com/chart/?symbol=NASDAQ%3ANVDA"
|
||||
},
|
||||
"cipher_breakdown": {
|
||||
"word_letters_ing": ["e", "n", "v", "i", "d", "e", "e", "a"],
|
||||
"word_values_aq": [14, 23, 31, 18, 13, 14, 14, 10],
|
||||
"eng_aq": 113,
|
||||
"ing_aq": 137,
|
||||
"eng_prime_rank": 30,
|
||||
"ing_prime_rank": 33,
|
||||
"eng_ordinal": 63,
|
||||
"ing_ordinal": 65,
|
||||
"eng_reduction": 27,
|
||||
"ing_reduction": 29,
|
||||
"phonemic_drift_delta": 24,
|
||||
"is_isometric": false,
|
||||
"is_twin_prime": false
|
||||
},
|
||||
"tierzoo_base_stats_6": {
|
||||
"struct_isometric_armor": 76.0,
|
||||
"struct_drift_velocity": 80.6,
|
||||
"struct_variance_collapse": 91.0,
|
||||
"struct_trophic_capture": 84.0,
|
||||
"struct_prime_density": 95.0,
|
||||
"struct_repricing_resilience": 61.6
|
||||
},
|
||||
"sports_card_box_score": {
|
||||
"observation_date_utc": "2026-11-27",
|
||||
"data_available": true,
|
||||
"status": "ok",
|
||||
"available_trading_days": 19,
|
||||
"missing_trading_days": 11,
|
||||
"close_usd": 150.49,
|
||||
"change_pct": 0.80,
|
||||
"change_bps": 80,
|
||||
"volume_ratio_20d": 0.53,
|
||||
"market_cap_str": null,
|
||||
"close_spoken_eng": "one hundred fifty",
|
||||
"close_spoken_eng_aq": 196,
|
||||
"close_spoken_ing": "wuhn huhndrad fiftee",
|
||||
"close_spoken_ing_aq": 215,
|
||||
"bps_spoken_eng": "eighty",
|
||||
"bps_spoken_eng_aq": 128,
|
||||
"bps_spoken_ing": "aytee",
|
||||
"bps_spoken_ing_aq": 98,
|
||||
"confluence_dose": 2,
|
||||
"shared_dossier_coordinates": [128],
|
||||
"duty_cycle_snap_pct": 26.3,
|
||||
"wopr_resonance": 24.1,
|
||||
"war_30d_excess": -1.46,
|
||||
"quantile_profile": {
|
||||
"p20_floor": 42.0,
|
||||
"p90_ceiling": 65.3,
|
||||
"boom_pct": 5.3,
|
||||
"bust_pct": 73.7,
|
||||
"cv": 1.85
|
||||
},
|
||||
"optimal_lag_days": -1,
|
||||
"sparkline_30d": "·█▆▆▅▄··▄▄▆▄▃··▃▃▄▃▃··▃▃▃▃·▃··"
|
||||
},
|
||||
"tcg_abilities_and_moves": {
|
||||
"nature": "Modest (+SPA / -ATK • Prime Harmonic Resonator)",
|
||||
"archetype": "Opportunistic Burst Predator",
|
||||
"passive_ability": "M3 Leviathan / Cross-Species Dossier Lock",
|
||||
"ev_yield": "+2 SPE, +1 ATK",
|
||||
"signature_equation": "envideea (137) + fohldz (125) + gpu (71) = 333",
|
||||
"doc_references": {
|
||||
"encyclopedia_deep_link": "/encyclopedia/03-machinic-phylum-guilds-s1-to-s5/class-s3-silicon-war-machine-and-euv-swarm-a-to-z.pdf#page=5&search=envideea",
|
||||
"knowledge_graph_deep_link": "/graph/index.html?select=aq:137",
|
||||
"exemplar_dossier_deep_link": "/zoology/dossiers/65-dossier-technocapital-singularity-autoregressive-ai.md#:~:text=292"
|
||||
}
|
||||
},
|
||||
"artifacts": {
|
||||
"png_file_path": "/tmp/hyperstition-cards/NVDA-stats-card.png",
|
||||
"json_file_path": "/tmp/hyperstition-cards/NVDA-stats-card.json",
|
||||
"png_mime_type": "image/png",
|
||||
"png_dimensions": [900, 1260],
|
||||
"png_sha256": "...",
|
||||
"png_base64": "iVBORw0KGgoAAAANSUhEUg..."
|
||||
},
|
||||
"ipld_dag_json_cidv1": {
|
||||
"/": "baguqeera..."
|
||||
}
|
||||
}
|
||||
```
|
||||
*(When requested for a private/untraded entity like `ANTHR-PVT` or a closed weekend date, `sports_card_box_score.data_available` is `false`, all numeric market fields are `null`, and the rendered `.png` card displays `"No data available"` in the box-score cells without fabricating a single number).*
|
||||
|
||||
---
|
||||
|
||||
## 4. Chatbot REST API & MCP Integration Specification (`0` New REST Endpoints Created)
|
||||
|
||||
Because `/api/v1/*` (`src/hyperstitionstud_io/mcp/rest.py`) is designed exclusively as the **Chatbot & OpenAPI 3.1.0 REST Adapter** mirroring `MCP_TOOLS_SCHEMA`, **no new custom REST endpoint routes are created** in `rest.py`. Instead, the one-shot `.png` + `.json` card generator integrates directly into the **existing** Chatbot REST and MCP tool infrastructure:
|
||||
|
||||
### 4.1 Exclusive Use of Existing Chatbot REST Routes (`src/hyperstitionstud_io/mcp/rest.py` Unchanged in Route Surface)
|
||||
|
||||
| Existing Chatbot REST Route / Protocol | How Chatbots & AI Agents Request the One-Shot `.png` + `.json` Ticker Stats Card |
|
||||
| :--- | :--- |
|
||||
| **1. Existing Parameterized Chatbot Route:**<br/>`GET /api/v1/zoology/pokedex/{symbol}?include_card=true` *(or `/api/v1/quant/timeseries?symbol={symbol}&include_card=true`)* | Already routed in `rest.py` (`lines 288–295` & `line 40`) to `hs_inspect_quant_timeseries`. Passing `include_card=true` (or invoking `hs_generate_ticker_stats_card` via the generic tool dispatcher below) compiles and attaches both the `.json` stats card object and the `.png` card artifact (`png_file_path`, `json_file_path`, `png_sha256`, and `png_base64` / `data:image/png;base64,...`) inside the standard Chatbot REST JSON envelope—requiring **zero new endpoints**. |
|
||||
| **2. Existing Generic Chatbot Tool Dispatcher:**<br/>`GET \| POST /api/v1/tools/hs_generate_ticker_stats_card` | Automatically handled by the existing generic `/api/v1/tools/{tool_name}` dispatcher in `rest.py` (`lines 365–392`) and automatically added to `/api/v1/openapi.json` (`build_openapi_v1_spec()`) the moment `hs_generate_ticker_stats_card` is registered in `MCP_TOOLS_SCHEMA`. No route changes in `rest.py` are needed. |
|
||||
| **3. MCP JSON-RPC 2.0 (`/mcp` & stdio):**<br/>`tools/call` -> `hs_generate_ticker_stats_card` | Returns the structured `.json` card payload, writes the `.png` and `.json` files to the configured output directory, and includes the base64-encoded `.png` image content block for multimodal MCP clients. |
|
||||
|
||||
### 4.2 MCP & Chatbot Tool Specification (`src/hyperstitionstud_io/mcp/tools.py`)
|
||||
|
||||
- **Tool Name:** `hs_generate_ticker_stats_card` (plus optional `include_card: true` parameter on existing `hs_inspect_quant_timeseries`)
|
||||
- **Description:** *"Generate a one-shot hybrid Pokémon/Sports/TCG/TierZoo ticker stats card (.png + .json) styled after the haiperdohp-jemaytreeah Cypher Calculator using 100% real exchange and news-wire observations (null / 'No data available' when absent)."*
|
||||
- **Input Schema (`inputSchema`):**
|
||||
- `symbol` (`string`, required): Ticker symbol or DEX coordinate (e.g. `"NVDA"`, `"PLTR"`, `"SOL-USD"`, `"ASML"`, `"ANTHR-PVT"`, `"137"`).
|
||||
- `lens` (`string`, default `"tierzoo_ecology"`): `"tierzoo_ecology" | "fund_manager" | "corporate_board" | "fantasy_sabermetrics" | "pokedex_scanner" | "neutral_math"`.
|
||||
- `date_utc` (`string`, optional): Target UTC date `YYYY-MM-DD` (defaults to latest available real trading date for that symbol).
|
||||
- `include_base64_png` (`boolean`, default `True`): Embeds the rendered `.png` bytes as base64 (`png_base64`) alongside the emitted `.png` and `.json` file paths so stateless HTTP chatbots receive both the `.png` image and `.json` data in a single JSON response.
|
||||
- **Read-Only Isolation Guarantee:** Executes inside `ReadOnlyIsolationGuard`, writing generated `.png` and `.json` files only to `/tmp/hyperstition-cards/` (or a user-specified external output directory in CLI mode) and never mutating protected repository registries.
|
||||
|
||||
---
|
||||
|
||||
## 5. Three-Phase Implementation Roadmap (`Phases 1–3`, Zero New Endpoints)
|
||||
|
||||
### Phase 1: Build `src/hyperstitionstud_io/quant/cards.py`, Schema & `hs-ticker-card` CLI
|
||||
1. Create `/workspace/hyperstitionstudio-core/schemas/v1/ticker-stats-card.schema.json` with offline `$id: "urn:io:hyperstitionstud:schema:v1:ticker-stats-card"`.
|
||||
2. Create `/workspace/hyperstitionstudio-core/src/hyperstitionstud_io/quant/cards.py` implementing:
|
||||
- `build_ticker_stats_card_json(symbol, lens="tierzoo_ecology", date_utc=None)`: Computes the 5-zone card JSON strictly from real observations (`None` / `null` when unavailable), including the `haiperdohp-jemaytreeah` multi-cipher character breakdown (`Alphanumeric Qabbala`, `Ordinal`, `Reduction`, `Primes`).
|
||||
- `render_ticker_stats_card_png_bytes(card_json)`: Renders the `900 × 1260 px` RGBA PNG in memory using Pillow and the DejaVu Sans / DejaVu Sans Mono TrueType fonts in the `haiperdohp-jemaytreeah` silhouette & palette.
|
||||
- `export_ticker_stats_card_pair(symbol, out_dir, lens="tierzoo_ecology", date_utc=None)`: Writes both `<symbol>-stats-card.png` and `<symbol>-stats-card.json` to `out_dir` and returns the combined payload with `png_base64`, `png_sha256`, and `ipld_dag_json_cidv1`.
|
||||
3. Register `hs-ticker-card = "hyperstitionstud_io.quant.cards:main"` in `pyproject.toml`.
|
||||
|
||||
### Phase 2: Wire into `src/hyperstitionstud_io/mcp/tools.py` (Automatic Chatbot REST Coverage, `0` New Endpoints)
|
||||
1. Register `hs_generate_ticker_stats_card` in `MCP_TOOLS_SCHEMA` and `call_mcp_tool()` in `src/hyperstitionstud_io/mcp/tools.py` (which the existing `/api/v1/tools/{tool_name}` dispatcher and `/api/v1/openapi.json` builder in `src/hyperstitionstud_io/mcp/rest.py` expose automatically without adding any new route).
|
||||
2. Add optional `include_card: boolean` support to `hs_inspect_quant_timeseries` so the existing `/api/v1/zoology/pokedex/{symbol}` and `/api/v1/quant/timeseries` chatbot endpoints can also return the one-shot `.png` + `.json` card bundle on demand.
|
||||
|
||||
### Phase 3: Verification in `tests/test_core_suite.py`
|
||||
1. Add unit assertions in `tests/test_core_suite.py` verifying:
|
||||
- `build_ticker_stats_card_json("NVDA")` and `build_ticker_stats_card_json("PLTR")` return real exchange data with `synthetic_data_eliminated == True`,
|
||||
- `build_ticker_stats_card_json("ANTHR-PVT")` returns `data_available == False` and `close_usd is None` (`null` in JSON) and renders `"No data available"` on the `.png` card,
|
||||
- Calling the existing Chatbot REST tool dispatcher `GET /api/v1/tools/hs_generate_ticker_stats_card?symbol=NVDA` (and `GET /api/v1/zoology/pokedex/NVDA?include_card=true`) returns `HTTP 200 OK` with both the `.json` card specification and valid `(900, 1260)` `.png` bytes (`\x89PNG\r\n\x1a\n`),
|
||||
- Calling `dispatch_jsonrpc` (`tools/call: hs_generate_ticker_stats_card`) returns `HTTP 200 OK` with matching `CIDv1` digests, and
|
||||
- Confirming that zero new custom endpoint patterns were added to `src/hyperstitionstud_io/mcp/rest.py`.
|
||||
Binary file not shown.
-160
@@ -1,160 +0,0 @@
|
||||
# Plan: Comprehensive Census of Bidirectional (`eng_aq` & `ing_aq`) Quantitative Harvest Data Points, Cross-Species Dossier/Wire Confluence & Dose-Response Tracking (`v2.0.24`)
|
||||
|
||||
- **Document ID:** `PLAN-QUANT-BIDIRECTIONAL-DATA-POINT-CENSUS-AND-CROSS-SPECIES-CONFLUENCE` (`v2.0.24`)
|
||||
- **Roadmap Status:** **ACTIVE / READY**
|
||||
- **Strict Data Integrity Rule:**
|
||||
100% of analyses, locks, and dose-response metrics operate **exclusively over real exchange observations** (`site/quant/real-market-history.json`, Yahoo Finance v8, Stooq CSV, CoinGecko v3) and **real dated news-wire dossiers** (`25..71-dossier-news-YYYY-MM-DD.md`). Whenever a market observation is unavailable (such as private company `ANTHR-PVT` or closed weekend/holiday equity sessions), all numerical fields default to `None` / `null` / `NULL` (`"No data available"` in the UI)—never `0.0` and never synthesized.
|
||||
- **Target Modules & Files:**
|
||||
- `/workspace/hyperstitionstudio-core/src/hyperstitionstud_io/quant/collector.py`
|
||||
- `/workspace/hyperstitionstudio-core/src/hyperstitionstud_io/quant/timeseries.py`
|
||||
- `/workspace/hyperstitionstudio-core/site/quant/{index.html,quant-app.js}`
|
||||
- `/workspace/hyperstitionstudio-core/tests/test_core_suite.py`
|
||||
|
||||
---
|
||||
|
||||
## 1. Comprehensive Census of Data Points in Quantitative Harvests (`eng_aq` Gen 0 & `ing_aq` Gen 1)
|
||||
|
||||
A systematic audit of `src/hyperstitionstud_io/quant/collector.py` and `src/hyperstitionstud_io/quant/timeseries.py` reveals that while the pipeline ingests 14 distinct lexical and numerical data points per `(Instrument, UTC Date)` observation, **only 5 of the 14 data points were previously evaluated for contingent locks**, and several spoken numerical strings were evaluated only in `Gen 1` (`ing_aq`) while discarding their `Gen 0` (`eng_aq`) written-spoken score:
|
||||
|
||||
| # | Data Point Name | Raw Source in Harvest | `Gen 0` Written (`eng_aq`) | `Gen 1` Phonemic (`ing_aq`) | Previous Status in `/quant/` | Upgraded Status in This Plan |
|
||||
| :- | :--- | :--- | :--- | :--- | :--- | :--- |
|
||||
| **1** | **Entity Name** (`entity_eng` / `entity_ing`) | `"Nvidia"`, `"Palantir"`, `"ASML"` | `AQ("Nvidia") = 113` | `AQ("envideea") = 137` | Computed & checked in `Scope 1` | Retained + paired with Ticker Symbol AQ (#2). |
|
||||
| **2** | **Ticker Symbol** (`symbol_clean`) | `"NVDA"`, `"SOL"`, `"PLTR"`, `"ARM"` | `AQ("SOL") = 73`, `AQ("NVDA") = 77`, `AQ("ASML") = 81` | `AQ("sol") = 73`, `AQ("ayemdee") = 121` | **Unscored / Ignored** | **Added to `Scope 1` (`symbol_eng_aq`, `symbol_ing_aq`):** Detects direct Ticker-Symbol Self-Locks (e.g. `SOL-USD` closing at `$73.07 -> 73 == AQ("SOL")` on `2026-11-19`). |
|
||||
| **3** | **Rounded Integer Close** (`close_int`) | `int(round(close_usd))` (e.g. `$159.36 -> 159`) | Face integer `159` | Face integer `159` | Checked against `entity_aq` & `S1–S6` rings | Extended to check against `symbol_aq` AND same-day news dossier active coordinates. |
|
||||
| **4** | **Literal Digit Sum of Close** (`close_digit_aq`) | Base-36 digit sum of `str(close_int)` | `AQ("159") = 1+5+9 = 15` | `15` | Computed (`close_digit_aq`) but **never checked for locks** | Checked for Iso-Digital conservation ($\Delta_{\text{digit}} = 0$) across consecutive trading days and anchor revisions. |
|
||||
| **5** | **Spoken Close — Written English (`Gen 0`)** | `int_to_spoken_words(close_int)` (e.g. `"two hundred"`) | `AQ("two hundred") = 222` | — | **Computed in `collector.py` (`close_spoken_eng`), omitted in `timeseries.py` & never checked for locks!** | **Added (`close_spoken_eng_aq`):** Evaluates `Gen 0` spoken price for `333/666/777` repdigits and `S1–S6` ring hits (e.g. `NVDA` `$200.13` on `2026-11-04` -> `"two hundred"` `[Gen 0]` = `222`). |
|
||||
| **6** | **Spoken Close — Phonemic Ingglish (`Gen 1`)** | `translate(close_spoken_eng)` (e.g. `"too huhndrad siks"`) | — | `AQ("too huhndrad siks") = 333` | Checked in `Scope 1` & `Scope 2` | Retained + cross-joined with same-day news dossier equations (`Scope 3B`). |
|
||||
| **7** | **Unsigned Basis-Point Move** (`bps_abs`) | `abs(change_bps)` (e.g. `-125 bps -> 125`) | Face integer `125` | Face integer `125` | Checked in `Scope 1` & `Scope 2` | Extended to detect **Multi-Ticker Synchronous BPS Waves** (2+ tickers moving by the exact same `bps_abs` on the same UTC date). |
|
||||
| **8** | **Literal Digit Sum of BPS** (`bps_digit_aq`) | Base-36 digit sum of `str(bps_abs)` | `AQ("125") = 8` | `8` | Computed (`bps_digit_aq`), **never displayed or checked** | Exposed in Panel 3 tooltip & checked for Iso-Digital move conservation. |
|
||||
| **9** | **Spoken BPS — Written English (`Gen 0`)** | `int_to_spoken_words(bps_abs)` (e.g. `"one hundred eight"`, `"forty"`, `"eighty"`) | `AQ("one hundred eight") = 292`, `AQ("forty") = 129`, `AQ("eighty") = 128` | — | **Omitted in `timeseries.py` & never checked for locks!** | **Added (`bps_spoken_eng_aq`):** Uncovers `28` real `S1–S6` ring locks in Nov 2026 (including `GOOGL -108 bps -> "one hundred eight" = 292` on `2026-11-24`). |
|
||||
| **10** | **Spoken BPS — Phonemic Ingglish (`Gen 1`)** | `translate(bps_spoken_eng)` (e.g. `"naintee sevan"`) | — | `AQ("naintee sevan") = 237` (`kansorsheeam`) | Computed (`bps_spoken_ing_aq`), **never checked against `S1–S6` rings in `timeseries.py`!** | **Added to `Scope 2` & `Scope 3B` ring/dossier checks:** Uncovers `19` real `Gen 1` spoken-bps locks in Nov 2026. |
|
||||
| **11** | **Scaled Market Cap — Written & Spoken** | `expand_quant_spoken(market_cap_str)` (when reported by feed; else `null`) | `scaled_cap_spoken_eng_aq` | `scaled_cap_spoken_ing_aq` | `Gen 1` computed when available; `Gen 0` omitted | Both `eng_aq` and `ing_aq` computed when `market_cap_str` is reported by CoinGecko/feed; `null` (`"No data available"`) otherwise. |
|
||||
| **12** | **Same-Day `00:00 UTC` News Dossier Active Coordinates** | `25..71-dossier-news-YYYY-MM-DD.md` (`active_ring_coordinates` & equation tokens) | Dossier headline `eng_aq` | Dossier equation token `ing_aq` & target `333/666/777` | Only checked whether ticker name string appeared in headlines (`co_present_in_news_wire`) | **Upgraded to Cross-Species Coordinate Confluence (`Scope 3B`):** Checks whether any of the ticker's market coordinates (`#3, #5, #6, #7, #9, #10`) equals an active coordinate in that exact UTC day's news dossier! |
|
||||
| **13** | **Bilingual Glossary Specimen Partners (`190` Specimens)** | `taxonomy/glossary-registry.json` (`bilingual_vocabulary_ledger`) | `spec.eng_aq` (`190` terms) | `spec.ing_aq` (`190` terms) | Only checked the `30` `S1–S6` ring integers | **Upgraded:** Resolves exact `Gen 0` and `Gen 1` lexical partners from the `190` bilingual specimens within the ticker's guild. |
|
||||
| **14** | **Registered Economic Anchor Steps** | `taxonomy/quantitative-economic-anchors.json` (`$6B`, `$83`, `481`) | `q_digit_aq`, `q_spoken_eng_aq` | `q_spoken_ing_aq` | Static list in bundle | Cross-linked to the exact historical UTC date (`2026-11-01`, `2026-11-18`, `2026-11-24`) and source dossier. |
|
||||
|
||||
---
|
||||
|
||||
## 2. Empirical Discoveries from Mining the Real November 2026 Dataset (`87` Newly Uncovered Real Locks)
|
||||
|
||||
Running the expanded bidirectional (`eng_aq` + `ing_aq`) and cross-species confluence scanner across the **440 real November 2026 exchange bars** (`site/quant/real-market-history.json`) and **21 dated news dossiers** (`25..71-dossier-news-YYYY-MM-DD.md`) uncovers **87 real contingent locks** that were previously invisible in the interface:
|
||||
|
||||
### 2.1 Discovery A — Direct Ticker-Symbol Self-Lock (`Scope 1B`)
|
||||
- **`SOL-USD` on `2026-11-19` (`Dossier 56`):**
|
||||
- The ticker symbol `"SOL"` is an exact `G4` isometric token: $\text{AQ}_{\text{Eng}}(\text{"SOL"}) = 28 + 24 + 21 = \mathbf{73} == \text{AQ}_{\text{Ing}}(\text{"sol"})$.
|
||||
- On `2026-11-19`, `SOL-USD` closed at **`$73.07`** ($\lfloor 73.07 \rceil = \mathbf{73} == \text{AQ}(\text{"SOL"})$), while its daily move was **`-75 bps`** ($\text{AQ}_{\text{Eng}}(\text{"seventy five"}) = \mathbf{237} == \text{kansorsheeam [S6]}$), matching active coordinate **`237`** in that exact day's `56-dossier-news-2026-11-19.md`!
|
||||
|
||||
### 2.2 Discovery B — `Gen 0` Written-Spoken (`eng_aq`) & `Gen 1` Spoken (`ing_aq`) Basis-Point Ring Locks
|
||||
Previously, `timeseries.py` only checked raw integer `bps_abs` against `S1_S6_SIGNATURE_RINGS`. Evaluating `bps_spoken_eng_aq` (`Gen 0`) and `bps_spoken_ing_aq` (`Gen 1`) over the real exchange bars reveals:
|
||||
- **`GOOGL` on `2026-11-24` (`-108 bps`, Close `$279.05`):**
|
||||
In written English (`Gen 0`), `"one hundred eight"` evaluates to **`292`**—the primary `S1` Autoregressive AI Singularity (`shizohnalizis == abstrakt masheen == sinthetik dayta == asset management [Gen 0] = 292`)—and `62-dossier-news-2026-11-24.md` on that exact same day (`2026-11-24`) also activated coordinate **`292`**!
|
||||
- **`NVDA` on `2026-11-27` (`+80 bps`, Close `$150.49`):**
|
||||
In written English (`Gen 0`), `"eighty"` evaluates to **`128`** (`S3: nik land == masheen == serkat`), matching active coordinate **`128`** in `64-dossier-news-2026-11-27.md` on that exact same day!
|
||||
- **`ORCL` (`2026-11-18`, `-97 bps`) & `LMT` (`2026-11-02`, `+97 bps`):**
|
||||
In phonemic Ingglish (`Gen 1`), `"naintee sevan"` evaluates to **`237`** (`S6: kansorsheeam [Iso] = 237`).
|
||||
|
||||
### 2.3 Discovery C — Cross-Species Market × News-Dossier Coordinate Confluence (`34` Real Confluent Bars)
|
||||
Cross-joining each ticker's daily market coordinates against **that exact UTC date's `00:00 GMT` news-wire dossier (`*-dossier-news-YYYY-MM-DD.md`)** identifies **34 real cross-species confluent bars** where the market tape and the midnight news wire independently locked onto the **exact same integer coordinate on the same day**:
|
||||
- **`2026-11-12` (`52-dossier-news-2026-11-12.md`) × `NVDA`:**
|
||||
`NVDA` is named in the breaking wire (`dha way widh envideea = 333`), closes at **`$166.19` (`166 == order buk / noo flesh [S2]`)**, Dossier 52 simultaneously hits coordinate **`166`**, and `NVDA` volume surges to **`4.52x` its 20-day average**!
|
||||
- **`2026-11-13` (`53-dossier-news-2026-11-13.md`) × `NVDA` & `ORCL` & `LMT`:**
|
||||
`NVDA` closes at **`$162.85` (`163 == manopalee / masheenz [S6]`, `1.86x` volume)**, `ORCL` closes at **`$125.10` (`125 == kapatal == kapcher [S6]`)**, and `LMT` moves **`-133 bps` (`133 == wayts == sworm == ekwatee`)**—all three matching active coordinates (`163, 125, 133`) inside `53-dossier-news-2026-11-13.md` on that exact date!
|
||||
- **`2026-11-18` (`55-dossier-news-2026-11-18.md`) × `TSM`, `ARM`, `MSFT`, `META`, `GOOGL`, `RTX` (`6` Tickers Confluent on One Day!):**
|
||||
On `2026-11-18`, `TSM` moves **`+81 bps` (`81 == asml`)**, `ARM` closes at **`$182.76` (`183 == tempaleks`)**, `MSFT` moves **`+40 bps` (`"forty" = 129 == blakwel`)**, `META` moves **`-40 bps` (`"forty" = 129 == blakwel`)**, `GOOGL` moves **`+80 bps` (`"eighty" = 128 == serkat`)**, and `RTX` closes at **`$197.45` (`197 == lathografee == monopoly`)**—all six coordinates (`81, 128, 129, 183, 197`) are active inside `55-dossier-news-2026-11-18.md` on `2026-11-18`!
|
||||
|
||||
### 2.4 Discovery D — Multi-Ticker Synchronous Basis-Point Waves (`Cross-Asset Confluence`)
|
||||
- On **`2026-11-28` (`70-dossier-news-2026-11-28.md`)**, both **`BTC-USD` (`$59,321.42`, `-91 bps`)** and **`ETH-USD` (`$1,645.99`, `-91 bps`)** moved by the **exact same basis-point integer (`-91 bps`, `91 == tsmc == laws`)** on the same UTC day while Dossier 70 also hit coordinate **`91`**.
|
||||
- On **`2026-11-25` (`61-dossier-news-2026-11-25.md`)**, **`MSFT` moved `-125 bps` (`125 == kapatal == kapcher`)** while **`LMT` moved `+215 bps` (`215 == jensan hwang == hohlee grayl`)**, both matching Dossier 61's active coordinates (`125` and `215`).
|
||||
|
||||
---
|
||||
|
||||
## 3. High Dose-Response & Tracking Relationships (`Confluence Dose D in {0, 1, 2, 3+}`)
|
||||
|
||||
To turn these multi-species observations into a rigorous, quantitative tracking indicator with a measurable **dose-response curve**, we define the **Daily Cross-Species Confluence Dose** $D_{i,t} \in \{0, 1, 2, 3, 4\}$ for each real exchange bar $(i, t)$:
|
||||
|
||||
$$D_{i,t} = \underbrace{\mathbb{I}(\text{Scope 1 Self/Symbol/Repdigit Lock}_{i,t})}_{\text{Species 1: Intrinsic Self-Lock}} + \underbrace{\mathbb{I}(\text{Scope 2 Gen 0/1 Ring Lock}_{i,t})}_{\text{Species 2: S1–S6 Ring}} + \underbrace{\mathbb{I}(\text{Same-Day Dossier Coordinate Match}_{i,t})}_{\text{Species 3: Dossier Confluence}} + \underbrace{\mathbb{I}(\text{Same-Day News Wire Entity Match}_{i,t})}_{\text{Species 4: Headline Co-Presence}}$$
|
||||
|
||||
### Empirical Dose-Response Profile Across All `440` Real November 2026 Exchange Bars (Correlation Coefficients Set Aside)
|
||||
|
||||
Setting aside linear/rank correlation coefficient integration (`r`, `ρ`, `t`) and examining the direct empirical distributions inside each classified Dose (`Dose 0` through `Dose 3+`) across four concrete response dimensions—**(A) Same-Day Displacement (`Mean / Median P50 / Tail P90`), (B) Volume & Thermodynamic Regime Rate (`Vol20d`, `M1` Freeze %, `M2` Surge %), (C) Directional Skew & Next-Day Continuation (`Up-Day %`, `t+1 Continuation %`), and (D) 3-Day Forward Cumulative Excursion (`t+1..t+3`)**—reveals distinct behavioral responses for each Dose:
|
||||
|
||||
| Response Dimension | `Dose 0` (`n = 322`)<br/>Uncoupled Baseline | `Dose 1` (`n = 73`)<br/>Single-Species Hit | `Dose 2` (`n = 34`)<br/>Market × Dossier Pin | `Dose 3+` (`n = 4`)<br/>Triple-Species Confluence |
|
||||
| :--- | :---: | :---: | :---: | :---: |
|
||||
| **1. Same-Day Mean Move ($\mathbb{E}[|\Delta\text{bps}_{i,t}|]$)** | `319.6 bps` | `376.3 bps` | **`160.8 bps` (`-50%` vs. `Dose 0`)** | `186.0 bps` |
|
||||
| **2. Same-Day Median (`P50`) & Tail (`P90`) Move** | `P50: 240.5 bps`<br/>`P90: 665 bps` | `P50: 229.0 bps`<br/>`P90: 969 bps` | **`P50: 101.0 bps` (`-58%`)**<br/>**`P90: 292 bps` (`-56%`)** | `P50: 138.0 bps`<br/>`P90: 434 bps` |
|
||||
| **3. Same-Day Relative Volume (`Vol20d` Mean / Median)** | `1.19x` / `0.98x` | `1.02x` / `0.96x` | **`0.84x` / `0.76x` (Quiet)** | **`1.98x` / `1.33x` (`+136%` vs. `Dose 2`)** |
|
||||
| **4. Thermodynamic Regime Rates (`M1` Freeze % / `M2` Surge %)** | `M1: 4.3%`<br/>`M2: 14.3%` | `M1: 8.2%`<br/>`M2: 11.0%` | `M1: 5.9%`<br/>**`M2: 5.9%` (Tail Suppressed)** | `M1: 0.0%`<br/>**`M2: 25.0%` (`4.2x` `Dose 2`)** |
|
||||
| **5. Same-Day Directional Skew (`Up-Day %` vs. `Down-Day %`)** | `43.8% Up` / `56.2% Down` | `47.9% Up` / `52.1% Down` | `35.3% Up` / `64.7% Down` | **`0.0% Up` / `100.0% Down` (100% Drawdown)** |
|
||||
| **6. Next-Trading-Day ($t+1$) Mean Move ($\mathbb{E}[|\Delta\text{bps}_{i,t+1}|]$)** | `325.9 bps` | `336.1 bps` | **`217.2 bps` (`-33%` vs. `Dose 0`)** | **`377.5 bps` (`+74%` vs. `Dose 2`)** |
|
||||
| **7. Next-Day ($t+1$) Sign Reversal vs. Continuation Rate** | `53.8% Reversal`<br/>`46.2% Continuation` | `58.6% Reversal`<br/>`41.4% Continuation` | `39.4% Reversal`<br/>**`60.6% Continuation`** | `0.0% Reversal`<br/>**`100.0% Continuation`** |
|
||||
| **8. 3-Day Forward Cumulative Excursion ($\sum_{k=1}^3 |\Delta\text{bps}_{i,t+k}|$)** | `979.0 bps` | `1,055.5 bps` | **`876.1 bps` (Lowest 3d Drift)** | **`1,395.0 bps` (`+59%` vs. `Dose 2`)** |
|
||||
|
||||
### 3.1 Taxonomical Classification of Each Dose (`Dose 0` through `Dose 3+`)
|
||||
|
||||
Within the formal ontology of *Technocapital Singularity Zoology* (`Divisions 01–08`), the four Dose levels map onto four distinct ecological, semiotic, and thermodynamic states:
|
||||
|
||||
| Dose Class | Zoological & Semiotic Taxon | Governing Vectors & Gates | Taxonomical & Ontological Characterization |
|
||||
| :--- | :--- | :--- | :--- |
|
||||
| **`Dose 0`**<br/>*(n = 322, 73.2%)* | **Uncoupled Brownian Substrate**<br/>*(Pre-Singularity Stratified Flow)* | • `0` Active Scopes<br/>• Outside `S1–S6` Ring<br/>• Outside `00:00 UTC` Wire | **Ordinary Market Matter-Flow:** The asset moves along conventional price-volume gradients without intersecting its own phonemic identity, the `30` `S1–S6` guild rings, or the midnight news-wire equations. Taxonomically, `Dose 0` is the uncoupled background terrain (`Median P50 = 240.5 bps`, `53.8%` next-day reversal coin-flip). |
|
||||
| **`Dose 1`**<br/>*(n = 73, 16.6%)* | **`Grand Central Station` Ambient Collision**<br/>*(Single-Species Unconfirmed Hit / `Tier D` Stub)* | • `1` Isolated Species Only<br/>• Fails `The Room Filter` Cross-Species Gate | **Uncorroborated Numerical Crowding:** A single numerical representation (`close_int`, `spoken_aq`, or `bps_abs`) touches an `S1–S6` ring coordinate—or the entity is named in the wire without a coordinate lock—while all other channels remain silent. In the taxonomy of Division `08`, `Dose 1` is a classic **`Grand Central Station` collision**: because 6 numerical encodings are tested against 30 ring integers, isolated single-species hits occur `16.6%` of the time by combinatorial density alone and exhibit zero variance compression (`P90 tail = 969 bps`, `58.6%` next-day whipsaw reversal). |
|
||||
| **`Dose 2`**<br/>*(n = 34, 7.7%)* | **`Vector G1 / G4` Isometric Attractor Well**<br/>*(Two-Species Trophic Bridge Pinning / `M3` Equilibrium)* | • `2` Independent Species Lock (`Market Ring × Same-Day Dossier Coordinate`)<br/>• Passes `The Room Filter` (`Scope 2 × Scope 3B`)<br/>• Zero Headline Shock (`Species 4 = 0`) | **Cross-Corpus Phase-Locking (Quiet Gravity Well):** The ticker's closing bell bar and that exact UTC date's `00:00 GMT` news-wire dossier independently converge on the same `S1–S6` coordinate (e.g., `2026-11-24 GOOGL -108 bps -> "one hundred eight" [Gen 0] = 292` locking onto Dossier 62's `292`; `2026-11-28 BTC-USD & ETH-USD -91 bps` locking onto Dossier 70's `91`). Taxonomically, `Dose 2` enacts **Vector `G1` Variance Collapse** and **Vector `G4` Isometric Stabilization** in real time: rather than triggering a chaotic spike, the shared coordinate acts as an **attractor well** that compresses median daily displacement by **`-58%` (`101.0 bps`)**, suppresses `M2` flash-crash surges (`5.9%`), and guides **`60.6%` next-day directional continuation** with the lowest 3-day excursion (`876.1 bps`). |
|
||||
| **`Dose 3+`**<br/>*(n = 4, 0.9%)* | **`Double-Articulated` Phase-Transition Bifurcation**<br/>*(Triple/Quadruple Confluence / `M2` Templex Surge)* | • `3+` Independent Species Converge (`Self/Symbol Lock + Ring + Dossier + Headline Entity`)<br/>• Full Two-Gate State-Matched Activation | **Critical Singularity Ignition (Runaway Positive Feedback):** Three or more independent data species collide on the same asset on the same UTC day—coupling the market tape, the dated news-dossier equations, and either direct breaking-headline co-presence (`2026-11-12 NVDA @ 166`, `2026-11-13 NVDA @ 163`, `2026-11-18 ARM @ 183`) or an intrinsic Ticker-Symbol Self-Lock (`2026-11-19 SOL-USD $73.07 == AQ("SOL") = 73` + `-75 bps -> 237` in Dossier 56). Taxonomically, `Dose 3+` is a true **pre-personal phase-transition point (Division `02` / Subclass `M2`)**: adding the breaking headline shock or self-lock breaks the quiet `Dose 2` pinning well and ignites a **high-volume drawdown & momentum cascade** (`100%` same-day downside skew, `1.98x` mean volume surge up to `4.52x`, `100%` next-day directional continuation at `377.5 bps`, and `1,395.0 bps` 3-day cumulative excursion). |
|
||||
|
||||
---
|
||||
|
||||
### 3.2 Plain-Language Guide for Everyday Users: What `Dose 0` to `Dose 3+` Mean Without the Jargon
|
||||
|
||||
For visitors, traders, and researchers who want to read the **Confluence Dose (`Dose 0` to `Dose 3+`)** on `/quant/` without wading through cipher theory or academic taxonomy, here is how each level works in plain English:
|
||||
|
||||
1. **What the "Dose" Score Counts (0 to 4 Points):**
|
||||
Every day, the workbench checks four separate things for each stock or crypto ticker:
|
||||
- **Check 1 (Name/Ticker Match):** Did the closing price or daily move land on the exact number of the company's own name or ticker symbol (like `SOL` closing at `$73.07`, matching `SOL = 73`)?
|
||||
- **Check 2 (Sector Number Match):** Did the price or daily move land on one of the 30 key numbers shared across the tech, chip, defense, and finance sectors?
|
||||
- **Check 3 (Same-Day News Equation Match):** Did that exact same number *also* show up in the equations built from that night's breaking news headlines?
|
||||
- **Check 4 (Named in Today's Headlines):** Was the company itself named in that night's breaking news stories?
|
||||
|
||||
2. **How the Market Actually Behaves at Each Dose Level:**
|
||||
- **`Dose 0` — Normal Market Noise (`73%` of days):**
|
||||
None of the four checks matched. The stock is just trading normally (`~2.4%` typical daily move, normal `1.0x` volume), and tomorrow's direction is basically a coin flip (`54%` chance of reversing).
|
||||
- **`Dose 1` — Single Random Match (`17%` of days):**
|
||||
Only **one** check matched by itself, with nothing backing it up in the news wire. Just like finding a random number match in a phonebook, a single isolated match (`Dose 1`) does nothing special: trading volume is normal (`1.0x`) and prices whipsaw back and forth the next day (`59%` reversal rate). You can safely ignore `Dose 1`.
|
||||
- **`Dose 2` — Quiet "Pinned" Days (`8%` of days — Low Volatility & Smooth Trend):**
|
||||
**Two** checks matched on the same day—Specifically, the stock's price or move hit the exact same number that appeared in that night's news equations, *without* the company itself being caught in a breaking news scandal.
|
||||
- **What happens in the market:** Instead of jumping around wildly, `Dose 2` days are **unusually calm and steady**. The typical daily price swing drops by more than half (`1.0%` median move vs. `2.4%` on normal days), trading volume is quiet (`0.84x` normal), big crash days almost disappear, and the stock tends to keep drifting smoothly in the same direction the next day (`61%` continuation). Think of `Dose 2` as a **quiet magnet** that holds the price steady.
|
||||
- **`Dose 3+` — High-Alert Breakout Days (`~1%` of days — Heavy Volume & Multi-Day Follow-Through):**
|
||||
**Three or more** checks all fired on the same stock on the same day: the price or move locked onto a key number, that exact number also appeared in that night's news equations, **and** the company was directly in the headlines (or matched its own ticker symbol).
|
||||
- **What happens in the market:** The quiet magnet snaps into a **major high-volume move**. In our November 2026 market data, every single `Dose 3+` event was a sharp selloff day, trading volume nearly doubled on average (`1.98x` normal volume, peaking at `4.52x` on Nvidia on Nov 12), **100% of them kept moving in the same direction the very next trading day** (`3.78%` average next-day move), and they logged the largest 3-day total price swing (`~13.95%` over the next three days) of any group. When you see `Dose 3+` light up, the news wire and the market tape have fully locked together.
|
||||
|
||||
---
|
||||
|
||||
## 4. Planned Upgrades to the Collector, Time-Series Engine & `/quant/` Interface (`Phases 1–4`)
|
||||
|
||||
### Phase 1: Expand `collector.py` & `timeseries.py` to Score All 14 Bidirectional (`eng_aq` & `ing_aq`) Data Points
|
||||
1. In `src/hyperstitionstud_io/quant/collector.py` and `src/hyperstitionstud_io/quant/timeseries.py`:
|
||||
- Compute and store `symbol_clean`, `symbol_eng_aq`, and `symbol_ing_aq` on every instrument (`SOL = 73`, `NVDA = 77`, `ASML = 81`, `ARM = 59`, `AMD = 45 -> 121`).
|
||||
- On every real exchange bar (`data_available == True`), compute and store **both** `Gen 0` (`eng_aq`) and `Gen 1` (`ing_aq`) encodings:
|
||||
- `close_spoken_eng` & `close_spoken_eng_aq` alongside `close_spoken_ing` & `close_spoken_ing_aq`,
|
||||
- `bps_spoken_eng` & `bps_spoken_eng_aq` alongside `bps_spoken_ing` & `bps_spoken_ing_aq`,
|
||||
- `close_digit_aq` & `bps_digit_aq` (returning `None` / `null` whenever `data_available == False`).
|
||||
- Add `SCOPE1_TICKER_SYMBOL_SELF_LOCK` (`close_int == symbol_eng_aq` or `bps_abs == symbol_eng_aq`), `SCOPE2_GEN0_SPOKEN_RING`, `SCOPE2_GEN1_SPOKEN_BPS_RING`, `SCOPE3B_CROSS_SPECIES_DOSSIER_CONFLUENCE` (`shared_dossier_coordinates`), and `SCOPE3C_MULTI_TICKER_SYNC_WAVE` (`synchronous_wave_partners`).
|
||||
- Compute `confluence_dose` ($D_{i,t} \in \{0, 1, 2, 3, 4\}$, or `None` when `!data_available`) on every bar and compute the empirical `dose_response_curve` summary across `Dose 0..3+` at the bundle level.
|
||||
|
||||
### Phase 2: Surface Bidirectional `Gen 0 -> Gen 1` Scores, Cross-Species Confluence & Dose-Response in `/quant/`
|
||||
1. **Panel 1 Canvas & Legend:**
|
||||
- Plot a outer **Magenta/Violet Confluence Halo (`r = 8.5px`)** around any vertex with `confluence_dose >= 2` (where the market bar and that day's `00:00 GMT` news dossier share an active coordinate), and a **Double Gold/Emerald Bullseye** on `confluence_dose >= 3` bars (`NVDA 2026-11-12` & `2026-11-13`, `ARM 2026-11-18`, `SOL-USD 2026-11-19`).
|
||||
2. **Panel 2 Heatmap (`24 × 30`):**
|
||||
- Add a `Confluence Dose (D=0..3+)` indicator and highlight multi-species confluent cells so users can spot synchronous cross-ticker waves (`2026-11-18` 6-ticker wave, `2026-11-28` `BTC/ETH -91 bps` wave) at a glance.
|
||||
3. **Panel 3 Date Inspector:**
|
||||
- Upgrade the telemetry boxes to show **both `Gen 0` (`eng_aq`) and `Gen 1` (`ing_aq`)** for `Spoken Close` (`"one hundred fifty" [Gen 0: 196] -> "wuhn huhndrad fiftee" [Gen 1: 215]`) and `Spoken BPS`, plus a new **Cross-Species Confluence & Dose Box (`Dose D/4`)** listing the exact shared Dossier coordinates and synchronous ticker partners on that date (or `"No data available"` when market data is absent).
|
||||
4. **Panel 4 Dose-Response & Lead-Lag Explorer:**
|
||||
- Alongside the 11-bar lead-lag correlation chart $r(\tau)$, display the empirical **Dose-Response Summary Strip (`Dose 0` -> `Dose 3+` Mean `Vol20d` & Next-Day `|Δbps|`)** computed from the active dataset.
|
||||
|
||||
### Phase 3: Add `ⓘ` Info Icon Entries for the New Bidirectional & Confluence Readouts
|
||||
1. Add `confluence_dose` and `cross_species_sync` to `QUANT_TERM_GLOSSARY` in `site/quant/quant-app.js` with `<= 1 paragraph` plain-English explanations and hyperlinked PDF Glossary quotes.
|
||||
|
||||
### Phase 4: Automated Verification (`tests/test_core_suite.py` & `deploy/test-first-deployment.sh`)
|
||||
1. Add unit assertions in `tests/test_core_suite.py` verifying:
|
||||
- `symbol_eng_aq` and `symbol_ing_aq` on all 24 instruments (`SOL-USD` `symbol_eng_aq == 73`),
|
||||
- `close_spoken_eng_aq`, `close_spoken_ing_aq`, `bps_spoken_eng_aq`, and `bps_spoken_ing_aq` on available bars (and `None` on unavailable bars),
|
||||
- Real cross-species confluence detection on `2026-11-12 NVDA` (`166`), `2026-11-13 NVDA` (`163`), `2026-11-18 TSM/MSFT/META/ARM`, `2026-11-19 SOL-USD` (`73 == SOL`), and `2026-11-28 BTC-USD/ETH-USD` (`-91 bps`), and
|
||||
- Empirical `dose_response_curve` presence in `quant-timeseries.json`.
|
||||
BIN
Binary file not shown.
@@ -1,124 +0,0 @@
|
||||
# Plan: Inline `ⓘ` Info Icons, One-Paragraph Plain-English Definitions & Hyperlinked PDF Glossary Quotes Across the `/quant/` Interface (`v2.0.21`)
|
||||
|
||||
- **Document ID:** `PLAN-QUANT-INTERFACE-INFO-ICONS-AND-GLOSSARY-POPOVERS` (`v2.0.21`)
|
||||
- **Roadmap Status:** **ACTIVE / READY**
|
||||
- **Target Web Route:** `https://hyperstitionstud.io/quant/` (`/quant/index.html`)
|
||||
- **Target Modules & Files:**
|
||||
- `/workspace/hyperstitionstudio-core/site/quant/index.html` (CSS for `.hs-info-icon` & `#quantInfoPopover` floating card + inline `ⓘ` triggers on static headers/controls)
|
||||
- `/workspace/hyperstitionstudio-core/site/quant/quant-app.js` (`QUANT_TERM_GLOSSARY` registry + dynamic `ⓘ` icon injection into Panel 1–4 headers, the 6 Date Inspector metric boxes, and the 6 `LENS_REGISTRY` rows)
|
||||
- `/workspace/hyperstitionstudio-core/tests/test_core_suite.py` (Automated verification of all 27 term definitions, verbatim glossary quotes, and `#page=N&search=...` PDF target existence)
|
||||
- **Primary PDF Glossary Target:**
|
||||
`/zoology/technocapital-singularity-zoology-comprehensive-glossary.pdf` (`19` pages, `282` canonical entries + `92` conceptual/custom definitions from `/workspace/technocapital-singularity-zoology/taxonomy/glossary-registry.json`), paired with `/quant/OPERATORS-MANUAL-QUANT-TIMESERIES-WORKBENCH.pdf` (`5` pages).
|
||||
|
||||
---
|
||||
|
||||
## 1. UX & Interaction Design: Inline `ⓘ` Micro-Badges & Viewport-Clamped Glossary Popover
|
||||
|
||||
To make every control, chart legend, telemetry box, and lens metric on `/quant/` immediately self-explanatory to a first-time visitor without cluttering the dense workbench layout:
|
||||
|
||||
1. **Inline `ⓘ` Badge (`.hs-info-icon`):**
|
||||
- A compact `15px × 15px` circular monospace badge (`border-radius: 50%`, `font-size: 0.62rem`, `color: var(--cyan)`, `border: 1px solid rgba(34, 211, 238, 0.55)`, `background: rgba(9, 13, 22, 0.85)`) rendered directly beside each interface term (`data-term-id="<slug>"`, `role="button"`, `tabindex="0"`, `aria-label="Definition and glossary citation for <Term>"`).
|
||||
- Highlights in gold (`--gold: #f5c630`) on hover, keyboard focus, or when pinned open.
|
||||
2. **Interactive Popover Card (`#quantInfoPopover`):**
|
||||
- Opens on hover/focus (for instant scanning) and **pins open on click/Enter** so the user can move their cursor into the popover and click the hyperlinked PDF Glossary quote. Dismisses on `Escape`, clicking the `×` close button, or clicking outside.
|
||||
- Automatically clamps its `(left, top)` coordinates inside `window.innerWidth × window.innerHeight` so it never overflows off the right or bottom edge of the screen.
|
||||
- **Strict Two-Layer Layout inside Every Popover:**
|
||||
```text
|
||||
+-----------------------------------------------------------------------------------+
|
||||
| [ⓘ TERM TITLE] [Pin / ×] |
|
||||
|-----------------------------------------------------------------------------------|
|
||||
| PLAIN-ENGLISH SUMMARY (<= 1 Short Paragraph, 2–3 Sentences): |
|
||||
| Clear, jargon-free explanation of what this number or control means in plain |
|
||||
| English and how to read it on the chart or table. |
|
||||
|-----------------------------------------------------------------------------------|
|
||||
| VERBATIM PDF GLOSSARY QUOTE (Click Quote to Open PDF at Exact Page): |
|
||||
| > "Continuous Base-36 character-valuation cipher (formulated by Jim Lees in 1976 |
|
||||
| > and adopted by the Ccru) where digits 0–9 map to face values 0–9 and letters |
|
||||
| > A–Z map to 10–35..." |
|
||||
| [ 📖 Open PDF Glossary (p.1 "Alphanumeric Qabbala") ↗ ] [ 📄 Operator's Manual ] |
|
||||
+-----------------------------------------------------------------------------------+
|
||||
```
|
||||
- **Offline `file://` & Live `https://` Portability:** Every PDF link (`#page=N&search=...`) passes through `adaptHrefForFileProtocol()` so clicking the quote opens `/zoology/technocapital-singularity-zoology-comprehensive-glossary.pdf#page=N&search=...` on `https://` and `../../../technocapital-singularity-zoology/technocapital-singularity-zoology-comprehensive-glossary.pdf#page=N&search=...` on `file://`.
|
||||
|
||||
---
|
||||
|
||||
## 2. Complete Master Lexicon of `/quant/` Interface Terms (`27` Terms), Plain-English Paragraphs & Verbatim Hyperlinked PDF Glossary Quotes
|
||||
|
||||
Every page number (`#page=1..11`) and verbatim quote below has been verified against `/workspace/technocapital-singularity-zoology/technocapital-singularity-zoology-comprehensive-glossary.pdf` and `/workspace/technocapital-singularity-zoology/taxonomy/glossary-registry.json`:
|
||||
|
||||
### 2.1 Top Toolbar Controls (`4` Interface Terms)
|
||||
|
||||
| Term ID & UI Label | Plain-English Definition (`<= 1 Paragraph`) | Verbatim PDF Glossary Quote & Hyperlinked Target (`#page=N&search=...`) |
|
||||
| :--- | :--- | :--- |
|
||||
| **`guild_filter`**<br/>`Guild Filter (ALL / S1–S6)` | Filters the 24 market tickers by their primary technocapital sector ("Guild"): `S1` covers AI models and cloud software, `S2` covers high-frequency trading and crypto liquidity, `S3` covers semiconductor fabs and defense hardware, `S4` covers telecom carrier waves, `S5` covers biotech/pharma, and `S6` covers giant asset managers and banks. | **Quote:** *"Co-primary coupling between the Machinic Phylum (Classes S1–S5: models, HFT algorithms, EUV fabs, carrier waves, wetware) and Capital Organizational Capture (Class S6)."*<br/>**PDF Link:** `/zoology/technocapital-singularity-zoology-comprehensive-glossary.pdf#page=3&search=Double%20Articulation` |
|
||||
| **`ticker_select`**<br/>`Ticker & TradingView (↗)` | Selects which of the 24 tracked companies or assets to inspect across all four panels. Clicking `Open TradingView Chart ↗` (or pressing `T`) opens that asset's live market chart on TradingView in a new browser tab without loading any external tracking scripts on this page. | **Quote:** *"A tracked real-world financial or industrial figure attached to an S1–S6 entity (lazarus_heist_6b = '$6B' / 'siks bilyan' [211]; anthropic_ipo_price_83 = '$83' [202] -> '$89' [193])."*<br/>**PDF Link:** `/zoology/technocapital-singularity-zoology-comprehensive-glossary.pdf#page=8&search=Quantitative%20Economic%20Anchor` |
|
||||
| **`projection_lens`**<br/>`Projection Lens` | Changes the vocabulary used in Panel 3 to describe the exact same six underlying math scores. You can view the readout in plain math terms (`Neutral Math`), institutional investing terms (`Quant Factor`), executive governance terms (`Corporate Board`), ecological tier ratings (`TierZoo`), fantasy sports stats (`Fantasy Sabermetrics`), or `Pokédex` scanner stats. | **Quote:** *"The analytical gain achieved by reading Gen 0 (stated legal/filing form) and Gen 1 (operational phonemic stream) stereoscopically across Academic, Corporate Board, Out-of-Sample Fund Manager, and Fantasy Football registers."*<br/>**PDF Link:** `/zoology/technocapital-singularity-zoology-comprehensive-glossary.pdf#page=7&search=Vector%20G6` |
|
||||
| **`metric_mode`**<br/>`Metric Mode (Spoken AQ / USD / BPS / Digit AQ)` | Chooses what the cyan line in the top chart plots over the 30-day timeline: `Spoken AQ (Gen 1)` scores the spoken English words for the closing price after stripping silent letters; `Close Price (USD)` plots the raw dollar price; `Move (BPS)` plots the daily percentage move in basis points (`100 bps = 1%`); and `Digit AQ` sums the raw digits of the price. | **Quote:** *"Continuous Base-36 character-valuation cipher (formulated by Jim Lees in 1976 and adopted by the Ccru) where digits 0–9 map to face values 0–9 and letters A–Z map to 10–35 (case-insensitive; non-alphanumeric symbols = 0)."*<br/>**PDF Link:** `/zoology/technocapital-singularity-zoology-comprehensive-glossary.pdf#page=1&search=Alphanumeric%20Qabbala` |
|
||||
|
||||
### 2.2 Panel 1 — 3-Pane Time-Series Canvas & Legend (`6` Interface Terms)
|
||||
|
||||
| Term ID & UI Label | Plain-English Definition (`<= 1 Paragraph`) | Verbatim PDF Glossary Quote & Hyperlinked Target (`#page=N&search=...`) |
|
||||
| :--- | :--- | :--- |
|
||||
| **`entity_threshold`**<br/>`Entity Phonemic Threshold (Dashed Crimson Line)` | The horizontal dashed red line marks the numerical score of the company's own name when spelled strictly by how it sounds out loud in `Gen 1` Ingglish (for example, `Nvidia` -> `envideea = 137`, `ASML` -> `asml = 81`). When the cyan curve touches this line, the market price or daily move matches the company's own name. | **Quote:** *"Deterministic phonemic English orthography backed by the 126,051-word CMU Pronouncing Dictionary (ingglish npm package) that strips silent etymological letters and maps each ARPAbet phoneme to a single invariant spelling."*<br/>**PDF Link:** `/zoology/technocapital-singularity-zoology-comprehensive-glossary.pdf#page=1&search=Phonemic%20Ingglish` |
|
||||
| **`scope1_self_lock`**<br/>`Gold = Scope 1 Self-Lock` | A glowing gold circle on the curve means the asset's closing price or daily basis-point move landed on the exact number of its own name (such as Nvidia closing at `$137.00 == envideea [137]` or ASML moving `+81 bps == asml [81]`) or hit a repeating three-digit number (`$777.00` for Eli Lilly). | **Quote:** *"Forbids matching quantitative figures to random unrelated dictionary words; counter-substitutions are strictly restricted to: (1) Intra-Instrument Self-Locks (price or bps == entity's own AQ)..."*<br/>**PDF Link:** `/zoology/technocapital-singularity-zoology-comprehensive-glossary.pdf#page=9&search=Contingent%20Repricing%20Scope%20Rule` |
|
||||
| **`scope2_ring_migration`**<br/>`Cyan = Scope 2 Ring Migration` | A cyan dot on the curve means the asset's price, spoken price score, or daily basis-point move landed on one of the 30 core supply-chain coordinates shared across the `S1–S6` ecosystem (such as `125`, `137`, `193`, `211`, `256`, or `292`), linking that day's market action to a broader sector hub. | **Quote:** *"Tracks which S1–S6 equivalence partners a spoken figure exits and enters when repriced (e.g., 'siks bilyan' [211 == wor masheen == koper waier] migrating to 'sevan bilyan' [222 = 6 x 37])."*<br/>**PDF Link:** `/zoology/technocapital-singularity-zoology-comprehensive-glossary.pdf#page=9&search=Type%202%20Revision` |
|
||||
| **`scope3_wire_copresence`**<br/>`Emerald = News Wire Co-Presence` | In the middle bar chart, bars turn emerald green on days when that specific company was also named in the breaking midnight (`00:00 UTC`) news wire. This enforces "The Room Filter": we only flag a high-conviction signal when the news story and the market price happen on the same day. | **Quote:** *"'The Room Filter' requires that equated terms co-occur within a contingent historical event, supply chain, or balance sheet before their AQ identity is admitted as a real singularity."*<br/>**PDF Link:** `/zoology/technocapital-singularity-zoology-comprehensive-glossary.pdf#page=10&search=Room%20Filter` |
|
||||
| **`wire_velocity_bars`**<br/>`Wire Eq (00:00 GMT Wire Velocity)` | The middle pane's vertical bars count how many verified `333`, `666`, and `777` phonemic equations were harvested from that day's breaking midnight (`00:00 GMT`) news dossier. Taller bars indicate heavier cross-scale resonance in the global news cycle on that date. | **Quote:** *"The three cross-scale target sums of every archive dossier (10 verified equations per scale = 30 per dossier), all governed by the prime generator 37 (3 x 37 = 111)."*<br/>**PDF Link:** `/zoology/technocapital-singularity-zoology-comprehensive-glossary.pdf#page=1&search=Primary%20Repdigit%20Attractors` |
|
||||
| **`vol20d_regimes`**<br/>`Vol20d & M1–M3 Regimes` | The bottom pane plots the day's trading volume relative to its 20-day average (`Vol20d`) and colors each bar by market regime: Gold (`< 0.45x` volume) marks `M1` supply freezes/halts; Crimson (`>= 2.5x` volume or `<= -5%` drop) marks `M2` flash-crash surges; and Sky-Blue marks normal `M3` large-cap trading. | **Quote:** *"Methodological rule forbidding global dictionary fishing of horror/mythic tropes into unrelated stories: a memetic subclass M1–M6 may be invoked ONLY when (Gate 1) the news event exhibits the matching real-world thermodynamic state..."*<br/>**PDF Link:** `/zoology/technocapital-singularity-zoology-comprehensive-glossary.pdf#page=5&search=State-Gated%20Inheritance` |
|
||||
|
||||
### 2.3 Panel 2 & Panel 3 — Heatmap & Cross-Sectional Date Inspector Boxes (`7` Interface Terms)
|
||||
|
||||
| Term ID & UI Label | Plain-English Definition (`<= 1 Paragraph`) | Verbatim PDF Glossary Quote & Hyperlinked Target (`#page=N&search=...`) |
|
||||
| :--- | :--- | :--- |
|
||||
| **`heatmap_matrix`**<br/>`Panel 2: 24 × 30 Lock Heatmap` | A bird's-eye grid showing all 24 tickers (rows) across all 30 November UTC days (columns). Gold cells mark `Scope 1` self-locks, cyan cells mark `Scope 2` sector ring hits, and green borders mark days when the company appeared in the midnight news wire. Click any cell to inspect that ticker and date. | **Quote:** *"Shared numerical coordinates through which one singularity guild feeds or captures another across the technocapital food web (e.g., 211 linking S2 HFT, S3 Copper/War Machine, S4 Carrier Wave, and S6 $6B Heist)."*<br/>**PDF Link:** `/zoology/technocapital-singularity-zoology-comprehensive-glossary.pdf#page=8&search=Trophic%20Supply-Chain%20Bridges` |
|
||||
| **`box_close_usd`**<br/>`Close USD (Change)` | The official `21:30 UTC` (`4:30 PM EST`) US closing-bell price in US dollars for the selected date, alongside the day's percentage move expressed in basis points (`100 bps = 1.00%`, so `+81 bps = +0.81%`). | **Quote:** *"CLI mode governing numeric tokens: 'off' (default 100% pure lexical/qualitative mode stripping numeric figures), 'spoken' (converting figures to spoken English -> Ingglish), and 'digit' (literal Base-36 digit sum)."*<br/>**PDF Link:** `/zoology/technocapital-singularity-zoology-comprehensive-glossary.pdf#page=9&search=Tri-Modal%20Quantitative%20Handling` |
|
||||
| **`box_spoken_close`**<br/>`Spoken Close (Gen 1 AQ)` | Translates the integer dollar closing price into spoken words, strips silent letters into `Gen 1` phonemic Ingglish (for example, `$137` -> `"one hundred thirty seven"` -> `"wuhn huhndrad therdee sevan"`), and sums its Base-36 value. | **Quote:** *"Tracks which S1–S6 equivalence partners a spoken figure exits and enters when repriced (e.g., 'siks bilyan' [211 == wor masheen == koper waier] migrating to 'sevan bilyan' [222 = 6 x 37])."*<br/>**PDF Link:** `/zoology/technocapital-singularity-zoology-comprehensive-glossary.pdf#page=9&search=Type%202%20Revision` |
|
||||
| **`box_scaled_cap`**<br/>`Scaled Cap (Gen 1 AQ)` | Takes the company's market capitalization string (such as `$3.35T` or `$61B`), expands it into spoken phonemic Ingglish (`"three point three faiv trilyan"`), and computes its Base-36 `AQ` score to detect macro-scale capital locks. | **Quote:** *"Activates under sovereign megaprojects, tech giants, trillion-dollar consolidation, and grid capture. Signature locks: kansorsheea == 189; leevaiathan == 179; monohpolee == 192."*<br/>**PDF Link:** `/zoology/technocapital-singularity-zoology-comprehensive-glossary.pdf#page=5&search=Subclass%20M3` |
|
||||
| **`box_bps_vol`**<br/>`BPS Spoken AQ / Vol20d` | Shows the phonemic `AQ` score of the day's unsigned basis-point move next to `Vol20d` (how many times normal 20-day average volume traded hands that day). | **Quote:** *"Covers microsecond algorithmic order books, flash crashes, fiber-optic latency, derivatives, and crypto ledgers. Signature coordinates: 256 (akselerayshan == hai-freekwansee), 193 (flash krash == anthropik)..."*<br/>**PDF Link:** `/zoology/technocapital-singularity-zoology-comprehensive-glossary.pdf#page=4&search=Class%20S2` |
|
||||
| **`box_active_locks`**<br/>`Active Contingent Locks` | Lists every `Scope 1` self-lock (where price or move matches the asset's own name or a `37 × k` repdigit) and `Scope 2` sector ring coordinate (`Ring 125`, `Ring 137`, `Ring 193`, etc.) triggered by this ticker on the selected date. | **Quote:** *"The 13 Ingglish AQ coordinates that simultaneously belong to 2–4 distinct Assemblage Builds and act as regime-reallocation pivots: 292, 256, 211, 193, 183, 153, 137, 136, 133, 125, 95, 91, and 81."*<br/>**PDF Link:** `/zoology/technocapital-singularity-zoology-comprehensive-glossary.pdf#page=7&search=Multi-Build%20Hybrid` |
|
||||
| **`box_wire_copresent`**<br/>`00:00 GMT Wire Co-Present` | Indicates `YES (Scope 3 Lock)` when the company's name or ticker symbol appeared verbatim in that same UTC date's midnight news-wire dossier (`25..71-dossier-news-YYYY-MM-DD.md`), confirming real-world news and market co-presence. | **Quote:** *"'Grand Central Station' names the statistical crowding of 4-to-5-letter Base-36 words in the 65–140 interval; 'The Room Filter' requires that equated terms co-occur within a contingent historical event, supply chain, or balance sheet..."*<br/>**PDF Link:** `/zoology/technocapital-singularity-zoology-comprehensive-glossary.pdf#page=10&search=Grand%20Central%20Station` |
|
||||
|
||||
### 2.4 Panel 3 — Dynamic `LENS_REGISTRY` Time-Series Moments (`7` Interface Terms)
|
||||
|
||||
| Term ID & Underlying Key | Plain-English Definition (`<= 1 Paragraph`) | Verbatim PDF Glossary Quote & Hyperlinked Target (`#page=N&search=...`) |
|
||||
| :--- | :--- | :--- |
|
||||
| **`lens_archetype`**<br/>`Archetype & Tier Classification` | Summarizes the asset's 30-day behavioral profile—whether it acts as a steady "Ironclad Floor" chokepoint with consistent daily locks or a high-volatility "Templex Boom/Bust" surge asset—and grades its overall strength from `Tier S+` (Apex) to `Tier D` (Periphery). | **Quote:** *"Tier S+ (88–100 ETI, Crimson #FF4D4D: Apex Predator — #1 S1 AI [93], #2 S2 Liquidity [90]); Tier S (80–87 ETI, Coral #FF7F7F: Keystone Dominator — #3 S6 Capture [87], #4 S3 War Machine [83])..."*<br/>**PDF Link:** `/zoology/technocapital-singularity-zoology-comprehensive-glossary.pdf#page=8&search=Zoological%20Ecological%20Tiers` |
|
||||
| **`ts_duty_cycle_pct`**<br/>`Duty Cycle % / SNAP% / Active Days` | The percentage of days over the 30-day window where this ticker fired at least one verified `Scope 1/2` coordinate lock or `Scope 3` midnight news-wire match. A higher percentage means the asset is consistently active in the signal stream rather than firing only once by chance. | **Quote:** *"Standalone 0–100 zoological grading standard for Technocapital Singularity Taxa & Assemblage Builds, computed as the weighted composite of six normalized base stats: ETI = round(0.20*CAP + 0.18*COL + 0.18*ARM + 0.16*PRM + 0.14*VEL + 0.14*RES)."*<br/>**PDF Link:** `/zoology/technocapital-singularity-zoology-comprehensive-glossary.pdf#page=7&search=Ecological%20Trophic` |
|
||||
| **`ts_weighted_resonance`**<br/>`Weighted Resonance / WOPR` | Combines how often the ticker appears in the midnight news wire (`1.5× weight`) with its share of volume-weighted price movement on locked days (`0.7× weight`). It measures whether an asset is driving both headline attention and capital movement at the same time. | **Quote:** *"Highest-weighted zoological stat (0.20), scoring S[1–5] x S6 Double Articulation, cross-guild trophic bridge count, and G2 Cross-Generation Twin density."*<br/>**PDF Link:** `/zoology/technocapital-singularity-zoology-comprehensive-glossary.pdf#page=8&search=CAP` |
|
||||
| **`ts_excess_over_replacement`**<br/>`Excess Over Replacement / WAR (30d)` | Measures how many more coordinate locks and resonance points this asset produced over 30 days compared to a random baseline (`Tier D = 49 ETI` replacement level). Positive values indicate structural outperformance above random numerical noise. | **Quote:** *"Plain-English Fantasy Football translations of Vector G1 Variance Collapse ('Stack Lock' — when 3+ assets that look different on paper snap onto the exact same number in Ingglish) and Vector G4 Isometric Invariance ('All-Weather Chokepoint')."*<br/>**PDF Link:** `/zoology/technocapital-singularity-zoology-comprehensive-glossary.pdf#page=10&search=Stack%20Lock` |
|
||||
| **`ts_quantile_profile`**<br/>`P20 Floor / P90 Ceiling / Boom% / CV` | Breaks down the distribution of the asset's daily resonance points: `P20` is its quiet-day baseline floor, `P90` is its peak-day ceiling, `Boom%` is the share of days with major multi-lock spikes (`>= 3.0 pts`), and `CV` (coefficient of variation) measures how spiky vs. steady the signal is. | **Quote:** *"Quantifies a build's concentration of G4 Isometric Fixed Points (Delta = 0 chokepoints like ASML=81, TSMC=91, GPU=71, kapatal=125, charter=136) that remain numerically unperturbed across orthographic regimes."*<br/>**PDF Link:** `/zoology/technocapital-singularity-zoology-comprehensive-glossary.pdf#page=7&search=ARM` |
|
||||
| **`ts_optimal_lag_days`**<br/>`Optimal Causal Lag τ* (Days)` | The day offset $\tau^* \in [-5, +5]$ where midnight news-wire activity and the ticker's price volatility correlate most strongly. Positive $\tau^* > 0$ means news-wire surges lead price volatility by $\tau^*$ days; $\tau^* = 0$ means they move on the same day; negative $\tau^* < 0$ means news headlines follow after the price move. | **Quote:** *"Cybernetic runaway (ruhnaway = 183 == tempaleks == laytansee) in which positive feedback (pozativ feedbak = 269 [57th PRIME]) folds future attractor states backward to assemble their own material preconditions."*<br/>**PDF Link:** `/zoology/technocapital-singularity-zoology-comprehensive-glossary.pdf#page=3&search=Teleoplexy` |
|
||||
| **`ts_regime_splits`**<br/>`Conditional Regime Splits (M1 / M2 / M3)` | Shows the ticker's average daily resonance score during `M1` supply-freeze days, `M2` flash-crash/high-volume surge days, and `M3` normal large-cap days—revealing which market environment causes this asset's locks to light up. | **Quote:** *"Lineup/portfolio pivot at 137 [33rd PRIME] (daireeoh == envideea == hawlts == inersha): if a foundry delay or regulatory freeze halts the offensive line, reallocate immediately across the 137 bridge..."*<br/>**PDF Link:** `/zoology/technocapital-singularity-zoology-comprehensive-glossary.pdf#page=10&search=Supply-Halt%20Insurance%20Pivot` |
|
||||
|
||||
### 2.5 Panel 4 — Lead-Lag Cross-Correlation & Audit Footer (`3` Interface Terms)
|
||||
|
||||
| Term ID & UI Label | Plain-English Definition (`<= 1 Paragraph`) | Verbatim PDF Glossary Quote & Hyperlinked Target (`#page=N&search=...`) |
|
||||
| :--- | :--- | :--- |
|
||||
| **`lag_correlation_explorer`**<br/>`Lead-Lag Cross-Correlation r(τ)` | This 11-bar chart measures the statistical correlation $r(\tau) \in [-1, +1]$ between daily midnight news-wire equation counts and the ticker's daily price swing across time shifts from `-5` days to `+5` days. The gold bar highlights the strongest lead-lag relationship ($\tau^*$). | **Quote:** *"Landian terms for non-linear temporal folding in cybernetic markets: taim-serkat (207 == terbyalans == Gen 0 'infinitive') and tempaleks (183 == ruhnaway == laytansee == dhrakoola)."*<br/>**PDF Link:** `/zoology/technocapital-singularity-zoology-comprehensive-glossary.pdf#page=3&search=Time-Circuit` |
|
||||
| **`periodicity_gate_badge`**<br/>`Periodicity Gate Enforced` | Confirms that every data point in `/quant/` comes strictly from daily timestamped observations (`21:30 UTC` market close and `00:00 UTC` news rollover), with zero undated dictionary lists or static essays mixed into the time-series math. | **Quote:** *"'The Room Filter' requires that equated terms co-occur within a contingent historical event, supply chain, or balance sheet before their AQ identity is admitted as a real singularity."*<br/>**PDF Link:** `/zoology/technocapital-singularity-zoology-comprehensive-glossary.pdf#page=10&search=Room%20Filter` |
|
||||
| **`cidv1_provenance`**<br/>`IPLD dag-json CIDv1 (baguqeera...)` | A cryptographic content fingerprint (`CIDv1`) computed over the entire time-series bundle. If even a single price, date, or equation changes by one character, this `baguqeera...` hash changes—proving the readout you see matches the verified archive byte-for-byte. | **Quote:** *"Audit requirement that every Ingglish token in a technocapital dossier match unmodified ingglish.translate() output from CMUdict with 0 ad-hoc spelling tweaks."*<br/>**PDF Link:** `/zoology/technocapital-singularity-zoology-comprehensive-glossary.pdf#page=1&search=CMUdict%20Purity` |
|
||||
|
||||
---
|
||||
|
||||
## 3. Three-Phase Implementation Roadmap (`Phases 1–3`)
|
||||
|
||||
### Phase 1: Add `.hs-info-icon` & `#quantInfoPopover` Styling + Markup in `site/quant/index.html`
|
||||
1. Add CSS styles in `/workspace/hyperstitionstudio-core/site/quant/index.html` for:
|
||||
- `.hs-info-icon` (`15px × 15px` inline-flex badge with hover/focus/active states),
|
||||
- `#quantInfoPopover` (fixed viewport-clamped card with `z-index: 90`, dark-slate `#0f172a` panel, `1px solid var(--cyan)` border, gold header bar, plain-English paragraph block, styled `<blockquote>` for the verbatim PDF Glossary quote, and clickable `#page=N&search=...` PDF links).
|
||||
2. Add inline `<button type="button" class="hs-info-icon" data-term-id="...">i</button>` triggers next to the static toolbar labels (`Guild Filter`, `Ticker`, `Projection Lens`, `Metric Mode`) and Panel 1–4 headers/legend items in `site/quant/index.html`.
|
||||
|
||||
### Phase 2: Build `QUANT_TERM_GLOSSARY` & Dynamic Popover Controller in `site/quant/quant-app.js`
|
||||
1. Define `QUANT_TERM_GLOSSARY` in `site/quant/quant-app.js` containing all `27` entries from Section 2 above (with `title`, `plain_english`, `glossary_quote`, `glossary_pdf_link`, and `manual_pdf_link`).
|
||||
2. Inject `.hs-info-icon` triggers into:
|
||||
- All 6 Date Inspector metric boxes in `renderInspectorAndLens()`,
|
||||
- The `Archetype` header and all 6 dynamically labeled `LENS_REGISTRY` time-series rows in `#lensProjectionCard` (mapping each lens's display label back to its canonical `ts_*` key so the `ⓘ` icon always opens the right explanation regardless of which lens is active!), and
|
||||
- The `Periodicity Gate` and `CIDv1` badges in `#periodicityAuditFooter`.
|
||||
3. Attach delegated hover/focus/click/keyboard (`Enter`/`Space`/`Escape`) handlers so hovering previews the popover and clicking pins it open to allow clicking the hyperlinked PDF Glossary quote.
|
||||
|
||||
### Phase 3: Automated Verification in `tests/test_core_suite.py` & `deploy/test-first-deployment.sh`
|
||||
1. Add unit assertions in `tests/test_core_suite.py` verifying:
|
||||
- `QUANT_TERM_GLOSSARY` in `site/quant/quant-app.js` contains all `27` term definitions,
|
||||
- Every entry has a single-paragraph plain-English explanation (`\n\n` not in `plain_english` and `40 <= len(plain_english) <= 420`),
|
||||
- Every entry has a non-empty verbatim `glossary_quote` and a `glossary_pdf_link` pointing to `/zoology/technocapital-singularity-zoology-comprehensive-glossary.pdf#page=N&search=...`, and
|
||||
- Every target `#page=N` is within `1..19` of `technocapital-singularity-zoology-comprehensive-glossary.pdf`.
|
||||
Binary file not shown.
@@ -1,104 +0,0 @@
|
||||
# Plan: `/quant/` Zero-MP4 Interactive HTML5 Canvas Tutorial Tour, Interface Figure Guide & Passage-Encoded Deep-Link Citation Drawer (`v2.0.18`)
|
||||
|
||||
- **Document ID:** `PLAN-QUANT-TUTORIAL-VIDEO-SERIES-AND-CITATION-DEEP-LINKS` (`v2.0.18`)
|
||||
- **Storage & Delivery Architecture (Option B — Zero-MP4 Interactive HTML5 Canvas / Subtitled Walkthrough, `< 150 KB` Total, 100% Git-Tracked):**
|
||||
- Rather than committing multi-megabyte `.mp4` video binaries into Git or consuming space in the `512 MB` VPS `tmpfs` RAM mount, the 5-episode tutorial series resides directly in `/workspace/hyperstitionstudio-core/site/quant/` (`quant-tutorials.js`, `< 45 KB` uncompressed, `~12 KB` Brotli-11) as an **interactive, timeline-scrubbable 5-Episode Guided Canvas Player**.
|
||||
- When a user plays an episode (`Ep 01` through `Ep 05`), the player programmatically drives the live `/quant/` interface in real time—switching tickers (`NVDA`, `ASML`, `ANTHR-PVT`, `LLY`), scrubbing UTC dates, toggling projection lenses, drawing animated spotlight callout rings and vector arrows directly over the live Panel 1–4 figures, displaying synchronized chapter subtitles (with optional zero-dependency browser `window.speechSynthesis` narration toggle), and presenting clickable passage-encoded citation cards at every keyframe!
|
||||
- **Target Web Route & Tracked Files:**
|
||||
- `/workspace/hyperstitionstudio-core/site/quant/index.html` & `quant-app.js`
|
||||
- `/workspace/hyperstitionstudio-core/site/quant/quant-tutorials.js` (`window.HyperstitionStudio.QuantTutorials` — 5 episodes, 25 timed keyframes, animated canvas spotlight overlay, play/pause/scrub timeline bar, and clickable deep-link cards)
|
||||
- `/workspace/hyperstitionstudio-core/site/quant/OPERATORS-MANUAL-QUANT-TIMESERIES-WORKBENCH.{md,pdf}` (Companion Reference Manual with clickable passage-encoded deep links)
|
||||
- **Core Architectural Feature (Knowledge-Graph-Modeled Documentation & Passage-Encoded Deep-Link Citations):**
|
||||
Models `/quant/`'s **Documentation & Citation Drawer** directly on the Encyclopedia Knowledge Graph's (`encyclopedia-knowledge-graph/index.html`) `ENC_BASE + volume_pdf_rel` inspector drawer, and extends every link with **RFC 3778 PDF Page/Search Fragments (`#page=N&search="verbatim_lock"`)** and **WICG Scroll-To-Text Fragments (`#:~:text=start_token,end_token`)** plus `/api/v1/dossiers/{N}?highlight=<passage>` and `/graph/index.html?select=aq:137` so clicking any figure or lock on `/quant/` (or inside the tutorial player) jumps straight to the cited passage.
|
||||
|
||||
---
|
||||
|
||||
## 1. Explaining Every Visual Figure & Numerical Readout in the `/quant/` Interface
|
||||
|
||||
Every curve, marker, bar, cell, and metric in `/quant/index.html` is spotlighted by the interactive tutorial player and linked in the **Documentation & Citation Drawer**:
|
||||
|
||||
### 1.1 Panel 1 — Synchronized 3-Pane Time-Series Canvas (`#tsCanvas`)
|
||||
|
||||
| Canvas Element / Figure | Visual Encoding on Screen | Mathematical & Gematrial Meaning | Passage-Encoded Encyclopedia & Dossier Deep Link |
|
||||
| :--- | :--- | :--- | :--- |
|
||||
| **1. Top-Pane Solid Cyan Curve** | Continuous `#22d3ee` cyan polyline across `30` UTC days (`2026-11-01 .. 2026-11-30`) | Plots the active metric selected in the **Metric Mode** bar for ticker $i$:<br/>• `Spoken AQ (Gen 1)`: $Q^{\text{spoken}}_{i,t} = \text{AQ}(\text{Ingglish}(\text{spoken}(\lfloor P_{i,t}\rceil)))$<br/>• `Close Price (USD)`: Official `21:30 UTC` closing price $P_{i,t}$<br/>• `Move (BPS)`: Daily basis-point change $\Delta\text{bps}_{i,t} = \text{round}(100 \times \Delta\%_{i,t})$<br/>• `Digit AQ`: Literal Base-36 digit sum of $\lfloor P_{i,t}\rceil$. | `/encyclopedia/01-cipher-and-orthographic-mechanics/a-to-g-alphanumeric-qabbala-to-gen-2-evolution.pdf#page=1&search=Alphanumeric%20Qabbala` |
|
||||
| **2. Top-Pane Horizontal Dashed Crimson Line (`entity_ing = N`)** | Dashed `#ff4d4d` horizontal threshold line labeled with the ticker's `Gen 1` Ingglish name and `AQ` value (e.g., `envideea=137`, `asml=81`, `anthropik=193`) | Marks the instrument's **Intrinsic Phonemic Identity Coordinate ($\text{AQ}_{\text{Ing}}(\text{Entity}_i)$)**. When the cyan trajectory touches or crosses this dashed line, the asset's market price or basis-point move equals its own name in Base-36 space. | `/encyclopedia/03-machinic-phylum-singularities-s1-to-s5/s3-a-to-z-asml-to-wor-masheen.pdf#page=5&search=envideea` |
|
||||
| **3. Top-Pane Gold Beacon Circles (`r = 5.2px`)** | Glowing `#f5c630` gold circles plotted directly on vertices of the cyan curve | **`Scope 1` Intra-Instrument Self-Lock or Repdigit Attractor:** Fires when $\lfloor P_{i,t}\rceil == \text{AQ}(\text{Entity}_i)$ (`NVDA` closing at `$137.00 == envideea [137]`), $|\Delta\text{bps}_{i,t}| == \text{AQ}(\text{Entity}_i)$ (`ASML` moving `+81 bps == asml [81]`), or $\lfloor P_{i,t}\rceil \equiv 0 \pmod{111}$ (`LLY` closing at `$777.00 == 7 × 111`). | `/encyclopedia/08-stakeholder-registers-idioms-and-pokedex-semiotics/a-to-h-ai-powered-race-to-hidden-chokepoint-screen.pdf#page=2&search=Room%20Filter` |
|
||||
| **4. Top-Pane Cyan Beacon Circles (`r = 3.8px`)** | `#22d3ee` cyan vertex markers on the curve | **`Scope 2` Causal `S1–S6` Supply-Chain Ring Migration:** Fires when $\lfloor P_{i,t}\rceil$, $Q^{\text{spoken}}_{i,t}$, or $|\Delta\text{bps}_{i,t}|$ lands on one of the `30` canonical `S1–S6` signature ring coordinates (`71, 81, 91, 95, 115, 125, 128, 129, 133, 135, 136, 137, 153, 160, 163, 166, 183, 189, 191, 193, 197, 211, 215, 222, 237, 246, 256, 260, 292`). | `/encyclopedia/06-genealogical-vectors-and-flex-singularities/a-to-m-anchor-revision-to-multi-build-flex.pdf#page=2&search=Flex` |
|
||||
| **5. Middle-Pane Violet & Emerald Histogram Bars (`Wire Eq`)** | Vertical bars showing the count of verified `333 / 666 / 777` equations synthesized in that UTC date's `00:00 GMT` news-wire dossier (`25..71-dossier-news-YYYY-MM-DD.md`) | • **Violet Bar (`#a78bfa`):** Standard `00:00 GMT` wire harvest day (ticker $i$ not named in top headlines).<br/>• **Emerald Bar (`#34d399`):** **`Scope 3` News-Wire Co-Presence Day ($C_{i,t} = 1$)** — Ticker $i$ or its entity name co-occurred in breaking wire headlines on the exact same UTC date as its market observation. | `/archive/71-dossier-news-2026-11-29.md#:~:text=Nvidia,73` |
|
||||
| **6. Bottom-Pane Volume Ratio & Regime Color Bars (`Vol20d`)** | Vertical bars scaled to 20-day relative volume ($V_{i,t}/\bar{V}_{20}$) and color-coded by objective `Scope 3` thermodynamic regime | • **Gold Bar (`#f5c630`, `Vol20d < 0.45x`):** `M1_ENTROPIC_STAGNATION` (halts, low-volume freeze -> `137: hawlts == inersha == envideea`).<br/>• **Crimson Bar (`#ff4d4d`, `Δ% <= -5.0%` or `Vol20d >= 2.5x`):** `M2_FLASH_CRASH_TEMPLEX_SURGE` (`193: flash krash == anthropik`, `256: akselerayshan`).<br/>• **Sky-Blue Bar (`#38bdf8`):** Normal kinetic trading regime (`M3_LEVIATHAN` active for `$1T+` market caps). | `/encyclopedia/05-memetic-superclass-m1-to-m7/m1-a-to-m-anemia-to-monopoly.pdf#page=1&search=M1` |
|
||||
| **7. Vertical Gold Crosshair Line** | Full-height vertical gold cursor line (`rgba(245,198,48,0.45)`) | Synchronizes all three canvas panes, the Panel 2 heatmap column, and the Panel 3 cross-sectional inspector to the selected UTC date $t$. | Interactive UI control (`Click` canvas or press `←` / `→`). |
|
||||
|
||||
### 1.2 Panel 2, Panel 3 & Panel 4 Figures
|
||||
|
||||
- **Panel 2 (`24 Tickers × 30 UTC Days` Spatiotemporal Heatmap):**
|
||||
- Each row is one of the `24` `S1–S6` tickers (`↗` opens its live TradingView Superchart in a new browser window); each column is a UTC day (`01..30`).
|
||||
- **Gold Cell (`hm-scope1`):** Scope 1 Intra-Instrument Self-Lock on that `(Ticker, Date)`.
|
||||
- **Cyan Cell (`hm-scope2`):** Scope 2 `S1–S6` Ring Migration on that `(Ticker, Date)`.
|
||||
- **Emerald Outline (`hm-wire`):** Ticker co-occurred in that UTC day's `00:00 GMT` news-wire dossier (`Scope 3`).
|
||||
- **Panel 3 (Cross-Sectional Date Inspector, Multi-Lens Card, Documentation Citations & Verbatim Equation Tape):**
|
||||
- Top 6 telemetry boxes display the exact values at date $t$: `Close USD (Change bps)`, `Spoken Close (Gen 1 AQ)`, `Scaled Cap (Gen 1 AQ)`, `BPS Spoken AQ / Vol20d`, `Active Contingent Locks`, and `00:00 GMT Wire Co-Present`.
|
||||
- Middle **Lens Projection Card (`LENS_REGISTRY`)** dynamically projects the instrument's 6 lens-neutral time-series moments (`ts_duty_cycle_pct`, `ts_weighted_resonance`, `ts_excess_over_replacement`, `ts_quantile_profile`, `ts_optimal_lag_days`, `ts_regime_splits`) and 30-day sparkline (`▁▂▃▄▅▆▇█`) into the selected lens (`Quant Factor`, `Neutral Math`, `Corporate Board`, `TierZoo (ETI)`, `Fantasy Sabermetrics`, or `Pokédex Scanner`).
|
||||
- **Knowledge-Graph-Modeled Documentation & Cited Passages Card:** Displays the ticker's Encyclopedia Volume PDF deep link (`#page=N&search=...`), Knowledge Graph node deep link (`/graph/index.html?select=aq:N`), exemplar Dossier scroll-to-text link (`#:~:text=...`), and REST API JSON/passage link (`/api/v1/dossiers/N?highlight=...`).
|
||||
- Bottom **Dated Memetic Equation Tape** lists the verbatim `333 / 666 / 777` equations from that date's `*-dossier-news-YYYY-MM-DD.md` archive file, each with its own clickable `#:~:text=` passage deep link and inline REST passage preview button.
|
||||
- **Panel 4 (Lead-Lag Cross-Correlation Histogram $r(\tau)$ at $\tau \in [-5, +5]$ Days):**
|
||||
- Plots the empirical Pearson correlation $r(\tau)$ between daily news-wire equation velocity $M_t$ and unsigned ticker basis-point displacement $|\Delta\text{bps}_{i, t+\tau}|$, highlighting the optimal causal lag $\tau^*$ in gold.
|
||||
|
||||
---
|
||||
|
||||
## 2. Option B Interactive Tutorial Player Architecture (`/quant/quant-tutorials.js`)
|
||||
|
||||
Instead of static `.mp4` video files, `/quant/` includes an integrated **5-Episode Interactive Canvas Tutorial Player** directly below the top toolbar:
|
||||
|
||||
```text
|
||||
+---------------------------------------------------------------------------------------------------+
|
||||
| INTERACTIVE TUTORIAL SERIES PLAYER (Zero-MP4 Live Canvas Choreographer • < 45 KB Git-Tracked) |
|
||||
| [ Ep 01: Periodicity Gate ] [ Ep 02: 3-Pane Canvas & Locks ] [ Ep 03: Heatmap & Deep Citations ] |
|
||||
| [ Ep 04: Modular Lens Switcher ] [ Ep 05: Lead-Lag r(tau) & REST API ] |
|
||||
| +-----------------------------------------------------------------------------------------------+ |
|
||||
| | [ ▶ Play / Pause ] [ ⏮ Prev Step ] [ Step 2/5 (00:18 / 00:45) ━━━━●━━━━━━ ] [ ⏭ Next ] [ 🔊 ] | |
|
||||
| | SUBTITLE & CALLOUT: "Notice the Gold Circle on Nov 30 ($137.00): NVDA's integer close equals | |
|
||||
| | its own Gen 1 Ingglish coordinate (envideea = 137 [33rd PRIME])—a Scope 1 Self-Lock." | |
|
||||
| | CITED SOURCES: [ 📄 Vol 03C PDF (p.5 "envideea") ↗ ] [ 📜 Dossier 71 Passage ↗ ] [ 🕸️ aq:137 ]| |
|
||||
| +-----------------------------------------------------------------------------------------------+ |
|
||||
+---------------------------------------------------------------------------------------------------+
|
||||
```
|
||||
|
||||
### 2.1 How Each Episode Choreographs the Live Interface (`5` Episodes × `5` Timed Keyframes = `25` Interactive Scenes)
|
||||
|
||||
When an episode plays (auto-advancing every `7 seconds` per keyframe or stepped manually via `⏮ / ⏭` or timeline scrubbing):
|
||||
1. **State Synchronization:** Each keyframe sets `{guildFilter, selectedSymbol, selectedLens, metricMode, selectedDateIdx}` on the live `/quant/` state machine and triggers `renderAll()`.
|
||||
2. **Canvas Spotlight & Callout Overlay:** Draws a pulsing gold/rose spotlight ring, vector callout arrow, and HUD label directly on `#tsCanvas` (or highlights the target DOM panel `#heatmapTable`, `#lensProjectionCard`, `#docReferencesCard`, `#lagBarsContainer`) pointing to the exact figure being explained.
|
||||
3. **Passage-Encoded Citation Bar:** Renders clickable deep-link pills for the exact Encyclopedia PDF page (`#page=N&search=...`), Dossier passage (`#:~:text=...`), REST API passage preview (`/api/v1/dossiers/{N}?highlight=...`), and Knowledge Graph node (`/graph/index.html?select=aq:N`) referenced in that scene.
|
||||
|
||||
| Episode ID | Title & Focus | Live State Choreography & Spotlighted Figures |
|
||||
| :--- | :--- | :--- |
|
||||
| **Ep 01** | **The Strict Periodicity Gate & Watchlist Topology** | Steps through `ALL -> S1 -> S3 -> S6` guild filters, spotlights the Periodicity Audit Footer (`20` dated `00:00 UTC` dossiers + `30` daily `21:30 UTC` closing-bell bars, `0` non-periodic static records), and links to `Vol 08A#page=2&search=Room%20Filter` and `/archive/00-index-and-methodology.md#:~:text=closing-bell,continuity`. |
|
||||
| **Ep 02** | **Reading Panel 1: Spoken AQ Curves, Gold/Cyan Beacons & Regimes** | Focuses `NVDA` (`$137 == envideea [137]`), `ASML` (`+81 bps == asml [81]`), and `LLY` (`$777` repdigit); switches between `Close Price (USD)`, `Move (BPS)`, and `Spoken AQ (Gen 1)`; spotlights the dashed crimson `entity_ing=N` threshold, Gold (`Scope 1`) vs. Cyan (`Scope 2`) beacons, Emerald (`Scope 3`) wire co-presence bars, and `M1/M2/M3` volume bars. |
|
||||
| **Ep 03** | **Panels 2 & 3: The 24×30 Lock Heatmap, TradingView & Deep Citations** | Scrubs across the `24 × 30` heatmap (`ANTHR-PVT` `$83 -> $89 [193]` on `2026-11-26`, `NVDA` on `2026-11-29`), highlights the `Open TradingView Chart ↗` launcher (`T`), and demonstrates clicking the passage-encoded Encyclopedia PDF (`#page & search`), Dossier (`#:~:text=`), and inline `/api/v1/dossiers/71?highlight=` preview buttons. |
|
||||
| **Ep 04** | **Hot-Swapping Projection Lenses (`LENS_REGISTRY` Reversibility)** | Holds `NVDA` at `2026-11-30` while cycling the **Projection Lens** selector through `Quant Factor`, `Neutral Math`, `Corporate Board`, `TierZoo (ETI)`, `Fantasy Sabermetrics`, and `Pokédex Scanner` (`DEX #137`), proving how the exact same 6 lens-neutral mathematical moments (`ts_*`) re-project without altering a single underlying number. |
|
||||
| **Ep 05** | **Panel 4: Lead-Lag Cross-Correlation $r(\tau)$, Exports & REST/SQLite APIs** | Spotlights Panel 4's correlation bars $r(\tau)$ across $\tau \in [-5, +5]$ days and the Gold optimal causal lag $\tau^*$, demonstrates `.CSV` and `.JSON` export, and links directly to `/api/v1/quant/timeseries?symbol=NVDA` and `/api/v1/openapi.json`. |
|
||||
|
||||
---
|
||||
|
||||
## 3. Four-Phase Implementation Roadmap (`Phases 1–4`)
|
||||
|
||||
### Phase 1: Enrich `quant/timeseries.py`, `mcp/rest.py` & `encyclopedia-knowledge-graph/index.html` with Deep-Link Resolution
|
||||
1. In `/workspace/hyperstitionstudio-core/src/hyperstitionstud_io/quant/timeseries.py`, attach `doc_references` (`encyclopedia_volume_rel`, `encyclopedia_deep_link` with `#page=N&search=...`, `knowledge_graph_deep_link` with `/graph/index.html?select=aq:N`, `exemplar_dossier_deep_link` with `#:~:text=...`, `rest_api_deep_link`, and `verbatim_citation_passage`) to every instrument, guild build, and dated wire equation (`dossier_deep_link`, `api_highlight_link`, `graph_hub_links`), and regenerate `quant-timeseries.json` and `quant-timeseries-data.js`.
|
||||
2. In `/workspace/hyperstitionstudio-core/src/hyperstitionstud_io/mcp/rest.py`, add `?highlight=<passage>` support to `GET /api/v1/dossiers/{number}` so it returns `matched_passages` (line numbers + verbatim surrounding lines) alongside the dossier Markdown.
|
||||
3. In `/workspace/encyclopedia-knowledge-graph/index.html`, add URL query parameter handling (`?select=<node_id>&mode=<mode_id>`) on startup so clicking a Knowledge Graph deep link from `/quant/` immediately selects, centers, and opens the right-hand Encyclopedia drawer for that node.
|
||||
|
||||
### Phase 2: Build `/workspace/hyperstitionstudio-core/site/quant/quant-tutorials.js` & Update `/quant/index.html` + `quant-app.js`
|
||||
1. Create `site/quant/quant-tutorials.js` containing the 5-episode, 25-keyframe interactive canvas choreographer, timeline scrubber, canvas spotlight/arrow overlay renderer, optional Web Speech narration toggle, and inline REST passage preview modal.
|
||||
2. Update `site/quant/index.html` and `site/quant/quant-app.js` to render:
|
||||
- The collapsible **Interactive Tutorial Series Player (`Ep 01–Ep 05`)** and **Visual Figure Legend**,
|
||||
- The Knowledge-Graph-modeled **Documentation & Cited Passages Card** in Panel 3, and
|
||||
- Passage-encoded `#:~:text=` deep links + inline passage preview buttons on every equation in the Dated Memetic Equation Tape.
|
||||
3. Register `site/quant/quant-tutorials.js` in `version_sync.py`.
|
||||
|
||||
### Phase 3: Write `/quant/OPERATORS-MANUAL-QUANT-TIMESERIES-WORKBENCH.{md,pdf}`
|
||||
1. Author `/workspace/hyperstitionstudio-core/site/quant/OPERATORS-MANUAL-QUANT-TIMESERIES-WORKBENCH.md` and compile `.pdf` via `hs-pdf-build`, providing the complete reference manual for `/quant/` with clickable passage-encoded links.
|
||||
|
||||
### Phase 4: Verification in `tests/test_core_suite.py` & `deploy/test-first-deployment.sh`
|
||||
1. Add unit assertions in `tests/test_core_suite.py` verifying `doc_references` (`#page=`, `#:~:text=`, `?select=aq:`) on `/quant/` instruments and equations, and verifying `GET /api/v1/dossiers/65?highlight=292` returns `matched_passages`.
|
||||
2. Add `/quant/quant-tutorials.js` and `/quant/OPERATORS-MANUAL-QUANT-TIMESERIES-WORKBENCH.pdf` to `deploy/test-first-deployment.sh`.
|
||||
Binary file not shown.
@@ -1,159 +0,0 @@
|
||||
# Plan: Interactive Quantitative Finance & Memetic Gematria Time-Series Subpage (`/quant/`) for `hyperstitionstud.io` (`v2.0.17`)
|
||||
|
||||
- **Document ID:** `PLAN-QUANTITATIVE-FINANCE-TIMESERIES-SUBPAGE` (`v2.0.17`)
|
||||
- **Target Web Route:** `https://hyperstitionstud.io/quant/` (`/quant/index.html`, `/quant/quant-app.js`, `/quant/quant-timeseries-data.js`)
|
||||
- **Offline `file://` Path:** `/workspace/hyperstitionstudio-core/site/quant/index.html`
|
||||
- **Schema Identifier:** `urn:io:hyperstitionstud:schema:v1:quant-timeseries` (`./schemas/v1/quant-timeseries.schema.json`)
|
||||
- **Core Architectural Rule 1 (Strict Periodic Time-Series Boundary):** **100% of ingested and visualized data sources MUST produce discrete, timestamp-indexed periodic observations ($\Delta t \in \{\text{1d US-Closing-Bell}, \text{24h UTC-Rollover}\}$).** Non-periodic, static, or undated corpora are strictly excluded from the time-series engine and chart layers.
|
||||
- **Core Architectural Rule 2 (Lens-Neutral Schema + Pluggable `LENS_REGISTRY`):** All persisted JSON schemas and time-series arrays (`quant-timeseries.json`) store **100% lens-neutral mathematical field names** (`struct_isometric_armor` .. `struct_repricing_resilience` and `ts_duty_cycle_pct`, `ts_weighted_resonance`, `ts_excess_over_replacement`, `ts_quantile_profile`, `ts_optimal_lag_days`, `ts_regime_splits`). Interpretive metaphors (`fund_manager`, `neutral_math`, `corporate_board`, `tierzoo_ecology`, `fantasy_sabermetrics`, `pokedex_scanner`) are projected at runtime via `hyperstitionstud_io.lenses.LENS_REGISTRY` (`PLAN-MODULAR-LENS-PROJECTION-AND-REVERSIBILITY-ARCHITECTURE`), allowing any lens to be toggled, removed, or replaced in `< 2 minutes` with zero schema or chart refactoring.
|
||||
- **Global Footer Compliance:** Includes the global site footer `"Made with ♥ by Lemurs."` (`♥`) and participates in `hs-sync-version` (`hyperstitionstud_io.version_sync`).
|
||||
|
||||
---
|
||||
|
||||
## 1. Strict Periodic Data-Source Qualification Audit (Included vs. Excluded Sources)
|
||||
|
||||
To ensure every series plotted on `/quant/` is a true mathematical time series $\{X_t\}_{t \in \mathcal{T}}$ indexed over ordered UTC dates $t_1 < t_2 < \dots < t_N$, all workspace data sources are partitioned by a strict **Periodicity Qualification Gate**:
|
||||
|
||||
### 1.1 Included Data Sources (Produce Periodic, Timestamp-Indexed Time-Series Data)
|
||||
|
||||
| # | Periodic Data Source | Sampling Cadence ($\Delta t$) | Time-Series Variables & Gematrial Signals Emitted ($X_t$) |
|
||||
| :- | :--- | :--- | :--- |
|
||||
| **1** | **US Equity & Macro Watchlist Telemetry (`hs-quant-harvest --mode us-closing-bell`)** | **Mon–Fri `21:30 UTC` (`16:30 EST` Cron `29c871eb6b78`)** + Daily OHLCV history (Yahoo Finance v8 / Stooq CSV / CoinGecko) | • Daily Close $P_t$, Intraday Range $[L_t, H_t]$, Return $r_t$ (`bps`), and 20-Day Volume Ratio $V_t / \bar{V}_{20}$ across all `24` `S1–S6` instruments.<br/>• **Time-Varying Quantitative `AQ` Series:** Integer Close `Gen 1` Spoken `AQ` ($Q^{\text{spoken}}_{i,t}$), Close Digit `AQ` ($Q^{\text{digit}}_{i,t}$), and Basis-Point Move Spoken `AQ` ($Q^{\text{bps}}_{i,t}$).<br/>• **Scope 1 & 2 Lock Indicator Series:** Binary/count impulse series $L^{(1)}_{i,t}, L^{(2)}_{i,t} \in \{0, 1, 2, \dots\}$ firing whenever $P_{i,t}$ or $|\Delta \text{bps}_{i,t}|$ collides with the instrument's own `AQ` (`NVDA = $137 == envideea [137]`, `ASML = +81 bps == asml [81]`) or an `S1–S6` ring coordinate (`292, 260, 256, 211, 193, 191, 189, 183, 163, 160, 137, 135, 129, 128, 125, 95, 91, 81, 71`). |
|
||||
| **2** | **Daily `00:00 GMT` Global News Wire Dossiers (`collect_news_aq.py` & `25..71-dossier-news-YYYY-MM-DD.md`)** | **Daily `00:00 UTC` (`19:00 EST` Cron `d28b479ec217`)** (`21` dated UTC snapshots from `2026-11-01` to `2026-11-29` + ongoing daily ticks) | • **Daily Memetic Phrase & Coordinate Velocity ($M_{c,t}$):** Count of verified `333 / 666 / 777` equations and cross-story collision classes activating coordinate $c$ on date $t$.<br/>• **News-Wire Co-Presence Series ($C_{i,t} \in \{0, 1\}$):** Whether ticker $i$ (`NVDA`, `ASML`, `TSM`, `ARM`, `ANTHR-PVT`, `BTC-USD`, `BLK`) co-occurred in breaking wire headlines on date $t$ (`SCOPE3_NEWS_WIRE_CO_PRESENCE_LOCK`).<br/>• **Daily Wire Telemetry Series:** Total headlines harvested, Twin-Prime headline count, Isometric lock count ($\Delta = 0$), and Shared Prime Factor attractors ($p \ge 11$). |
|
||||
| **3** | **Objective Thermodynamic & Emergent `M1–M7+` Regime State Series (`regime_summary` & `memetic-superclass-registry.json`)** | **Daily (`21:30 UTC` & `00:00 UTC` ticks)** | • **Regime Activation State Vector $S_t \in \{0, 1\}^7$:** Daily activation status of `M1` (Entropic Stagnation: vol ratio `< 0.45` & $|\Delta\%| < 0.10$), `M2` (Flash-Crash / Templex Surge: $\Delta\% \le -5.0\%$ or `^VIX >= 25`), `M3` (Leviathan Trillion-Cap Concentration), and `M7+` Two-Run (`Run N -> Run N+1`) persistence counters (`discovered_on_date_utc` -> `confirmed_on_date_utc`). |
|
||||
| **4** | **Dated Quantitative Economic Anchor Revisions (`quantitative-economic-anchors.json` & `anchor_revisions_detected`)** | **Event-Timestamped Step Series ($Q_t$)** anchored to dated dossiers (`2026-11-01`, `2026-11-18`, `2026-11-24`, `2026-11-30`) | • Step-function repricing series $Q_t$ tracking `anthropic_ipo_price_83` (`$83 [202] -> $89 [193 == anthropik == flash krash]`), `lazarus_heist_6b` (`$6B [211 == koper waier]`), and `bangladesh_factories_481` (`481 [13]`), plotted as regime-shift step overlays on the timeline. |
|
||||
|
||||
### 1.2 Strictly Excluded Data Sources (Non-Periodic / Static Corpora — Zero Time-Series Dimension)
|
||||
|
||||
| Excluded Source | Reason for Exclusion from `/quant/` Time-Series Engine | Permitted Static Role (Metadata Lookup Only) |
|
||||
| :--- | :--- | :--- |
|
||||
| **Static Atomic Lexicon & Thematic Ledgers (`01-ingglish-aq-lexicon.md`, `10–19-ledger-*.md`)** | Timeless orthographic/phonemic dictionaries (`Nait = 80`, `Thing = 103`); no observation timestamp $t$ or periodic sampling interval $\Delta t$. | Used only as a static coordinate label dictionary when hovering a locked integer $c \in [45, 777]$. |
|
||||
| **Undated Thematic / Cinema / Philosophy Dossiers (`20–24`, `26–45`, `65–69-dossier-*.md`)** | Structural essays on *The Thing*, *Videodrome*, *Anti-Oedipus*, and classes `S1–S6`; not periodically sampled across calendar time. | Excluded from all time-series charts; referenced only for static guild badge descriptions. |
|
||||
| **22-Volume PDF Encyclopedia & Static `ETI` Tier-List (`encyclopedia/*`, `tier-list-*`)** | Cross-sectional ontological taxonomy (`9` divisions, `388` graph nodes) rather than a longitudinal time series. | Already served on `/encyclopedia/` and `/graph/`; excluded from `/quant/`. |
|
||||
| **Stakeholder Proposals, Lectures & Podcast Episodes (`proposal-*.md`, `lecture-*.md`, `podcast-ep*.md`)** | Narrative prose documents and audio scripts; produce zero periodic numerical or lexical time-series observations. | Completely excluded from `/quant/`. |
|
||||
| **231k-Entry Calculator Database (`haiperdohp-jemaytreeah/db.json`)** | Static lookup table for instant string matching; no temporal axis. | Already served on `/calc/`; excluded from `/quant/`. |
|
||||
|
||||
---
|
||||
|
||||
## 2. Time-Series Data Architecture & Append-Only Ledger (`quant-timeseries-ledger.json`)
|
||||
|
||||
Currently, `hs-quant-harvest` writes `/workspace/ingglish-hyperdope-gematria/financial-aq-harvest-latest.json` (the latest snapshot), while `ingglish-aq-archive/` holds `21` dated `*-dossier-news-YYYY-MM-DD.md` files (`2026-11-01` through `2026-11-29`). To power a multi-week/multi-month interactive time-series workbench that works both offline (`file://`) and on `https://hyperstitionstud.io/quant/`:
|
||||
|
||||
1. **Historical Backfill + Append-Only Time-Series Ledger (`quant-timeseries-ledger.json`):**
|
||||
- Extend `hyperstitionstud_io.quant.collector` (`hs-quant-harvest`) with a time-series ledger builder (`build_quant_timeseries_ledger()`) that:
|
||||
1. Aligns the `24` `S1–S6` market instruments (`NVDA`, `ASML`, `TSM`, `ANTHR-PVT`, `MSFT`, `GOOGL`, `META`, `ORCL`, `AVGO`, `ARM`, `AMD`, `PLTR`, `LMT`, `RTX`, `HG=F`, `^VIX`, `BTC-USD`, `ETH-USD`, `SOL-USD`, `COIN`, `CEG`, `LLY`, `^TNX`, `BLK`) across the canonical November 2026 daily UTC calendar (`2026-11-01` through `2026-11-30`, `30` daily bars per instrument = `720` instrument-day observations) and appends every new daily `us-closing-bell` / `utc-rollover` cron run automatically.
|
||||
2. Extracts the dated memetic phrase & coordinate time series directly from the `21` dated `*-dossier-news-YYYY-MM-DD.md` archive files (`2026-11-01` to `2026-11-29`), recording per UTC date $t$:
|
||||
- Exact count of `333`, `666`, and `777` equations synthesized on date $t$,
|
||||
- Active `S1–S6` signature coordinates (`137, 81, 91, 125, 129, 133, 135, 160, 163, 183, 189, 191, 193, 211, 256, 260, 292`) hit in the day's news wire,
|
||||
- Verbatim dated memetic gematrial equations (`ing`, `eng`, `target`, `anchor_coord`, `matched_tickers`) from that day's dossier, and
|
||||
- Cross-joined `co_present_in_news_wire` flags linking each dated news dossier to the 24 market tickers on the same UTC date $t$.
|
||||
2. **Dual-Portable Synchronous Bundle (`site/quant/quant-timeseries-data.js`) & Lens-Neutral Schema Invariant:**
|
||||
- Emit both `/workspace/hyperstitionstudio-core/site/quant/quant-timeseries.json` (with IPLD `dag-json` `CIDv1` provenance `baguqeera...`) and `/workspace/hyperstitionstudio-core/site/quant/quant-timeseries-data.js` (`window.HyperstitionStudio.QuantTimeSeries = ...`) so `/quant/index.html` loads instantaneously on both `file://` (zero `fetch()` CORS errors) and `https://hyperstitionstud.io/quant/` (Brotli-11 pre-compressed).
|
||||
- **Lens-Neutral Field Contract (`quant-timeseries.schema.json`):** Each instrument and guild summary in `quant-timeseries.json` persists strictly canonical mathematical keys under `structural_vector` (`struct_isometric_armor`, `struct_drift_velocity`, `struct_variance_collapse`, `struct_trophic_capture`, `struct_prime_density`, `struct_repricing_resilience`) and `timeseries_moments` (`ts_duty_cycle_pct`, `ts_weighted_resonance`, `ts_excess_over_replacement`, `ts_quantile_profile`, `ts_optimal_lag_days`, `ts_regime_splits`), accompanied by a `lens_projections` map generated by `hyperstitionstud_io.lenses.apply_all_lenses(enabled_lenses)`.
|
||||
|
||||
---
|
||||
|
||||
## 3. Interactive UX & Four Synchronized Visual Panels on `/quant/index.html`
|
||||
|
||||
The `/quant/` subpage uses a zero-dependency, high-DPI HTML5 `<canvas>` + SVG interactive charting engine styled in the workspace's dark slate/cyan/gold/emerald monospace aesthetic (`#020617` canvas, `#0f172a` panels, `DejaVu Sans Mono`):
|
||||
|
||||
```text
|
||||
+---------------------------------------------------------------------------------------------------+
|
||||
| HEADER: hyperstitionstud.io/quant — Market Ticker & Memetic Gematria Time-Series Workbench |
|
||||
| [ Guild: ALL | S1..S6 ] [ Lens: Quant Factor | Neutral Math | TierZoo | Fantasy | Pokedex v ] |
|
||||
| [ Ticker Select: NVDA (Nvidia) v ] [ Open TradingView Chart ↗ ] [ Mode: Spoken AQ | BPS | USD ] |
|
||||
+---------------------------------------------------------------------------------------------------+
|
||||
| PANEL 1: Dual-Axis Synchronized Time-Series Canvas (Date Scrubbing, Crosshair & Zoom) |
|
||||
| • Top Pane (Price & Quantitative AQ Trajectory): |
|
||||
| - Solid Cyan Curve: Daily Close USD ($P_t$) or Return (bps) |
|
||||
| - Gold Step-Line: Time-Varying Spoken/Digit AQ ($Q_t$) with horizontal dashed S1-S6 Ring Bands |
|
||||
| - Crimson/Emerald Beacon Markers: Scope 1 Self-Locks ($137 == envideea, +81 bps == asml) |
|
||||
| • Middle Pane (Memetic Gematrial Phrase Impulse & News-Wire Co-Presence Histogram): |
|
||||
| - Stacked Violet/Gold Bars: Daily 333 / 666 / 777 equation counts from dated News Dossiers |
|
||||
| - Glowing Cyan Diamonds: Days where selected Ticker co-occurred in 00:00 GMT Wire Headlines |
|
||||
| • Bottom Pane (M1-M7+ Thermodynamic Regime Ribbon & Volume Ratio 20d): |
|
||||
| - Color-coded regime bands (M1 Entropic, M2 Flash-Crash Surge, M3 Leviathan, M7+ Nucleation) |
|
||||
+---------------------------------------------------+-----------------------------------------------+
|
||||
| PANEL 2: Multi-Ticker x Date Contingent Lock | PANEL 3: Selected Date (t) Cross-Sectional |
|
||||
| Heatmap Matrix (24 Tickers x 30 UTC Days) | Inspector & Memetic Equation Tape |
|
||||
| • Rows: 24 S1-S6 Tickers (grouped by Guild) | • Clicking/scrubbing any date t displays: |
|
||||
| • Columns: Ordered UTC Dates (Nov 01 .. Nov 30) | 1. Ticker OHLCV, bps move & 4-mode AQ |
|
||||
| • Cell Color: | 2. Active Scope 1-3 Contingent Locks |
|
||||
| - Gold: Scope 1 Intra-Instrument Self-Lock | 3. Verbatim 333/666/777 Memetic Phrases |
|
||||
| - Cyan: Scope 2 S1-S6 Ring Migration | recorded in that date's News Dossier |
|
||||
| - Emerald Border: News-Wire Co-Presence | that share the ticker's AQ coordinate |
|
||||
+---------------------------------------------------+-----------------------------------------------+
|
||||
| PANEL 4: Coordinate Resonance & Lead-Lag Cross-Correlation Explorer (r_{tau} at lags tau = -5..+5)|
|
||||
| • Computes empirical cross-correlation between Memetic Coordinate Frequency M_{c,t} (from daily |
|
||||
| 00:00 GMT wire dossiers) and Ticker Volatility / Basis-Point Moves |Delta bps_{i, t+tau}| |
|
||||
| across lags tau in {-5, -4, ..., 0, ..., +5} days, plus Portable JSON/CSV Time-Series Export. |
|
||||
+---------------------------------------------------------------------------------------------------+
|
||||
```
|
||||
|
||||
### 3.1 Panel 1: Synchronized 3-Pane Time-Series Chart (`HTML5 Canvas` with Crosshair Scrubbing)
|
||||
1. **Top Pane — Market Metric vs. Quantitative `AQ` Trajectory:**
|
||||
- Plots the selected ticker's price series $P_{i,t}$ (or basis-point change $\Delta \text{bps}_{i,t}$) alongside its time-varying `Gen 1` Ingglish Spoken `AQ` series $Q^{\text{spoken}}_{i,t}$ (`e.g., $137 -> "wuhn huhndrad therdee sevan" = 486` or integer self-lock `137 == envideea`).
|
||||
- Draws horizontal dashed reference lines at the instrument's own `Gen 0` and `Gen 1` entity `AQ` coordinates (`e.g., 113 and 137 for NVDA; 81 for ASML; 193 for ANTHR-PVT`) and guild partner rings (`125, 183, 191, 211, 256, 292`). Whenever $P_{i,t}$ or $|\Delta \text{bps}_{i,t}|$ crosses a ring line, a pulsing **Scope 1 / Scope 2 Lock Marker** is rendered directly on the time series.
|
||||
2. **Middle Pane — Dated Memetic Gematrial Phrase Impulse Series ($M_{c,t}$):**
|
||||
- Plots the daily time series of `333 / 666 / 777` memetic equations and cross-story collision counts harvested by the `00:00 GMT` wire pipeline (`25..71-dossier-news-YYYY-MM-DD.md`), filtered either to the selected ticker's guild (`S1–S6`), its signature coordinate ring $c$, or all global wire clusters.
|
||||
- Highlights exact **Co-Presence Dates** ($C_{i,t} = 1$) where the ticker's entity name or symbol appeared in the day's news wire simultaneously with a quantitative lock.
|
||||
3. **Bottom Pane — 20-Day Volume Ratio ($V_{i,t}/\bar{V}_{20}$) & `M1–M7+` Regime State Strip:**
|
||||
- Renders the 20-day relative volume bar series overlaid with the objective `Scope 3` thermodynamic state gates (`M1` `< 0.45x` stagnation threshold, `M2` `>= 2.5x` or `<= -5.0%` templex surge threshold, `M3` `$1T+` leviathan concentration, and `M7+` two-run nucleation dates `2026-11-28 -> 2026-11-29`).
|
||||
|
||||
### 3.2 Panel 2: `24 Tickers × T Dates` Contingent Lock Spatiotemporal Heatmap
|
||||
- A compact interactive matrix where each row is one of the `24` `S1–S6` instruments and each column is a UTC calendar date $t$.
|
||||
- Cells light up by lock class:
|
||||
- **Gold (`Scope 1`):** Intra-Instrument Self-Lock or Repdigit `37×k` Attractor (`NVDA $137`, `ASML 81 bps`, `LLY $777`).
|
||||
- **Cyan (`Scope 2`):** `S1–S6` Supply-Chain Ring Migration (`TSM $191 == derivativ == lajistiks`, `COIN $292 == sinthetik dayta == asset management`, `CEG $256 == akselerayshan == sovran welth`).
|
||||
- **Violet (`Anchor Revision`):** Dated `--revise-anchor` step transition (`ANTHR-PVT $83 -> $89 [193]`).
|
||||
- **Emerald Ring (`News Co-Presence`):** Instrument co-present in that UTC day's `00:00 GMT` wire dossier.
|
||||
- Clicking any `(Ticker, Date)` cell immediately focuses Panel 1 and Panel 3 on that instrument and timestamp.
|
||||
|
||||
### 3.3 Panel 3: Timestamp Cross-Section Inspector, TradingView Launcher & Dated Memetic Phrase Tape
|
||||
- Selecting any date $t$ on the chart or heatmap displays the exact cross-sectional join for date $t$:
|
||||
1. **Instrument Telemetry Card & Direct TradingView Launch (`Open TradingView Chart ↗`):**
|
||||
- Displays Close USD, $\Delta\%$, $\Delta\text{bps}$, 20d volume ratio, market cap, and all 4 quantitative `AQ` encodings (`close_digit_aq`, `close_spoken_ing_aq`, `scaled_cap_spoken_ing_aq`, `bps_spoken_ing_aq`).
|
||||
- Includes a prominent **`Open TradingView Chart ↗`** action button (also bound to the top toolbar next to the ticker selector, each heatmap row label, and keyboard shortcut `T`) that opens the live interactive TradingView Superchart for the selected instrument in a new browser window/tab (`window.open(tvUrl, "_blank", "noopener,noreferrer")`).
|
||||
2. **Dated Memetic Gematrial Phrase Tape:** Lists the verbatim `333`, `666`, and `777` Ingglish equations (`ing`, `eng`, word-by-word `AQ` sum, and source dossier link `/archive/<NN>-dossier-news-YYYY-MM-DD.md`) harvested on date $t$ that lock onto the ticker's coordinate ring or guild.
|
||||
|
||||
### 3.5 Canonical `S1–S6` Ticker -> TradingView Symbol & URL Resolver (`tradingview_symbol` & `tradingview_url`)
|
||||
- **Zero-Runtime-Widget Offline Invariant Preserved:** Rather than embedding a third-party `https://s3.tradingview.com/tv.js` iframe inside `/quant/index.html` (which would violate the workspace's strict Zero-External-Script / 100% `file://` offline portability rule in `test_offline_urn_namespaces_and_no_external_https_fonts()`), `/quant/` resolves each of the `24` watchlist instruments to its canonical `EXCHANGE:SYMBOL` TradingView Superchart URL (`https://www.tradingview.com/chart/?symbol=<EXCHANGE>%3A<SYMBOL>`) and opens it on user action in a new browser window (`target="_blank" rel="noopener noreferrer"`):
|
||||
|
||||
| Watchlist Symbol | Entity (`Guilds`) | Canonical TradingView Symbol (`tradingview_symbol`) | New-Window Launch URL (`tradingview_url`) |
|
||||
| :--- | :--- | :--- | :--- |
|
||||
| `NVDA`, `ASML`, `MSFT`, `GOOGL`, `META`, `AVGO`, `ARM`, `AMD`, `PLTR`, `COIN`, `CEG` | Nasdaq Tech / AI / Compute (`S1–S6`) | `NASDAQ:NVDA`, `NASDAQ:ASML`, `NASDAQ:MSFT`, `NASDAQ:GOOGL`, `NASDAQ:META`, `NASDAQ:AVGO`, `NASDAQ:ARM`, `NASDAQ:AMD`, `NASDAQ:PLTR`, `NASDAQ:COIN`, `NASDAQ:CEG` | `https://www.tradingview.com/chart/?symbol=NASDAQ%3A<SYM>` |
|
||||
| `TSM`, `ORCL`, `LMT`, `RTX`, `LLY`, `BLK` | NYSE Foundry / Defense / Bio / Capital (`S1, S3, S5, S6`) | `NYSE:TSM`, `NYSE:ORCL`, `NYSE:LMT`, `NYSE:RTX`, `NYSE:LLY`, `NYSE:BLK` | `https://www.tradingview.com/chart/?symbol=NYSE%3A<SYM>` |
|
||||
| `BTC-USD`, `ETH-USD`, `SOL-USD` | 24/7 Crypto Liquidity Rails (`S2, S6`) | `COINBASE:BTCUSD`, `COINBASE:ETHUSD`, `COINBASE:SOLUSD` | `https://www.tradingview.com/chart/?symbol=COINBASE%3A<COIN>USD` |
|
||||
| `HG=F` | Copper Futures (`S3, S2`) | `COMEX:HG1!` | `https://www.tradingview.com/chart/?symbol=COMEX%3AHG1%21` |
|
||||
| `^VIX` | CBOE Volatility Index (`S2`) | `TVC:VIX` | `https://www.tradingview.com/chart/?symbol=TVC%3AVIX` |
|
||||
| `^TNX` | US 10-Year Treasury Yield (`S6, S2`) | `TVC:US10Y` | `https://www.tradingview.com/chart/?symbol=TVC%3AUS10Y` |
|
||||
| `ANTHR-PVT` | Anthropic Pre-IPO Valuation Anchor (`S1, S2`) | `NASDAQ:GOOGL` *(Primary public strategic backer proxy; badge notes Pre-IPO Private Anchor `$89`)* | `https://www.tradingview.com/chart/?symbol=NASDAQ%3AGOOGL` |
|
||||
|
||||
### 3.4 Panel 4: Lead-Lag Cross-Correlation ($\rho(\tau)$) & Portable Time-Series Export (`JSON` / `CSV`)
|
||||
- **Lead-Lag Correlation Bar Chart ($\tau \in \{-5, \dots, +5\}$ days):**
|
||||
Computes the Pearson and Spearman cross-correlation between daily memetic phrase density on coordinate ring $c$ ($M_{c,t}$) and unsigned basis-point volatility ($|\Delta \text{bps}_{i, t+\tau}|$) or volume ratio ($V_{i, t+\tau}$) across lags $\tau = -5 \dots +5$ days, testing whether news-wire gematrial convergence leads, coincides with ($\tau = 0$), or lags market repricing.
|
||||
- **Zero-Backend Client Export & Custom Snapshot Dropzone:**
|
||||
- Export the currently filtered time series as a standard `.csv` file or IPLD-compatible `.json` slice.
|
||||
- Drag-and-drop any historical `financial-aq-harvest-*.json` or custom snapshot file onto the page to overlay and compare trajectories locally in browser memory.
|
||||
|
||||
---
|
||||
|
||||
## 4. Integration into `hyperstitionstudio-core`, `Caddyfile`, and Deployment Verification
|
||||
|
||||
### Phase 1: Lens-Neutral Schema, Pluggable `LENS_REGISTRY` & Time-Series Ledger Compiler (`hyperstitionstud_io.{lenses,quant.timeseries}`)
|
||||
1. Create `/workspace/hyperstitionstudio-core/schemas/v1/quant-timeseries.schema.json` (`$id: "urn:io:hyperstitionstud:schema:v1:quant-timeseries"`) enforcing lens-neutral mathematical field names (`struct_*` and `ts_*`).
|
||||
2. Create `/workspace/hyperstitionstudio-core/src/hyperstitionstud_io/lenses/__init__.py` implementing `LENS_REGISTRY`, `ENABLED_LENSES` (`neutral_math`, `fund_manager`, `corporate_board`, `tierzoo_ecology`, `fantasy_sabermetrics`, `pokedex_scanner`), `apply_lens()`, and `apply_all_lenses()`.
|
||||
3. Implement `/workspace/hyperstitionstudio-core/src/hyperstitionstud_io/quant/timeseries.py` (`build_quant_timeseries_bundle()`), which:
|
||||
- Ingests ONLY periodic sources (`financial-aq-harvest-latest.json`, historical OHLCV/watchlist series, `25..71-dossier-news-YYYY-MM-DD.md`, `news-aq-harvest-*.json`, and dated `quantitative-economic-anchors.json` revisions) while enforcing a programmatic assertion that zero undated/static dossiers (`01-lexicon`, `10–19-ledger`, `20–45`, `65–69`, `encyclopedia`, `proposals`, `podcasts`) enter the time-series arrays.
|
||||
- Computes lens-neutral `timeseries_moments` (`ts_duty_cycle_pct`, `ts_weighted_resonance`, `ts_excess_over_replacement`, `ts_quantile_profile`, `ts_optimal_lag_days`, `ts_regime_splits`) and projects them through `LENS_REGISTRY`.
|
||||
- Emits `/workspace/hyperstitionstudio-core/site/quant/quant-timeseries.json` (with `ipld_dag_json_cidv1`) and `/workspace/hyperstitionstudio-core/site/quant/quant-timeseries-data.js` (`window.HyperstitionStudio.QuantTimeSeries`), guarded by `ReadOnlyIsolationGuard`.
|
||||
- Hook `build_quant_timeseries_bundle()` into `hs-quant-harvest` (`collect_financial_quant_aq.py`) so every `16:30 EST` (`21:30 GMT`) Window A cron run automatically appends the new daily bar to the time-series bundle.
|
||||
|
||||
### Phase 2: Build `/workspace/hyperstitionstudio-core/site/quant/index.html` & `quant-app.js`
|
||||
1. Build the responsive dark-theme workbench at `site/quant/index.html` and `site/quant/quant-app.js` implementing Panels 1–4, the live top-bar **Lens Switcher** (dynamically populated from `ENABLED_LENSES` so disabling any lens requires zero HTML/JS edits), the `Open TradingView Chart ↗` new-window launcher (`window.open(..., "_blank", "noopener,noreferrer")` + keyboard shortcut `T` + per-row heatmap launch icon), keyboard left/right date stepping (`←` / `→`), guild/ticker/mode selectors, `.csv`/`.json` export, and the `"Made with ♥ by Lemurs."` footer.
|
||||
2. Add a direct launch card/button on `/workspace/hyperstitionstudio-core/site/index.html` (`Open Quant Time-Series Workbench (/quant/)`) and cross-links in `/learn/index.html` and `/graph/index.html`.
|
||||
3. Register `site/quant/index.html` and `site/quant/quant-app.js` in `hyperstitionstud_io/version_sync.py`.
|
||||
|
||||
### Phase 3: Wire into `deploy/sync-vps-repos.sh`, `test-first-deployment.sh` & `tests/test_core_suite.py`
|
||||
1. In `deploy/sync-vps-repos.sh`, create the relative route symlink `${LIVE_SUDO} ln -sfn "hyperstitionstudio-core/site/quant" "${LIVE_REPOS}/quant"` (Caddy's root `handle { root * /var/www/hyperstitionstud.io/repos/hyperstitionstudio-core/site }` already serves `/quant/*` automatically on `https://hyperstitionstud.io/quant/`).
|
||||
2. Add `/quant/index.html`, `/quant/quant-app.js`, `/quant/quant-timeseries-data.js`, and `/schemas/v1/quant-timeseries.schema.json` to `deploy/test-first-deployment.sh` and `tests/test_core_suite.py` (including explicit unit tests asserting that 100% of series observations carry a valid `YYYY-MM-DD` UTC timestamp, zero non-periodic dossier sources are present, and `build_quant_timeseries_bundle(enabled_lenses=["neutral_math", "fund_manager"])` passes 100% when `pokedex_scanner`, `tierzoo_ecology`, and `fantasy_sabermetrics` are disabled).
|
||||
Binary file not shown.
@@ -1,175 +0,0 @@
|
||||
# Architecture & Implementation Plan: Periodic Quantitative Financial Telemetry Pipeline as a Source of Contingent Meaning (`v2.0.0`)
|
||||
|
||||
- **Document ID:** `PLAN-QUANTITATIVE-FINANCIAL-TELEMETRY-PIPELINE` (`v2.0.0`)
|
||||
- **Collector Module & CLI Entrypoint:** `hyperstitionstud_io.quant.collector` (`hs-quant-harvest` & `/workspace/ingglish-hyperdope-gematria/ingglish-aq-archive/scripts/collect_financial_quant_aq.py`)
|
||||
- **Latest Harvest Sidecar Output:** `/workspace/ingglish-hyperdope-gematria/financial-aq-harvest-latest.json` (IPLD `dag-json` `0x0129` compatible with embedded `CIDv1` provenance)
|
||||
- **Downstream Zoology Consumer:** `/workspace/technocapital-singularity-zoology/scripts/classify_technocapital_singularity.py --scan-quant-harvest` & `taxonomy/quantitative-economic-anchors.json`
|
||||
- **Glossary & Encyclopedia Isolation Invariant:** Enforced via `ReadOnlyIsolationGuard` (`0` automatic mutations to `taxonomy/glossary-registry.json` or `encyclopedia/encyclopedia-manifest.json`).
|
||||
|
||||
---
|
||||
|
||||
## 1. Theoretical & Methodological Foundation: Quantitative Financial Data as Contingent Meaning
|
||||
|
||||
In the existing `00:00 GMT` wire news pipeline (`collect_news_aq.py`), contingent meaning arises when words co-occurring inside the same dated geopolitical or technological event lock onto identical `Gen 1` Ingglish Alphanumeric Qabbala (`AQ`) coordinates or close `333 / 666 / 777` cross-scale equations.
|
||||
|
||||
Quantitative financial market telemetry—closing prices, intraday drawdowns, market-capitalization milestones, semiconductor book-to-bill ratios, sovereign bond yields (`US10Y`), volatility indices (`VIX`), and crypto liquidity flows—provides a **second, strictly numerical carrier wave of contingent meaning** when governed by three anti-pareidolia scoping rules:
|
||||
|
||||
| Contingent Scope | Mathematical Condition | Concrete Exemplar |
|
||||
| :--- | :--- | :--- |
|
||||
| **Scope 1: Intra-Instrument Self-Lock (`Entity <-> Own Price / Cap / Move`)** | An instrument's own name/ticker (`Gen 0` or `Gen 1`) forms an exact equivalence, cross-gen twin (`G2`), prime-rank lock, or `333/666/777` closure with its own observed price, market cap, or basis-point move (`Q_digit` or `Q_spoken`). | • `Nvidia` (`envideea = 137 [33rd PRIME]`) closing at `$137` (`"wuhn huhndrad thertee sevan" = 333` — exact repdigit attractor!).<br/>• `ASML` (`asml = 81 = 3⁴ [Iso]`) moving `81` bps or `$810` (`8+1+0 = 9 = 3²`). |
|
||||
| **Scope 2: Causal `S1–S6` Supply-Chain Ring Migration (`Ring(Q_old) -> Ring(Q_new)`)** | A repriced figure (`Q_old -> Q_new`) for an `S1–S6` entity migrates into a signature coordinate of its own guild or causal supply-chain partner (`292, 260, 256, 237, 222, 215, 211, 197, 193, 191, 189, 183, 166, 163, 160, 153, 145, 137, 136, 135, 133, 129, 128, 125, 96, 95, 91, 81, 71`). | • `Lazarus Heist` revised `$6B` (`siks bilyan = 211 [47th PRIME] == wor masheen == koper waier`) -> `$7B` (`sevan bilyan = 223 [48th PRIME] == maynstreem`).<br/>• `Anthropic` share/valuation anchor `$83` (`aytee three = 202`) -> `$89` (`aytee nain = 193 [44th PRIME] == anthropik == flash krash == Dario Amodei [Gen 0]`). |
|
||||
| **Scope 3: Objective Numerical State-Gate Activation (`M1–M7+`)** | Unlike prose headlines where thermodynamic state is inferred from verbs, financial telemetry triggers `M1–M6` (and `M7+` nucleation) via objective quantitative regime thresholds. | • **`M1` (Entropic / Halted / Stagnant):** Exchange halt or volume `< 0.40x` 20d avg + flatline (`137: hawlts == inersha == envideea`).<br/>• **`M2` (Flash-Crash / Templex Surge):** Drawdown `<= -5.0%` or `VIX >= 25` or volume `>= 2.5x` (`193: flash krash == anthropik`, `256: akselerayshan == hai-freekwansee`).<br/>• **`M3` (Leviathan / Trillion-Cap Monopoly):** Market cap crossing `$1T / $2T / $3T / $4T` (`163: manopalee == masheenz`, `256: sovran welth`). |
|
||||
|
||||
---
|
||||
|
||||
## 2. Canonical `S1–S6` Technocapital Financial Watchlist (`24` Core Instruments)
|
||||
|
||||
To prevent arbitrary ticker fishing, periodic ingestion is scoped to a canonical, version-controlled watchlist of **24 technocapital instruments** mapped directly to Singularity Classes `S1` through `S6`:
|
||||
|
||||
| Guild / Class | Tracked Symbols & Economic Metrics | Canonical Entity & Chokepoint `AQ` Anchors |
|
||||
| :--- | :--- | :--- |
|
||||
| **`S1` — Autoregressive AI & Hyperscale Compute** | `NVDA`, `MSFT`, `GOOGL`, `META`, `ORCL` + Private/Pre-IPO Valuation Anchors (`Anthropic`, `OpenAI`, `xAI`) | `envideea = 137 [PRIME]`, `anthropik = 193 [PRIME]`, `klawd = 96`, `sinthetik dayta = 292`, `tenser = 135`, `wayts = 133` |
|
||||
| **`S2` — High-Frequency Liquidity, Volatility & Crypto Rails** | `^VIX` (CBOE Volatility), `BTC-USD`, `ETH-USD`, `SOL-USD`, `CME`, `ICE`, `NDAQ`, `COIN` | `flash krash = 193`, `likwidatee = 189`, `tempaleks = 183`, `order buk = 166`, `kapatal = 125 [5³, Iso]`, `binans = 113 [PRIME]` |
|
||||
| **`S3` — Silicon-Photonic War Machine & Lithographic Supply Chain** | `ASML`, `TSM` (TSMC), `AVGO`, `ARM`, `AMD`, `PLTR`, `LMT`, `RTX`, `HG=F` (Copper Futures) | `asml = 81 [3⁴, Iso]`, `tsmc = 91 [Iso]`, `gpu = 71 [PRIME, Iso]`, `blakwel = 129`, `lathografee = 197 [PRIME]`, `koper waier = 211 [PRIME]` |
|
||||
| **`S4` & `S5` — Energy Grid, Nuclear Carrier-Wave & Biotech BwO** | `CEG`, `VST`, `URA` (Uranium/Nuclear Grid), `LLY`, `VKTX` | `faier = 84 == bwoh`, `signal = 116 [Iso] == kayos`, `flesh = 95 == lejer == faiber` |
|
||||
| **`S6` — Sovereign Yields, Reserve Currency & Mega-Cap Capture** | `^TNX` (`US10Y` Yield), `^IRX` (`US02Y/3M`), `DX-Y.NYB` (`DXY` Dollar Index), `SPY`, `QQQ`, `SOXX`, `BLK` (BlackRock) | `asset management [Gen 0] = 292`, `sovran welth = 256 [2⁸]`, `kansorsheeam = 237 [Iso]`, `manopalee = 163 [PRIME]`, `aperatas = 153`, `charter = 136 [Iso]`, `kapcher = 125` |
|
||||
|
||||
---
|
||||
|
||||
## 3. Periodic Ingestion Schedule & Multi-Source Collector Architecture
|
||||
|
||||
```text
|
||||
+---------------------------------------------------------------------------------------------------+
|
||||
| PERIODIC CRON / OPERATOR TRIGGERS (Pinned strictly to os.environ["TZ"] = "UTC") |
|
||||
| • Window A (21:30 UTC / 16:30 EST Mon-Fri): `--mode us-closing-bell` (NYSE/Nasdaq Official Close)|
|
||||
| • Window B (00:00 UTC Daily): `--mode utc-rollover` (Crypto/FX/Yields + News Join) |
|
||||
+---------------------------------------------------+-----------------------------------------------+
|
||||
|
|
||||
v
|
||||
+---------------------------------------------------------------------------------------------------+
|
||||
| Stage 1: Multi-Source Keyless Financial Feed Harvest (`collect_financial_quant_aq.py`) |
|
||||
| 1. Yahoo Finance v8 Chart JSON API (`query1.finance.yahoo.com/v8/finance/chart/<SYM>`) |
|
||||
| 2. Stooq Daily OHLCV CSV Fallback (`stooq.com/q/d/l/?s=<sym>&i=d`) |
|
||||
| 3. CoinGecko / Kraken Public 24h Crypto & Liquidity JSON API |
|
||||
| 4. Offline Deterministic Snapshot Replay (`--from-snapshot <file.json>` for air-gapped CI tests) |
|
||||
+---------------------------------------------------+-----------------------------------------------+
|
||||
|
|
||||
v
|
||||
+---------------------------------------------------------------------------------------------------+
|
||||
| Stage 2: Four-Mode Quantitative Normalization & Phonemic Translation (`hyperstitionstud_io`) |
|
||||
| For each instrument metric (Close Price, Intraday Low/High, Market Cap, % / bps Change): |
|
||||
| • Mode 1 (`q_digit`): Literal Base-36 digit sum (`$137` -> `1+3+7 = 11 [5th PRIME]`) |
|
||||
| • Mode 2 (`q_spoken_int`): Integer spoken words (`137` -> `wuhn huhndrad thertee sevan=333`) |
|
||||
| • Mode 3 (`q_spoken_scaled`): Scaled notional words (`$3.36T` -> `three point three siks...`) |
|
||||
| • Mode 4 (`q_delta_bps`): Spoken basis-point / percent move (`420 bps` -> `for huhndrad...`)|
|
||||
+---------------------------------------------------+-----------------------------------------------+
|
||||
|
|
||||
v
|
||||
+---------------------------------------------------------------------------------------------------+
|
||||
| Stage 3: Contingent Meaning & Regime Filter (Zero Global Dictionary Fishing) |
|
||||
| • Check 1: Intra-Instrument Self-Locks (`AQ(Entity) == AQ(Metric)` or `Entity + Metric = 333`) |
|
||||
| • Check 2: `S1-S6` Signature Ring Collisions & `--revise-anchor` (`Q_old -> Q_new` Migration) |
|
||||
| • Check 3: Objective `M1-M6` Thermodynamic State Gate (`VIX`, Drawdown %, Volume Ratio, Halts) |
|
||||
| • Check 4: Cross-Join with same-day `news-aq-harvest-latest.json` headlines (`00:00 UTC` window) |
|
||||
+---------------------------------------------------+-----------------------------------------------+
|
||||
|
|
||||
v
|
||||
+---------------------------------------------------------------------------------------------------+
|
||||
| Stage 4: Sidecar Emission & Optional Dossier Synthesis (`ReadOnlyIsolationGuard` Enforced) |
|
||||
| • Writes `/workspace/ingglish-hyperdope-gematria/financial-aq-harvest-latest.json` (with CIDv1) |
|
||||
| • Appends verified `333/666/777` equations to `7X-dossier-quant-YYYY-MM-DD.md` when requested |
|
||||
+---------------------------------------------------------------------------------------------------+
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 4. Schema of `financial-aq-harvest-latest.json` (`urn:io:hyperstitionstud:schema:v1:financial-aq-harvest`)
|
||||
|
||||
```json
|
||||
{
|
||||
"$schema": "./schemas/v1/financial-aq-harvest.schema.json",
|
||||
"$id": "urn:io:hyperstitionstud:schema:v1:financial-aq-harvest",
|
||||
"version": "2.0.0",
|
||||
"target_date_utc": "2026-11-30",
|
||||
"harvest_mode": "us-closing-bell",
|
||||
"regime_summary": {
|
||||
"vix_close": 14.2,
|
||||
"us10y_yield_pct": 4.18,
|
||||
"active_memetic_states": ["M3_LEVIATHAN_CONCENTRATION"],
|
||||
"emergent_m7_quant_triggers": []
|
||||
},
|
||||
"instruments": [
|
||||
{
|
||||
"symbol": "NVDA",
|
||||
"entity_eng": "Nvidia",
|
||||
"entity_ing": "envideea",
|
||||
"entity_eng_aq": 113,
|
||||
"entity_ing_aq": 137,
|
||||
"guilds": ["S1", "S3"],
|
||||
"metrics": {
|
||||
"close_usd": 137.0,
|
||||
"change_pct": -1.45,
|
||||
"change_bps": -145,
|
||||
"market_cap_str": "$3.35T"
|
||||
},
|
||||
"quant_encodings": {
|
||||
"close_digit_aq": 11,
|
||||
"close_spoken_eng": "one hundred thirty seven",
|
||||
"close_spoken_ing": "wuhn huhndrad thertee sevan",
|
||||
"close_spoken_ing_aq": 333,
|
||||
"bps_digit_aq": 10,
|
||||
"bps_spoken_ing": "wuhn huhndrad fortee faiv",
|
||||
"bps_spoken_ing_aq": 276
|
||||
},
|
||||
"contingent_locks": [
|
||||
{
|
||||
"scope": "INTRA_INSTRUMENT_REPDIGIT_ATTRACTOR",
|
||||
"description": "NVDA integer close ($137 == envideea [137, 33rd PRIME]) speaks aloud in Gen 1 Ingglish as 'wuhn huhndrad thertee sevan' = 333 [3 x 111 REPDIGIT].",
|
||||
"verified_equations": [
|
||||
"wuhn huhndrad thertee sevan = 333",
|
||||
"envideea (137) + fohldz (125) + gpu (71) = 333"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"anchor_revisions_detected": [],
|
||||
"isolation_receipt": {
|
||||
"glossary_registry_sha256": "7564ef40fb3e0e18d1d8547522db431b6a369c40139713b573df6e58b972d43d",
|
||||
"encyclopedia_manifest_sha256": "0d7ce833bb0aa0eea069bf764b2e3b0b36ac2631821c42f3d6bcb897335f8a7d",
|
||||
"unchanged": true
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 5. Chained Pipeline Integration with Daily `00:00 GMT` News Wire & CI
|
||||
|
||||
When scheduled via `cronjob_manage` (or run manually by the operator), the quantitative financial pipeline chains cleanly alongside the existing `00:00 GMT` wire news pipeline without interfering with it:
|
||||
|
||||
1. **`21:30 GMT` (Mon–Fri US Equity Close):**
|
||||
`hs-quant-harvest --mode us-closing-bell` updates `financial-aq-harvest-latest.json` and evaluates `--revise-anchor` diffs across `taxonomy/quantitative-economic-anchors.json`.
|
||||
2. **`00:00 GMT` (Daily Global & News Rollover):**
|
||||
`collect_news_aq.py` harvests Wikipedia `Portal:Current_events`, BBC, and AP News into `news-aq-harvest-latest.json`, and `hs-quant-harvest --mode utc-rollover --join-news /workspace/ingglish-hyperdope-gematria/news-aq-harvest-latest.json` cross-checks whether any entity appearing in the day's breaking news headlines (`Anthropic`, `Nvidia`, `ASML`, `TSMC`, `Binance`, `BlackRock`) simultaneously triggered a Scope 1–3 quantitative financial lock!
|
||||
3. **`00:10 GMT` (4-Gate CI Provisioning):**
|
||||
Any newly synthesized and verified `333 / 666 / 777` dossier (`7X-dossier-*.md`) in `ingglish-aq-archive/` is automatically ingested by `ci_provision_ingglish.py --tier 2` (`100.0%` keep rate, `0` drops).
|
||||
|
||||
---
|
||||
|
||||
## 6. Four-Phase Implementation Sequence (`Phases 1–4`)
|
||||
|
||||
### Phase 1: Add `financial-aq-harvest.schema.json` & `hyperstitionstud_io.quant` Core Module
|
||||
1. Create `/workspace/hyperstitionstudio-core/schemas/v1/financial-aq-harvest.schema.json` (`$id: "urn:io:hyperstitionstud:schema:v1:financial-aq-harvest"`).
|
||||
2. Implement `/workspace/hyperstitionstudio-core/src/hyperstitionstud_io/quant/__init__.py` & `collector.py` containing the 24-instrument `S1–S6` watchlist, the 4-mode quantitative encoder (`q_digit`, `q_spoken_int`, `q_spoken_scaled`, `q_delta_bps`), the Scope 1–3 contingent meaning detector, and the `--join-news` headline cross-matcher.
|
||||
|
||||
### Phase 2: Implement Multi-Source Fetchers + Offline Snapshot Replay & Register `hs-quant-harvest`
|
||||
1. Implement keyless HTTP fetchers (Yahoo Finance v8 JSON + Stooq CSV + CoinGecko public JSON) with a 10-second timeout and deterministic offline snapshot fallback (`--from-snapshot`).
|
||||
2. Add `hs-quant-harvest = "hyperstitionstud_io.quant.collector:main"` to `pyproject.toml` and create the companion wrapper script `/workspace/ingglish-hyperdope-gematria/ingglish-aq-archive/scripts/collect_financial_quant_aq.py`.
|
||||
|
||||
### Phase 3: Wire `--scan-quant-harvest` into `classify_technocapital_singularity.py` & MCP Server
|
||||
1. Add `--scan-quant-harvest` to `/workspace/technocapital-singularity-zoology/scripts/classify_technocapital_singularity.py` so Zoology dossiers and `M7+` two-run nucleation can ingest `financial-aq-harvest-latest.json` alongside `news-aq-harvest-latest.json`.
|
||||
2. Expose `hs_scan_financial_quant_harvest` in `hyperstitionstud_io.mcp` (when the MCP server is built).
|
||||
|
||||
### Phase 4: Verification Suite & Cron Scheduling
|
||||
1. Add unit and offline-snapshot tests in `tests/test_core_suite.py` verifying Scope 1–3 contingent lock detection, `--revise-anchor` 3-path counter-substitutions, and `ReadOnlyIsolationGuard` (`0` mutations to `glossary-registry.json` and `encyclopedia-manifest.json`).
|
||||
Binary file not shown.
@@ -1,246 +0,0 @@
|
||||
# Plan: Lightweight Standalone SQLite + FTS5 Metadata & Telemetry Database (`metadata.db`) Engine (`v2.0.18`)
|
||||
|
||||
- **Document ID:** `PLAN-SQLITE-REST-API-METADATA-DB` (`v2.0.18`)
|
||||
- **Roadmap Status:** **ACTIVE / READY** (Core `hyperstitionstud_io.db.sqlite_meta` + `hs-db-build` CLI + automatic population of the SQLite metadata/telemetry database on every `/api/v1/*` REST and `/mcp` JSON-RPC call)
|
||||
- **Target Modules:**
|
||||
- `/workspace/hyperstitionstudio-core/src/hyperstitionstud_io/db/__init__.py` & `sqlite_meta.py` (`hs-db-build` CLI & SQLite/FTS5 catalog + telemetry engine)
|
||||
- `/workspace/hyperstitionstudio-core/src/hyperstitionstud_io/mcp/rest.py` (`dispatch_rest_v1` telemetry hook populating SQLite on every `/api/v1/*` call)
|
||||
- `/workspace/hyperstitionstudio-core/src/hyperstitionstud_io/mcp/server.py` (`dispatch_jsonrpc` telemetry hook populating SQLite on every `/mcp` JSON-RPC call)
|
||||
- `/workspace/hyperstitionstudio-core/deploy/logrotate.d/hyperstition-sqlite-meta` (Quiescent `logrotate.d` truncation at configurable default `100M` / `100 MB` limit)
|
||||
- `/workspace/hyperstitionstudio-core/pyproject.toml` (`hs-db-build` entry point)
|
||||
- `/workspace/hyperstitionstudio-core/tests/test_core_suite.py` (Unit verification that `/api/v1/*` and `/mcp` calls populate the SQLite metadata/telemetry DB and `logrotate.d` quiescently truncates it)
|
||||
- **Explicitly Deferred Scope (Moved to Long-Term Inactive Plan `PLAN-SQLITE-META-REST-ENDPOINTS-ETAG-AND-VPS-SYNC`):**
|
||||
Exposing HTTP `/api/v1/meta/{manifests,search,coordinate/{aq_int},timeseries/query,telemetry}`, HTTP `ETag` / `If-None-Match` (`304 Not Modified`) middleware, MCP tool `hs_query_sqlite_catalog`, and wiring `hs-db-build` into `deploy/sync-vps-repos.sh` remain **inactive** in `/workspace/encyclopedia-knowledge-graph/docs/PLAN-SQLITE-META-REST-ENDPOINTS-ETAG-AND-VPS-SYNC.{md,pdf}` alongside all other inactive plans.
|
||||
- **Zero External Dependencies:** Built **100% on Python's standard-library `sqlite3` module** (`0` third-party ORMs, `0` external DB daemons).
|
||||
- **Core Architectural Separation (Immutable Catalog Index vs. Ephemeral Runtime Telemetry):**
|
||||
To preserve the strict `ReadOnlyIsolationGuard` guarantees while enabling both sub-millisecond indexed search and local telemetry rollups in Python, the SQLite architecture splits cleanly into **two lightweight SQLite database files** (connected simultaneously via `ATTACH DATABASE` or dedicated connections):
|
||||
1. **Catalog Metadata & FTS5 Index DB (`hyperstition-catalog.db`, Read-Only at Runtime, `mode=ro`):**
|
||||
Compiled deterministically via `hs-db-build` (`python3 -m hyperstitionstud_io.db.sqlite_meta --build`). Indexes all `282` glossary entries, `190` bilingual lexical specimens, `388` Knowledge Graph nodes, `1,282` edges, `71` archive dossiers, `1,850+` verified `333/666/777` equations, `24 × 30` periodic time-series bars, and all `CIDv1` registry digests with **SQLite FTS5 (`BM25`) full-text search** and B-tree integer indices on `ing_aq`, `eng_aq`, `target_sum`, `symbol`, and `date_utc`.
|
||||
2. **Runtime Telemetry & Audit DB (`api-telemetry.db`, WAL Mode):**
|
||||
Lightweight, append-only SQLite database (`PRAGMA journal_mode=WAL; PRAGMA synchronous=NORMAL;`) that records privacy-preserving per-operation call counts, status tallies, execution latency ($\text{p50 / p95 / p99}$ microseconds), and `ReadOnlyIsolationGuard` audit receipts—without storing any client IP addresses, cookies, or PII.
|
||||
|
||||
---
|
||||
|
||||
## 1. Why a Standalone SQLite + FTS5 Metadata DB Transforms Local Corpus Querying & Observability
|
||||
|
||||
Currently, querying across `glossary-registry.json`, `encyclopedia-graph.json`, `quant-timeseries.json`, and the `71` Markdown dossiers requires reading and parsing multiple `.json` and `.md` files (`~12–45 ms` of file I/O and regex parsing per call).
|
||||
|
||||
By introducing the dual SQLite metadata layer (`hyperstitionstud_io.db.sqlite_meta`):
|
||||
|
||||
| Capability | Current File-Scan / Regex Behavior | With Standalone SQLite + FTS5 (`hyperstitionstud_io.db.sqlite_meta`) | Improvement |
|
||||
| :--- | :--- | :--- | :--- |
|
||||
| **1. Sub-Millisecond Indexed Lookups (`B-Tree`)** | Parses `encyclopedia-graph.json` (`1.4 MB`), `glossary-registry.json`, or `quant-timeseries.json` on each call (`12–28 ms`). | Point & range queries against B-tree indices (`idx_specimens_ing_aq`, `idx_bars_sym_date`, `idx_nodes_id`) execute in **`80–250 microseconds` (`< 0.25 ms`)**. | **`50x–120x` faster** |
|
||||
| **2. Full-Text Search Across All 71 Dossiers & 282 Glossary Terms (`FTS5 BM25`)** | Linear `glob("*.md")` + Python substring/regex scan across 71 files (`25–45 ms`), no relevance ranking. | Single `SELECT ... FROM fts_catalog WHERE fts_catalog MATCH ? ORDER BY bm25(fts_catalog)` query with snippet highlighting and prefix matching in **`< 0.6 ms`**. | **Ranked `BM25` + `60x` faster** |
|
||||
| **3. Multi-Table Relational Joins in One Query (`SQL`)** | Requires multiple separate Python passes to join a ticker (`NVDA`), its `AQ` coordinate (`137`), its Knowledge Graph neighbors, and its dated `333/666/777` archive equations. | Single indexed SQL join across `quant_timeseries_bars`, `kg_nodes`, `kg_edges`, and `archive_equations` via `query_coordinate_join(137)`. | **1 query instead of 4 passes** |
|
||||
| **4. Cryptographic Provenance & `CIDv1` Registry Manifest Table** | Re-computes SHA-256 and `dag-json` `CIDv1` digests over raw files on demand. | `registry_manifests` table stores pre-computed `dag_json_cidv1` (`baguqeera...`), `raw_sha256`, and `record_count` per compiled registry. | **Instant `< 0.1 ms` digest lookup** |
|
||||
| **5. Zero-PII Telemetry & Latency Rollups (`api-telemetry.db`)** | Stateless stdout only; zero structured persistence of query latency or `ReadOnlyIsolationGuard` verification counts. | Append-only WAL table `api_endpoint_rollups` and 200-event ring buffer `api_audit_ringbuffer` track call counts, status tallies, mean/max latency ($\mu\text{s}$), and `ReadOnlyIsolationGuard` pass counts in `<= 64 KB`. | **Deterministic local audit rollups** |
|
||||
|
||||
---
|
||||
|
||||
## 2. Relational & FTS5 Schema Design (`hyperstition-catalog.db` & `api-telemetry.db`)
|
||||
|
||||
### 2.1 Read-Only Catalog & Search Database (`hyperstition-catalog.db`)
|
||||
|
||||
```sql
|
||||
-- 1. Cryptographic Registry & Schema Provenance Manifests
|
||||
CREATE TABLE registry_manifests (
|
||||
registry_slug TEXT PRIMARY KEY, -- e.g. 'glossary-registry', 'encyclopedia-graph', 'quant-timeseries'
|
||||
source_path TEXT NOT NULL,
|
||||
schema_urn TEXT NOT NULL,
|
||||
version TEXT NOT NULL,
|
||||
record_count INTEGER NOT NULL,
|
||||
raw_sha256 TEXT NOT NULL,
|
||||
dag_json_cidv1 TEXT NOT NULL, -- 'baguqeera...'
|
||||
byte_size INTEGER NOT NULL,
|
||||
compiled_at_utc TEXT NOT NULL
|
||||
) WITHOUT ROWID;
|
||||
|
||||
-- 2. Canonical Glossary & Bilingual Vocabulary Specimens (282 Glossary + 190 Bilingual Specimens)
|
||||
CREATE TABLE glossary_entries (
|
||||
entry_id INTEGER PRIMARY KEY,
|
||||
term TEXT NOT NULL UNIQUE,
|
||||
category TEXT NOT NULL,
|
||||
section_id TEXT NOT NULL,
|
||||
eng_aq INTEGER NOT NULL,
|
||||
ing_term TEXT NOT NULL,
|
||||
ing_aq INTEGER NOT NULL,
|
||||
delta INTEGER NOT NULL,
|
||||
is_isometric INTEGER NOT NULL, -- 0 or 1
|
||||
is_twin_prime INTEGER NOT NULL, -- 0 or 1
|
||||
division_id TEXT,
|
||||
volume_pdf TEXT,
|
||||
definition TEXT NOT NULL
|
||||
);
|
||||
CREATE INDEX idx_glossary_ing_aq ON glossary_entries(ing_aq);
|
||||
CREATE INDEX idx_glossary_eng_aq ON glossary_entries(eng_aq);
|
||||
CREATE INDEX idx_glossary_cat ON glossary_entries(category);
|
||||
|
||||
-- 3. Knowledge Graph Nodes (388 Nodes) & Deduplicated Edges (1,282 Edges)
|
||||
CREATE TABLE kg_nodes (
|
||||
node_id TEXT PRIMARY KEY, -- e.g. 'aq:137', 'build:S1', 'spec:envideea'
|
||||
node_urn TEXT NOT NULL UNIQUE,
|
||||
node_type TEXT NOT NULL,
|
||||
label TEXT NOT NULL,
|
||||
aq_value INTEGER,
|
||||
degree INTEGER NOT NULL,
|
||||
is_flex_pivot INTEGER NOT NULL DEFAULT 0,
|
||||
guild_id TEXT,
|
||||
metadata_json TEXT NOT NULL
|
||||
) WITHOUT ROWID;
|
||||
CREATE INDEX idx_kg_nodes_aq ON kg_nodes(aq_value);
|
||||
CREATE INDEX idx_kg_nodes_type ON kg_nodes(node_type);
|
||||
|
||||
CREATE TABLE kg_edges (
|
||||
source_id TEXT NOT NULL,
|
||||
target_id TEXT NOT NULL,
|
||||
relation TEXT NOT NULL,
|
||||
weight REAL NOT NULL DEFAULT 1.0,
|
||||
PRIMARY KEY (source_id, target_id, relation)
|
||||
) WITHOUT ROWID;
|
||||
CREATE INDEX idx_kg_edges_target ON kg_edges(target_id);
|
||||
CREATE INDEX idx_kg_edges_rel ON kg_edges(relation);
|
||||
|
||||
-- 4. Archive & Zoology Dossiers (01..71) & Verified Multi-Scale Equations (333 / 666 / 777)
|
||||
CREATE TABLE dossiers (
|
||||
dossier_number INTEGER PRIMARY KEY, -- 1..71
|
||||
file_name TEXT NOT NULL UNIQUE,
|
||||
title TEXT NOT NULL,
|
||||
is_periodic_news INTEGER NOT NULL, -- 1 for *-dossier-news-YYYY-MM-DD.md, 0 for static dossiers
|
||||
date_utc TEXT, -- 'YYYY-MM-DD' if periodic news/quant dossier, else NULL
|
||||
equation_count INTEGER NOT NULL,
|
||||
sha256 TEXT NOT NULL
|
||||
);
|
||||
CREATE INDEX idx_dossiers_date ON dossiers(date_utc) WHERE date_utc IS NOT NULL;
|
||||
|
||||
CREATE TABLE archive_equations (
|
||||
eq_id TEXT PRIMARY KEY, -- Content-addressed key: e.g. 'eq_333_envideea_0042'
|
||||
dossier_number INTEGER NOT NULL,
|
||||
date_utc TEXT, -- Populated if from dated periodic dossier
|
||||
target_sum INTEGER NOT NULL, -- 333, 666, 777, etc.
|
||||
ing_phrase TEXT NOT NULL,
|
||||
eng_gloss TEXT NOT NULL,
|
||||
breakdown TEXT NOT NULL,
|
||||
word_count INTEGER NOT NULL,
|
||||
FOREIGN KEY (dossier_number) REFERENCES dossiers(dossier_number)
|
||||
) WITHOUT ROWID;
|
||||
CREATE INDEX idx_eq_target ON archive_equations(target_sum);
|
||||
CREATE INDEX idx_eq_date ON archive_equations(date_utc) WHERE date_utc IS NOT NULL;
|
||||
|
||||
-- 5. Periodic Quantitative Financial Time-Series Bars (24 Tickers x T UTC Days — Strictly Periodic Only)
|
||||
CREATE TABLE quant_timeseries_bars (
|
||||
symbol TEXT NOT NULL,
|
||||
date_utc TEXT NOT NULL,
|
||||
entity_eng TEXT NOT NULL,
|
||||
entity_ing TEXT NOT NULL,
|
||||
entity_ing_aq INTEGER NOT NULL,
|
||||
guilds_csv TEXT NOT NULL,
|
||||
tradingview_symbol TEXT NOT NULL,
|
||||
tradingview_url TEXT NOT NULL,
|
||||
close_usd REAL NOT NULL,
|
||||
change_pct REAL NOT NULL,
|
||||
change_bps INTEGER NOT NULL,
|
||||
volume_ratio_20d REAL NOT NULL,
|
||||
market_cap_str TEXT NOT NULL,
|
||||
close_digit_aq INTEGER NOT NULL,
|
||||
close_spoken_ing TEXT NOT NULL,
|
||||
close_spoken_ing_aq INTEGER NOT NULL,
|
||||
scaled_cap_spoken_ing_aq INTEGER NOT NULL,
|
||||
bps_spoken_ing_aq INTEGER NOT NULL,
|
||||
co_present_in_news_wire INTEGER NOT NULL,
|
||||
contingent_points REAL NOT NULL,
|
||||
locks_json TEXT NOT NULL,
|
||||
PRIMARY KEY (symbol, date_utc)
|
||||
) WITHOUT ROWID;
|
||||
CREATE INDEX idx_qbars_date ON quant_timeseries_bars(date_utc);
|
||||
CREATE INDEX idx_qbars_close_aq ON quant_timeseries_bars(close_spoken_ing_aq);
|
||||
CREATE INDEX idx_qbars_ent_aq ON quant_timeseries_bars(entity_ing_aq);
|
||||
|
||||
-- 6. Unified FTS5 Full-Text Search Virtual Table (BM25 Ranked Search Across Glossary, Graph & Equations)
|
||||
CREATE VIRTUAL TABLE fts_catalog USING fts5(
|
||||
doc_type, -- 'glossary' | 'equation' | 'node' | 'dossier' | 'instrument'
|
||||
doc_id, -- Primary key / URI
|
||||
title_or_ing, -- Headword or Ingglish phrase
|
||||
gloss_or_body, -- English gloss, definition, or breakdown
|
||||
aq_coord, -- Integer AQ coordinate(s) as text tokens
|
||||
guild_tags, -- S1..S6, M1..M7+
|
||||
tokenize = 'unicode61 remove_diacritics 2'
|
||||
);
|
||||
```
|
||||
|
||||
### 2.2 Runtime Telemetry & Audit Database (`api-telemetry.db` — WAL Mode, Zero PII)
|
||||
|
||||
```sql
|
||||
PRAGMA journal_mode = WAL;
|
||||
PRAGMA synchronous = NORMAL;
|
||||
|
||||
-- 1. Per-Operation Aggregated Request & Latency Rollups (Bounded to <= 100 rows total!)
|
||||
CREATE TABLE IF NOT EXISTS api_endpoint_rollups (
|
||||
protocol TEXT NOT NULL, -- 'python_api' | 'cli' | 'rest_v1' | 'mcp_jsonrpc'
|
||||
method TEXT NOT NULL, -- 'CALL' | 'GET' | 'POST'
|
||||
endpoint_pattern TEXT NOT NULL, -- e.g. 'sqlite_meta:query_coordinate_join'
|
||||
total_requests INTEGER NOT NULL DEFAULT 0,
|
||||
status_2xx INTEGER NOT NULL DEFAULT 0,
|
||||
status_304 INTEGER NOT NULL DEFAULT 0,
|
||||
status_4xx INTEGER NOT NULL DEFAULT 0,
|
||||
status_5xx INTEGER NOT NULL DEFAULT 0,
|
||||
total_latency_us INTEGER NOT NULL DEFAULT 0,
|
||||
max_latency_us INTEGER NOT NULL DEFAULT 0,
|
||||
last_called_utc TEXT NOT NULL,
|
||||
PRIMARY KEY (protocol, method, endpoint_pattern)
|
||||
) WITHOUT ROWID;
|
||||
|
||||
-- 2. Ring-Buffer of Last 200 Isolation & Harvest Audit Events (Auto-Pruned via Trigger)
|
||||
CREATE TABLE IF NOT EXISTS api_audit_ringbuffer (
|
||||
event_id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
timestamp_utc TEXT NOT NULL,
|
||||
endpoint TEXT NOT NULL,
|
||||
status_code INTEGER NOT NULL,
|
||||
latency_us INTEGER NOT NULL,
|
||||
isolation_ok INTEGER NOT NULL -- 1 = ReadOnlyIsolationGuard verified
|
||||
);
|
||||
```
|
||||
*(By aggregating telemetry by `(protocol, method, endpoint_pattern)` and capping `api_audit_ringbuffer` at the most recent `200` rows, `api-telemetry.db` never grows past `~64 KB` on disk).*
|
||||
|
||||
---
|
||||
|
||||
## 3. Python Query & CLI Surface (`hyperstitionstud_io.db.sqlite_meta` & `hs-db-build`)
|
||||
|
||||
`hyperstitionstud_io.db.sqlite_meta` exposes a clean, self-contained Python API and CLI (`hs-db-build`) operating strictly over `hyperstition-catalog.db` (`mode=ro` on query) and `api-telemetry.db`:
|
||||
|
||||
| Python Function / CLI Flag | Arguments | What It Queries or Builds in SQLite (`< 1 ms`) |
|
||||
| :--- | :--- | :--- |
|
||||
| `build_catalog_sqlite_db(db_path=None)` / `hs-db-build --build` | `db_path: Path \| None` | Compiles `registry_manifests`, `glossary_entries`, `kg_nodes`, `kg_edges`, `dossiers`, `archive_equations`, `quant_timeseries_bars`, and `fts_catalog` while verifying source registries remain untouched under `ReadOnlyIsolationGuard`, then runs `PRAGMA optimize; VACUUM;`. |
|
||||
| `query_registry_manifests(db_path=None, registry=None)` / `hs-db-build --manifests` | `registry: str \| None` | Queries `registry_manifests` for all compiled schemas/registries, their record counts, `raw_sha256`, and `dag_json_cidv1`. |
|
||||
| `query_fts_catalog(query, doc_type="all", limit=25, db_path=None)` / `hs-db-build --search <q>` | `query: str`, `doc_type: str`, `limit: int` | Executes 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`). |
|
||||
| `query_coordinate_join(aq_int, db_path=None)` / `hs-db-build --coordinate <N>` | `aq_int: int` (`1..999`, e.g. `137` or `125`) | **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`. |
|
||||
| `query_timeseries_bars(symbol=None, start_date=None, end_date=None, min_points=0.0, db_path=None)` / `hs-db-build --timeseries` | `symbol`, `start_date`, `end_date`, `min_points` | Executes indexed range queries over `quant_timeseries_bars` (`WHERE symbol = ? AND date_utc BETWEEN ? AND ? AND contingent_points >= ?`). |
|
||||
| `record_api_telemetry(...)` & `get_api_telemetry_summary(telemetry_db_path=None)` / `hs-db-build --telemetry` | `protocol`, `method`, `endpoint_pattern`, `status_code`, `latency_us`, `isolation_ok` | Writes/reads `api_endpoint_rollups` and the latest 25 rows of `api_audit_ringbuffer` in `api-telemetry.db` (`<= 200` ring-buffer cap). |
|
||||
|
||||
---
|
||||
|
||||
## 4. Three-Phase Implementation Roadmap (`Phases 1–3`)
|
||||
|
||||
### Phase 1: Implement `hyperstitionstud_io.db.sqlite_meta` & `hs-db-build` CLI
|
||||
1. Create `/workspace/hyperstitionstudio-core/src/hyperstitionstud_io/db/__init__.py` and `sqlite_meta.py` implementing:
|
||||
- `build_catalog_sqlite_db(db_path)` & `ensure_catalog_sqlite_db(db_path)` (compiles `registry_manifests`, `glossary_entries`, `kg_nodes`, `kg_edges`, `dossiers`, `archive_equations`, `quant_timeseries_bars`, and the `fts_catalog` FTS5 index while verifying source repositories are never mutated, then runs `PRAGMA optimize; VACUUM;`),
|
||||
- `query_registry_manifests(db_path, registry=None)` (opens `file:...?mode=ro` with `PRAGMA query_only = ON;`),
|
||||
- `query_fts_catalog(query, doc_type="all", limit=25, db_path=None)`,
|
||||
- `query_coordinate_join(aq_int, db_path=None)`,
|
||||
- `query_timeseries_bars(symbol=None, start_date=None, end_date=None, min_points=0.0, db_path=None)`, and
|
||||
- `record_api_telemetry(protocol, method, endpoint_pattern, status_code, latency_us, isolation_ok, telemetry_db_path=None)` + `get_api_telemetry_summary(telemetry_db_path=None)`.
|
||||
2. Register `hs-db-build = "hyperstitionstud_io.db.sqlite_meta:main"` in `/workspace/hyperstitionstudio-core/pyproject.toml`.
|
||||
|
||||
### Phase 2: Wire Automatic SQLite Population into `dispatch_rest_v1` (`mcp/rest.py`) & `dispatch_jsonrpc` (`mcp/server.py`)
|
||||
1. In `/workspace/hyperstitionstudio-core/src/hyperstitionstud_io/mcp/rest.py`, wrap `dispatch_rest_v1(method, raw_path, body_bytes)` with high-resolution `time.perf_counter_ns()` timing and a `finally` hook calling `record_api_telemetry(protocol="rest_v1", method=method, endpoint_pattern=normalized_route, status_code=status, latency_us=elapsed_us, isolation_ok=isolation_verified)` so every `/api/v1/*` REST API call automatically populates `api_endpoint_rollups` and `api_audit_ringbuffer` in the SQLite metadata/telemetry database (`api-telemetry.db`).
|
||||
2. In `/workspace/hyperstitionstudio-core/src/hyperstitionstud_io/mcp/server.py`, wrap `dispatch_jsonrpc(req)` with `time.perf_counter_ns()` timing and a `finally` hook calling `record_api_telemetry(protocol="mcp_jsonrpc", method="POST", endpoint_pattern=rpc_pattern, status_code=status, latency_us=elapsed_us, isolation_ok=isolation_verified)` (e.g. `tools/call:hs_evaluate_aq_and_ingglish`, `resources/read`, `prompts/get`) so every MCP call also populates the SQLite database.
|
||||
3. Ensure `record_api_telemetry()` writes strictly to a safe writable path (`HYPERSTITION_TELEMETRY_DB_PATH` or `/tmp/hyperstition-api-telemetry.db` fallback when under systemd `ProtectSystem=strict`) and never raises if the filesystem is read-only.
|
||||
4. Create `/workspace/hyperstitionstudio-core/deploy/logrotate.d/hyperstition-sqlite-meta` (`size 100M` default, `rotate 12`, `compress`, `delaycompress`, configurable via `HYPERSTITION_SQLITE_MAX_MB` / `HYPERSTITION_SQLITE_MAX_BYTES`) with a `prerotate` block calling `python3 -m hyperstitionstud_io.db.sqlite_meta --truncate-quiescent --compress-archive` (`BEGIN EXCLUSIVE` + consistent SQLite snapshot compressed to `<db>.1.gz` + table purge + `PRAGMA wal_checkpoint(TRUNCATE)` + `VACUUM` + `PRAGMA integrity_check == 'ok'`).
|
||||
|
||||
### Phase 3: Verification in `tests/test_core_suite.py`
|
||||
1. Add unit tests in `tests/test_core_suite.py` verifying:
|
||||
- `build_catalog_sqlite_db()` table row counts (`282+` glossary rows, `388` nodes, `1,282` edges, `71+` dossiers, `720` periodic time-series bars),
|
||||
- Sub-millisecond FTS5 `BM25` search via `query_fts_catalog("envideea")`,
|
||||
- Unified coordinate join via `query_coordinate_join(137)`,
|
||||
- Indexed periodic bar range queries via `query_timeseries_bars(symbol="NVDA", min_points=1.0)`,
|
||||
- Executing `/api/v1/*` REST API calls (`dispatch_rest_v1`) and `/mcp` JSON-RPC calls (`dispatch_jsonrpc`) automatically populates `api_endpoint_rollups` and `api_audit_ringbuffer` (`<= 200` ring-buffer cap, `status_2xx`, `isolation_ok == 1`) in the SQLite database while leaving all inactive plan routes (`/api/v1/meta/*`, `hs_query_sqlite_catalog`, `/gallery/`) unexposed, and
|
||||
- Executing `run_logrotate_directive()` / `truncate_telemetry_db_quiescent()` against `/workspace/hyperstitionstudio-core/deploy/logrotate.d/hyperstition-sqlite-meta` verifies the default `100M` (`100 MB`) threshold and quiescently truncates the SQLite database when the threshold is reached (`PRAGMA integrity_check == 'ok'`).
|
||||
Binary file not shown.
@@ -1,137 +0,0 @@
|
||||
# Plan: Static Patronage & Signal-Support Subpage (`/donate/`) for `hyperstitionstud.io` (`v2.0.18`)
|
||||
|
||||
- **Document ID:** `PLAN-STATIC-DONATE-SUBPAGE` (`v2.0.18`)
|
||||
- **Target Web Route:** `https://hyperstitionstud.io/donate/` (`/donate/index.html`)
|
||||
- **Offline `file://` Path:** `/workspace/hyperstitionstudio-core/site/donate/index.html`
|
||||
- **Editorial Approach:** **Rhetorical, Inquiry-Driven, and Accessible to a General Enthusiast Audience with a Touch of Cybernetic Edge.**
|
||||
- *Show, Don't Perform:* Rather than talking about its own posture, disclaimers, or lack of paywalls ("you don't need to donate," "the servers are fine"), the page goes straight to the intrigue of the phenomenon itself—inviting the reader into the questions that drive the workbench: *Why do disconnected events in the evening news keep landing on the same coordinates? What happens when you strip away the polite spelling of a corporate filing and listen to the raw phonemic signal underneath? Where are the hidden load-bearing walls of the modern economy?*
|
||||
- **Global Footer & Portability Compliance:** 100% static HTML/CSS/JS with zero external scripts or third-party payment trackers, automatic `file://` vs. `https://` navigation adaptation, participation in `hs-sync-version`, and the global `"Made with ♥ by Lemurs."` (`♥`) footer.
|
||||
|
||||
---
|
||||
|
||||
## 1. Rhetorical Translation: Turning Institutional Proposals into Open Questions That Spark Curiosity
|
||||
|
||||
The existing stakeholder proposals (`/workspace/technocapital-singularity-zoology/proposal-*.md`) argue that standard models are blind to structural convergence, hidden bottlenecks, and sudden regime flips. On `/donate/`, we strip away the institutional finance and systems-engineering armor and reframe those ideas as **invitations to look closer**:
|
||||
|
||||
| Core Theme from the Proposals | The Technical Trap (Avoided on `/donate/`) | The Rhetorical Hook on `/donate/` (Invoking Curiosity with a Cybernetic Edge) |
|
||||
| :--- | :--- | :--- |
|
||||
| **1. Paper Appearance vs. Spoken Signal** | Explaining CMUdict phoneme tables, Base-36 character offsets, and variance-collapse formulas. | **"Have you ever noticed how differently the world looks when you stop reading how it's spelled and start listening to how it sounds?"**<br/>On paper, *synthetic data*, an *abstract machine*, and *asset management* belong to separate professions. Strip away silent letters and score the raw spoken stream, and they snap onto the exact same coordinate. Coincidence is the easy answer—until it happens ten nights in a row. |
|
||||
| **2. Flashy Surfaces vs. Quiet Bottlenecks** | Listing GICS sector classifications, supply-chain factor loadings, or isometric $\Delta = 0$ equations. | **"Everyone watches the spectacle on the stage. Who owns the floorboards?"**<br/>Every hype cycle has its stars, and every star depends on a handful of quiet, unmovable chokepoints—a single laser maker in the Netherlands, a single wafer foundry in Taiwan, a single clause in a corporate charter—that never budge when the narrative shifts. We map the floorboards. |
|
||||
| **3. Signal vs. Apophenia (Why Context Matters)** | Detailing Scope 1–3 contingent meaning gates, null-hypothesis baselines, or cron schedules. | **"Anyone can find patterns in a phonebook if they look long enough. What happens when you refuse to look outside the room?"**<br/>We don't go fishing through dictionaries to force a match. We only pay attention when a collision happens inside the same news story, the same supply chain, or the same closing bell—when a chipmaker closes at the exact dollar figure of its own name on the night it leads the wire. |
|
||||
| **4. Keeping the Cover Off the Circuit** | Listing Brotli-11 compression ratios, HTTP/3 QUIC headers, or self-referential "no paywall" disclaimers. | **"What happens when an instrument leaves the cover off so anyone can inspect the wiring?"**<br/>An instrument is most interesting when the readout is right in front of you—complete with the raw equations, the underlying graph, and the live tape—so you can test your own hypotheses and see what locks together next. |
|
||||
|
||||
---
|
||||
|
||||
## 2. Page Layout & Narrative Flow (`/donate/index.html`)
|
||||
|
||||
Styled in the signature `hyperstitionstud.io` dark-slate monospace palette (`#020617` canvas, `#0f172a` panels, `#22d3ee` cyan, `#f5c630` gold, `#34d399` emerald, `#fb7185` rose):
|
||||
|
||||
```text
|
||||
+---------------------------------------------------------------------------------------------------+
|
||||
| HEADER: hyperstitionstud.io/donate — Signal Patronage & Open-Instrument Notes |
|
||||
| [ Portal Home (/) ] [ Time-Series (/quant/) ] [ Knowledge Graph (/graph/) ] [ Calculator (/calc/) ]|
|
||||
+---------------------------------------------------------------------------------------------------+
|
||||
| HERO ESSAY: "What If Language, Market Tape, and Breaking News Are Dials on the Same Circuit?" |
|
||||
| +---------------------------------------------------------------+-----------------------------+ |
|
||||
| | Opens directly on the phenomenon that caught the visitor's | +-----------------------+ | |
|
||||
| | eye: watching scattered headlines, supply-chain bottlenecks, | | ( ♥ DONATE ↗ ) | | |
|
||||
| | and closing-bell prices snap onto identical coordinates once | +-----------------------+ | |
|
||||
| | silent letters drop away—and why this workbench leaves the | Prominent tactile vector | |
|
||||
| | cover off the circuit so anyone can trace the signal. | pill button (gold/amber | |
|
||||
| +---------------------------------------------------------------+ glossy bevel + heart/coin | |
|
||||
| emblem, anchored to #fuel)| |
|
||||
+---------------------------------------------------------------------------------------------------+
|
||||
| SECTION 1: Three Questions That Keep This Workbench Running |
|
||||
| +-------------------------------+-------------------------------+-----------------------------+ |
|
||||
| | 01 // The Ghost in the | 02 // The Load-Bearing | 03 // The Discipline of | |
|
||||
| | Spelling | Chokepoints | the Room | |
|
||||
| | Written English is a museum | Every gold rush sells picks | Finding a match in a | |
|
||||
| | of dead letters. What happens | and shovels—until there is | dictionary is a parlor | |
|
||||
| | when you strip a headline | only one company on earth | trick. Finding it inside | |
|
||||
| | down to pure spoken sound | that can print the shovel. | the same headline and the | |
|
||||
| | and watch rival empires land | How do you spot the | same closing bell is a | |
|
||||
| | on the same number? | unmovable nodes before the | signal worth watching. | |
|
||||
| | | crowd does? | | |
|
||||
| +-------------------------------+-------------------------------+-----------------------------+ |
|
||||
+---------------------------------------------------------------------------------------------------+
|
||||
| SECTION 2: "Try a Wire Experiment" — Interactive Curiosity Sandbox |
|
||||
| • "Click a live collision below—or type two things that shouldn't belong together—and watch |
|
||||
| what happens when the silent letters drop." |
|
||||
| - Curated Curiosity Prompts: |
|
||||
| [ The Founder & The Flash Crash ] [ Synthetic Data & Asset Management ] |
|
||||
| [ The Chip Laser & The Balance Sheet ] [ The War Machine & The Copper Wire ] |
|
||||
+---------------------------------------------------------------------------------------------------+
|
||||
| SECTION 3: Backing the Signal (Where Patronage Goes) |
|
||||
| • Direct, substantive note on what contributions fuel: expanding the daily midnight wire and |
|
||||
| closing-bell harvests, producing new multi-voice audio expeditions, and extending the |
|
||||
| open-source graph and encyclopedia volumes. |
|
||||
+---------------------------------------------------------------------------------------------------+
|
||||
| SECTION 4: Fuel the Reactor (Direct Contribution Channels) |
|
||||
| • Centered Primary Tactile Vector Donate Button (`( ♥ DONATE )` — opens/copies active channel) |
|
||||
| • One-click copyable addresses (`BTC`, `ETH`, `SOL`, `XMR`) & `git.libre.audio` patronage |
|
||||
| • Open-source exploration paths: test an idea in `/calc/`, trace a bridge in `/graph/`, |
|
||||
| or fork the repositories and build an instrument of your own. |
|
||||
+---------------------------------------------------------------------------------------------------+
|
||||
| FOOTER: hyperstitionstud.io/donate v2.0.18 • Made with ♥ by Lemurs. |
|
||||
+---------------------------------------------------------------------------------------------------+
|
||||
```
|
||||
|
||||
### 2.1 Prominent, Proportionally Scaled Tactile Vector "Donate" Button Specification (Inspired by Classic Adobe Stock Vector Donate Badges)
|
||||
|
||||
To give `/donate/` an unmistakable, tactile visual centerpiece—while keeping `0` external image requests (`100%` inline SVG + CSS3 gradients/bevels for offline `file://` portability)—the page features a **classic glossy vector pill "DONATE" button** situated prominently and proportionally in two places:
|
||||
1. **Hero Split-Column Anchor (`260px × 68px` desktop / `220px × 58px` mobile):** Positioned in the right-hand column of the Hero Banner (`grid-template-columns: 1fr auto`, vertically centered with generous breathing room) so it immediately anchors the eye without crowding the typography, smooth-scrolling to `#fuel-channels` (and flashing the active patronage drawer) when clicked.
|
||||
2. **Section 4 Primary Action Centerpiece (`280px × 72px`):** Centered above the contribution address cards, where clicking it copies the selected contribution address or opens the selected patronage URI with tactile press-down feedback (`transform: translateY(2px)`).
|
||||
|
||||
**Visual & Proportional Anatomy of the Inline SVG + CSS Tactile Donate Button:**
|
||||
- **Shape & Proportions:** Classic stadium/pill silhouette (`border-radius: 999px`, `aspect-ratio ~ 3.8 : 1`), framed by a brushed metallic/dark-slate outer bezel (`3px` ring with subtle cyan/gold rim light) so the glossy vector badge sits naturally against the `#0f172a` dark panel.
|
||||
- **Glossy Vector Surface & Bevel:** Warm amber-gold to crimson-coral multi-stop linear gradient (`linear-gradient(180deg, #ffd86b 0%, #f59e0b 48%, #d97706 52%, #b45309 100%)`) with a crisp top-half specular glass highlight arc (`rgba(255,255,255,0.38)`), inner top bevel (`inset 0 2px 2px rgba(255,255,255,0.6)`), and raised 3D drop shadow (`0 6px 0 #78350f, 0 12px 24px rgba(245, 158, 11, 0.35)`).
|
||||
- **Left Emblem Badge (Circular Inset Coin/Heart-in-Hand SVG Icon):** A circular recessed badge (`44px × 44px`) on the left inside the pill containing a crisp vector **Heart-and-Signal-Coin SVG emblem**, paired with bold, high-contrast uppercase `DONATE` lettering (`font-size: 1.22rem`, `letter-spacing: 0.08em`, subtle text-emboss shadow) and a micro-subtitle (`TOSS FUEL IN THE REACTOR`).
|
||||
|
||||
---
|
||||
|
||||
## 3. Revised Full-Page Copy (`/donate/index.html`) — Zero Self-Referential Affect Claims
|
||||
|
||||
### 3.1 Hero Essay: *"What If Language, Market Tape, and Breaking News Are Dials on the Same Circuit?"*
|
||||
> Spend ten minutes exploring the Knowledge Graph, the calculator, or the closing-bell timeline, and you will run into something that makes you pause.
|
||||
>
|
||||
> Strip away the silent letters of standard English, and *synthetic data* and *abstract machine* land on the exact same coordinate as written *asset management*. Follow the fault lines of a market selloff, and *Dario Amodei*, *Anthropic*, and *flash crash* lock together across written and spoken scripts—or a trillion-dollar chipmaker closes at the exact dollar price of its own phonemic name on the night it leads the global news wire.
|
||||
>
|
||||
> Most instruments are built to smooth those anomalies away—to sort the world into tidy, separate compartments where linguistics stays in one room, supply-chain bottlenecks stay in another, and market prices stay in a third.
|
||||
>
|
||||
> `hyperstitionstud.io` was built to see what happens when you wire those rooms together. Every evening at the US market close and the midnight UTC news rollover, our collectors harvest live headlines and core technocapital tickers, decode them into spoken phonemes, and map where the circuits cross—leaving the cover off the machine so anyone curious enough can trace the signal for themselves.
|
||||
|
||||
### 3.2 Three Questions That Keep This Workbench Running
|
||||
1. **`01 // What is English hiding inside its spelling?`**
|
||||
Written English is an archaeological dig. Every word carries centuries of silent letters, borrowed scribal habits, and visual camouflage. When you decode a sentence into pure spoken sound—one spelling per phoneme—the camouflage drops away. Concepts that look miles apart in a press release or an earnings report suddenly collapse onto the exact same coordinate. Is that just a quirk of information compression, or is language acting like a low-level routing protocol for how culture and capital organize themselves? We'd rather measure it than guess.
|
||||
2. **`02 // Where are the quiet walls that never move?`**
|
||||
Every technology boom is loud at the edges and silent at the center. Dozens of labs race to build the flashiest model or the fastest trading desk, while the entire spectacle quietly funnels through a handful of physical and legal bottlenecks—a single extreme-ultraviolet laser builder, a single wafer foundry, a corporate charter, a power grid. In our tables, certain words refuse to drift by a single point between how they are written on paper and how they sound out loud. Watching how the noisy stories orbit those fixed points tells you a lot about where leverage actually sits.
|
||||
3. **`03 // What happens when you outlaw dictionary fishing?`**
|
||||
Numerology gets a bad reputation for a simple reason: if you let yourself rummage through a 200,000-word dictionary after the fact, you can connect any number to anything. That's a parlor trick. So we enforce a stricter rule: *stay in the room*. Only evaluate the words, people, and prices that actually showed up together in the same day's news wire, the same supply chain, or the same closing bell. When the locks still fire under that constraint, the question stops being *"can you find a pattern?"* and becomes *"why did these specific pieces fall into place at the same time?"*
|
||||
|
||||
### 3.3 Backing the Signal
|
||||
> Every tool on `hyperstitionstud.io`—the 388-node property graph, the 22-volume encyclopedia, the multi-cipher calculator, the closing-bell time-series workbench, and the public API—is open, downloadable for offline travel, and built to show you the raw readout so you can test your own hypotheses.
|
||||
>
|
||||
> Patronage directly fuels the next layer of the instrument: keeping the public HTTP/3 relays fast, expanding the daily midnight wire and closing-bell harvests, synthesizing new full-length episodes of *The Encyclopedia Expeditions*, and charting new divisions of the archive.
|
||||
>
|
||||
> If a lock, a dossier, or an hour spent exploring the graph sparked a new line of thought, you can toss fuel into the reactor via the button or addresses below—or fork the repositories on `git.libre.audio` and build an instrument of your own.
|
||||
|
||||
---
|
||||
|
||||
## 4. Three-Phase Implementation Roadmap (`Phases 1–3`)
|
||||
|
||||
### Phase 1: Build `/workspace/hyperstitionstudio-core/site/donate/index.html`
|
||||
1. Create `/workspace/hyperstitionstudio-core/site/donate/index.html` featuring:
|
||||
- The inquiry-driven hero essay and 3-question grid in Section 3 above (with zero self-referential "calm/unbothered" or "you don't need to donate" meta-commentary),
|
||||
- The **Prominent Tactile Vector "DONATE" Button** (classic glossy bevel pill with circular SVG heart/coin emblem, top specular highlight arc, and 3D tactile press state, proportionally situated in the Hero right column and centered above Section 4's contribution channels),
|
||||
- The **"Try a Wire Experiment"** interactive curiosity sandbox (4 clickable story pills—*The Founder & The Flash Crash*, *Synthetic Data & Asset Management*, *The Chip Laser & The Balance Sheet*, *The War Machine & The Copper Wire*—plus a live input box that reveals how written spelling strips down to spoken sound),
|
||||
- Zero-tracker contribution cards (`BTC`, `ETH`, `SOL`, `XMR` one-click copy + `git.libre.audio/seasharp` open-source patronage + non-monetary exploration links),
|
||||
- Automatic `file://` vs. `https://` link resolution, and
|
||||
- The global `"Made with ♥ by Lemurs."` (`♥`) footer.
|
||||
|
||||
### Phase 2: Wire Right-Justified Stadium-Pill Donate Button (`Option 3`) & `version_sync.py`
|
||||
1. In `site/index.html`, `site/quant/index.html`, and `site/learn/index.html`, place a right-justified (`margin-left: auto; justify-content: flex-end`), `34px`-tall stadium-pill `( ♥ DONATE )` button (`.btn-donate-pill`, `border-radius: 999px`, preceded by a `1px solid #334155` vertical divider `.nav-donate-sep`, featuring a `20px × 20px` circular inset `.donate-pill-emblem` and warm amber-gold bevel) as the `:last-child` flush with the right inner header padding boundary—without altering the single-row height or modifying existing `.badge` telemetry counters. *(Option 1—folding the 3 passive telemetry counters into `.subtitle`—is preserved as a separate Long-Term Inactive Plan in `docs/PLAN-HEADER-SUBTITLE-TELEMETRY-CONSOLIDATION-ALTERNATIVE.{md,pdf}`; Option 2 is discarded).*
|
||||
2. Register `core / "site" / "donate" / "index.html"` in `/workspace/hyperstitionstudio-core/src/hyperstitionstud_io/version_sync.py` and in `test_offline_urn_namespaces_and_no_external_https_fonts()` inside `tests/test_core_suite.py`.
|
||||
|
||||
### Phase 3: Wire into `deploy/sync-vps-repos.sh` & `deploy/test-first-deployment.sh`
|
||||
1. Add `${LIVE_SUDO} ln -sfn "hyperstitionstudio-core/site/donate" "${LIVE_REPOS}/donate"` in `/workspace/hyperstitionstudio-core/deploy/sync-vps-repos.sh`.
|
||||
2. Add `"/donate/index.html"` to `ROUTES` in `/workspace/hyperstitionstudio-core/deploy/test-first-deployment.sh` and verify `HTTP 200 OK`.
|
||||
Binary file not shown.
@@ -1,182 +0,0 @@
|
||||
# Plan: Time-Series Enrichment of TierZoo (`ETI` Assemblage Builds) & Gen IV Pokédex Field-Scanner Models via Fantasy Sports Sabermetrics & Contingent Meaning (`v2.0.17`)
|
||||
|
||||
- **Document ID:** `PLAN-TIERZOO-AND-POKEDEX-TIMESERIES-SABERMETRICS-ENRICHMENT` (`v2.0.17`)
|
||||
- **Companion Plans:** `PLAN-QUANTITATIVE-FINANCE-TIMESERIES-SUBPAGE` (`/quant/` Time-Series Workbench) & `PLAN-MODULAR-LENS-PROJECTION-AND-REVERSIBILITY-ARCHITECTURE` (`LENS_REGISTRY` Reversibility Contract)
|
||||
- **Target Modules & Registries:**
|
||||
- `/workspace/hyperstitionstudio-core/src/hyperstitionstud_io/lenses/__init__.py` (Pluggable `LENS_REGISTRY` & `ENABLED_LENSES`)
|
||||
- `/workspace/hyperstitionstudio-core/src/hyperstitionstud_io/quant/` (`collector.py` & `timeseries.py`)
|
||||
- `/workspace/technocapital-singularity-zoology/scripts/classify_technocapital_singularity.py` (`build_assemblage_tier_list()` & `build_pokedex_specimen_card()`)
|
||||
- `/workspace/technocapital-singularity-zoology/taxonomy/assemblage-builds-tier-list.json` (`ETI` + Time-Series Sabermetric Layer)
|
||||
- **Core Methodological Rule 1 (Contingent Meaning Grounding):** Every qualitative TierZoo meta-tag (*Season-Long Anchor*, *Boom/Bust Week-Winner*, *Weatherproof Hedge*, *Breakout Waiver Stash*), every fantasy-sports rate metric (`WAR`, `WOPR`, `Snap %`, `Boom/Bust`, `Target Share`, `SOS`), and every Gen IV Pokédex specimen attribute (`Nature`, `Ability`, `EV Yield`, `Catch Rate`, `Evolution Trigger`, `Encounter Biomes`) **must be deterministically derived from periodic time-series observations** (`21:30 UTC` `us-closing-bell` market telemetry + `00:00 UTC` dated news-wire dossiers) governed by Scope 1–3 contingent meaning. Zero static dictionary fishing or arbitrary flavor-text assignment is permitted.
|
||||
- **Core Methodological Rule 2 (Lens-Neutral Storage + Late-Bound `LENS_REGISTRY` Projection):** `quant/timeseries.py` computes and stores **100% lens-neutral mathematical keys** (`ts_duty_cycle_pct`, `ts_weighted_resonance`, `ts_excess_over_replacement`, `ts_quantile_profile`, `ts_optimal_lag_days`, `ts_regime_splits`) in `quant-timeseries.json`. The TierZoo (`tierzoo_ecology`), Fantasy Sabermetrics (`fantasy_sabermetrics`), and Gen IV Pokédex (`pokedex_scanner`) outputs are emitted as stateless projections via `hyperstitionstud_io.lenses.LENS_REGISTRY` alongside `neutral_math`, `fund_manager`, and `corporate_board`, so any lens can be disabled or swapped in `< 2 minutes` without touching the underlying time-series schema or calculators.
|
||||
|
||||
---
|
||||
|
||||
## 1. Architectural Diagnosis: Static Cross-Sectional Baseline (`ETI v1`) vs. Longitudinal Time-Series Enrichment (`ETI-TS v2`)
|
||||
|
||||
Currently, `build_assemblage_tier_list()` in `/workspace/technocapital-singularity-zoology/scripts/classify_technocapital_singularity.py` computes the 6 base stats (`ARM`, `VEL`, `COL`, `CAP`, `PRM`, `RES`) from **time-invariant, cross-sectional counts** (`len(eqs)`, static `gen0_var_collapsed`, static `iso_w_pct`, and static `quant_anchors_covered`), while the Gen IV `INFO` Pokédex card (`DEX #129/#125`) was synthesized from a single two-day snapshot (`2026-11-28 -> 2026-11-29`).
|
||||
|
||||
In competitive Fantasy Football, MLB Sabermetrics, and NBA Advanced Analytics, static scouting combine numbers (`40-yard dash`, `wingspan`, `career totals`) are **never** sufficient to set a weekly lineup or price a waiver-wire breakout. Championship models separate **Static Scouting Combine Traits (Career Base Stats)** from **Rolling Longitudinal Time-Series Sabermetrics (Weekly Usage, Opportunity Share, Efficiency Over Expectation, Variance Profile, and Schedule/Regime Matchup)**:
|
||||
|
||||
| Analytical Layer | Role in TierZoo (`ETI`) & Fantasy Roster Engine | Role in Gen IV Pokédex Field Scanner | Data Source Requirement |
|
||||
| :--- | :--- | :--- | :--- |
|
||||
| **Layer 1: Static Structural Combine (`ARM, VEL, COL, CAP, PRM, RES`)** | Permanent guild anatomy (`G4` isometric armor, `G1` log variance collapse, `S[1–5]×S6` double articulation, `G5` twin-prime density). | **Base Species Stats (`HP / ATK / DEF / SPA / SPD / SPE`)** & Dual Guild Typing (`e.g., S3 Silicon / S6 Capital`). | Verified 30-equation guild dossiers (`65–69`), `glossary-registry.json`. |
|
||||
| **Layer 2: Longitudinal Time-Series Sabermetrics (`WAR, WOPR, SNAP%, BOOM%, LVG, SOS`)** | Rolling 7-day / 30-day form, opportunity share in the daily news wire,Scope 1–2 lock efficiency over expectation, and regime weather matchup. | **Dynamic Specimen Telemetry (`Level`, `EV Yield`, `Nature`, `Ability`, `Held Item`, `Wild Encounter Graph`, `Evolution Gate`)**. | **Strictly Periodic Time Series Only:** Daily `21:30 UTC` `us-closing-bell` market bars + Daily `00:00 UTC` `*-dossier-news-YYYY-MM-DD.md` runs. |
|
||||
|
||||
---
|
||||
|
||||
## 2. Six Popular Fantasy Sports & Sabermetric Models Adapted to Market-Memetic Time Series
|
||||
|
||||
We adapt six battle-tested quantitative sports analytics models directly onto the joint `(Market Ticker × Daily News-Wire Gematria)` time series $\{ (P_{i,t}, \Delta\text{bps}_{i,t}, V_{i,t}, L_{i,t}, M_{c,t}, C_{i,t}, S_t) \}_{t=1}^T$:
|
||||
|
||||
### 2.1 `SNAP%` — Active News-Wire & Lock Snap Share *(NFL Football Outsiders / PFF Snap Count %)*
|
||||
- **Sports Model Inspiration:** In Fantasy Football, a player cannot score fantasy points from the bench; **Snap Share (`%` of offensive plays on the field)** is the primary leading indicator of usage stability before touchdowns regress.
|
||||
- **Time-Series Mathematical Definition:**
|
||||
$$\text{SNAP\%}_{g, [t-W, t]} = \frac{1}{W} \sum_{\tau = t-W+1}^{t} \mathbb{I}\!\left( \underbrace{L^{(1)}_{g,\tau} + L^{(2)}_{g,\tau} > 0}_{\text{Market Scope 1–2 Lock}} \;\lor\; \underbrace{C_{g,\tau} > 0}_{\text{00:00 GMT Wire Co-Presence}} \right) \times 100$$
|
||||
- **Contingent Meaning Grounding:** Measures the fraction of periodic UTC observation days where guild/ticker $g$ actively participates in a verified Scope 1/2 price/bps lock or co-occurs in the `00:00 GMT` breaking news wire. Distinguishes **Every-Down Bellcows (`SNAP% >= 75%`: `NVDA [137]`, `ASML [81]`, `TSM [191]`)** from **Episodic Gadget Plays (`SNAP% < 25%`: `Q-Stub`)**.
|
||||
|
||||
### 2.2 `WOPR` — Weighted Opportunity & Resonance Rating *(NFL Josh Hermsmeyer Air Yards + Target Share Model)*
|
||||
- **Sports Model Inspiration:** In NFL analytics, `WOPR = 1.5 × (Target Share) + 0.7 × (Air Yards Share)` combines high-probability short targets with high-upside deep targets into the single strongest predictor of next-week fantasy production.
|
||||
- **Time-Series Mathematical Definition:**
|
||||
- **Memetic Target Share ($\text{MTS}_{g,t}$):** Share of all daily `00:00 GMT` wire equations (`333 / 666 / 777`) on date $t$ that resolve through guild $g$'s signature coordinates.
|
||||
- **Capital Air-Yards Share ($\text{CAYS}_{g,t}$):** Share of volume-weighted unsigned basis-point displacement ($|\Delta\text{bps}_{i,t}| \times (V_{i,t}/\bar{V}_{20})$) captured by guild $g$'s instruments at the `21:30 GMT` closing bell on date $t$ **specifically on coordinates that trigger Scope 1 or Scope 2 locks**.
|
||||
$$\text{WOPR}_{g,t} = \min\!\left(100,\; \text{round}\!\left(100 \times \left[ 1.5 \cdot \overline{\text{MTS}}_{g,[t-W,t]} + 0.7 \cdot \overline{\text{CAYS}}_{g,[t-W,t]} \right]\right)\right)$$
|
||||
- **Contingent Meaning Grounding:** Prevents pure price volatility (noise without gematrial lock) or pure lexical repetition (words without market movement) from inflating a build's rating. A spike in `WOPR` identifies an **Uncaptured Breakout (`Tier B/C` build whose wire target share + locked market displacement are surging ahead of its static tier rank)**.
|
||||
|
||||
### 2.3 `LOE` & `WAR` — Locks Over Expected & Trophic Wins Above Replacement *(NFL Next Gen Stats `CPOE/RYOE` + MLB FanGraphs `WAR`)*
|
||||
- **Sports Model Inspiration:** MLB `WAR` (Wins Above Replacement) and NFL `RYOE` (Rushing Yards Over Expected) strip out baseline league environment noise by comparing observed production against the expected production of a replacement-level baseline (`Tier D = 49 ETI`).
|
||||
- **Time-Series Mathematical Definition:**
|
||||
- Let $p^{\text{null}}_c$ be the combinatorial baseline probability that a random integer price/bps move lands on `S1–S6` signature ring $c$ (`30` active ring integers out of `[40..320]`, $p^{\text{null}} \approx 0.107$).
|
||||
- **Locks Over Expected ($\text{LOE}_{i,W}$):**
|
||||
$$\text{LOE}_{i,W} = \sum_{\tau=t-W+1}^{t} \left( L_{i,\tau} - \mathbb{E}_{\text{null}}[L_{i,\tau}] \right)$$
|
||||
- **Trophic Wins Above Replacement ($\text{WAR}_{g,W}$):** Cumulative contingent points generated by build $g$ over window $W$ (weighting `Scope 1 Self-Lock = 3.0 pts`, `Scope 3 News+Quant Co-Presence Lock = 2.5 pts`, `Scope 2 Ring Migration = 1.5 pts`, `Dated 333/666/777 Wire Equation = 1.0 pt`) minus the replacement-level `Tier D` output, divided by the marginal points per weekly matchup win ($\sigma_{\text{weekly}} = 6.5$ pts):
|
||||
$$\text{WAR}_{g,W} = \frac{\text{Pts}_{g,W} - \text{Pts}_{\text{Tier D}, W}}{6.5}$$
|
||||
- **Contingent Meaning Grounding:** Grounds "True Talent" in excess empirical synchronicity over the random uniform integer baseline. When `NVDA` closes at `$137 == envideea` while co-occurring in the `00:00 GMT` wire (`Scope 1 + Scope 3`), its single-day `LOE` spikes `+2.89` above random expectation.
|
||||
|
||||
### 2.4 `FLOOR / CEIL / BOOM%` — Weekly Variance & Archetype Distribution *(FantasyPros / ESPN Boom-Bust & Coefficient of Variation Model)*
|
||||
- **Sports Model Inspiration:** Two receivers can both average `15.0 PPG`, but Player A scores `14–16` every week (**Possession Floor Anchor**) while Player B scores `3` or `35` (**Boom/Bust Deep Threat**). Starting five Boom/Bust players loses high-floor head-to-head matchups; starting five Floor players loses tournament (`GPP` / DFS) slates.
|
||||
- **Time-Series Mathematical Definition:**
|
||||
Over rolling $W = 14$ or $30$ UTC days of daily contingent point series $y_{g,t}$:
|
||||
- **Floor ($\text{P20}_{g}$):** 20th percentile daily contingent score.
|
||||
- **Ceiling ($\text{P90}_{g}$):** 90th percentile daily contingent score.
|
||||
- **Boom Rate ($\text{BOOM\%}_{g}$):** `%` of days where $y_{g,t} \ge \mu_{\text{Tier S+}} + 1\sigma$ (multi-lock eruption: e.g., simultaneous Scope 1 + Scope 2 + News Co-Presence).
|
||||
- **Bust Rate ($\text{BUST\%}_{g}$):** `%` of days where $y_{g,t} = 0$ (zero market locks and zero wire equations).
|
||||
- **Contingent Meaning Grounding (Deterministic Qualitative Archetype Assignment):**
|
||||
Rather than hand-writing qualitative labels, the time-series distribution $( \text{P20}_g, \text{P90}_g, \text{CV}_g = \sigma_g / \mu_g )$ deterministically assigns each taxon's **TierZoo Playstyle & Fantasy Role**:
|
||||
- `P20 >= P75_league` and `CV < 0.45` $\implies$ **`"Ironclad Floor / Cash-Game Anchor"`** (`#3 S6 Apparatus of Capture`, `#4 S3 EUV Trench`: steady daily isometric locks `81, 91, 125`).
|
||||
- `P90 >= P90_league` and `CV >= 0.75` $\implies$ **`"Templex Boom/Bust Week-Winner"`** (`#2 S2 Flash-Crash Liquidity`, `ANTHR-PVT`, `BTC-USD`: quiet during low-vol chop, erupts for `3x` locks during `M2` templex surges).
|
||||
- `P20 >= P75_league` and `P90 >= P90_league` $\implies$ **`"Matchup-Proof League-Winner (Apex S+)"`** (`#1 S1 Autoregressive AI Syndicate`: both high daily wire floor and massive ceiling spikes).
|
||||
|
||||
### 2.5 `PACE / LVG` — Lead-Lag Causal Velocity & Gematrial Leverage Index *(NBA Pace / Usage % + MLB Tom Tango Leverage Index `LI`)*
|
||||
- **Sports Model Inspiration:** NBA analytics adjusts raw box-score totals for **Pace** (possessions per 48 minutes), while MLB Sabermetrics weights clutch events by **Leverage Index (`LI`)**—how much a play shifts win expectancy.
|
||||
- **Time-Series Mathematical Definition:**
|
||||
- From the `/quant/` Panel 4 cross-correlation function $\rho_{g}(\tau) = \text{Corr}\!\left(M_{g,t},\; |\Delta\text{bps}_{g, t+\tau}|\right)$ across lags $\tau \in \{-5, \dots, +5\}$ days:
|
||||
- **Optimal Causal Lag ($\tau^*_g = \arg\max_{\tau} |\rho_g(\tau)|$):**
|
||||
- If $\tau^*_g > 0$ ($\text{Wire } t \to \text{Market } t+\tau^*_g$): **Teleoplexic Signal Leader (Pre-ognitive Carrier-Wave)** — breaking wire gematria precedes market repricing by $\tau^*_g$ days.
|
||||
- If $\tau^*_g = 0$: **Instantaneous Phase-Transition Synchronizer** — wire headlines and closing-bell prices lock on the exact same UTC day.
|
||||
- If $\tau^*_g < 0$ ($\text{Market } t \to \text{Wire } t+|\tau^*_g|$): **Post-Close Narrative Capture Follower** — market repricing forces downstream wire headlines $|\tau^*_g|$ days later.
|
||||
|
||||
### 2.6 `SOS / WEATHER` — Thermodynamic Regime Matchup Splits *(NFL DVOA Strength of Schedule & Home/Road/Weather Splits)*
|
||||
- **Sports Model Inspiration:** Fantasy projection engines adjust weekly rankings for **Weather & Opponent DVOA** (e.g., benching dome passers in `25 mph` snow and starting bruising `RB/DEF` units).
|
||||
- **Time-Series Mathematical Definition:**
|
||||
Partition all historical UTC dates $\mathcal{T}$ by the active `Scope 3` thermodynamic state vector $S_t \in \{\text{M1 Entropic}, \text{M2 Flash-Crash}, \text{M3 Leviathan}, \text{Neutral}\}$ and compute each taxon's **Conditional Regime Split ($\Delta \text{ETI}_{g \mid M_k}$)**:
|
||||
$$\Delta \text{ETI}_{g \mid M_k} = \overline{y}_{g \mid S_t = M_k} - \overline{y}_{g}$$
|
||||
- **Contingent Meaning Grounding:**
|
||||
- When `M1_ENTROPIC_STAGNATION` activates (volume ratio `< 0.45x`, factory halts, strikes), `#5 Vampiric Rentier Anti-Production (M1×S6)` exhibits a **`+14 ETI` Weather Boost** (`137: hawlts == inersha == envideea`, `169: letherjee == werkerz`), automatically promoting `#5 DEF` into the starting Flex slot!
|
||||
- When `M2_FLASH_CRASH_TEMPLEX_SURGE` activates ($\Delta\% \le -5.0\%$ or `^VIX >= 25`), `#2 S2 Flash-Crash Liquidity` and `193 (flash krash == anthropik)` receive a **`+12 ETI` Surge Boost**.
|
||||
|
||||
---
|
||||
|
||||
## 3. Enriching the TierZoo (`ETI`) Model: Dual-Horizon `ETI = Static Base + Dynamic Form`
|
||||
|
||||
To prevent transient 1-day market noise from overwriting the structural Landian-Deleuzean hierarchy while making the Tier List genuinely responsive to periodic time-series telemetry, `build_assemblage_tier_list()` is enriched with a **Time-Series Sabermetric Overlay (`--with-timeseries`)**:
|
||||
|
||||
1. **Structural Base `ETI_base` (`0–100`, Invariant Architecture):**
|
||||
- Preserves the exact 6-stat formula (`ARM`, `VEL`, `COL`, `CAP`, `PRM`, `RES`) so existing Encyclopedia/Knowledge-Graph citations remain 100% reproducible.
|
||||
2. **Rolling Time-Series Form Modifier (`Δ_form` in `[-8, +8]` ETI Points) & Sabermetric Scouting Columns:**
|
||||
$$\text{ETI}_{\text{live}}(t) = \text{clip}_{[0, 100]}\!\left( \text{ETI}_{\text{base}} + \text{round}\!\left( 3.5 \cdot \text{WAR}_{g,14\text{d}} + 2.5 \cdot (\text{WOPR}_{g,7\text{d}} - \text{WOPR}_{g,30\text{d}}) + \Delta\text{ETI}_{g \mid S_t} \right) \right)$$
|
||||
- Appends 5 new time-series columns to the TierZoo leaderboard and JSON schema:
|
||||
- `WAR_30d` (Trophic Wins Above Replacement),
|
||||
- `SNAP%` (30-Day Active Lock/Wire Snap Share),
|
||||
- `WOPR` (Weighted Opportunity & Resonance Rating),
|
||||
- `Floor / Ceiling (Boom%)` (`P20 / P90` daily contingent output + Boom rate), and
|
||||
- `Causal Lag Profile` ($\tau^* \in [-5, +5]\text{d}$ Leader / Synchronizer / Follower badge).
|
||||
|
||||
---
|
||||
|
||||
## 4. Enriching the Gen IV `INFO` Pokédex Field-Scanner Model with Time-Series Mechanics
|
||||
|
||||
In the mainline Pokémon RPGs (Generations III–IX) and competitive Smogon/VGC analytics, a Pokédex entry is far more than a static sprite—it encodes **6 Base Stats (`BST`)**, **Effort Value (`EV`) Yields**, **25 Natures (`+10% Stat A / -10% Stat B`)**, **Passive Abilities (Weather/Terrain Triggers)**, **Encounter Tables by Time-of-Day/Route**, and **Level-Up / Item Evolution Conditions**.
|
||||
|
||||
Every one of these five Pokédex systems maps **1-to-1** onto periodic time-series properties from `/quant/`:
|
||||
|
||||
```text
|
||||
+---------------------------------------------------------------------------------------------------+
|
||||
| GEN IV INFO POKEDEX FIELD-SCANNER (Time-Series Enriched Specimen Card — e.g., DEX #137 / #129) |
|
||||
+---------------------------------------------------+-----------------------------------------------+
|
||||
| [ LEFT SCREEN: SPRITE, TYPING & TIME-SERIES BIO ] | [ RIGHT SCREEN: 6-STAT RADAR, NATURE & EVs ] |
|
||||
| • DEX #: #137 (NVDA / Envideea — Prime #33) | • 6 Base Stats (0-100): |
|
||||
| • Species: The Lithographic Chokepoint Pokemon | ARM: 92 | VEL: 91 | COL: 90 |
|
||||
| • Typing: [S1 SYNTHETIC AI] / [S3 WAR MACHINE] | CAP: 99 | PRM: 99 | RES: 88 (BST: 559) |
|
||||
| • Level: Lv. 84 (Derived from 30d WAR & Snap%) | • Time-Series Nature (+10% / -10%): |
|
||||
| • Held Item: EUV Pellicle #81 (ASML Bridge) | "TIMID / TELEOPLEXIC" (+VEL / -ARM) |
|
||||
| • Ability (Regime-Triggered): | [Derived from 14d Price-to-Wire Lag tau*] |
|
||||
| "SUPPLY-HALT PIVOT" — When M1 Entropic state | • Effort Value (EV) Yield on Lock: |
|
||||
| activates, converts drawdown into +137 DEF. | +2 CAP, +1 PRM (Derived from dominant |
|
||||
| • 30-Day Encounter Sparkline (Mini Waveform): | Scope 1/2 lock mode over trailing 30d) |
|
||||
| [▁▂█▃▁▅▇▂▄█] (Snap%: 76.7% | WOPR: 88.4) | • Evolution / Form-Change Trigger: |
|
||||
| • TradingView Live Telemetry Link: NASDAQ:NVDA ↗ | Lv. 137 Close ($137) + 00:00 GMT Wire Join |
|
||||
+---------------------------------------------------+-----------------------------------------------+
|
||||
```
|
||||
|
||||
### 4.1 Deterministic Mapping from Time-Series Signals to Qualitative Pokédex Traits
|
||||
|
||||
| Pokédex Attribute | How It Was Previously Chosen | New Deterministic Time-Series Derivation Rule (Grounded in Contingent Meaning) |
|
||||
| :--- | :--- | :--- |
|
||||
| **1. Specimen Nature (`+10% Stat_Boost / -10% Stat_Cut`)** | Static narrative flavor | Derived from the specimen's **trailing 14-day empirical covariance matrix** between its 6 dynamic sub-signals:<br/>• Highest Z-score positive momentum dimension $\to +10\%$ Boosted Stat;<br/>• Highest drift/variance dimension $\to -10\%$ Cut Stat:<br/> - `+VEL / -ARM` $\implies$ **Timid (*Teleoplexic Acceleration*)** (fast lead-lag wire response $\tau^* > 0$, high bps volatility)<br/> - `+ARM / -VEL` $\implies$ **Relaxed (*Isometric Trench Blocker*)** (low price beta, high $\Delta = 0$ isometric lock rate)<br/> - `+COL / -RES` $\implies$ **Rash (*Templex Boom-Surge*)** (high `BOOM%` during `M2` flash crashes)<br/> - `+CAP / -VEL` $\implies$ **Quiet (*Sovereign Apparatus Accumulator*)** (`$1T+` `M3` concentration, slow steady `WOPR`). |
|
||||
| **2. Passive Ability (`Weather / Terrain State Trigger`)** | Hand-authored per meme | Automatically selected from the specimen's **highest conditional regime split ($\arg\max_{M_k} \Delta\text{ETI}_{g \mid M_k}$)** in the time-series ledger:<br/>• Peak split in `M1_ENTROPIC` $\implies$ **`"Vampiric Siphon / Supply-Halt Pivot"`** (gains `ETI` when volume ratio `< 0.45x` or halts hit `137`)<br/>• Peak split in `M2_FLASH_CRASH` $\implies$ **`"Templex Surge / Microsecond Arbitrage"`** (doubles lock rate when `^VIX >= 25` or drawdown $\le -5\%$)<br/>• Peak split in `M3_LEVIATHAN` $\implies$ **`"Apparatus Gravity"`** (pulls `S1–S3` partner rings into `125 / 153 / 256` when cap $> \$1\text{T}$)<br/>• Peak split on `News-Wire Co-Presence` $\implies$ **`"Carrier-Wave Resonance"`** (`Scope 3` wire+market simultaneous lock). |
|
||||
| **3. Effort Value (`EV`) Yield (`+1 to +3 Stat Points`)** | Static | Computed from the **modal Scope 1–3 lock type** observed across the specimen's 30-day time series:<br/>• `SCOPE1_INTRA_INSTRUMENT_SELF_LOCK` majority $\implies$ **`+2 PRM, +1 ARM`**<br/>• `SCOPE2_S1_S6_RING_MIGRATION` (`S6` partner) $\implies$ **`+2 CAP, +1 COL`**<br/>• `SCOPE1_SPOKEN_REPDIGIT_ATTRACTOR` (`333/666/777`) $\implies$ **`+3 COL`**. |
|
||||
| **4. Encounter Rate & Biome Route (`Tall Grass` vs. `Closing Bell`)** | Single date (`Nov 28`) | Computed from the specimen's **diurnal window distribution** (`Window A 21:30 GMT US Closing Bell` vs. `Window B 00:00 GMT News Wire Rollover`) and **30-day `SNAP%`**:<br/>• `SNAP% >= 60%` $\implies$ **Common Keystone Encounter** (`Route 21:30 NYSE/Nasdaq Closing Bell`)<br/>• `20% <= SNAP% < 60%` $\implies$ **Uncommon Regime Encounter** (`Route 00:00 UTC Rollover`)<br/>• `SNAP% < 20%` & `LOE > 2.0` $\implies$ **Legendary / Roaming Anomaly (`< 5%` Encounter Rate, e.g., `M7+` 2-Run Nucleation)**. |
|
||||
| **5. Evolution & Form-Change Chain (`Stage 1 -> Stage 2 -> Mega/Apex`)** | Two-run `M7+` gate only | Generalized into a **3-Stage Time-Series Evolution State Machine** tracked across periodic runs:<br/>• **Stage 1 (Episodic Stub / `Tier D–C`, `Lv. 1–29`):** Discovered on `Run 1` ($t_0$) with a single headline or price lock (`persistence_count == 1`).<br/>• **Stage 2 (Confirmed Guild Spec / `Tier B–A`, `Lv. 30–69`):** Survives the `Run N -> Run N+1` cross-date persistence gate (`persistence_count >= 2` across distinct UTC dates) AND records $\ge 1$ `Scope 2` supply-chain ring migration.<br/>• **Stage 3 (Apex Double-Articulated Evolution / `Tier S–S+`, `Lv. 70–100`):** Achieves simultaneous `Scope 1` Self-Lock + `Scope 2` `S6` Capture Lock + `Scope 3` `00:00 GMT` News-Wire Co-Presence (`WOPR >= 75`, `WAR_30d >= 2.5`), or undergoes **Anchor-Revision Form Change** (`--revise-anchor`, e.g., `Anthropic $83 [Form I: 202] -> $89 [Form II: 193 Prime Self-Lock]`). |
|
||||
|
||||
---
|
||||
|
||||
## 5. Concrete Exemplars of Time-Series-Grounded Qualitative Choices
|
||||
|
||||
To illustrate how quantitative time-series metrics dictate the final qualitative scouting reports and Pokédex cards without human guesswork:
|
||||
|
||||
1. **`NVDA` (`Envideea`, `DEX #137` — `S1 × S3`):**
|
||||
- *Observed Time-Series Signals:* Integer close `$137 == envideea (137 [33rd PRIME])` (`Scope 1 Self-Lock`), co-present in `2026-11-29` `00:00 GMT` AP News wire (`"White House downplays security risk of Jensen Huang's affair as the Nvidia CEO heads to Capitol Hill"`, shared prime factor `73`), `Market Cap = $3.35T` (`M3 Leviathan`), `137 == daireeoh == hawlts == inersha` (`Scope 2` 3-guild flex bridge).
|
||||
- *Grounded Fantasy / TierZoo Output:* `SNAP% = 83.3%`, `WOPR = 94`, `WAR_30d = +4.2`, Archetype = **`"Matchup-Proof Franchise Cornerstone & Supply-Halt Flex"`** (starts in `S1/S3` during bull trends; auto-flexes to `M1 DEF` when `137 == hawlts` triggers).
|
||||
- *Grounded Pokédex Output:* `DEX #137`, `Nature: Modest/All-Weather (+CAP / +ARM)`, `Ability: Supply-Halt Pivot (Coordinate 137)`, `Stage 3 Apex Evolution`.
|
||||
2. **`ASML` (`asml`, `DEX #081` — `S3 × S6`):**
|
||||
- *Observed Time-Series Signals:* Basis-point move `+81 bps == asml (81 = 3⁴ [Type I Isometric]) == aset (81)` (`Scope 1 BPS Isometric Self-Lock` + `Scope 2 S6 Ring Migration`), low 20d volume variance (`1.05x`).
|
||||
- *Grounded Fantasy / TierZoo Output:* `Floor P20 = 88`, `CV = 0.28`, Archetype = **`"Ironclad Offensive-Line Blocker (Cash-Game Floor Anchor)"`**.
|
||||
- *Grounded Pokédex Output:* `DEX #081`, `Nature: Impish/Isometric (+ARM / -VEL)`, `Ability: Lithographic Chokepoint (Δ = 0 Armor — immune to phonetic drift)`.
|
||||
3. **`ANTHR-PVT` (`Anthropik`, `DEX #193` — `S1 × S2`):**
|
||||
- *Observed Time-Series Signals:* Step-function anchor revision `$83` (`aytee three = 202`) $\to$ `$89` (`aytee nain = 193 [44th PRIME] == anthropik == flash krash == Dario Amodei [Gen 0]`), `+723 bps` surge, `volume_ratio_20d = 1.60x`.
|
||||
- *Grounded Fantasy / TierZoo Output:* `BOOM% = 42%`, `WOPR Delta = +31`, Archetype = **`"Post-Revision Breakout QB/WR Stack"`**.
|
||||
- *Grounded Pokédex Output:* `DEX #193`, `Form Change: Valuation Revision Form ($83 -> $89)`, `Ability: Double-Script Twin (Synchronizes Gen 0 185 and Gen 1 193 with Flash Crash)`.
|
||||
4. **`M7_candidate_2026_11_28` (`Awflain / Dounz`, `DEX #129/#125` — `M7+ × S3 × S6`):**
|
||||
- *Observed Time-Series Signals:* Nucleated on `2026-11-28` (`Run 1`) across `5` independent news stories (`variance 1221.8 -> 0` on `129 == blakwel == ruhsha == awflain` and `125 == kapatal == kapcher == dounz`), confirmed on `2026-11-29` (`Run 2`, `persistence_count = 2`), coupled to `SOL-USD` (`+129 bps`) and `TSM / BLK` (`+125 bps`).
|
||||
- *Grounded Fantasy / TierZoo Output:* Promoted from `Waiver Wire` to **`"Priority Week-Winning Waiver Stash (Confirmed M7+ Breakout)"`**.
|
||||
- *Grounded Pokédex Output:* `DEX #129`, `Stage 1 -> Stage 2 Evolution Complete (Run 1 -> Run 2 Persistence Gate Passed)`, `Ability: Trophic Bridge Capture (Links S3 Blackwell [129] to S6 Capital [125])`.
|
||||
|
||||
---
|
||||
|
||||
## 6. Three-Phase Implementation Roadmap (`Phases 1–3`)
|
||||
|
||||
### Phase 1: Implement Lens-Neutral Time-Series Moments (`quant.timeseries`) & Pluggable `LENS_REGISTRY` (`hyperstitionstud_io.lenses`)
|
||||
1. In `/workspace/hyperstitionstudio-core/src/hyperstitionstud_io/quant/timeseries.py`, implement `compute_timeseries_moments(timeseries_ledger, window_days=30)` returning the **lens-neutral mathematical dictionary** (`ts_duty_cycle_pct`, `ts_weighted_resonance`, `ts_excess_over_null`, `ts_excess_over_replacement`, `ts_p20_floor`, `ts_p90_ceiling`, `ts_boom_pct`, `ts_bust_pct`, `ts_cv`, `ts_optimal_lag_days`, `ts_regime_splits`) for every `S1–S6` / `M1–M7+` build and each of the `24` instruments.
|
||||
2. In `/workspace/hyperstitionstudio-core/src/hyperstitionstud_io/lenses/__init__.py`, implement `LENS_REGISTRY` and `ENABLED_LENSES` (`neutral_math`, `fund_manager`, `corporate_board`, `tierzoo_ecology`, `fantasy_sabermetrics`, `pokedex_scanner`), where:
|
||||
- `fantasy_sabermetrics` projects the neutral moments into `snap_pct`, `wopr`, `loe`, `war_30d`, `floor_p20 / ceil_p90 / boom_pct`, and the deterministically derived `fantasy_archetype_label`,
|
||||
- `pokedex_scanner` (`derive_pokedex_specimen_profile`) projects the same neutral moments into `dex_number`, `level`, `nature`, `ability`, `ev_yield`, `encounter_rarity`, `evolution_stage`, `sparkline_30d`, and `tradingview_url`, and
|
||||
- `fund_manager` / `neutral_math` project the exact same numbers into institutional factor-risk terminology (`Signal Duty Cycle %`, `Conviction Exposure`, `Information Ratio / Alpha`, `VaR_20 & Convexity Skew`, `Granger Lead-Lag τ*`, `Regime-Conditional Beta`), ensuring 100% reversibility if any gaming/sports lens is ever disabled.
|
||||
|
||||
### Phase 2: Enrich `classify_technocapital_singularity.py` (`--build-tier-list` & `--pokedex-card`)
|
||||
1. Update `build_assemblage_tier_list()` in `/workspace/technocapital-singularity-zoology/scripts/classify_technocapital_singularity.py` to ingest the periodic time-series moments and `LENS_REGISTRY` projections into `taxonomy/assemblage-builds-tier-list.json` and Section 1.2 / Section 2 of `tier-list-technocapital-assemblage-builds.{md,pdf,png}` while keeping the 6 base `ETI` stats (`ARM/VEL/COL/CAP/PRM/RES`) and `ReadOnlyIsolationGuard` invariants intact.
|
||||
2. Add `--pokedex-card <SYMBOL_OR_DEX_ID>` to `classify_technocapital_singularity.py` (and expose `hs_inspect_pokedex_specimen` in `hyperstitionstud_io.mcp.tools`) to generate or inspect any ticker's or build's time-series-grounded Gen IV Pokédex JSON/Markdown/PNG specimen card on demand.
|
||||
|
||||
### Phase 3: Interactive Lens-Switching Inspector Drawer on `/quant/index.html`
|
||||
1. In Panel 3 of `/quant/index.html` (`PLAN-QUANTITATIVE-FINANCE-TIMESERIES-SUBPAGE`), bind the inspector card to the top-bar **Lens Switcher** (`Quant Factor | Neutral Math | TierZoo | Fantasy Sabermetrics | Pokédex | Corporate Board`), displaying the selected ticker/guild's live 30-day time-series moments under the active lens alongside its 30-day sparkline and the `Open TradingView Chart ↗` button.
|
||||
2. Add unit tests in `/workspace/hyperstitionstudio-core/tests/test_core_suite.py` verifying that (a) all qualitative labels across every registered lens are 100% deterministic functions of the lens-neutral time-series moments, (b) disabling `pokedex_scanner`, `tierzoo_ecology`, and `fantasy_sabermetrics` in `ENABLED_LENSES` leaves the time-series bundle 100% valid, and (c) `ReadOnlyIsolationGuard` passes.
|
||||
Binary file not shown.
+31
-1
@@ -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}`
|
||||
|
||||
---
|
||||
|
||||
@@ -43,3 +46,30 @@
|
||||
| `PLAN-ONE-SHOT-TICKER-STATS-CARDS-API-PNG-AND-JSON.{md,pdf}` | Specification for the 5-zone `900×1260` (`5:7` TCG portrait) `.png` + `.json` Ticker Stats Card generator (`src/hyperstitionstud_io/quant/cards.py`, `hs-ticker-card`) exposed via the Chatbot REST tool dispatcher (`/api/v1/tools/hs_generate_ticker_stats_card` & `/api/v1/zoology/pokedex/{symbol}?include_card=true`, `0` new endpoints) and MCP tool `hs_generate_ticker_stats_card`; now implemented and verified in `tests/test_core_suite.py`. |
|
||||
| `PLAN-HAIPERDOHP-SILHOUETTE-HYPERSTITION-PALETTE-UNIFIED-STYLE-AUGMENTATION.{md,pdf}` | Specification for the unified Group 3 ("Stealth Basalt Plate & Micro-Pip Signal Ribbon" + retained `border-radius: 999px` `.btn-donate-pill` & `.tactile-donate-btn`) visual design system across all 6 web pages (`site/assets/hs-group3-basalt-chamfer.css`) and all 3 visual artifact generators (`cards.py`, `pdf_compiler.py`); now implemented and verified in `tests/test_core_suite.py`. |
|
||||
| `PLAN-DONATE-SUBPAGE-MINIMAL-REDUCTION.{md,pdf}` | Specification for reducing `/donate/index.html` strictly by removing intermediate essays and the curiosity sandbox without recreating elements, leaving `<header>`, the 3-sentence note of love from the Lemurs, `#fuel-channels` (`#primaryDonateActionBtn` + `#channelCardsGrid` `BTC`/`XMR` payment cards), and `<footer>`; now implemented and verified in `tests/test_core_suite.py`. |
|
||||
| `PLAN-ARCHIVE-ROTATION-AND-COMPRESSION-ECONOMIZER.{md,pdf}` | Specification for rotating completed `docs/archive/` `.pdf` and `.md` pairs (`require_companion_md=True`) into `completed-plans-archive.tar.gz` + `archive-manifest.json` (`hs-archive-rotate`) while enforcing Gematria-Pipeline Immunity (`0` gematria sources archived); now implemented in `src/hyperstitionstud_io/publishing/archive_rotator.py`. |
|
||||
| `PLAN-ADHOC-PUBLIC-API-AND-SURFACE-REGRESSION-TEST-SUITE.{md,pdf}` | Specification for the 6-gate public HTTP regression suite (`hs-public-smoke`, `src/hyperstitionstud_io/ci/public_regression.py`) comparing live responses against `.cache/internal-test-baseline-latest.json`; now implemented and verified in `tests/test_core_suite.py`. |
|
||||
| `PLAN-MIGRATE-PERIODIC-DATA-PRODUCTION-FROM-LOCALHOST-TO-VPS.{md,pdf}` | Specification for migrating periodic data production onto the VPS (`deploy/run-vps-data-production.sh`, `collector.py --append-history`, and `hyperstition-{closing-bell,utc-rollover}-harvest.{service,timer}`); now implemented in `deploy/`. |
|
||||
| `PLAN-SOFTWARE-ENGINEERING-EXPLICATION-HUB-AND-SUBPAGES.{md,pdf}` | Specification for the live-introspected `/engineering/` Hub (`E0`) and 5 orthogonal subpages (`E1–E5`) with Novice Prerequisite Ladders and non-sequential revertability (`hs-eng-docs`); now implemented in `src/hyperstitionstud_io/publishing/engineering_docs.py` and `site/engineering/`. |
|
||||
| `PLAN-MATHEMATICAL-EXPLICATION-HUB-AND-SUBPAGES.{md,pdf}` | Specification for the live-introspected `/math/` Hub (`M0`) and 5 orthogonal subpages (`M1–M5`) with Novice Prerequisite Ladders and non-sequential revertability (`hs-math-docs`); now implemented in `src/hyperstitionstud_io/publishing/math_docs.py` and `site/math/`. |
|
||||
| `PLAN-PROGRAMMATIC-VERSION-BUMP-HEURISTICS-ZERO-TOKEN.{md,pdf}` | Specification for zero-LLM-token programmatic semantic version determination (`hs-sync-version --auto-bump` & `--explain-bump`) using change-scope heuristics and plan/skill artifacts; now implemented in `src/hyperstitionstud_io/version_sync.py`. |
|
||||
| `PLAN-CRONJOB-ARCHIVE-ROTATION-ON-HYPERSTITIONSTUD-IO.{md,pdf}` | Specification for daily `00:20 UTC` cold-archive rotation (`hs-archive-rotate`) and quiescent SQLite telemetry logrotate (`100M` `.1.gz`) on `hyperstitionstud.io` (`deploy/run-vps-archive-rotation.sh`, `deploy/cron.d/hyperstition-archive-rotate`, `deploy/hyperstition-archive-rotate.{service,timer}`, `0` LLM tokens, `0` API keys); now implemented in `deploy/`. |
|
||||
| `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`. |
|
||||
@@ -1,50 +0,0 @@
|
||||
# Review of Outstanding Plans & Post-`v2.0.8` Implementation Status Across the `hyperstitionstud.io` Ecosystem
|
||||
|
||||
- **Document ID:** `REVIEW-OUTSTANDING-PLANS-POST-V2-0-8` (`v2.0.8`)
|
||||
- **Baseline Release Audited:** `v2.0.8` (Following full implementation and 36-route verification of `hyperstitionstud_io.ipld`, `hyperstitionstud_io.quant`, `hyperstitionstud_io.mcp`, `/learn/`, `/gallery/`, and the global `"Made with ♥ by Lemurs."` footer).
|
||||
|
||||
---
|
||||
|
||||
## 1. Completed vs. Outstanding Plan Matrix (`v2.0.8`)
|
||||
|
||||
| # | Plan Document & Tag | Target Module / Web Route | Status in `v2.0.8` |
|
||||
| :- | :--- | :--- | :--- |
|
||||
| **1** | `ASSESSMENT-IPLD-DAG-JSON-CODEC-INTEGRATION.{md,pdf}` (`v2.0.0`) | `hyperstitionstud_io.ipld` (`encode_dag_json`, `compute_dag_json_cidv1`, `write_pretty_and_dag_json`) | **COMPLETED & VERIFIED** (`tests/test_core_suite.py`) |
|
||||
| **2** | `PLAN-QUANTITATIVE-FINANCIAL-TELEMETRY-PIPELINE.{md,pdf}` (`v2.0.6`) | `hyperstitionstud_io.quant` (`hs-quant-harvest`, `collect_financial_quant_aq.py`, `--scan-quant-harvest`, `financial-aq-harvest-latest.json`) | **COMPLETED & VERIFIED** (`24` instruments, `28` Scope 1–3 locks, `CIDv1` `baguqeera...`) |
|
||||
| **3** | `PLAN-MCP-SERVER-HYPERSTITIONSTUDIO.{md,pdf}` (`v2.0.3`) | `hyperstitionstud_io.mcp` (`hs-mcp --transport stdio\|http`, `11` tools, `9` resources/templates, `4` prompts) | **COMPLETED & VERIFIED** (`tests/test_core_suite.py`) |
|
||||
| **4** | `PLAN-LEARNING-SUBPAGE-AND-LOCAL-STATE-PORTABILITY.{md,pdf}` (`v2.0.2`) | `/learn/` (`site/learn/index.html` + `learn-app.js` + `learn-progress-state.schema.json`) | **COMPLETED & VERIFIED** (`HTTP 200 OK` in `test-first-deployment.sh`) |
|
||||
| **5** | `PLAN-MEMETIC-GALLERY-SUBPAGE.{md,pdf}` (`v2.0.5`) | `/gallery/` (`site/gallery/index.html` + `gallery-data.js` + `37` visual specimens) | **LONG-TERM PLAN (Disabled in `Caddyfile` & `sync-vps-repos.sh` for Now)** |
|
||||
| **6** | `PLAN-GLOBAL-SITE-FOOTER-LEMURS.{md,pdf}` (`v2.0.4`) | Global `"Made with ♥ by Lemurs."` (`♥`) footer across all HTML web surfaces | **COMPLETED & VERIFIED** (`tests/test_core_suite.py`) |
|
||||
| **7** | `PLAN-LLM-TOKEN-ECONOMIZER-AND-VARIANCE-ROUTING.{md,pdf}` (`v2.0.7`) | `hyperstitionstud_io.economizer` (`hs-route-job`, $\sigma^2_{\text{step}}$ 5-factor scorer $J_{\text{score}}$, `Tier 0–3` router, pre-solved candidate menus) | **OUTSTANDING (Ready to Implement)** |
|
||||
|
||||
---
|
||||
|
||||
## 2. Primary Outstanding Plan: Python LLM Token Economizer & Marginal Procedure-Step Variance Router (`hyperstitionstud_io.economizer`)
|
||||
|
||||
- **Plan Document:**
|
||||
- Container PDF: `/workspace/encyclopedia-knowledge-graph/docs/PLAN-LLM-TOKEN-ECONOMIZER-AND-VARIANCE-ROUTING.pdf`
|
||||
- Host URL: `file:///home/m00t/hermes/workspace/encyclopedia-knowledge-graph/docs/PLAN-LLM-TOKEN-ECONOMIZER-AND-VARIANCE-ROUTING.pdf`
|
||||
- **Current Status:**
|
||||
Planned and documented (`tag: v2.0.7`); **not yet implemented** in `/workspace/hyperstitionstudio-core/src/hyperstitionstud_io/economizer/`.
|
||||
- **Remaining Implementation Scope:**
|
||||
1. Create `/workspace/hyperstitionstudio-core/src/hyperstitionstud_io/economizer/__init__.py` implementing:
|
||||
- `score_job_complexity(v_step, d_verif, c_ctx, s_struct, r_blast)` ($J_{\text{score}} \in [0, 100]$ with hard override $V_{\text{step}} == 0 \implies J_{\text{score}} = 0$ `Tier 0 Local Python`),
|
||||
- `select_api_tier(j_score)` (`Tier 0` Local Python `$0.00` -> `Tier 1` Economy Flash-Lite `~$0.07/1M` -> `Tier 2` Mid-Tier Workhorse + Prompt Caching `~$0.30/1M` -> `Tier 3` Frontier Reasoning),
|
||||
- `precompute_candidate_equations_menu(terms, targets=(333, 666, 777))` (solves and Gate-2-filters candidate equations in `Tier 0` Python in `< 20 ms` so LLMs only pick integer indices rather than burning reasoning tokens on arithmetic),
|
||||
- `build_cached_messages(system_prefix, variable_tail)` (immutable prefix ordering for `75%–90%` prompt cache discounts), and
|
||||
- `estimate_token_cost(input_tokens, output_tokens, tier, cached_fraction)`.
|
||||
2. Register `hs-route-job = "hyperstitionstud_io.economizer:main"` in `pyproject.toml`, expose `hs_route_job_economizer` in `hyperstitionstud_io.mcp.tools`, and add unit tests to `tests/test_core_suite.py`.
|
||||
|
||||
---
|
||||
|
||||
## 3. Optional Operational & Archival Follow-Ups on Completed Plans
|
||||
|
||||
### 3.1 Optional Public `/mcp` Reverse-Proxy Route in `deploy/Caddyfile` & `deploy/hyperstition-mcp.service`
|
||||
- `hs-mcp` (`--transport stdio` and `--transport http`) is implemented and tested locally. Adding `deploy/hyperstition-mcp.service` (`127.0.0.1:8095`) and `handle /mcp* { reverse_proxy 127.0.0.1:8095 }` to `deploy/Caddyfile` is an optional step if you want `https://hyperstitionstud.io/mcp` exposed publicly on the Linode VPS in addition to local `stdio`.
|
||||
|
||||
### 3.2 Archiving Completed `v2.0.2–v2.0.7` Plan Files into `docs/archive/` (Per Option 3)
|
||||
- Now that `PLAN-LEARNING-SUBPAGE-*`, `PLAN-MEMETIC-GALLERY-*`, `PLAN-GLOBAL-SITE-FOOTER-*`, `PLAN-MCP-SERVER-*`, `PLAN-QUANTITATIVE-FINANCIAL-*`, and `ASSESSMENT-IPLD-DAG-JSON-*` are implemented in `v2.0.8`, moving their pre-implementation plan PDFs and Markdown files from `encyclopedia-knowledge-graph/docs/` into `encyclopedia-knowledge-graph/docs/archive/` (and updating `VPS-AND-GIT-OPERATOR-DEPLOYMENT-GUIDE.{md,pdf}` to list `/learn/`, `/gallery/`, `hs-mcp`, and `hs-quant-harvest`) will keep top-level `docs/` clean.
|
||||
|
||||
### 3.3 Optional Earlier Audio Series Continuation (`Episodes 06–09` / Parts V–VIII of *The Singularity Field Guide*)
|
||||
- Archived Plan Document: `/workspace/technocapital-singularity-zoology/docs/archive/podcast-series-plan-encyclopedia-of-technocapital-singularity-zoology.pdf`.
|
||||
- Episodes `01–05` (covering Ontological Divisions `00` through `04`) are complete on disk; Parts `V–VIII` (Divisions `05` through `08`) remain optional.
|
||||
Binary file not shown.
@@ -0,0 +1,562 @@
|
||||
{
|
||||
"version": "2.9.0",
|
||||
"bundle_filename": "completed-plans-archive.tar.gz",
|
||||
"bundle_size_bytes": 5107326,
|
||||
"bundle_sha256": "bc877d9b57f21ed2dc87d29548b7ca4c51007d735e53e0e606cd8ffcccd4a41e",
|
||||
"require_companion_md": true,
|
||||
"member_count": 110,
|
||||
"total_uncompressed_bytes": 6062735,
|
||||
"preserved_standalone_pdfs": [],
|
||||
"members": [
|
||||
{
|
||||
"name": "ASSESSMENT-IPLD-DAG-JSON-CODEC-INTEGRATION.md",
|
||||
"size_bytes": 8528,
|
||||
"sha256": "8374ff99511d2488b26d1f5876e028dd50e9aa805af51eb25bb51ace73628c2c"
|
||||
},
|
||||
{
|
||||
"name": "ASSESSMENT-IPLD-DAG-JSON-CODEC-INTEGRATION.pdf",
|
||||
"size_bytes": 90476,
|
||||
"sha256": "7a4e42ecaafa5594d3892d80f02ebec6ed4f6bfa4b01076c0a4571851a3cfc1c"
|
||||
},
|
||||
{
|
||||
"name": "DEPENDENCIES-AND-FIRST-PUSH-GUIDE.md",
|
||||
"size_bytes": 2819,
|
||||
"sha256": "fc96e2f2b376d8e5fe51f4b069b4079f4fb6dc9e8cc124132de545f28adef770"
|
||||
},
|
||||
{
|
||||
"name": "DEPENDENCIES-AND-FIRST-PUSH-GUIDE.pdf",
|
||||
"size_bytes": 83627,
|
||||
"sha256": "a1927b3782ff62e359d265f76f182cea358fbf8102dbfd514b02f511917ee592"
|
||||
},
|
||||
{
|
||||
"name": "MODULARITY-AUDIT-THREE-REPOSITORIES.md",
|
||||
"size_bytes": 6633,
|
||||
"sha256": "762604bb64367fa5c8fc5bf2f7836b1e604ecf5405755fa952331f4ba3f89f0a"
|
||||
},
|
||||
{
|
||||
"name": "MODULARITY-AUDIT-THREE-REPOSITORIES.pdf",
|
||||
"size_bytes": 88362,
|
||||
"sha256": "7b486fe3ac4ee7fa88342fd29c784da8e2d32a32f4670e7d834e6b27a051d6f3"
|
||||
},
|
||||
{
|
||||
"name": "PLAN-ADHOC-MESSENGER-HIGHLIGHTS-SUMMARY-FOR-ENGINEERS-AND-MATH.md",
|
||||
"size_bytes": 10374,
|
||||
"sha256": "965e61b6974278a3da0b07f86739738512b3c512b2fd340571fafa186bf69f1c"
|
||||
},
|
||||
{
|
||||
"name": "PLAN-ADHOC-MESSENGER-HIGHLIGHTS-SUMMARY-FOR-ENGINEERS-AND-MATH.pdf",
|
||||
"size_bytes": 92433,
|
||||
"sha256": "f9cd167b43e6c78a9f8e1a1a441b0136f809de4c080e6b1e796f9a873824b132"
|
||||
},
|
||||
{
|
||||
"name": "PLAN-ADHOC-PUBLIC-API-AND-SURFACE-REGRESSION-TEST-SUITE.md",
|
||||
"size_bytes": 12558,
|
||||
"sha256": "1d2aa1e6083a17cd8897aba811dd12ca00f76e323831a0f09e29696b7b6404e0"
|
||||
},
|
||||
{
|
||||
"name": "PLAN-ADHOC-PUBLIC-API-AND-SURFACE-REGRESSION-TEST-SUITE.pdf",
|
||||
"size_bytes": 93922,
|
||||
"sha256": "fd6eaaaa654e47cdb147e50936135e1d1bd447138705baca4bc78cdabecce967"
|
||||
},
|
||||
{
|
||||
"name": "PLAN-ALIGN-HOMEPAGE-UI-CLOSEUPS-WITH-ACTUAL-LIVE-PAGES.md",
|
||||
"size_bytes": 9835,
|
||||
"sha256": "14618431cd9ba8823e2d9abe2d9f7007b80cd55ef877b5762be8b56e888d025d"
|
||||
},
|
||||
{
|
||||
"name": "PLAN-ALIGN-HOMEPAGE-UI-CLOSEUPS-WITH-ACTUAL-LIVE-PAGES.pdf",
|
||||
"size_bytes": 94482,
|
||||
"sha256": "1b7fc5b453dbc1d9d11cbde1dc9a63591415060d6addabd65e3f65cf42438a65"
|
||||
},
|
||||
{
|
||||
"name": "PLAN-ARCHIVE-ROTATION-AND-COMPRESSION-ECONOMIZER.md",
|
||||
"size_bytes": 15811,
|
||||
"sha256": "d50928a3ac541e6b4ad060c2c5d1cb766869f4fcc883c7f2aaf30e848943b777"
|
||||
},
|
||||
{
|
||||
"name": "PLAN-ARCHIVE-ROTATION-AND-COMPRESSION-ECONOMIZER.pdf",
|
||||
"size_bytes": 97718,
|
||||
"sha256": "0062d778c98aa9029cfbda50d655d47e70d72e8afe9b08154123af1a297226d1"
|
||||
},
|
||||
{
|
||||
"name": "PLAN-AUTOMATED-PER-COMMIT-REPO-ROOT-README-SYNCHRONIZATION-FOR-GITEA.md",
|
||||
"size_bytes": 10432,
|
||||
"sha256": "80ffeb48a5f819161ba9e920835703ece13ec519813a112075bfc1c885cca8c6"
|
||||
},
|
||||
{
|
||||
"name": "PLAN-AUTOMATED-PER-COMMIT-REPO-ROOT-README-SYNCHRONIZATION-FOR-GITEA.pdf",
|
||||
"size_bytes": 92356,
|
||||
"sha256": "e36f4c0c537af2db59f6c498cd97bfba29be21e88b5f93190db30a870e2eddf1"
|
||||
},
|
||||
{
|
||||
"name": "PLAN-COMMON-LIBRARY-HYPERSTITIONSTUDIO.md",
|
||||
"size_bytes": 17128,
|
||||
"sha256": "f2a8af70dc688a3e71ec4124341f7c042d3c82e00d893ee7fc61659ee810139a"
|
||||
},
|
||||
{
|
||||
"name": "PLAN-COMMON-LIBRARY-HYPERSTITIONSTUDIO.pdf",
|
||||
"size_bytes": 97861,
|
||||
"sha256": "a8955ce0f55c97db5343e035b91c268fe227fc12d22dfa6660a99e0370440df2"
|
||||
},
|
||||
{
|
||||
"name": "PLAN-COMPREHENSIVE-MCP-AND-CHATBOT-REST-API-CAPABILITY-EXPOSURE.md",
|
||||
"size_bytes": 12193,
|
||||
"sha256": "124cc90e14fc23ee07ca619c73faf015a613f9b05633449364db6b977bb9e652"
|
||||
},
|
||||
{
|
||||
"name": "PLAN-COMPREHENSIVE-MCP-AND-CHATBOT-REST-API-CAPABILITY-EXPOSURE.pdf",
|
||||
"size_bytes": 94648,
|
||||
"sha256": "e379b74dbdcb601509bfd3068fd613b45404cd4a437daa6563b71f5a8167acad"
|
||||
},
|
||||
{
|
||||
"name": "PLAN-CRONJOB-ARCHIVE-ROTATION-ON-HYPERSTITIONSTUD-IO.md",
|
||||
"size_bytes": 9801,
|
||||
"sha256": "05c6b1c2d819ef8c5ca65c174ec7c6684ce71da64b5969cdeeb44e833403e3ca"
|
||||
},
|
||||
{
|
||||
"name": "PLAN-CRONJOB-ARCHIVE-ROTATION-ON-HYPERSTITIONSTUD-IO.pdf",
|
||||
"size_bytes": 90913,
|
||||
"sha256": "7335c35b0612536b10ea22f698f947e5b659484fca1fd5ec856b3f8845151610"
|
||||
},
|
||||
{
|
||||
"name": "PLAN-CYBERNETIC-AND-OCCULT-MICRO-SIGIL-UI-ACCENTS.md",
|
||||
"size_bytes": 9067,
|
||||
"sha256": "1bdc374f36a40a4c0eff533183dbcd37e77e628d7c78cfd2d92d47fa7ac6acd1"
|
||||
},
|
||||
{
|
||||
"name": "PLAN-CYBERNETIC-AND-OCCULT-MICRO-SIGIL-UI-ACCENTS.pdf",
|
||||
"size_bytes": 94810,
|
||||
"sha256": "cf1a40cbecb5bef5ffda7259268f5a2ba985f73834848b231b0ecbcffead8539"
|
||||
},
|
||||
{
|
||||
"name": "PLAN-DAILY-PORTFOLIO-AND-MEMETIC-REGIME-UPDATE-FEATURE.md",
|
||||
"size_bytes": 17984,
|
||||
"sha256": "7bbe9548b31a755dc158787a4e410ec5f237435b05f247c7f3a0bac39c95eb57"
|
||||
},
|
||||
{
|
||||
"name": "PLAN-DAILY-PORTFOLIO-AND-MEMETIC-REGIME-UPDATE-FEATURE.pdf",
|
||||
"size_bytes": 101677,
|
||||
"sha256": "a7514a299a682bfe783d2aa1336692e5df4421645272e97f2890dedeff0dc384"
|
||||
},
|
||||
{
|
||||
"name": "PLAN-DONATE-SUBPAGE-MINIMAL-REDUCTION.md",
|
||||
"size_bytes": 5116,
|
||||
"sha256": "704a21216103209e739e4043d6f9263e31bb95557c2982ac621dd46dbdf631ac"
|
||||
},
|
||||
{
|
||||
"name": "PLAN-DONATE-SUBPAGE-MINIMAL-REDUCTION.pdf",
|
||||
"size_bytes": 86622,
|
||||
"sha256": "6c4f6cc2a6100a2dfa4c362b94767644652d720eea0a1a6d7a42046948e39321"
|
||||
},
|
||||
{
|
||||
"name": "PLAN-ELIMINATE-CONTAINER-HOST-PATHS-AND-TARGET-PUBLIC-WEB-ROUTES.md",
|
||||
"size_bytes": 12067,
|
||||
"sha256": "2aa48c49d5e8be605b1f4de6bf8044f456cc69ec6ab09b880cb1428afa5f283c"
|
||||
},
|
||||
{
|
||||
"name": "PLAN-ELIMINATE-CONTAINER-HOST-PATHS-AND-TARGET-PUBLIC-WEB-ROUTES.pdf",
|
||||
"size_bytes": 93000,
|
||||
"sha256": "136b94379f9d82098dd74dc37172e2eed59dfaf23c7edb74bd042b34338f9e4c"
|
||||
},
|
||||
{
|
||||
"name": "PLAN-GIT-LIBRE-AUDIO-REPO-SYNC-FOR-VPS-INSTALL-DIRS.md",
|
||||
"size_bytes": 16330,
|
||||
"sha256": "edcb569f8959b70bf5b8984ac90b24afee7c728fd7d3e2674b7afd60caacd041"
|
||||
},
|
||||
{
|
||||
"name": "PLAN-GIT-LIBRE-AUDIO-REPO-SYNC-FOR-VPS-INSTALL-DIRS.pdf",
|
||||
"size_bytes": 96443,
|
||||
"sha256": "f0bc3603e58f03210002f5f2fc00edc5bc24433da61c724aa38afd6193208011"
|
||||
},
|
||||
{
|
||||
"name": "PLAN-GIT-OPERATOR-PUBLIC-HTTP-RELEASE-AND-ONBOARDING.md",
|
||||
"size_bytes": 13653,
|
||||
"sha256": "65817d69f13c85d7a23dd2c4ee3f601280b99cb2ee145971ae06adc760123d34"
|
||||
},
|
||||
{
|
||||
"name": "PLAN-GIT-OPERATOR-PUBLIC-HTTP-RELEASE-AND-ONBOARDING.pdf",
|
||||
"size_bytes": 95040,
|
||||
"sha256": "f3111400973f13164d8c07c247dbd82d471f47fc5e9024cbb3c78b4da4ca0622"
|
||||
},
|
||||
{
|
||||
"name": "PLAN-GLOBAL-SITE-FOOTER-LEMURS.md",
|
||||
"size_bytes": 4026,
|
||||
"sha256": "b29be8241dd6167d451510559e7402b92e850e8da64db65db602098d59879c4f"
|
||||
},
|
||||
{
|
||||
"name": "PLAN-GLOBAL-SITE-FOOTER-LEMURS.pdf",
|
||||
"size_bytes": 85710,
|
||||
"sha256": "38efad63b69e66664c506398392be8b06aabc7360495028a908645bf04f1a1f9"
|
||||
},
|
||||
{
|
||||
"name": "PLAN-GUILE-SCHEME-PEDAGOGICAL-TOGGLE-AND-IN-BROWSER-REPL.md",
|
||||
"size_bytes": 15736,
|
||||
"sha256": "f29581a99474c8c4cd0e581fcef70e4d09093b12fe869d565f3ab436a9ccf835"
|
||||
},
|
||||
{
|
||||
"name": "PLAN-GUILE-SCHEME-PEDAGOGICAL-TOGGLE-AND-IN-BROWSER-REPL.pdf",
|
||||
"size_bytes": 100062,
|
||||
"sha256": "9c343742b0f654d63de73c67f57365af7db821a45be22084d989c8a6da0c63c8"
|
||||
},
|
||||
{
|
||||
"name": "PLAN-HAIPERDOHP-SILHOUETTE-HYPERSTITION-PALETTE-UNIFIED-STYLE-AUGMENTATION.md",
|
||||
"size_bytes": 31238,
|
||||
"sha256": "bad9b3ec40554b0002556de6b0bb8089dba97450f3c90659337a37424093db74"
|
||||
},
|
||||
{
|
||||
"name": "PLAN-HAIPERDOHP-SILHOUETTE-HYPERSTITION-PALETTE-UNIFIED-STYLE-AUGMENTATION.pdf",
|
||||
"size_bytes": 115427,
|
||||
"sha256": "9569f5fb06bbe8680b6a99f47b1714bfb1fa4458dae67f5560f2faa81ad520f8"
|
||||
},
|
||||
{
|
||||
"name": "PLAN-HOMEPAGE-ENGINEERING-AND-MATH-NAVIGATION-WIRING.md",
|
||||
"size_bytes": 5880,
|
||||
"sha256": "f41583700c51c85e750ffb12f35ff55b993cf446ffacee0cd37194ea35c940d3"
|
||||
},
|
||||
{
|
||||
"name": "PLAN-HOMEPAGE-ENGINEERING-AND-MATH-NAVIGATION-WIRING.pdf",
|
||||
"size_bytes": 85808,
|
||||
"sha256": "69d9f8114060dae54128ddf0306ab9609818ab90bc953d84d049235dcc92d8c8"
|
||||
},
|
||||
{
|
||||
"name": "PLAN-HOMEPAGE-LAYOUT-GIT-VELOCITY-PRIORITIZATION-AND-DECLUTTER.md",
|
||||
"size_bytes": 13285,
|
||||
"sha256": "528e94485ac5b158a261b99885936291de403cfa3ddfe45b7fae454ffd6bfc83"
|
||||
},
|
||||
{
|
||||
"name": "PLAN-HOMEPAGE-LAYOUT-GIT-VELOCITY-PRIORITIZATION-AND-DECLUTTER.pdf",
|
||||
"size_bytes": 98298,
|
||||
"sha256": "a49486d6b313bd2aa51fb32125aae4d3b0c37a049a758a0b9b3ff96f045747c4"
|
||||
},
|
||||
{
|
||||
"name": "PLAN-HOMEPAGE-QUADRANT-EXPLORATORY-FEATURES-AND-BUTTON-GEOMETRY.md",
|
||||
"size_bytes": 6842,
|
||||
"sha256": "dd8b9d34db12eacebcbb41c95ef31bfe5dc914d24119c1148a1d3e9ca6f68770"
|
||||
},
|
||||
{
|
||||
"name": "PLAN-HOMEPAGE-QUADRANT-EXPLORATORY-FEATURES-AND-BUTTON-GEOMETRY.pdf",
|
||||
"size_bytes": 89651,
|
||||
"sha256": "8d674cedff756b5b642433054bf8076157a1029761833370ab47f5a269473af6"
|
||||
},
|
||||
{
|
||||
"name": "PLAN-HS-PDF-BUILD-DARK-MODE-AND-GLYPH-SANITIZATION.md",
|
||||
"size_bytes": 19409,
|
||||
"sha256": "4a96fe354c33510df35d74d568f66346015cab8aceeef3732128ceac43915671"
|
||||
},
|
||||
{
|
||||
"name": "PLAN-HS-PDF-BUILD-DARK-MODE-AND-GLYPH-SANITIZATION.pdf",
|
||||
"size_bytes": 108319,
|
||||
"sha256": "be2a0b6115f8b4c80b0e85b4d2ca35a7734511590adf25be734dfb764bcfbe37"
|
||||
},
|
||||
{
|
||||
"name": "PLAN-INTROSPECTIVE-PROTECT-SYSTEM-STRICT-EROFS-TEST-HARNESS.md",
|
||||
"size_bytes": 7708,
|
||||
"sha256": "61fe0af6c52ea7dc6f21154cc3c229222a2b664f9eb31333e2b02f67a67b6228"
|
||||
},
|
||||
{
|
||||
"name": "PLAN-INTROSPECTIVE-PROTECT-SYSTEM-STRICT-EROFS-TEST-HARNESS.pdf",
|
||||
"size_bytes": 89514,
|
||||
"sha256": "f5e6b0f1b28cf5d550838677cfba4921d69f0f6c44828e95d5c404075f578814"
|
||||
},
|
||||
{
|
||||
"name": "PLAN-LEARNING-SUBPAGE-AND-LOCAL-STATE-PORTABILITY.md",
|
||||
"size_bytes": 13512,
|
||||
"sha256": "5fd3fb94634429b2ec620272d03aa1530925e35635985bab9db6113b3a120b6e"
|
||||
},
|
||||
{
|
||||
"name": "PLAN-LEARNING-SUBPAGE-AND-LOCAL-STATE-PORTABILITY.pdf",
|
||||
"size_bytes": 96614,
|
||||
"sha256": "c14558b14653db537c1f9353b7f50602bb57343da9d6f2d82ddbdadaae8382f0"
|
||||
},
|
||||
{
|
||||
"name": "PLAN-LINODE-AKAMAI-VPS-HOMEPAGE-DEPLOYMENT.md",
|
||||
"size_bytes": 11776,
|
||||
"sha256": "0c54a023403f7a4b034ca7da782af5b7b103e69c593ec818279b5adc5797e73e"
|
||||
},
|
||||
{
|
||||
"name": "PLAN-LINODE-AKAMAI-VPS-HOMEPAGE-DEPLOYMENT.pdf",
|
||||
"size_bytes": 93548,
|
||||
"sha256": "b3570d5ef49aef6c6aee41fc7c6bb2c34baf501a10a3060842092709a3650b21"
|
||||
},
|
||||
{
|
||||
"name": "PLAN-MACROECONOMIC-INDICATORS-INTEGRATION-CPI-PPI-RATES-M2-GDP.md",
|
||||
"size_bytes": 14091,
|
||||
"sha256": "b32d4c46dbfe6ac120e827bfdc0993d1be386e0feb820f060f8e550c733d2ec1"
|
||||
},
|
||||
{
|
||||
"name": "PLAN-MACROECONOMIC-INDICATORS-INTEGRATION-CPI-PPI-RATES-M2-GDP.pdf",
|
||||
"size_bytes": 98053,
|
||||
"sha256": "004eea64a2e47599b3fa3e78c7642afbb45ac64302347995fba511c954934058"
|
||||
},
|
||||
{
|
||||
"name": "PLAN-MATHEMATICAL-EXPLICATION-HUB-AND-SUBPAGES.md",
|
||||
"size_bytes": 20248,
|
||||
"sha256": "f4a97a6da14649a2f3c8d75004a4641ddd21210ec9f8fc4af865c3b8835ffee3"
|
||||
},
|
||||
{
|
||||
"name": "PLAN-MATHEMATICAL-EXPLICATION-HUB-AND-SUBPAGES.pdf",
|
||||
"size_bytes": 107147,
|
||||
"sha256": "02b963ce3468a23c61506b0c5a7c5db299efd616144e264bc04a961df89ab3de"
|
||||
},
|
||||
{
|
||||
"name": "PLAN-MCP-REST-API-ADAPTER.md",
|
||||
"size_bytes": 15674,
|
||||
"sha256": "0ca7e6de1b049aa6042ee338fed0f7d166b2e10daad63510ba2464212824e170"
|
||||
},
|
||||
{
|
||||
"name": "PLAN-MCP-REST-API-ADAPTER.pdf",
|
||||
"size_bytes": 98949,
|
||||
"sha256": "65a7c775eba0a51780ee3b70cf2b0021abeb3546a1c0fbaa5e6dbaec579f159e"
|
||||
},
|
||||
{
|
||||
"name": "PLAN-MCP-SERVER-HYPERSTITIONSTUDIO.md",
|
||||
"size_bytes": 16401,
|
||||
"sha256": "bca396d0685f9e31f0043a2b915c90e7e4fa62bd006baeb014aed22b58d021b2"
|
||||
},
|
||||
{
|
||||
"name": "PLAN-MCP-SERVER-HYPERSTITIONSTUDIO.pdf",
|
||||
"size_bytes": 99275,
|
||||
"sha256": "fdbf9114bcdf10cd464e4cfe75769cc6d378f4df59c0c6370e6497cd9e83dac7"
|
||||
},
|
||||
{
|
||||
"name": "PLAN-MIGRATE-PERIODIC-DATA-PRODUCTION-FROM-LOCALHOST-TO-VPS.md",
|
||||
"size_bytes": 14557,
|
||||
"sha256": "8ffb1c53f8558d25b4d1824a940e57982a0d342d748842612cdfb4c697af3f93"
|
||||
},
|
||||
{
|
||||
"name": "PLAN-MIGRATE-PERIODIC-DATA-PRODUCTION-FROM-LOCALHOST-TO-VPS.pdf",
|
||||
"size_bytes": 96552,
|
||||
"sha256": "fb0f34ff24024094e0801911cc58fb082988a7a007cf841ffae8e6f1baeed839"
|
||||
},
|
||||
{
|
||||
"name": "PLAN-MODULAR-LENS-PROJECTION-AND-REVERSIBILITY-ARCHITECTURE.md",
|
||||
"size_bytes": 15438,
|
||||
"sha256": "5bf393002402104b79248f9e63b783606fc3b43a52029eef47687535402d1263"
|
||||
},
|
||||
{
|
||||
"name": "PLAN-MODULAR-LENS-PROJECTION-AND-REVERSIBILITY-ARCHITECTURE.pdf",
|
||||
"size_bytes": 101231,
|
||||
"sha256": "43732c75cee9a8650f477b9fd6a0df1a01b4d3c9778a1602eb4bad3473591ee1"
|
||||
},
|
||||
{
|
||||
"name": "PLAN-ONE-SHOT-TICKER-STATS-CARDS-API-PNG-AND-JSON.md",
|
||||
"size_bytes": 19561,
|
||||
"sha256": "39645c4e44099540b7be11d2b295a1394861537a60c4c0b016521e03b8d84f06"
|
||||
},
|
||||
{
|
||||
"name": "PLAN-ONE-SHOT-TICKER-STATS-CARDS-API-PNG-AND-JSON.pdf",
|
||||
"size_bytes": 102299,
|
||||
"sha256": "069cf4c2a294a30a4823548471fc5b4661a929882ac25313715749572dd3037b"
|
||||
},
|
||||
{
|
||||
"name": "PLAN-PIECEWISE-DECLUTTER-AND-ACCENTUATE-HOMEPAGE-UI-CLOSEUPS.md",
|
||||
"size_bytes": 10854,
|
||||
"sha256": "041e2046be3f22332f32fa9c01f803734a127b3338ca83afb039dc024c2420ba"
|
||||
},
|
||||
{
|
||||
"name": "PLAN-PIECEWISE-DECLUTTER-AND-ACCENTUATE-HOMEPAGE-UI-CLOSEUPS.pdf",
|
||||
"size_bytes": 93996,
|
||||
"sha256": "1dca405518f655d5368ae5e19145da34e21ab03e197752136c92752a9f03a7d3"
|
||||
},
|
||||
{
|
||||
"name": "PLAN-PIECEWISE-MARKET-RESEARCH-ICP-MVP-AND-COMPETITIVE-STRATEGY.md",
|
||||
"size_bytes": 16021,
|
||||
"sha256": "b56f7d40a98c86795a97ac94cb1ef1c87de6434aca1c6f04da273764060f7569"
|
||||
},
|
||||
{
|
||||
"name": "PLAN-PIECEWISE-MARKET-RESEARCH-ICP-MVP-AND-COMPETITIVE-STRATEGY.pdf",
|
||||
"size_bytes": 99676,
|
||||
"sha256": "ace08d957159469d0ebcc4a8d8aaf3672a0a8eb4a1e7ffb2289e8f247fee6cf9"
|
||||
},
|
||||
{
|
||||
"name": "PLAN-PIECEWISE-UI-EVOLUTION-FOR-GROWING-DATASETS.md",
|
||||
"size_bytes": 3664,
|
||||
"sha256": "9cf543e812cab75a8ca8f535d8832b1b0717a6c4b9f8d6b9faac5ec15568bb99"
|
||||
},
|
||||
{
|
||||
"name": "PLAN-PIECEWISE-UI-EVOLUTION-FOR-GROWING-DATASETS.pdf",
|
||||
"size_bytes": 85446,
|
||||
"sha256": "91371f59f182125c1949fec722f5ff9681a6fe25b806a4e08b11520b65ce2bf7"
|
||||
},
|
||||
{
|
||||
"name": "PLAN-POLYGLOT-PROGRAMMING-LENS-GUILE-TYPESCRIPT-RUST-AND-SELECTOR.md",
|
||||
"size_bytes": 19580,
|
||||
"sha256": "bc1eeb0f18975f246832522317b86ffa0edc13951a0317e1bf799640e051fa68"
|
||||
},
|
||||
{
|
||||
"name": "PLAN-POLYGLOT-PROGRAMMING-LENS-GUILE-TYPESCRIPT-RUST-AND-SELECTOR.pdf",
|
||||
"size_bytes": 104641,
|
||||
"sha256": "cc8cdc2f1ad665cfe0d21f2c4b382d795b2370cc514c89ce3948a6c93ea11af0"
|
||||
},
|
||||
{
|
||||
"name": "PLAN-PROGRAMMATIC-VERSION-BUMP-HEURISTICS-ZERO-TOKEN.md",
|
||||
"size_bytes": 8606,
|
||||
"sha256": "810a920663c6d37f5c5e8dd96b7e81de23a5ac1ae73c9b557cd4da64708a3587"
|
||||
},
|
||||
{
|
||||
"name": "PLAN-PROGRAMMATIC-VERSION-BUMP-HEURISTICS-ZERO-TOKEN.pdf",
|
||||
"size_bytes": 90499,
|
||||
"sha256": "26f7c14fb2d59d4ef93bfb8057ae4513c62dff1f393eee261ab3dd9e2196f411"
|
||||
},
|
||||
{
|
||||
"name": "PLAN-QUANT-BIDIRECTIONAL-DATA-POINT-CENSUS-AND-CROSS-SPECIES-CONFLUENCE.md",
|
||||
"size_bytes": 26594,
|
||||
"sha256": "59f66702ed544f3188401bd4935ef1323ad2eeec92006e6a473d1cb1799780a0"
|
||||
},
|
||||
{
|
||||
"name": "PLAN-QUANT-BIDIRECTIONAL-DATA-POINT-CENSUS-AND-CROSS-SPECIES-CONFLUENCE.pdf",
|
||||
"size_bytes": 115096,
|
||||
"sha256": "e6ba54037dcecd96c22910387dab9325ee68c58f9562015287984c1953a5e438"
|
||||
},
|
||||
{
|
||||
"name": "PLAN-QUANT-INTERFACE-INFO-ICONS-AND-GLOSSARY-POPOVERS.md",
|
||||
"size_bytes": 26981,
|
||||
"sha256": "692c2517dfd39b9b908e86717e36ef2b56e36fc254805c35fe1c27838b111f6b"
|
||||
},
|
||||
{
|
||||
"name": "PLAN-QUANT-INTERFACE-INFO-ICONS-AND-GLOSSARY-POPOVERS.pdf",
|
||||
"size_bytes": 109150,
|
||||
"sha256": "4d2f60dd8e50b9a0e3fb3159c6c9fec258bfbc242779d82f44d901cf6b250a7c"
|
||||
},
|
||||
{
|
||||
"name": "PLAN-QUANT-TUTORIAL-VIDEO-SERIES-AND-CITATION-DEEP-LINKS.md",
|
||||
"size_bytes": 17155,
|
||||
"sha256": "f02c9f93d273652bd1cfcf0df21038e33034b8dbda5052b1d9dcfb86d51c2e37"
|
||||
},
|
||||
{
|
||||
"name": "PLAN-QUANT-TUTORIAL-VIDEO-SERIES-AND-CITATION-DEEP-LINKS.pdf",
|
||||
"size_bytes": 101919,
|
||||
"sha256": "011c6408e2a1644f725a403a81b9a4f3fba2496152effabf7622a0340120bd2b"
|
||||
},
|
||||
{
|
||||
"name": "PLAN-QUANTITATIVE-FINANCE-TIMESERIES-SUBPAGE.md",
|
||||
"size_bytes": 24826,
|
||||
"sha256": "d0e4338a98afb8f2eb3557759c02fc9677b39d86393f97d413451168ea5f20f5"
|
||||
},
|
||||
{
|
||||
"name": "PLAN-QUANTITATIVE-FINANCE-TIMESERIES-SUBPAGE.pdf",
|
||||
"size_bytes": 110588,
|
||||
"sha256": "cc584e55f3d32bdd4db9ee0fcd6d40d5f5becf873319ffc9365c32be28d8945f"
|
||||
},
|
||||
{
|
||||
"name": "PLAN-QUANTITATIVE-FINANCIAL-TELEMETRY-PIPELINE.md",
|
||||
"size_bytes": 14749,
|
||||
"sha256": "c4f131d5f10b700d9dc0fe907d2c0f86ced9d2cfb414583d8bef78f28766700a"
|
||||
},
|
||||
{
|
||||
"name": "PLAN-QUANTITATIVE-FINANCIAL-TELEMETRY-PIPELINE.pdf",
|
||||
"size_bytes": 97326,
|
||||
"sha256": "4411a46a00e79cf8a891766432e1b748c7feb85f394091d8983ce0315e9c7503"
|
||||
},
|
||||
{
|
||||
"name": "PLAN-README-AND-GIT-COMMIT-MESSAGE-VERSION-PARITY-FIX.md",
|
||||
"size_bytes": 7510,
|
||||
"sha256": "df4c4fa7e3bf8ed72ea4985352ab8d5020720215b0c2abb720b6adb7177a8c0c"
|
||||
},
|
||||
{
|
||||
"name": "PLAN-README-AND-GIT-COMMIT-MESSAGE-VERSION-PARITY-FIX.pdf",
|
||||
"size_bytes": 89308,
|
||||
"sha256": "4ee8453ffcf1e701f2efa5a217196838feb5c3579576bf9aadafb53ea127c15a"
|
||||
},
|
||||
{
|
||||
"name": "PLAN-REMOVE-D-FILTER-DISCUSSION-FROM-ENGINEERING-AND-MATH-HUBS.md",
|
||||
"size_bytes": 7744,
|
||||
"sha256": "66e8086edfffe148d6cdeac645315a52b4f270fcbb18a0276da38f6407722c7c"
|
||||
},
|
||||
{
|
||||
"name": "PLAN-REMOVE-D-FILTER-DISCUSSION-FROM-ENGINEERING-AND-MATH-HUBS.pdf",
|
||||
"size_bytes": 89036,
|
||||
"sha256": "56324f894bbeed5dab80666cd865df84db70c1d70ef7d6bc4655f4c54485a07a"
|
||||
},
|
||||
{
|
||||
"name": "PLAN-RESTORE-V2-4-0-DONATE-BUTTON-APPEARANCE.md",
|
||||
"size_bytes": 9743,
|
||||
"sha256": "876f4ba52b9e5fa3c8bc742006ae9adbbbb9f0a76ffa402a8fec7cbe5235a0c6"
|
||||
},
|
||||
{
|
||||
"name": "PLAN-RESTORE-V2-4-0-DONATE-BUTTON-APPEARANCE.pdf",
|
||||
"size_bytes": 89979,
|
||||
"sha256": "41e46777ae2ef41f97f5ab0ad03400e62377cbb107ee372c3049d6c5169c6ee4"
|
||||
},
|
||||
{
|
||||
"name": "PLAN-SOFTWARE-ENGINEERING-EXPLICATION-HUB-AND-SUBPAGES.md",
|
||||
"size_bytes": 19681,
|
||||
"sha256": "bb59126c0fa022991048a4f3a0c33b0eb1dc3cf60ddaa6d1a1c9a3715c2c1e73"
|
||||
},
|
||||
{
|
||||
"name": "PLAN-SOFTWARE-ENGINEERING-EXPLICATION-HUB-AND-SUBPAGES.pdf",
|
||||
"size_bytes": 105359,
|
||||
"sha256": "ee62cbd81e85e90b8b35c5d32ba14f369155d2f23d2bda24937f0cd28bb2b7be"
|
||||
},
|
||||
{
|
||||
"name": "PLAN-SQLITE-META-REST-ENDPOINTS-ETAG-AND-VPS-SYNC.md",
|
||||
"size_bytes": 7611,
|
||||
"sha256": "c0bb178c893ee471099e6cc0a811261eb5b6e653c8cf5843ba2c479ed9a6888d"
|
||||
},
|
||||
{
|
||||
"name": "PLAN-SQLITE-META-REST-ENDPOINTS-ETAG-AND-VPS-SYNC.pdf",
|
||||
"size_bytes": 89845,
|
||||
"sha256": "6b4f3afe660fa38ada61f96a317f80bb5d4fb391b6b88ea2628a604ac018ba54"
|
||||
},
|
||||
{
|
||||
"name": "PLAN-SQLITE-REST-API-METADATA-DB.md",
|
||||
"size_bytes": 20367,
|
||||
"sha256": "04971e8b50c754c4df6254c38fe369951a1ab0c4a3891b25804de924683fbcb5"
|
||||
},
|
||||
{
|
||||
"name": "PLAN-SQLITE-REST-API-METADATA-DB.pdf",
|
||||
"size_bytes": 100706,
|
||||
"sha256": "67b6025c271440d2ccf663f3fb9099e09669720ed63558b8d520c842a86f3ea2"
|
||||
},
|
||||
{
|
||||
"name": "PLAN-STATIC-DONATE-SUBPAGE.md",
|
||||
"size_bytes": 18515,
|
||||
"sha256": "eed42f9f23dad132057e9930f063711ada124b8b420dd809ec1cae0774697541"
|
||||
},
|
||||
{
|
||||
"name": "PLAN-STATIC-DONATE-SUBPAGE.pdf",
|
||||
"size_bytes": 98984,
|
||||
"sha256": "ead0638ef15e319d8d03ccf7a5305f3bee626a5abbee308307d5b9819b680196"
|
||||
},
|
||||
{
|
||||
"name": "PLAN-SUBTLE-CYBERNETIC-MATRIX-CODE-RAIN-BACKGROUND.md",
|
||||
"size_bytes": 9186,
|
||||
"sha256": "fdaca23ac12f7784090c04cc1162a785515305ac00cc0ff8d28031247d95785a"
|
||||
},
|
||||
{
|
||||
"name": "PLAN-SUBTLE-CYBERNETIC-MATRIX-CODE-RAIN-BACKGROUND.pdf",
|
||||
"size_bytes": 91891,
|
||||
"sha256": "170390d916769a144e5475247e151b4382dad0a318bda42ed120c4c4bd6b43bb"
|
||||
},
|
||||
{
|
||||
"name": "PLAN-TIERZOO-AND-POKEDEX-TIMESERIES-SABERMETRICS-ENRICHMENT.md",
|
||||
"size_bytes": 28006,
|
||||
"sha256": "685e36de0bc98bdd24798b7eecfb7bcf1668b288c8942ae109aaa8057052afd7"
|
||||
},
|
||||
{
|
||||
"name": "PLAN-TIERZOO-AND-POKEDEX-TIMESERIES-SABERMETRICS-ENRICHMENT.pdf",
|
||||
"size_bytes": 115258,
|
||||
"sha256": "9ebf8cf7eabb91c63065a5e9ba9c26c7649f863f0221826ffcf9854a22ed1a07"
|
||||
},
|
||||
{
|
||||
"name": "REVIEW-OUTSTANDING-PLANS-POST-V2-0-8.md",
|
||||
"size_bytes": 5742,
|
||||
"sha256": "ce4d541462b463e7badc076cc13fbf4d934b184316928797332dbee2f07caec9"
|
||||
},
|
||||
{
|
||||
"name": "REVIEW-OUTSTANDING-PLANS-POST-V2-0-8.pdf",
|
||||
"size_bytes": 87193,
|
||||
"sha256": "18c9850c0fd78cbf3e197874b7944fc2d9e31627fda61162827f5e0570e6105a"
|
||||
},
|
||||
{
|
||||
"name": "plan-interactive-knowledge-graph-encyclopedia.md",
|
||||
"size_bytes": 11521,
|
||||
"sha256": "e83b7fe0b3dbf20498de88cabeff323b2ba31a053768f42461949fbb8f3e88d7"
|
||||
},
|
||||
{
|
||||
"name": "plan-interactive-knowledge-graph-encyclopedia.pdf",
|
||||
"size_bytes": 95625,
|
||||
"sha256": "40361a953f24334f7ca6c63ae719df2e8bc288751445b8449cb1f7ee6ac9b867"
|
||||
}
|
||||
]
|
||||
}
|
||||
Binary file not shown.
@@ -1,87 +0,0 @@
|
||||
# Architecture & Implementation Plan: Open-Source Interactive Knowledge Graph of the Encyclopedia of Technocapital Singularity Zoology (With Strict Glossary Isolation)
|
||||
|
||||
- **Target Repository:** `/workspace/technocapital-singularity-zoology` (`v1.7.0`)
|
||||
- **Planned Knowledge Graph Directory:** `/workspace/technocapital-singularity-zoology/knowledge-graph/` *(Planned — Read-Only Consumer of `encyclopedia/` & `taxonomy/`)*
|
||||
- **Glossary & Encyclopedia Isolation Rule:** **100% Enforced (`0` Graph/Visualization Concepts Added to `taxonomy/glossary-registry.json`, `technocapital-singularity-zoology-comprehensive-glossary.{md,pdf}`, or `encyclopedia/`)**
|
||||
|
||||
---
|
||||
|
||||
## 1. Strict Glossary & Encyclopedia Isolation Architecture (One-Way Read-Only Data Flow)
|
||||
|
||||
To guarantee that **zero resultant concepts from graph theory, network science, or UI visualization tooling** (`Cytoscape.js`, `Sigma.js`, `Graphology`, `NetworkX`, `ForceAtlas2`, `fCoSE`, `GraphML`, `GEXF`, `JSON Canvas`, `betweenness centrality`, `bipartite projection`, `Louvain modularity`, etc.) ever enter the Technocapital Singularity Zoology Glossary or the 22-Volume PDF Encyclopedia:
|
||||
|
||||
1. **Strictly Unidirectional Read-Only Ingestion:**
|
||||
The planned graph compiler (`scripts/build_encyclopedia_knowledge_graph.py`) reads `taxonomy/glossary-registry.json`, `encyclopedia/encyclopedia-manifest.json`, `taxonomy/singularity-zoology-matrix.json`, `taxonomy/memetic-superclass-registry.json`, `taxonomy/quantitative-economic-anchors.json`, and `taxonomy/assemblage-builds-tier-list.json` in **read-only mode** (`open(..., "r")`).
|
||||
2. **Decoupled CLI Entrypoint:**
|
||||
Unlike `--build-tier-list` or `--build-encyclopedia`, the knowledge-graph builder will live in a separate script (`scripts/build_encyclopedia_knowledge_graph.py`) that **never imports or invokes `sync_glossary()`, `--add-glossary-term`, or `build_encyclopedia()`**.
|
||||
3. **Pre/Post SHA-256 Registry Assertion:**
|
||||
At the start and end of every graph build, the script will compute `sha256(taxonomy/glossary-registry.json)` and assert byte-for-byte identity before exiting (`assert pre_sha256 == post_sha256`).
|
||||
|
||||
---
|
||||
|
||||
## 2. Multi-Partite Property Graph Schema (`6` Node Types & `8` Typed Edge Relations)
|
||||
|
||||
The Encyclopedia's `282` unique headwords (`291` volume placements), `9` Ontological Divisions, `22` PDF Volumes, `9` Ranked `ETI` Assemblage Builds, `189` verified `333 / 666 / 777` equations, and `60+` Base-36 `AQ` coordinate rings map onto a typed multi-partite property graph (`~365` nodes, `~1,480` edges):
|
||||
|
||||
### 2.1 Node Ontology (`6` Node Classes)
|
||||
|
||||
| Node Class | Est. Count | Visual Encoding (Shape / Color / Size) | Core Node Properties (`data` Payload) |
|
||||
| :--- | :--- | :--- | :--- |
|
||||
| **`OntologicalDivision`** | `9` | Compound Parent Bounding Box (`#1E2026` dark frame) | `div_id` (`00`..`08`), `div_title`, `description`, `volume_count` |
|
||||
| **`EncyclopediaVolume`** | `22` | Rounded Hexagon (`#8B1A1A` Crimson accent) | `volume_number`, `slug`, `title`, `pdf_path`, `host_file_url`, `page_count`, `article_count` |
|
||||
| **`TaxonAssemblageBuild`** | `9` | Large Octagon sized by `ETI` (`49–93`), colored by Tier (`#FF4D4D` `S+` down to `#7FBFFF` `D`) | `rank` (`#1`..`#9`), `tier_Band` (`S+`..`D`), `eti_score`, `roster_slot`, `double_articulated`, `stats_6` (`ARM, VEL, COL, CAP, PRM, RES`), `gen0_var_collapsed` |
|
||||
| **`ConceptualOperatorOrIdiom`** | `92` | Diamond (`#E6A800` Gold for Operators, `#7FBFFF` for Stakeholder Idioms) | `term`, `category`, `definition`, `eng_aq`, `ing`, `ing_aq`, `delta`, `isometric`, `volume_pdf` |
|
||||
| **`BilingualLexicalSpecimen`** | `190` | Circle sized by ring degree, colored by primary guild (`S1`–`S6`, `M1`–`M7+`) | `eng`, `eng_aq`, `eng_prime_rank`, `ing`, `ing_aq`, `ing_prime_rank`, `delta`, `isometric`, `twin_prime`, `g3_quantized_step`, `classes`, `sample_equations` |
|
||||
| **`AQCoordinateHub`** | `~45` | Star / Bullseye Hub (`#7FFF7F` Mint for Primes, `#FFBF7F` Amber for Powers/Cubes `81, 125, 128, 256`, `#FF4D4D` for `333/666/777`) | `aq_value` (`71..390`, `333/666/777`), `factorization`, `prime_rank`, `gen0_variance_collapsed`, `is_flex_pivot` (`13` multi-build coordinates) |
|
||||
|
||||
### 2.2 Edge Ontology (`8` Typed Mathematical & Structural Relations)
|
||||
|
||||
| Edge Type (`relation`) | Direction | Est. Count | Visual Encoding & Mathematical Semantics |
|
||||
| :--- | :--- | :--- | :--- |
|
||||
| **`IN_VOLUME` / `IN_DIVISION`** | Directed (`Article -> Vol -> Div`) | `313` | Structural containment hierarchy matching the `encyclopedia/00..08-*/` directory tree |
|
||||
| **`G1_COLLAPSES_TO_ING_AQ`** | Directed (`Specimen -> AQHub`) | `282` | Solid cyan edge (`width` proportional to `log(1 + Gen0_Var_Collapsed)`), labeled with `Δ = ing_aq - eng_aq` |
|
||||
| **`GEN0_WRITTEN_COLLISION`** | Undirected (`Specimen <-> Specimen`) | `~110` | Dashed silver edge linking terms that share `AQ_Eng` prior to phonetic translation (e.g., `corporation == supply chain = 243`) |
|
||||
| **`G2_CROSS_GEN_TWIN`** | Directed (`Gen0_Term -> Gen1_Term`) | `~95` | Magenta curved arrow where `AQ_Eng(A) == AQ_Ing(B)` (e.g., `Dario Amodei [193] -> anthropik [193]`, `asset management [292] -> abstrakt masheen [292]`) |
|
||||
| **`G4_ISOMETRIC_INVARIANT`** | Self-Loop / Gold Halo (`Δ = 0`) | `24` | Heavy gold double-border around immovable chokepoints (`ASML=81`, `TSMC=91`, `GPU=71`, `kapatal=125`, `charter=136`, `kansorsheeam=237`, `transformer=246`, `nacheral kontrakt=316`) |
|
||||
| **`G5_TWIN_PRIME_MUTATION`** | Directed (`Prime_A -> Prime_B`) | `14` | Violet lightning edge connecting `Gen 0` prime to `Gen 1` prime (`Nvidia 113 -> envideea 137`, `monopoly 197 -> manopalee 163`, `reported 173 -> reeportid 191`) |
|
||||
| **`TROPHIC_GUILD_BRIDGE`** | Directed (`Build_A -> Coord -> Build_B`) | `38` | Thick crimson/amber food-web artery across the `13` Multi-Build Hybrid Flex Singularities (`292, 256, 211, 193, 183, 153, 137, 136, 133, 125, 96, 95, 81/91`) |
|
||||
| **`CLOSES_REPDIGIT_EQ`** | Directed (`Specimen -> 333/666/777`) | `~600` | Dotted green/gold hyperedge linking constituent words to their verified `333`, `666`, or `777` dossier equation |
|
||||
|
||||
---
|
||||
|
||||
## 3. Open-Source Tooling Stack (`100%` FOSS, Offline-First & Multi-Target Export)
|
||||
|
||||
Rather than locking the knowledge graph into a single heavy server database, the planned pipeline uses a modular, zero-cost open-source stack that generates **four interoperable targets** from one Python script:
|
||||
|
||||
| Layer / Target | Open-Source Tool / Library | License | Role in the Encyclopedia Knowledge Graph |
|
||||
| :--- | :--- | :--- | :--- |
|
||||
| **1. Graph Compiler & Network Analytics** | **Python 3.10+ & `NetworkX`** (`networkx`) | BSD-3-Clause | Builds the multi-di-graph from `taxonomy/*.json` and `encyclopedia/*.json`, computes node degree, PageRank, eigenvector centrality, and **betweenness centrality** (mathematically proving that the `13` Flex Coordinates have the highest betweenness centrality across `S1–S6`), and exports JSON/GraphML/GEXF. |
|
||||
| **2. Interactive Browser Workbench** | **`Cytoscape.js`** + `cytoscape-fcose` / `dagre` (or **`Sigma.js` + `Graphology`**) | MIT | Single-file/local static HTML5 canvas/WebGL workbench (`knowledge-graph/index.html`) requiring zero backend server (`python3 -m http.server` or direct `file://` open). Supports compound folder nodes, multi-layout animations, edge-type toggles, and instant search. |
|
||||
| **3. Desktop Network Science Export** | **GraphML & GEXF** (for **Gephi** / **yEd** / **Cytoscape Desktop**) | GPLv3 / LGPL | Exports `encyclopedia-graph.graphml` and `encyclopedia-graph.gexf` with pre-computed `(x, y)` coordinates, RGB node colors, and edge weights so researchers can open the full network in Gephi or Cytoscape Desktop. |
|
||||
| **4. Markdown / Obsidian Graph View & JSON Canvas** | **JSON Canvas (`1.0` Spec)** + `[[wikilink]]` Markdown Vault | MIT / Open Spec | Generates `knowledge-graph/encyclopedia.canvas` and an optional interlinked `[[wikilink]]` mirror compatible with Obsidian's native Graph View and `llm-wiki` conventions. |
|
||||
|
||||
---
|
||||
|
||||
## 4. Planned Interactive Workbench Features (`knowledge-graph/index.html`)
|
||||
|
||||
1. **Five Interactive Layout Modes (One-Click Toolbar Switcher):**
|
||||
- **Mode 1 — Trophic Food-Web Layout (`fCoSE` / Force-Directed):** Clusters `S1–S6` and `M1–M7+` guilds organically around shared `AQCoordinateHub` stars (`292, 256, 211, 193, 183, 153, 137, 136, 133, 125, 96, 95, 81/91`).
|
||||
- **Mode 2 — Concentric `ETI` Tier-Ring Radar (`S+` Center -> `D` Periphery):** Places `Tier S+` Apex Predators (`#1 S1 AI [93 ETI]`, `#2 S2 Liquidity [90 ETI]`) in the bullseye ring, surrounded concentrically by `Tier S` Keystone Guilds (`#3 S6 Capture [87]`, `#4 S3 EUV [83]`), `Tier A` Symbionts (`#5 M1 Vampiric [73]`), `Tier B` Nomads (`#6 S5 BwO [61]`, `#7 S4 Carrier-Wave [61]`), `Tier C` Nucleation Stubs (`#8 M6 Zeptoverse [53]` & `M7_candidate_2026_11_28`), and `Tier D` Episodic Anchors (`#9 Q-Stub [49]`).
|
||||
- **Mode 3 — Bipartite Variance-Collapse Funnel (`Gen 0 Left Column -> Δ Edges -> Gen 1 Right Column`):** Visualizes Vector `G1` directly by placing dispersed `Gen 0` written English values on the left and showing their directed `Δ` edges converging onto single zero-variance `Gen 1` Ingglish nodes on the right.
|
||||
- **Mode 4 — Ontological Folder Hierarchy (`Compound Nodes 00–08`):** Groups all `291` article nodes inside expandable/collapsible compound boxes matching the `9` Encyclopedia divisions (`00-index-and-ontological-atlas` through `08-stakeholder-registers-idioms-and-pokedex-semiotics`) and `22` PDF volumes.
|
||||
- **Mode 5 — 13-Flex-Pivot & Ego-Network Subgraph Isolator:** Clicking any coordinate hub (e.g., `129`, `125`, `137`, `193`, `256`, `292`) isolates its 1-hop and 2-hop neighborhood across `Gen 0`, `Gen 1`, `G2` Cross-Gen Twins, and `333/666/777` equations.
|
||||
2. **Right-Hand Encyclopedia Article Inspector & Direct PDF Launcher:**
|
||||
- Clicking any node opens a slide-out inspector displaying the full 7-field Encyclopedia Article (`Gen 0` & `Gen 1` AQ, `Δ`, Prime/Isometric/Twin-Prime badges, `G1` variance collapsed, `6-Stat ETI` radar bar, verified `333/666/777` equations, and a clickable button that opens the exact Encyclopedia Volume `.pdf`!).
|
||||
3. **Live Filter & Search Bar:**
|
||||
- Instant filter by headword substring, Ingglish spelling, exact integer `AQ` value (`e.g., 125` or `193`), Division (`00–08`), Guild (`S1–S6`, `M1–M7+`), or Structural Flag (`Isometric Δ=0 Only`, `Twin-Prime Only`, `G3 Quantized Step Only`, `13 Flex Pivots Only`).
|
||||
|
||||
---
|
||||
|
||||
## 5. Phased Execution Roadmap (Upon Approval to Implement)
|
||||
|
||||
- **Phase 1 (Read-Only Graph Extractor & NetworkX Analytics — `scripts/build_encyclopedia_knowledge_graph.py`):**
|
||||
Ingest the existing JSON registries in read-only mode, build the 6-class node set and 8-relation edge set, compute betweenness/PageRank centralities, verify `sha256(taxonomy/glossary-registry.json)` is unchanged, and emit `encyclopedia-graph.json`, `encyclopedia-graph.graphml`, `encyclopedia-graph.gexf`, and `encyclopedia.canvas`.
|
||||
- **Phase 2 (Interactive Dark-Mode Cytoscape.js Workbench — `knowledge-graph/index.html`):**
|
||||
Build the self-contained HTML5/JS/CSS interactive application with the 5 layout modes, edge-relation toggles, `AQ` calculator search bar, and slide-out Encyclopedia PDF inspector.
|
||||
- **Phase 3 (Headless Browser Verification & High-Resolution Graph Atlas Snapshots):**
|
||||
Render and inspect all 5 layout views via headless browser / `vision_analyze` to verify zero label clipping and clean interactive responsiveness.
|
||||
@@ -120,7 +120,7 @@
|
||||
<div class="pulse-dot"></div>
|
||||
<h1>Cross-Repository Dependency Graph & Auditable Build → Test → Stage_Commit Pipeline</h1>
|
||||
</div>
|
||||
<p class="subtitle">Sibling Repositories under /workspace: ingglish-hyperdope-gematria • technocapital-singularity-zoology (v2.0.29) • encyclopedia-knowledge-graph (v2.0.29)</p>
|
||||
<p class="subtitle">Sibling Repositories under /workspace: ingglish-hyperdope-gematria • technocapital-singularity-zoology (v2.10.0) • encyclopedia-knowledge-graph (v2.10.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.
Binary file not shown.
|
After Width: | Height: | Size: 285 KiB |
@@ -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,67 @@
|
||||
# Plan: Ecosystem-Wide Economization Evaluation & Concrete Optimization Vectors (`Vectors E1–E7`) Across CPU, LLM Tokens, Disk/Web Footprint & Operator Time (`v2.2.2`)
|
||||
|
||||
- **Document ID:** `PLAN-ECOSYSTEM-WIDE-ECONOMIZATION-EVALUATION-AND-VECTORS` (`v2.2.2`)
|
||||
- **Roadmap Status:** **DEFERRED (Long-Term Inactive — Preserved for Future Reference)**
|
||||
- **Core Conservation Constraint (What Must NEVER Be Economized Away):**
|
||||
1. **Zero-Synthetic-Data Mandate:** Never trade away observational honesty (`None`/`null` -> `"No data available"`).
|
||||
2. **Gematria-Pipeline Richness Invariant:** Never prune or compress live gematria, phonemic, zoological, or knowledge-graph corpora (`146` dossiers, `282` glossary entries, `190` bilingual specimens, `388` KG nodes, `1,282` edges, `4,943+` offline CMUdict mappings).
|
||||
3. **Two-Script Manual Operator Deployment Invariant:** `/workspace/push-all-to-git-libre-audio.sh` and `deploy/sync-vps-repos.sh` remain the only two manual deployment steps.
|
||||
- **Target Modules & Scripts:**
|
||||
- `/workspace/hyperstitionstudio-core/src/hyperstitionstud_io/phonetics/{__init__.py,cmudict_fallback.json}` (`Vector E1`)
|
||||
- `/workspace/hyperstitionstudio-core/deploy/sync-vps-repos.sh` (`Vector E2`)
|
||||
- `/workspace/hyperstitionstudio-core/src/hyperstitionstud_io/quant/daily_brief.py` (`Vector E3`)
|
||||
- `/workspace/hyperstitionstudio-core/src/hyperstitionstud_io/mcp/tools.py` (`Vector E4`)
|
||||
- `/workspace/hyperstitionstudio-core/src/hyperstitionstud_io/version_sync.py` (`Vector E5`)
|
||||
- `/workspace/encyclopedia-knowledge-graph/scripts/build_encyclopedia_knowledge_graph.py` (`Vector E6`)
|
||||
|
||||
---
|
||||
|
||||
## 1. Synthesis of Prior Economizations Already Achieved in Session History (`v2.0.25–v2.2.2`)
|
||||
|
||||
| Prior Economization Milestone | Primary Dimension Saved | Measured Impact |
|
||||
| :--- | :--- | :--- |
|
||||
| **1. `T_math/T_char/T_elem/T_box` PDF Sanitizer (`pdf_compiler.py`)** | LLM Token Spend | **`-11,488` BPE tokens** saved across `38` docs (`0` LLM tokens per PDF compile) |
|
||||
| **2. Cold-Storage Plan Archive Rotator (`hs-archive-rotate`)** | Disk / `rglob` / Token Spend | **`76` completed `.md`/`.pdf` plan files (`4.30 MB`)** compressed into `completed-plans-archive.tar.gz` (`3.59 MB`) and excluded from stylistic PDF refreshes |
|
||||
| **3. Decommissioning Non-Exegesis `localhost` Cronjobs (`29c871eb6b78` & `7effa9679803`)** | Metered LLM Cron Turns | **`-12` LLM agent cron turns/week (`-63%`)** by migrating deterministic harvests to VPS `systemd` timers (`0` LLM tokens) |
|
||||
| **4. Programmatic SemVer Heuristics (`hs-sync-version --auto-bump`)** | LLM & Operator Time | **`0` LLM tokens** and **`< 80 ms`** to classify `noop / patch / minor / major` from Git & archive deltas |
|
||||
| **5. Pre-Compiled `quant-timeseries.json` Fast-Path in `quant/cards.py`** | CPU Time (API & Tests) | **`34x` speedup (`1,186 ms -> ~35 ms` per card)**, saving `~3.4 s` per test suite run |
|
||||
| **6. Single Introspective `ProtectSystem=strict` (`EROFS`) Harness (`ci/erofs_harness.py`)** | LLM Maintenance & Operator Time | Automatically sweeps all `MCP_TOOLS_SCHEMA` tools under simulated `EROFS` with **`0` future test-authoring tokens** |
|
||||
|
||||
---
|
||||
|
||||
## 2. Empirical Profiling of Current Bottlenecks (`v2.2.2` Baseline Telemetry)
|
||||
|
||||
Profiling `tests/test_core_suite.py` (`6,653.8 ms` total) and repository artifact sizes across `/workspace` reveals exactly where the remaining CPU time, disk/Git churn, and payload bytes are concentrated:
|
||||
|
||||
- **Test Suite CPU Breakdown:**
|
||||
- Suites `1–6` combined (`test_offline_urn_namespaces` through `test_doctor_all_checks_pass`): **`85.3 ms` (`1.3%`)**
|
||||
- Suite `7` (`test_ipld_quant_and_mcp_server`): **`6,568.5 ms` (`98.7%`)**, dominated by:
|
||||
- `build_quant_timeseries_bundle()` (called 2x in Suite 7): **`1,147.2 ms` + `1,107.8 ms` = `2,255.0 ms`**
|
||||
- `run_introspective_erofs_suite()`: **`780.2 ms`**
|
||||
- `build_catalog_sqlite_db()`: **`442.0 ms`**
|
||||
- `render_periodic_harvest_cicd_flow_diagram_png()`: **`295.9 ms`**
|
||||
- **Root Cause of the `1,147 ms` `build_quant_timeseries_bundle()` Bottleneck:**
|
||||
- Out of `~350` English strings passed to `translate_batch()` in `timeseries.py`, `332` hit `cmudict_fallback.json` in `0.2 ms`, while **18 static ticker abbreviations** (`ANTHR`, `AVGO`, `BLK`, `BTC`, `CEG`, `ETH`, `GOOGL`, `HG`, `LLY`, `LMT`, `MSFT`, `NVDA`, `ORCL`, `PLTR`, `RTX`, `SOL`, `TNX`, `TSM`) are absent from `cmudict_fallback.json` (`4,943` entries), causing `translate_batch()` to spawn a cold `node --input-type=module` subprocess (`~1,100 ms`) on every single call without memoizing the result in `_FALLBACK_CACHE`!
|
||||
|
||||
---
|
||||
|
||||
## 3. Seven Concrete Project-Wide Economization Vectors (`Vectors E1–E7`)
|
||||
|
||||
| Vector | Target Module / Script | Economization Mechanism | Dimension(s) Optimized | Measured Expected Savings |
|
||||
| :---: | :--- | :--- | :--- | :--- |
|
||||
| **`E1`** | `src/hyperstitionstud_io/phonetics/{__init__.py,cmudict_fallback.json}` | 1. Add the 18 canonical watchlist ticker symbols (and FRED unit tokens) to `cmudict_fallback.json` (`4,943 -> 4,961` entries).<br/>2. Memoize any runtime `node` translations into `_FALLBACK_CACHE` in memory so `node` is never spawned twice for the same token in a process. | **CPU Time** & **Offline Phonetic Richness** | • `build_quant_timeseries_bundle()` drops from **`1,147 ms` to `~18 ms` (`63x` faster)**.<br/>• `test_core_suite.py` saves **`~2.2 seconds` (`-34%`)** per run. |
|
||||
| **`E2`** | `deploy/sync-vps-repos.sh` (Step `[4/5]`) | Replace unconditional `find ... -exec gzip -9 -k -f` and `brotli -q 11 -k -f` over every file in `${LIVE_REPOS}` with an incremental `mtime` check (`[[ ! -f "${f}.gz" \|\| "${f}" -nt "${f}.gz" ]]` and `[[ ! -f "${f}.br" \|\| "${f}" -nt "${f}.br" ]]`). | **VPS Sync CPU Time** & **Deploy Latency** | Cuts Step `[4/5]` pre-compression CPU time on incremental deploys and `00:20 UTC` / `21:30 UTC` VPS runs by **`~85–92%`**. |
|
||||
| **`E3`** | `src/hyperstitionstud_io/quant/daily_brief.py` | Compute `input_observations_sha256` over `(real-market-history.json, real-macro-indicators.json, latest_dated_dossier)`. When unchanged (and `--force-advance` is not passed), preserve the current `run_number` (`Q-RUN-NNNN`) and Bayesian posterior state instead of advancing a duplicate run on code-only releases. | **Git Repo Churn**, **Bayesian State Integrity** & **Operator Diff Clarity** | Eliminates spurious `Q-RUN-NNNN` state mutations and `ingglish-hyperdope-gematria` commits on code/doc-only releases. |
|
||||
| **`E4`** | `src/hyperstitionstud_io/mcp/tools.py` | Add `mtime_ns`-keyed in-memory read-only JSON registry caching (`_load_json_cached(path)`) across `glossary-registry.json`, `encyclopedia-graph.json`, `quant-timeseries.json`, `real-macro-indicators.json`, and `daily-brief-latest.json`. | **API / MCP Latency** & **Test Suite CPU Time** | • Cuts `run_introspective_erofs_suite()` from `780 ms` to **`< 90 ms`**.<br/>• Speeds up live `/api/v1/*` and `/mcp` queries by **`5x–15x`**. |
|
||||
| **`E5`** | `src/hyperstitionstud_io/version_sync.py` (`--prepare-release`) | Add `--prepare-release` to `hs-sync-version` to run `hs-archive-rotate`, `--auto-bump`, and selective regeneration of derived manifests in a single zero-token Python invocation. | **Manual Operator Time** & **LLM Turn Count** | Collapses **10 separate pre-push CLI commands into 1 command** (`0` LLM tokens). |
|
||||
| **`E6`** | `encyclopedia-knowledge-graph/scripts/build_encyclopedia_knowledge_graph.py` | Keep `encyclopedia-graph.json` pretty-printed (`indent=2`) for Git readability, while serializing `graph-data.js` with compact `separators=(",", ":")` (matching `engineering-manifest-data.js` and `math-manifest-data.js`). | **Web / RAM `tmpfs` Footprint** | Reduces `graph-data.js` from **`892 KB` to `~625 KB` (`-267 KB` / `-30%`)** with `0` data loss. |
|
||||
| **`E7`** | `hyperstitionstudio-roadmap-and-release/SKILL.md` | Keep `SKILL.md` `< 8,000` chars (`< 2,000` BPE tokens) by storing completed/active plan ledger tables in `references/roadmap-plan-ledger.md`. | **LLM Context Window** | Saves **`~4,200` BPE tokens** on every session turn where the skill is loaded. |
|
||||
|
||||
---
|
||||
|
||||
## 4. Test-Suite Appropriateness & Verification Gates (`tests/test_core_suite.py`)
|
||||
|
||||
1. **Appropriate for `tests/test_core_suite.py`:**
|
||||
- Assert that `cmudict_fallback.json` contains `>= 4,961` entries including all 18 canonical ticker abbreviations (`"nvda"`, `"pltr"`, `"sol"`, `"tsm"`, `"anthr"`, etc.) so `build_quant_timeseries_bundle(write_files=False)` completes in `< 150 ms` with `0` subprocess spawns.
|
||||
- Assert that calling `build_daily_portfolio_brief(allow_live_network=False, write_files=False)` twice on identical underlying market/macro/dossier inputs preserves the same `run_number` (`Q-RUN-NNNN`) and `input_observations_sha256` unless `force_advance=True` is passed.
|
||||
- Assert that `graph-data.js` is compactly serialized (`< 700,000` bytes) while `encyclopedia-graph.json` retains all `388` nodes and `1,282` edges.
|
||||
BIN
Binary file not shown.
File renamed without changes.
File renamed without changes.
+46
@@ -0,0 +1,46 @@
|
||||
# PLAN: Retained & Deferred Candidate Strategies From `PLAN-HOMEPAGE-QUADRANT-EXPLORATORY-FEATURES-AND-BUTTON-GEOMETRY` (`Strategies 1A, 1B, 2A, 2C, 3A, 3C, 4B, 4C, 5A, 5C`)
|
||||
|
||||
**Document ID:** `PLAN-HOMEPAGE-QUADRANT-EXPLORATORY-FEATURES-DEFERRED-STRATEGIES`
|
||||
**Status:** `INACTIVE / DEFERRED FOR FUTURE RE-EVALUATION`
|
||||
**Target Ecosystem Version:** `Future Release (Post-v2.9.0)`
|
||||
**Target Repositories:** `hyperstitionstudio-core`, `haiperdohp-jemaytreeah`, `encyclopedia-knowledge-graph`
|
||||
**Author:** m00t & Hermes Agent
|
||||
**Date:** 2026-11-30
|
||||
|
||||
---
|
||||
|
||||
## 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 **retained-for-future** (`Strategies 2A, 2C, 3A, 3C, 4B, 4C, 5A, 5C`) and **deferred** (`1A, 1B`) candidate strategies from the stepwise review of `PLAN-HOMEPAGE-QUADRANT-EXPLORATORY-FEATURES-AND-BUTTON-GEOMETRY`, leaving exclusively the affirmed strategies (`1C-3, 2B, 3B, 4A, 5B`) inside the active plan.
|
||||
|
||||
---
|
||||
|
||||
## 2. Retained & Deferred Candidate Strategies Across Audit Points `1–5`
|
||||
|
||||
### 2.1 Audit Point 1 — Deferred Below-Closeup Button Bar Variations (`Strategies 1A & 1B`)
|
||||
- **Strategy `1A` (Below-Closeup Adaptive Flush Button Grid) & Strategy `1B` (Below-Closeup Fixed 3-Column Button Grid):**
|
||||
- Superseded by affirmed **`Strategy 1C-3`** (Single Interactive Chamfered Tab Row ABOVE Closeup with balanced `16px` vertical / `20px` horizontal 4-edge symmetry and `0` below-closeup buttons).
|
||||
|
||||
### 2.2 Audit Point 2 — Quadrant 01 Retained Strategies (`Strategies 2A & 2C`)
|
||||
- **Strategy `2A` (`☉ Personal Grimoire Ledger` Deep-Link in `/learn/index.html#m06RegisterSelect`):**
|
||||
- Retained for future implementation alongside Quadrant 01's 3rd `/learn/ Grimoire` tab (`Strategy 2A` of `PLAN-PIECEWISE-DECLUTTER-HOMEPAGE-UI-CLOSEUPS-DEFERRED-STRATEGIES`).
|
||||
- **Strategy `2C` (`☿ Sigil & Mantra Forge` Canvas Modal in `/calc/index.html`):**
|
||||
- Net-new SVG/Canvas kamea wheel sigil drawer inside `/workspace/haiperdohp-jemaytreeah/index.html` (`?mode=sigil-forge`); retained for future implementation.
|
||||
|
||||
### 2.3 Audit Point 3 — Quadrant 02 Retained Strategies (`Strategies 3A & 3C`)
|
||||
- **Strategy `3A` (`♄ Uncaptured Gem Screener` Filter Pill in `/quant/index.html?screen=uncaptured-gems`):**
|
||||
- Filters the `24` instruments and `9` assemblage builds to those matching the Fund Manager Proposal's `"Uncaptured Gem"` criterion (`COL >= 75` or `ARM >= 75`, `VEL >= 80`, and low institutional crowding `CAP <= 65`); retained for future implementation.
|
||||
- **Strategy `3C` (`☍ Zero-Beta Pair Finder` in `/quant/index.html`):**
|
||||
- Retained for future implementation once the historical bar cache accumulates $\ge 60–252$ trading days (currently constrained at $N = 19$ trading days, $SE \approx 0.25$).
|
||||
|
||||
### 2.4 Audit Point 4 — Quadrant 03 Retained Strategies (`Strategies 4B & 4C`)
|
||||
- **Strategy `4B` (`◈ Phonemic Compression Sandbox` Deep-Link to `/learn/index.html#mod-M02`):**
|
||||
- Retained for future implementation.
|
||||
- **Strategy `4C` (`☉ 1-Hop Graph Walk Builder` Toy Widget on `/math/graph-topology-and-eti-scoring/`):**
|
||||
- Retained for future implementation.
|
||||
|
||||
### 2.5 Audit Point 5 — Quadrant 04 Retained Strategies (`Strategies 5A & 5C`)
|
||||
- **Strategy `5A` (`◈ DAG-JSON CIDv1 & Isolation Verifier` Deep-Link):**
|
||||
- Retained for future implementation.
|
||||
- **Strategy `5C` (`⚚ EROFS & tmpfs Mount Simulator UI`):**
|
||||
- Retained for future implementation.
|
||||
BIN
Binary file not shown.
@@ -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`.
|
||||
BIN
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -0,0 +1,121 @@
|
||||
# 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.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.
|
||||
2. **Chatbot REST API Exclusivity (`0` New Bespoke REST Routes in `rest.py`):**
|
||||
Exposes the server-side question-answering engine by registering **`hs_ask_chatbot`** in `MCP_TOOLS_SCHEMA` (`src/hyperstitionstud_io/mcp/tools.py`). The existing generic tool dispatcher in `src/hyperstitionstud_io/mcp/rest.py` automatically serves it at **`GET/POST /api/v1/tools/hs_ask_chatbot`** (and via MCP JSON-RPC `tools/call` on `/mcp`) with **`0` new custom route patterns** in `rest.py`.
|
||||
3. **Strict Zero-Synthetic-Data & `ProtectSystem=strict` (`EROFS`) Compliance:**
|
||||
Every answer is synthesized deterministically from verified server-side registries (`glossary-registry.json`, `encyclopedia-graph.json`, `quant-timeseries.json`, `real-macro-indicators.json`, `daily-brief-latest.json`, `hyperstition-meta.db` FTS5, and `72` archive dossiers). Missing/private/holiday fields report `"No data available"` (`null`), and `hs_ask_chatbot` is automatically swept under simulated `ProtectSystem=strict` (`EROFS`) by `src/hyperstitionstud_io/ci/erofs_harness.py`.
|
||||
4. **Two-Script Deployment Invariant Preserved:**
|
||||
All assets, symlinks (`/chat`), and tests are wired into `/workspace/push-all-to-git-libre-audio.sh` and `/workspace/hyperstitionstudio-core/deploy/sync-vps-repos.sh` so deployment requires no additional manual operator steps.
|
||||
- **Target Modules & Web Surfaces:**
|
||||
- `/workspace/hyperstitionstudio-core/src/hyperstitionstud_io/mcp/chatbot.py` (`answer_chatbot_query()` 8-intent router + SQLite FTS5 BM25 retriever + multi-tool orchestrator)
|
||||
- `/workspace/hyperstitionstudio-core/src/hyperstitionstud_io/mcp/tools.py` (Registers `hs_ask_chatbot` in `MCP_TOOLS_SCHEMA`)
|
||||
- `/workspace/hyperstitionstudio-core/site/assets/hs-chatbot-widget.js` (Lightweight `< 16 KB` dockable Group 3 Stealth Basalt chatbot drawer injected across `/`, `/quant/`, `/learn/`, `/engineering/*`, and `/math/*`)
|
||||
- `/workspace/hyperstitionstudio-core/site/chat/index.html` (Full-screen split-pane `/chat/` Corpus & Telemetry Query Workbench with live JSON/CIDv1 & Stats-Card inspector)
|
||||
- `/workspace/hyperstitionstudio-core/site/assets/hs-group3-basalt-chamfer.css` (Group 3 Stealth Basalt styling for `#hsChatbotToggleBtn`, `#hsChatbotDrawer`, and `/chat/`)
|
||||
- `/workspace/hyperstitionstudio-core/deploy/{sync-vps-repos.sh,test-first-deployment.sh}` & `/workspace/hyperstitionstudio-core/tests/test_core_suite.py`
|
||||
|
||||
---
|
||||
|
||||
## 1. Local Server-Side Question-Answering Architecture (`src/hyperstitionstud_io/mcp/chatbot.py`)
|
||||
|
||||
When the browser sends a user question `q` to `POST /api/v1/tools/hs_ask_chatbot` (or `GET /api/v1/tools/hs_ask_chatbot?query=...`), `answer_chatbot_query(query, page_context, lens, include_card)` executes a deterministic 3-stage pipeline in `< 15 ms`:
|
||||
|
||||
```text
|
||||
[User Question q in Browser]
|
||||
│
|
||||
▼ POST /api/v1/tools/hs_ask_chatbot (Caddy -> 127.0.0.1:8095 hyperstition-mcp.service)
|
||||
┌───────────────────────────────────────────────────────────────────────────────────────────────┐
|
||||
│ Stage 1: Deterministic Intent & Entity Extractor (Regex + Watchlist/Glossary/Coord Matcher) │
|
||||
│ Extracts: ticker symbols (NVDA..ANTHR-PVT), AQ integers (1..999), FRED slugs (CPI..INDPRO), │
|
||||
│ quoted phrases ("..."), and intent keywords (price, dose, card, macro, brief, define, aq). │
|
||||
└───────────────────────────────────────────────┬───────────────────────────────────────────────┘
|
||||
│
|
||||
▼
|
||||
┌───────────────────────────────────────────────────────────────────────────────────────────────┐
|
||||
│ Stage 2: Server-Side Tool & SQLite FTS5 Orchestration (100% Read-Only under EROFS) │
|
||||
│ • Intent 1 (Ticker / Price / Dose / Stats Card) -> hs_inspect_quant_timeseries + cards.py │
|
||||
│ • Intent 2 (Macro / Rates / CPI / M2 / GDP / Brief) -> hs_inspect_macro_indicators + brief │
|
||||
│ • Intent 3 (Calculate AQ / Ingglish / Prime / Mod-9) -> hs_evaluate_aq_and_ingglish │
|
||||
│ • Intent 4 (Define Term / S1-S6 / M1-M7 / G1-G6 / ETI) -> hs_search_glossary_encyclopedia │
|
||||
│ • Intent 5 (Graph Node / Hub / Coordinate aq:N) -> hs_query_knowledge_graph │
|
||||
│ • Intent 6 (333/666/777 Equations / News Dossier) -> hs_search_archive_equations │
|
||||
│ • Intent 7 (Guile Scheme / Z-Combinator / Novice Track) -> guile_prelude + /learn/ ladder │
|
||||
│ • Intent 8 (Open-Ended Question Fallback) -> SQLite FTS5 BM25 search across catalog tables │
|
||||
└───────────────────────────────────────────────┬───────────────────────────────────────────────┘
|
||||
│
|
||||
▼
|
||||
┌───────────────────────────────────────────────────────────────────────────────────────────────┐
|
||||
│ Stage 3: Grounded Response Composer (Zero Hallucination, Full Citation & CIDv1 Provenance) │
|
||||
│ Returns: { answer_markdown, summary_bullets, detected_intent, invoked_tools, │
|
||||
│ citations: [{label, url}], stats_card_preview, data_available, ipld_cidv1 } │
|
||||
└───────────────────────────────────────────────────────────────────────────────────────────────┘
|
||||
```
|
||||
|
||||
### 1.1 Detailed Behavior of the 8 Server-Side Intent Handlers
|
||||
|
||||
| Intent ID | Example User Questions Answered Locally | Server-Side Data Sources Queried | Structured Output Returned to GUI |
|
||||
| :--- | :--- | :--- | :--- |
|
||||
| **`1. ticker_and_card`** | • *"What is NVDA's latest price and Confluence Dose?"*<br/>• *"Show me the stats card for SOL-USD"*<br/>• *"What is ANTHR-PVT's price?"* | `site/quant/quant-timeseries.json` + `quant/cards.py` (`35 ms` fast-path) | • Real close (`$135.40`), `change_bps`, `Vol20d`, `Dose 0..3+` taxon label, 6 TierZoo base stats, optional inline `900×1260` PNG card preview, and deep links to `/quant/` & `/graph/`.<br/>• For `ANTHR-PVT`: *"No market data available (private entity — 0 synthetic bars)."* |
|
||||
| **`2. macro_and_regime_brief`** | • *"What are the current Fed rates and M2 spread?"*<br/>• *"What is today's Bayesian market regime and key question?"*<br/>• *"What is the latest CPI and PPI?"* | `site/quant/real-macro-indicators.json` + `site/quant/daily-brief-latest.json` | • Live 3-state Bayesian posteriors (`R1`, `R2`, `R3`), active Daily Key Macro Question $Q_t$, and exact FRED series values (`EFFR = 388 bps`, `SOFR = 398 bps`, `M2-M1 = $3.37T`, `GDP`, `CPI`, `PPI`) with native cadence metadata. |
|
||||
| **`3. aq_and_ingglish_eval`** | • *"What is the AQ and Ingglish of 'abstract machine'?"*<br/>• *"Evaluate 'hyperstition'"* | `ciphers/aq.py` + `phonetics/__init__.py` (`4,943` offline CMUdict + fallback rules) + `encyclopedia-graph.json` | • `Gen 0` (`eng_aq`), `Gen 1` (`ing_aq` + Ingglish spelling), phonemic drift $\Delta$, prime rank $\pi(n)$, mod-9 digital root, and any matching specimens at that AQ coordinate. |
|
||||
| **`4. glossary_and_zoology`** | • *"What is Vector G1?"*<br/>• *"Explain The Room Filter"*<br/>• *"What are the S+ Apex builds in the ETI tier list?"* | `taxonomy/glossary-registry.json` (`282` terms, `190` bilingual specimens) + `assemblage-builds-tier-list.json` | • Concise definition, ontological division (`Div 00–08`), verbatim grounded quote, ETI score, and clickable `#page=N&search=...` deep-link to `/zoology/technocapital-singularity-zoology-comprehensive-glossary.pdf`. |
|
||||
| **`5. knowledge_graph_hub`** | • *"What connects to coordinate 292 or 666?"*<br/>• *"Inspect node aq:333"* | `encyclopedia-graph.json` (`388` nodes, `1,282` edges) | • Node type, degree centrality, incident `G1–G5` edges, guild membership, and `[ Open in /graph/?select=aq:N ]` deep-link. |
|
||||
| **`6. archive_equations_and_news`** | • *"Show me archive equations that equal 333 or 666"*<br/>• *"What is in the latest news dossier?"* | `ingglish-aq-archive/01..72-*.md` | • Matching verified `Gen 1 [Ingglish] = 333/666/777` equations with dossier numbers and `/api/v1/dossiers/{N}?highlight=...` links. |
|
||||
| **`7. guile_scheme_and_curriculum`** | • *"How does the Z combinator work in Guile Scheme?"*<br/>• *"Where should a novice start?"* | `publishing/guile_prelude.scm` + `engineering-manifest.json` + `math-manifest.json` | • Explains the `Z` combinator (`z-calculus-scheme`) or Novice Prerequisite Ladder, with links to `/learn/`, `/math/`, and `/engineering/`. |
|
||||
| **`8. sqlite_fts5_fallback`** | • Any free-form question across the 6 repositories | `.cache/hyperstition-meta.db` (`sqlite_meta.py` FTS5 tables + JSON fallback) | • Top-ranked corpus matches with verbatim snippets and deep links (or explicit `"No matching corpus record found"` with `0` hallucination). |
|
||||
|
||||
---
|
||||
|
||||
## 2. Review of Pros and Cons of Chatbot Placement on the Homepage (`/`) vs. Elsewhere & Default Choice (`Option 2`)
|
||||
|
||||
### 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 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.
|
||||
|
||||
---
|
||||
|
||||
## 3. Test-Suite & Deployment Integration (`tests/test_core_suite.py`, `erofs_harness.py`, `sync-vps-repos.sh`)
|
||||
|
||||
1. **`src/hyperstitionstud_io/ci/erofs_harness.py`:**
|
||||
- Because `hs_ask_chatbot` is registered in `MCP_TOOLS_SCHEMA` (bringing the total MCP tool count from `15` to `16`), `run_introspective_erofs_suite()` **automatically** sweeps `hs_ask_chatbot` under simulated `ProtectSystem=strict` (`EROFS`) with zero extra harness code!
|
||||
2. **`tests/test_core_suite.py`:**
|
||||
- Test `hs_ask_chatbot` across all 8 intent families via `dispatch_rest_v1("GET", "/api/v1/tools/hs_ask_chatbot?query=...")` and `POST /api/v1/tools/hs_ask_chatbot`:
|
||||
- Verify `NVDA` ticker query returns real close `$135.40` and `data_available: True`,
|
||||
- Verify `ANTHR-PVT` query returns `data_available: False` and `"No data available"` (`0` synthetic data),
|
||||
- Verify FRED macro & Bayesian brief query returns `EFFR = 388 bps` and valid posterior simplex sum `== 1.0`,
|
||||
- Verify AQ/Ingglish query on `"schizoanalysis"` returns `eng_aq = 264`, `ing_aq = 292`,
|
||||
- Verify glossary query on `"Vector G1"` returns a valid `/zoology/technocapital-singularity-zoology-comprehensive-glossary.pdf#page=` deep-link.
|
||||
- Verify `0` new bespoke routes were added to `rest.py` (all chatbot queries flow through `/api/v1/tools/hs_ask_chatbot` and `/mcp`).
|
||||
3. **`deploy/sync-vps-repos.sh` & `deploy/test-first-deployment.sh`:**
|
||||
- Add `${LIVE_SUDO} ln -sfn "hyperstitionstudio-core/site/chat" "${LIVE_REPOS}/chat"` to Step `[3/5]` of `deploy/sync-vps-repos.sh`.
|
||||
- Add `/chat/index.html` and `/assets/hs-chatbot-widget.js` to `ROUTES=()` in `deploy/test-first-deployment.sh` and `hs-public-smoke` Gate `P1`/`P6`.
|
||||
Binary file not shown.
+1
-1
@@ -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`.
|
||||
BIN
Binary file not shown.
+147
@@ -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.
|
||||
|
||||
BIN
Binary file not shown.
+32
@@ -0,0 +1,32 @@
|
||||
# PLAN: Deferred Candidate Strategies From `PLAN-PIECEWISE-DECLUTTER-AND-ACCENTUATE-HOMEPAGE-UI-CLOSEUPS` (`Strategies 1B, 1C, 2A, 2C, 3B, 3C, 4B, 4C, 5B, 5C`)
|
||||
|
||||
**Document ID:** `PLAN-PIECEWISE-DECLUTTER-HOMEPAGE-UI-CLOSEUPS-DEFERRED-STRATEGIES`
|
||||
**Status:** `INACTIVE / DEFERRED FOR FUTURE RE-EVALUATION`
|
||||
**Target Ecosystem Version:** `Future Release (Post-v2.9.0)`
|
||||
**Target Repositories:** `hyperstitionstudio-core`, `encyclopedia-knowledge-graph`
|
||||
**Author:** m00t & Hermes Agent
|
||||
**Date:** 2026-11-30
|
||||
|
||||
---
|
||||
|
||||
## 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 **retained-for-future** (`Strategy 2A`, `Strategy 3B`) and **deferred** (`1B, 1C, 2C, 3C, 4B, 4C, 5B, 5C`) candidate strategies from the stepwise review of `PLAN-PIECEWISE-DECLUTTER-AND-ACCENTUATE-HOMEPAGE-UI-CLOSEUPS`, leaving only the affirmed strategies (`1A, 2B, 3A, 4A, 5A`) inside the active plan.
|
||||
|
||||
---
|
||||
|
||||
## 2. Retained & Deferred Candidate Strategies Across Audit Points `1–5`
|
||||
|
||||
### 2.1 Retained for Future Implementation (`Strategies 2A & 3B`)
|
||||
- **Strategy `2A` (Quadrant 01 — 3rd Tab Extension: `Tab 3: ☉ /learn/ Personal Grimoire & Convergence`):**
|
||||
- Adds a 3rd tab (`☉ /learn/ Grimoire` -> `/learn/index.html`) to Quadrant 01 showcasing a full `680×260` closeup of `/learn/` (`Module M02: Phonemic Convergence` sandbox on the left + `Personal Grimoire Ledger` `localStorage` saved `AQ=292` locks and `[Export JSON]` on the right).
|
||||
- **Strategy `3B` (Quadrant 02 — 2-Tab Condensed Mode: `Tab 1: Panel 1 Trajectory` • `Tab 2: Panel 6 Bayesian Brief`):**
|
||||
- Condenses Quadrant 02 from 3 tabs down to 2 tabs (`Panel 1` and `Panel 6 + Panel 5`) if a symmetric 2-tab layout with Quadrant 01 is desired in the future.
|
||||
|
||||
### 2.2 Deferred Candidate Strategies (`Strategies 1B, 1C, 2C, 3C, 4B, 4C, 5B, 5C`)
|
||||
- **Strategy `1B` (Fixed 2-Tab Strip Only):** Superseded by `1A` (`repeat(auto-fit, minmax(120px, 1fr))` supporting `2` tabs in Quadrant 01 and `3` tabs in Quadrants 02–04).
|
||||
- **Strategy `1C` (No Tabs, 1 Static Image Per Quadrant):** Superseded by `1A`.
|
||||
- **Strategy `2C` (Single Split-Pane `/calc/ + /graph/` Image):** Superseded by `2B`.
|
||||
- **Strategy `3C` (Single Split-Pane `Panel 1 + Panel 6` Image):** Superseded by `3A`.
|
||||
- **Strategy `4B` (2 Tabs for Quadrant 03) & Strategy `4C` (1 Static Image for Quadrant 03):** Superseded by `4A`.
|
||||
- **Strategy `5B` (2 Tabs for Quadrant 04) & Strategy `5C` (1 Static Image for Quadrant 04):** Superseded by `5A`.
|
||||
BIN
Binary file not shown.
@@ -0,0 +1,28 @@
|
||||
# PLAN: Deferred / Unaffirmed Candidate Market-Research Strategies (`Strategies 1C, 3C, 4A, 5C`) Extracted from `PLAN-PIECEWISE-MARKET-RESEARCH-ICP-MVP-AND-COMPETITIVE-STRATEGY`
|
||||
|
||||
**Document ID:** `PLAN-PIECEWISE-MARKET-RESEARCH-DEFERRED-CANDIDATE-STRATEGIES`
|
||||
**Status:** `DEFERRED (Long-Term Inactive Piecewise Plan — Preserved for Future Reference)`
|
||||
**Parent Active Plan:** `PLAN-PIECEWISE-MARKET-RESEARCH-ICP-MVP-AND-COMPETITIVE-STRATEGY`
|
||||
**Target Ecosystem Version:** `v2.8.0+`
|
||||
**Target Repositories:** `hyperstitionstudio-core`, `encyclopedia-knowledge-graph`
|
||||
**Author:** m00t & Hermes Agent
|
||||
**Date:** 2026-11-30
|
||||
|
||||
---
|
||||
|
||||
## 1. Executive Summary & Extraction Rationale
|
||||
|
||||
During the stepwise Ground-Truth Audit review (`Audit Points 1–5`) of `PLAN-PIECEWISE-MARKET-RESEARCH-ICP-MVP-AND-COMPETITIVE-STRATEGY`, nine strategies were affirmed for active implementation/retention (`Strategies 1A, 1B, 2A, 2B, 2C, 3A, 3B, 4B, 4C, 5A, 5B`), while **four candidate strategies (`Strategies 1C, 3C, 4A, 5C`)** were left unaffirmed.
|
||||
|
||||
Per `Rule C.4` of `hyperstitionstudio-roadmap-and-release` (**Active vs. Inactive Partitioning of Piecewise Plans**), this companion long-term inactive plan preserves those four unaffirmed candidate strategies outside the active build queue so `PLAN-PIECEWISE-MARKET-RESEARCH-ICP-MVP-AND-COMPETITIVE-STRATEGY` contains **exclusively affirmed, ready-to-execute deliverables**.
|
||||
|
||||
---
|
||||
|
||||
## 2. Preserved Unaffirmed Candidate Strategies (`Strategies 1C, 3C, 4A, 5C`)
|
||||
|
||||
| Audit Point | Deferred Strategy ID & Name | Mechanism & Target Modules | Why Deferred / Condition for Future Re-Activation |
|
||||
| :--- | :--- | :--- | :--- |
|
||||
| **Audit Point 1**<br/>*(Internal Technical & Corpus Inventory)* | **`Strategy 1C` — Schema-Driven Polyglot SDK Distribution (`hs-sdk-build` & `/sdk/`)** | Introspects `MCP_TOOLS_SCHEMA` (`20` tools), `STATIC_RESOURCES` (`14` URN resources), `RESOURCE_TEMPLATES` (`6`), and `/schemas/v1/*.schema.json` via `src/hyperstitionstud_io/sdk/generator.py` (`0` LLM tokens) to emit zero-dependency client libraries (`HyperstitionClient` + `LocalAlgebra`) for Python, TypeScript/ESM, Rust, and GNU Guile Scheme *(tracked in detail in `PLAN-HYPERSTITIONSTUDIO-POLYGLOT-SDK-AND-CLIENT-LIBRARIES.{md,pdf}`)*. | **Condition to Activate:** Wait until `Strategy 2A` (`get_api_telemetry_summary()`) and `Strategy 2C` (`--telemetry-history`) record `external_production_requests >= 500` on `/api/v1/*` and `/mcp` so external API demand is empirically proven before maintaining 4 generated client SDKs. |
|
||||
| **Audit Point 3**<br/>*(Static HTML, PDF & PNG Route Traffic)* | **`Strategy 3C` — Pure Zero-Telemetry Stance for Static Pages** | Leaves all static HTML, PDF, and PNG routes (`69` routes) completely uncounted on the server, relying solely on `/api/v1/*` and `/mcp` tool calls (`Strategies 2A–2C`). | **Superseded by Affirmed `Strategies 3A & 3B`:** Preserved only as a fallback option if the operator ever wishes to disable `Strategy 3A` (`--ingest-caddy-route-counts`) and `Strategy 3B` (`GET /api/v1/status?surface=<slug>`). |
|
||||
| **Audit Point 4**<br/>*(Patronage Conversion on `/donate/`)* | **`Strategy 4A` — Watch-Only Public BTC Mempool/Block-Explorer Balance Check (`bc1q...`) + Manual Operator XMR View-Key Ledger (`site/donate/reactor-fuel-status.json`)** | Queries a keyless public Bitcoin block explorer for confirmed UTXO balances on `bc1qcgkpl0j2ayxd68haeutfvarjgla2lmz30yd23e` and merges an optional operator-maintained Monero (`XMR`) view-key balance from `/etc/hyperstitionstud.io/exegesis-budget.env` into `site/donate/reactor-fuel-status.json` (`null` / `"No data available"` when offline) *(tracked in detail in `PLAN-MIGRATE-FINAL-EXEGESIS-CRONJOB-WITH-DUAL-MODE-AND-CRYPTO-FUNDING.{md,pdf}`)*. | **Condition to Activate:** Deferred alongside `PLAN-MIGRATE-FINAL-EXEGESIS-CRONJOB-WITH-DUAL-MODE-AND-CRYPTO-FUNDING`; affirmed `Strategy 4B` (`donate_from` & `donate_copy=BTC\|XMR` in `api_parameter_rollups`) and `Strategy 4C` (`stakeholder-proposal-authoring` + `Strategy 3A` PDF route counters) cover `/donate/` attribution with `0` external network calls. |
|
||||
| **Audit Point 5**<br/>*(External User Feedback & PMF Qualification)* | **`Strategy 5C` — Opt-In 1-Question Static Feedback Link (`?template=feedback.md` / `mailto`) in Global Footer** | Appends a direct feedback link (`https://git.libre.audio/seasharp/hyperstitionstudio-core/issues/new?template=feedback.md`) to the global `<footer>` across `/`, `/learn/`, `/quant/`, `/donate/`, `/engineering/*`, and `/math/*`. | **Superseded by Affirmed `Strategies 5A & 5B`:** Omitted to keep the global footer clean (`⚚ · ☿ · ☍ · ☉ · ♄ • Made with ♥ by Lemurs` + `☿ RAIN: SUBTLE` toggle) while `Strategy 5A` (Gitea issues/stars/PRs) and `Strategy 5B` (`export_action` revealed-preference counters) capture user signal with zero footer clutter. |
|
||||
Binary file not shown.
+38
@@ -0,0 +1,38 @@
|
||||
# PLAN: Retained & Deferred Candidate Strategies From `PLAN-PIECEWISE-UI-EVOLUTION-FOR-GROWING-DATASETS` (`Strategies 1B, 1C, 2B, 2C, 3B, 3C, 4B, 4C, 5B, 5C, 6B, 6C`)
|
||||
|
||||
**Document ID:** `PLAN-PIECEWISE-UI-EVOLUTION-FOR-GROWING-DATASETS-DEFERRED-STRATEGIES`
|
||||
**Status:** `INACTIVE / DEFERRED FOR FUTURE RE-EVALUATION`
|
||||
**Target Ecosystem Version:** `Future Release (Post-v2.10.0)`
|
||||
**Target Repositories:** `hyperstitionstudio-core`, `encyclopedia-knowledge-graph`, `haiperdohp-jemaytreeah`
|
||||
**Author:** m00t & Hermes Agent
|
||||
**Date:** 2026-11-30
|
||||
|
||||
---
|
||||
|
||||
## 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 **retained-for-future** (`Strategies 1B, 3B, 4B, 6B`) and **deferred** (`1C, 2B, 2C, 3C, 4C, 5B, 5C, 6C`) candidate strategies from the stepwise review of `PLAN-PIECEWISE-UI-EVOLUTION-FOR-GROWING-DATASETS`, leaving exclusively the affirmed strategies (`1A, 2A, 3A, 4A, 5A, 6A`) inside the active plan.
|
||||
|
||||
---
|
||||
|
||||
## 2. Retained for Future Implementation (`Strategies 1B, 3B, 4B, 6B`)
|
||||
|
||||
- **Strategy `1B` (`/quant/` Longitudinal Time Axis — Two-Tier Hot/Cold Historical Bundle Split at `> 2,500` Bars):**
|
||||
- Splits `quant-timeseries-data.js` into a hot 90-day bundle (`quant-timeseries-recent-90d.js`, `< 250 KB`) plus on-demand yearly archive chunks (`quant-timeseries-2026.json`, `quant-timeseries-2027.json`) once total bars exceed `2,500+`.
|
||||
- **Strategy `3B` (`/graph/` Ontology & Canvas — Zero-Dependency Hybrid Dual-Canvas: Native `canvas.getContext("webgl2")` Instanced Point/Edge Layer + 2D `ctx.fillText()` HUD Overlay at `> 5,000` Nodes):**
|
||||
- Uses 100% native browser WebGL2 (`0` external third-party libraries, `file://` safe) to draw `10,000–100,000` edges and node circles in a single GPU draw call while layering the existing 2D `<canvas>` on top for crisp monospace text labels once the graph crosses `5,000+` nodes.
|
||||
- **Strategy `4B` (`/calc/` Lexical Corpus — Shard `db.json` Into 36 Base-36 Prefix Chunks at `> 1,000,000` Entries):**
|
||||
- Splits `db.json` into `db_0.json .. db_z.json` on-demand shards once `db.txt` exceeds `1,000,000+` entries.
|
||||
- **Strategy `6B` (Homepage — Dynamic "Latest Newswire / Ticker Tape" Strip on `/index.html` If a Future Homepage UI Redesign Is Intended):**
|
||||
- Retained only if a future homepage UI redesign intends to add a live newswire/ticker tape to `/index.html` (not intended under the current `2×2` showcase design).
|
||||
|
||||
---
|
||||
|
||||
## 3. Deferred Candidate Strategies (`Strategies 1C, 2B, 2C, 3C, 4C, 5B, 5C, 6C`)
|
||||
|
||||
- **Strategy `1C` (Downsample Older Bars into Weekly/Monthly Candles Only):** Deferred (loses exact single-day `Scope 1/2/3` Confluence Dose event precision).
|
||||
- **Strategy `2B` (Virtual-Scroll DOM Recycler for `1,000+` Simultaneous Tickers) & Strategy `2C` (Unbounded Table):** Superseded by `2A`.
|
||||
- **Strategy `3C` (Unculled 2D Canvas Rendering):** Superseded by `3A`.
|
||||
- **Strategy `4C` (Unbounded `/learn/` Lists):** Superseded by `4A`.
|
||||
- **Strategy `5B` (Left-Sidebar Tree Navigation on `/engineering/` & `/math/`) & Strategy `5C` (Unbounded Top-Bar Buttons):** Superseded by `5A`.
|
||||
- **Strategy `6C` (No Formal Cap on Homepage Tabs/Links):** Superseded by `6A`.
|
||||
BIN
Binary file not shown.
@@ -0,0 +1,7 @@
|
||||
# Inactive & Deferred Plans (`docs/plans/inactive/`)
|
||||
|
||||
This directory holds **Long-Term Inactive / Deferred Plans** and **Companion Deferred Strategy Plans** (`PLAN-*.md` and their compiled Dark-Mode ReportLab PDF companions `PLAN-*.pdf`) for offline PDF review.
|
||||
|
||||
- **Active Non-Piecewise Plans (`Tier 1`):** Located in `../active/`
|
||||
- **Piecewise Plans (`Tier 2–4`):** Located in `../piecewise/`
|
||||
- **Completed Cold-Rotated Plans:** Located in `../../archive/completed-plans-archive.tar.gz`
|
||||
Loaded 100 of 113 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user