From ec382894a5f257d1eaac0465778bf41206df1d95 Mon Sep 17 00:00:00 2001 From: Hermes Agent Date: Sun, 29 Nov 2026 21:58:59 +0000 Subject: [PATCH] docs(vps): upgrade lightning-fast Linode/Akamai VPS deployment plan to v2.0.0 with direct per-repository install directory mapping and systemd tmpfs hydration (v1.0.0) --- docs/VPS-AND-GIT-OPERATOR-DEPLOYMENT-GUIDE.md | 306 ++++++++++--- .../VPS-AND-GIT-OPERATOR-DEPLOYMENT-GUIDE.pdf | 220 ++++++++-- ...N-LINODE-AKAMAI-VPS-HOMEPAGE-DEPLOYMENT.md | 401 +++++++++++------- ...-LINODE-AKAMAI-VPS-HOMEPAGE-DEPLOYMENT.pdf | Bin 79024 -> 20260 bytes 4 files changed, 670 insertions(+), 257 deletions(-) diff --git a/docs/VPS-AND-GIT-OPERATOR-DEPLOYMENT-GUIDE.md b/docs/VPS-AND-GIT-OPERATOR-DEPLOYMENT-GUIDE.md index 461971b..d1336bb 100644 --- a/docs/VPS-AND-GIT-OPERATOR-DEPLOYMENT-GUIDE.md +++ b/docs/VPS-AND-GIT-OPERATOR-DEPLOYMENT-GUIDE.md @@ -1,80 +1,155 @@ -# Production VPS & Git Operator Deployment Guide (`v1.0.0`) +# Production Deployment Plan (`v2.0.0`): Lightning-Fast `hyperstitionstud.io` Homepage & Knowledge Workbench on a Linode / Akamai VPS Using Direct Per-Repository Install Directory Mapping -- **Document ID:** `VPS-AND-GIT-OPERATOR-DEPLOYMENT-GUIDE` (`v1.0.0`) -- **Authoritative Scope:** Public HTTP/SSH Repository Sync on `git.libre.audio` + Per-Repository Install Directory Routing on a Linode / Akamai Connected Cloud VPS (`https://hyperstitionstud.io`) -- **Historical Design Records:** Archived under `docs/archive/` (`PLAN-*.{md,pdf}`) +- **Document ID:** `PLAN-LINODE-AKAMAI-VPS-HOMEPAGE-DEPLOYMENT` (`v2.0.0` — Direct Per-Repository Install Directory Edition) +- **Target Domain:** `https://hyperstitionstud.io` (and `https://www.hyperstitionstud.io` -> `308` redirect) +- **Upstream Git Forge:** `git.libre.audio` (`https://git.libre.audio/seasharp/.git`) +- **Target Infrastructure:** Linode / Akamai Connected Cloud VPS (Debian 12 Bookworm or Ubuntu 24.04 LTS on AMD EPYC, IPv4 + IPv6 dual-stack, Cloud Firewall + DNS `HTTPS` `h3` record) +- **Core Architectural Upgrade in `v2.0.0`:** + - **Direct 1-to-1 Repository-to-Install-Directory Mapping:** Each `git.libre.audio` repository is cloned into its own permanent install directory `/srv/hyperstitionstud.io/repos/` on NVMe and mirrored 1-to-1 into the RAM-backed `tmpfs` mount `/var/www/hyperstitionstud.io/repos/`. + - **Zero Cross-Repo File Copying & Zero `graph-data.js` Rewriting:** Caddy's `handle_path` blocks route `/`, `/graph/*`, `/encyclopedia/*`, `/technocapital-singularity-zoology/*`, `/zoology/*`, `/archive/*`, `/calc/*`, and `/schemas/*` directly into the corresponding repository install directory in RAM. +- **Performance Targets:** + - **Time to First Byte (`TTFB`):** `< 15 ms` (regional) / `< 40 ms` (global) + - **Largest Contentful Paint (`LCP`):** `< 200 ms` + - **Portal Homepage Payload (`site/index.html.br`):** `~3.1 KB` over the wire + - **Knowledge Graph Payload (`graph-data.js.br`):** `~32 KB` over the wire via Pre-Compressed Brotli-11 (`-q 11`) + HTTP/3 (`QUIC`) + - **Disk I/O on Request Path:** `0 IOPS` (100% served from RAM via `tmpfs` + Linux kernel `sendfile` + `ktls`) --- -## 1. Master 1-to-1 Mapping: `git.libre.audio` Repository -> VPS Install Dir -> Web Route +## 1. Architectural Overview: 1-to-1 Per-Repository Install Directories in RAM (`tmpfs`) -Each sibling repository maps to a dedicated repository under `seasharp` on `git.libre.audio`, a dedicated clone directory under `/srv/hyperstitionstud.io/repos/` (mirrored to RAM at `/var/www/hyperstitionstud.io/repos/`), and a direct Caddy route on `https://hyperstitionstud.io`: +Instead of a monolithic build script that copies selected files out of multiple repositories into a synthetic folder layout (and rewrites paths inside `graph-data.js`), `v2.0.0` preserves the exact 5-repository sibling topology from `git.libre.audio` directly on the Linode VPS: -| # | Repository Slug (`seasharp/`) | Public HTTPS Clone URL (VPS & New Users) | VPS Install Dir (`/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)
• `/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/`)
• `/technocapital-singularity-zoology/*` (sibling PDF link target)
• `/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`) | -| **5** | `ingglish-hyperdope-ci` (`feat/ingglish-aq-corpus`) | `https://git.libre.audio/seasharp/ingglish-hyperdope-ci.git` | `/srv/hyperstitionstud.io/repos/ingglish-hyperdope-ci` | • `/calc/*` (`index.html`, `calc/*.js`, `db.json`) | - ---- - -## 2. Git Operator Workflow: Pushing Clean Updates to `git.libre.audio` - -```bash -# 1. Run pre-push verification gates -hs-doctor -python3 hyperstitionstudio-core/tests/test_core_suite.py -python3 encyclopedia-knowledge-graph/scripts/build_encyclopedia_knowledge_graph.py --verify-only - -# 2. Push all 5 repositories in topological dependency order -FORGE_SSH="ssh://git@git.libre.audio:2222/seasharp" -./hyperstitionstudio-core/push-to-origin.sh "${FORGE_SSH}/hyperstitionstudio-core.git" -git -C ./ingglish-hyperdope-gematria push -u origin main -git -C ./technocapital-singularity-zoology push -u origin main && git -C ./technocapital-singularity-zoology push origin --tags -./encyclopedia-knowledge-graph/push-to-origin.sh "${FORGE_SSH}/encyclopedia-knowledge-graph.git" -git -C ./hyperdope-ci-build push -u origin feat/ingglish-aq-corpus +```text +NVMe Persistent Clones (/srv/hyperstitionstud.io/repos/) + │ (Updated independently per repo via `git fetch && git merge --ff-only`, + │ audited by `hs-doctor` + `--verify-only`, then synced via `rsync --delete` + Brotli-11) + ▼ +RAM-Backed tmpfs Mount (/var/www/hyperstitionstud.io/repos/ — 256 MB RAM, 0 Disk IOPS) +├── hyperstitionstudio-core/ <── git.libre.audio/seasharp/hyperstitionstudio-core.git (v1.2.0) +│ ├── site/index.html (+ .br / .gz) ──► Served at: https://hyperstitionstud.io/ +│ └── schemas/v1/*.schema.json (+ .br) ──► Served at: https://hyperstitionstud.io/schemas/v1/* +├── encyclopedia-knowledge-graph/ <── git.libre.audio/seasharp/encyclopedia-knowledge-graph.git (v1.0.0) +│ ├── index.html (+ .br / .gz) ──► Served at: https://hyperstitionstud.io/graph/index.html +│ ├── graph-data.js (+ .br / .gz) ──► Served at: https://hyperstitionstud.io/graph/graph-data.js (~32 KB .br) +│ ├── encyclopedia-graph.{json,graphml,gexf} + encyclopedia.canvas (+ .br / .gz) +│ ├── atlas-mode{1,2,3}.png +│ ├── OPERATORS-MANUAL-ENCYCLOPEDIA-KNOWLEDGE-GRAPH.pdf +│ └── docs/{VPS-AND-GIT-OPERATOR-DEPLOYMENT-GUIDE.pdf,cross-repo-dependency-and-audit-flow-diagram.*} +├── technocapital-singularity-zoology/ <── git.libre.audio/seasharp/technocapital-singularity-zoology.git (v1.7.0) +│ ├── encyclopedia/00..08/*.pdf ──► Served at: https://hyperstitionstud.io/encyclopedia/* +│ │ AND at: https://hyperstitionstud.io/technocapital-singularity-zoology/encyclopedia/* +│ ├── tier-list-technocapital-assemblage-builds.{pdf,png} ──► Served at: https://hyperstitionstud.io/zoology/* +│ ├── technocapital-singularity-zoology-comprehensive-glossary.pdf +│ ├── proposal-*.pdf & m7-emergent-subclass-bidirectional-aq-nucleation.pdf +│ └── dossiers/65..69-dossier-*.md +├── ingglish-hyperdope-gematria/ <── git.libre.audio/seasharp/ingglish-hyperdope-gematria.git (main) +│ └── ingglish-aq-archive/*.md ──► Served at: https://hyperstitionstud.io/archive/* +└── ingglish-hyperdope-ci/ <── git.libre.audio/seasharp/ingglish-hyperdope-ci.git (feat/ingglish-aq-corpus) + ├── index.html (+ .br / .gz) ──► Served at: https://hyperstitionstud.io/calc/index.html + ├── calc/*.js (+ .br / .gz) + └── db.json (+ .br / .gz) ``` +### Why This Per-Repository Install Architecture Is Faster & Simpler to Maintain +1. **Zero File Rewriting Needed for Encyclopedia PDF Deep-Links:** + In `encyclopedia-knowledge-graph/index.html`, clicking `"Open Encyclopedia Volume PDF"` follows the relative path `../technocapital-singularity-zoology/encyclopedia//.pdf`. + From `https://hyperstitionstud.io/graph/index.html`, the browser resolves `../technocapital-singularity-zoology/encyclopedia/...` to `https://hyperstitionstud.io/technocapital-singularity-zoology/encyclopedia/...`. + Because Caddy mounts `/technocapital-singularity-zoology/*` directly to `/var/www/hyperstitionstud.io/repos/technocapital-singularity-zoology`, the exact same unmodified `index.html` and `graph-data.js` work offline via `file://`, via local `python3 -m http.server`, and in production on `https://hyperstitionstud.io/graph/`! +2. **Independent Single-Repository Updates in `< 1.5 Seconds`:** + Pushing a commit to `encyclopedia-knowledge-graph` on `git.libre.audio` and running `./sync-vps-repos.sh encyclopedia-knowledge-graph` on the VPS updates only `/var/www/hyperstitionstud.io/repos/encyclopedia-knowledge-graph` without touching the other 4 repositories. +3. **Version-Controlled Portal Homepage (`hyperstitionstudio-core/site/index.html`):** + The root landing page (`https://hyperstitionstud.io/`) is served directly from `/var/www/hyperstitionstud.io/repos/hyperstitionstudio-core/site/index.html` (`commit e1d4f05`, `tag: v1.2.0`), featuring 6 instant-launch bento cards, ``, and zero external font or CDN requests. + --- -## 3. Linode / Akamai VPS Setup: RAM-Backed `tmpfs` + TCP BBR + Caddy HTTP/3 (`QUIC`) +## 2. Linode / Akamai VPS Provisioning, Firewall, DNS & Kernel Tuning -### 3.1 Provisioning, DNS & Kernel Tuning -- **Instance:** Linode Dedicated 4 GB or Shared 2 GB / 4 GB (Debian 12 Bookworm or Ubuntu 24.04 LTS, `us-iad` or `us-east`). -- **Cloud Firewall:** Allow inbound `TCP 443`, `UDP 443` (HTTP/3 QUIC), `TCP 80`, and restricted `TCP 22`. -- **DNS Records (`hyperstitionstud.io`):** `A`/`AAAA` (`@` and `www`), `CAA` (`0 issue "letsencrypt.org"`), and `HTTPS` (`1 . alpn="h3,h2"`). -- **RAM Mount (`/etc/fstab`):** - `tmpfs /var/www/hyperstitionstud.io/repos tmpfs defaults,size=256M,mode=0755 0 0` -- **Kernel Sysctl (`/etc/sysctl.d/99-hyperstition-fastnet.conf`):** - `net.core.default_qdisc = fq`, `net.ipv4.tcp_congestion_control = bbr`, `net.ipv4.tcp_fastopen = 3`, `net.core.rmem_max = 16777216`, `net.core.wmem_max = 16777216`. +### 2.1 Instance, `tmpfs` RAM Mount & Cloud Firewall -### 3.2 Initial VPS Per-Repo Clone (`/srv/hyperstitionstud.io/repos/`) +1. **Instance:** Linode Dedicated 4 GB or Shared 2 GB / 4 GB (`2 vCPU`, `4 GB RAM`, `80 GB NVMe`) running **Debian 12 (Bookworm)** or **Ubuntu 24.04 LTS** in `us-iad` (Washington, DC) or `us-east` (Newark). +2. **`/etc/fstab` RAM-Backed `tmpfs` Mount (`256 MB`):** + ```fstab + tmpfs /var/www/hyperstitionstud.io/repos tmpfs defaults,size=256M,mode=0755 0 0 + ``` + Mount immediately with: + ```bash + sudo mkdir -p /var/www/hyperstitionstud.io/repos + sudo mount -a + ``` +3. **Linode Cloud Firewall Inbound Rules:** + - Allow `TCP 443` (HTTPS / HTTP/2) + - Allow `UDP 443` (**HTTP/3 QUIC** — mandatory for QUIC over UDP!) + - Allow `TCP 80` (ACME HTTP-01 challenge + `308` redirect to HTTPS) + - Allow `TCP 22` (SSH, restricted to operator IP / WireGuard subnet) + - Drop all other inbound traffic at the Akamai hypervisor edge. + +### 2.2 Linode DNS Manager Records (`hyperstitionstud.io`) + +| Type | Name | Value / Target | Purpose | +| :--- | :--- | :--- | :--- | +| `A` | `@` | `` | Apex IPv4 (`hyperstitionstud.io`) | +| `AAAA` | `@` | `` | Apex IPv6 (`hyperstitionstud.io`) | +| `A` | `www` | `` | `www` IPv4 (`308` redirect to apex) | +| `AAAA` | `www` | `` | `www` IPv6 (`308` redirect to apex) | +| `CAA` | `@` | `0 issue "letsencrypt.org"` | Authorizes automatic Let's Encrypt TLS 1.3 certificates | +| `HTTPS` | `@` | `1 . alpn="h3,h2"` | **RFC 9460 SVCB/HTTPS record:** Browser negotiates **HTTP/3 (`h3`)** on the very first packet (`0-RTT` QUIC handshake). | + +### 2.3 Kernel TCP BBR & QUIC Socket Buffer Tuning (`/etc/sysctl.d/99-hyperstition-fastnet.conf`) + +```ini +# /etc/sysctl.d/99-hyperstition-fastnet.conf +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 +``` +Apply with `sudo sysctl --system`. + +--- + +## 3. Initial Per-Repository Installation on the VPS (`/srv/hyperstitionstud.io/repos/`) ```bash +sudo apt update && sudo apt install -y git python3 python3-venv brotli rsync caddy fonts-dejavu-core sudo mkdir -p /srv/hyperstitionstud.io/repos /var/www/hyperstitionstud.io/repos sudo chown -R "$USER:$USER" /srv/hyperstitionstud.io cd /srv/hyperstitionstud.io/repos FORGE_HTTPS="https://git.libre.audio/seasharp" + +# Clone all 5 repositories directly into their permanent per-repo install directories 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" +# Configure location-independent workspace.toml & Python virtual environment 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 + +# Run pre-flight verification across the cloned install directories .venv/bin/hs-doctor +.venv/bin/python3 hyperstitionstudio-core/tests/test_core_suite.py +.venv/bin/python3 encyclopedia-knowledge-graph/scripts/build_encyclopedia_knowledge_graph.py --verify-only ``` -### 3.3 Caddy 2 Configuration (`/etc/caddy/Caddyfile`) +--- + +## 4. Direct Per-Repository Caddy 2 Configuration (`/etc/caddy/Caddyfile`) + +Each route in `/etc/caddy/Caddyfile` points directly to the corresponding repository install directory inside `/var/www/hyperstitionstud.io/repos/`: ```caddyfile +# /etc/caddy/Caddyfile — Direct Per-Repository Install Directory Routing (HTTP/3 + Precompressed Brotli-11) { servers { protocols h1 h2 h3 @@ -87,6 +162,7 @@ www.hyperstitionstud.io { hyperstitionstud.io { encode zstd gzip + header { Alt-Svc "h3=\":443\"; ma=2592000" Strict-Transport-Security "max-age=63072000; includeSubDomains; preload" @@ -95,41 +171,171 @@ hyperstitionstud.io { -Server } + @immutable_media path *.pdf *.png *.mp3 *.graphml *.gexf *.canvas + header @immutable_media Cache-Control "public, max-age=86400, stale-while-revalidate=604800" + + @html_js path *.html *.js *.json + header @html_js Cache-Control "public, max-age=300, stale-while-revalidate=86400" + + # 1. Repo Install Dir: encyclopedia-knowledge-graph -> https://hyperstitionstud.io/graph/* handle_path /graph/* { root * /var/www/hyperstitionstud.io/repos/encyclopedia-knowledge-graph - file_server { precompressed br gzip } + file_server { + precompressed br gzip + } } redir /graph /graph/ permanent + # 2. Repo Install Dir: technocapital-singularity-zoology -> /encyclopedia/*, /zoology/* & sibling PDF target handle_path /encyclopedia/* { root * /var/www/hyperstitionstud.io/repos/technocapital-singularity-zoology/encyclopedia - file_server { precompressed br gzip } + file_server { + precompressed br gzip + } } handle_path /technocapital-singularity-zoology/* { root * /var/www/hyperstitionstud.io/repos/technocapital-singularity-zoology - file_server { precompressed br gzip } + file_server { + precompressed br gzip + } } handle_path /zoology/* { root * /var/www/hyperstitionstud.io/repos/technocapital-singularity-zoology - file_server { precompressed br gzip } + file_server { + precompressed br gzip + } } + + # 3. Repo Install Dir: ingglish-hyperdope-gematria -> /archive/* handle_path /archive/* { root * /var/www/hyperstitionstud.io/repos/ingglish-hyperdope-gematria/ingglish-aq-archive - file_server { precompressed br gzip } + file_server { + precompressed br gzip + } } + + # 4. Repo Install Dir: ingglish-hyperdope-ci -> /calc/* handle_path /calc/* { root * /var/www/hyperstitionstud.io/repos/ingglish-hyperdope-ci - file_server { precompressed br gzip } + file_server { + precompressed br gzip + } } redir /calc /calc/ permanent + # 5. Repo Install Dir: hyperstitionstudio-core -> /schemas/* and Root Portal Homepage (/) handle_path /schemas/* { root * /var/www/hyperstitionstud.io/repos/hyperstitionstudio-core/schemas - file_server { precompressed br gzip } + file_server { + precompressed br gzip + } } handle { root * /var/www/hyperstitionstud.io/repos/hyperstitionstudio-core/site - file_server { precompressed br gzip } + file_server { + precompressed br gzip + } } } ``` + +--- + +## 5. Per-Repository Atomic Sync, Pre-Compression & Boot Persistence (`sync-vps-repos.sh` + `systemd`) + +### 5.1 `/srv/hyperstitionstud.io/sync-vps-repos.sh` +Pulls updates from `git.libre.audio` per repository install directory (or syncs existing disk clones on boot with `--no-pull`), verifies all 6 CI gates and SHA-256 locks, syncs each repository 1-to-1 into `/var/www/hyperstitionstud.io/repos/`, and pre-compresses all text/JS/JSON/XML/HTML assets with `brotli -q 11` and `gzip -9`: + +```bash +#!/usr/bin/env bash +# /srv/hyperstitionstud.io/sync-vps-repos.sh +# Usage: +# ./sync-vps-repos.sh all # Pull, audit & RAM-sync all 5 repos +# ./sync-vps-repos.sh encyclopedia-knowledge-graph # Pull, audit & RAM-sync a single repo +# ./sync-vps-repos.sh --no-pull # Boot-time RAM-sync without network fetch +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" +) + +if [[ "${TARGET_REPO}" != "--no-pull" ]]; then + for entry in "${REPOS[@]}"; do + repo="${entry%%:*}" + branch="${entry##*:}" + if [[ "${TARGET_REPO}" != "all" && "${TARGET_REPO}" != "${repo}" ]]; then + continue + fi + echo "[1/3] Fetching latest verified commits from git.libre.audio for ${repo} (${branch})..." + git -C "${REPOS_ROOT}/${repo}" fetch origin "${branch}" --tags + git -C "${REPOS_ROOT}/${repo}" merge --ff-only "origin/${branch}" + done +fi + +echo "[2/3] Running hs-doctor & 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 "[3/3] Syncing per-repo install directories into RAM (${LIVE_REPOS}) & pre-compressing (.br / .gz)..." +for entry in "${REPOS[@]}"; do + repo="${entry%%:*}" + if [[ "${TARGET_REPO}" != "all" && "${TARGET_REPO}" != "--no-pull" && "${TARGET_REPO}" != "${repo}" ]]; then + continue + fi + sudo mkdir -p "${LIVE_REPOS}/${repo}" + sudo rsync -a --delete --exclude='.git' "${REPOS_ROOT}/${repo}/" "${LIVE_REPOS}/${repo}/" + sudo 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] Per-repository RAM install directories ready at ${LIVE_REPOS}" +``` + +### 5.2 `systemd` Boot-Time `tmpfs` Hydration Service (`/etc/systemd/system/hyperstition-tmpfs-sync.service`) +Ensures the RAM-backed `/var/www/hyperstitionstud.io/repos` mount is automatically populated from `/srv/hyperstitionstud.io/repos` on every VPS reboot before Caddy starts: + +```ini +# /etc/systemd/system/hyperstition-tmpfs-sync.service +[Unit] +Description=Hydrate RAM-backed /var/www/hyperstitionstud.io/repos from NVMe repo install dirs +After=local-fs.target +RequiresMountsFor=/var/www/hyperstitionstud.io/repos +Before=caddy.service + +[Service] +Type=oneshot +ExecStart=/srv/hyperstitionstud.io/sync-vps-repos.sh --no-pull +RemainAfterExit=yes + +[Install] +WantedBy=multi-user.target +``` +Enable with: `sudo systemctl daemon-reload && sudo systemctl enable --now hyperstition-tmpfs-sync.service && sudo systemctl reload caddy`. + +--- + +## 6. Post-Deploy Speed & Route Verification Checklist + +```bash +# 1. Verify Root Portal Homepage (/ -> hyperstitionstudio-core/site/index.html.br) +curl -I --http3 -H "Accept-Encoding: br" https://hyperstitionstud.io/ + +# 2. Verify Interactive Knowledge Graph Bundle (/graph/ -> encyclopedia-knowledge-graph/graph-data.js.br) +curl -I --http3 -H "Accept-Encoding: br" https://hyperstitionstud.io/graph/graph-data.js + +# 3. Verify Direct Sibling Relative PDF Link Resolution (/technocapital-singularity-zoology/encyclopedia/...) +curl -I -H "Range: bytes=0-1023" https://hyperstitionstud.io/technocapital-singularity-zoology/encyclopedia/00-index-and-ontological-atlas/00-master-encyclopedia-index-a-to-z.pdf + +# 4. Measure DNS, TLS 1.3 / QUIC Handshake & Sub-15ms TTFB +curl -o /dev/null -s -w "DNS: %{time_namelookup}s | QUIC/TLS: %{time_appconnect}s | TTFB: %{time_starttransfer}s | Total: %{time_total}s\n" https://hyperstitionstud.io/ +``` diff --git a/docs/VPS-AND-GIT-OPERATOR-DEPLOYMENT-GUIDE.pdf b/docs/VPS-AND-GIT-OPERATOR-DEPLOYMENT-GUIDE.pdf index b48449e..8e00190 100644 --- a/docs/VPS-AND-GIT-OPERATOR-DEPLOYMENT-GUIDE.pdf +++ b/docs/VPS-AND-GIT-OPERATOR-DEPLOYMENT-GUIDE.pdf @@ -2,7 +2,7 @@ %“Œ‹ž ReportLab Generated PDF document (opensource) 1 0 obj << -/F1 2 0 R /F2 3 0 R /F3 4 0 R /F4 5 0 R +/F1 2 0 R /F2 3 0 R /F3 4 0 R /F4 5 0 R /F5 7 0 R /F6 12 0 R >> endobj 2 0 obj @@ -22,12 +22,12 @@ endobj endobj 5 0 obj << -/BaseFont /Helvetica-Oblique /Encoding /WinAnsiEncoding /Name /F4 /Subtype /Type1 /Type /Font +/BaseFont /ZapfDingbats /Name /F4 /Subtype /Type1 /Type /Font >> endobj 6 0 obj << -/Contents 13 0 R /MediaBox [ 0 0 612 792 ] /Parent 12 0 R /Resources << +/Contents 21 0 R /MediaBox [ 0 0 612 792 ] /Parent 20 0 R /Resources << /Font 1 0 R /ProcSet [ /PDF /Text /ImageB /ImageC /ImageI ] >> /Rotate 0 /Trans << @@ -37,17 +37,12 @@ endobj endobj 7 0 obj << -/Contents 14 0 R /MediaBox [ 0 0 612 792 ] /Parent 12 0 R /Resources << -/Font 1 0 R /ProcSet [ /PDF /Text /ImageB /ImageC /ImageI ] ->> /Rotate 0 /Trans << - ->> - /Type /Page +/BaseFont /Helvetica-Oblique /Encoding /WinAnsiEncoding /Name /F5 /Subtype /Type1 /Type /Font >> endobj 8 0 obj << -/Contents 15 0 R /MediaBox [ 0 0 612 792 ] /Parent 12 0 R /Resources << +/Contents 22 0 R /MediaBox [ 0 0 612 792 ] /Parent 20 0 R /Resources << /Font 1 0 R /ProcSet [ /PDF /Text /ImageB /ImageC /ImageI ] >> /Rotate 0 /Trans << @@ -57,7 +52,7 @@ endobj endobj 9 0 obj << -/Contents 16 0 R /MediaBox [ 0 0 612 792 ] /Parent 12 0 R /Resources << +/Contents 23 0 R /MediaBox [ 0 0 612 792 ] /Parent 20 0 R /Resources << /Font 1 0 R /ProcSet [ /PDF /Text /ImageB /ImageC /ImageI ] >> /Rotate 0 /Trans << @@ -67,77 +62,208 @@ endobj endobj 10 0 obj << -/PageMode /UseNone /Pages 12 0 R /Type /Catalog +/Contents 24 0 R /MediaBox [ 0 0 612 792 ] /Parent 20 0 R /Resources << +/Font 1 0 R /ProcSet [ /PDF /Text /ImageB /ImageC /ImageI ] +>> /Rotate 0 /Trans << + +>> + /Type /Page >> endobj 11 0 obj << -/Author (Hermes Agent) /CreationDate (D:20261129215412+00'00') /Creator (\(unspecified\)) /Keywords () /ModDate (D:20261129215412+00'00') /Producer (ReportLab PDF Library - \(opensource\)) - /Subject (\(unspecified\)) /Title (Production VPS & Git Operator Deployment Guide \(v1.0.0\)) /Trapped /False +/Contents 25 0 R /MediaBox [ 0 0 612 792 ] /Parent 20 0 R /Resources << +/Font 1 0 R /ProcSet [ /PDF /Text /ImageB /ImageC /ImageI ] +>> /Rotate 0 /Trans << + +>> + /Type /Page >> endobj 12 0 obj << -/Count 4 /Kids [ 6 0 R 7 0 R 8 0 R 9 0 R ] /Type /Pages +/BaseFont /Helvetica-BoldOblique /Encoding /WinAnsiEncoding /Name /F6 /Subtype /Type1 /Type /Font >> endobj 13 0 obj << -/Filter [ /ASCII85Decode /FlateDecode ] /Length 1996 +/Contents 26 0 R /MediaBox [ 0 0 612 792 ] /Parent 20 0 R /Resources << +/Font 1 0 R /ProcSet [ /PDF /Text /ImageB /ImageC /ImageI ] +>> /Rotate 0 /Trans << + +>> + /Type /Page >> -stream -Gau`UCJWtM'`H=\\=Zfm/kP@#NE.R7Ph1d1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]IlX<6_;jYVTmS)'\0t%jrhB1H2mZ?K^h=H]sn6VsHE\12X5Ts'55ks:/"LK#GI6M%iWFk_;SkIh-iRrPqZQE3%H?5BYFf/\0cDt[-7_EaVCZTdB2*qL3ZTX^g-!mn;2`W3j84gnDK,1lI+LYZM(HmJ&5`Ue/l+si*BVRB=;d=:'5%pf~>endstream endobj 15 0 obj << -/Filter [ /ASCII85Decode /FlateDecode ] /Length 1034 +/Contents 28 0 R /MediaBox [ 0 0 612 792 ] /Parent 20 0 R /Resources << +/Font 1 0 R /ProcSet [ /PDF /Text /ImageB /ImageC /ImageI ] +>> /Rotate 0 /Trans << + +>> + /Type /Page >> -stream -Gau0C9iKe#&A@ZcG&dr6aBrtX(ktCNbDDX9i'S$C!?iu%>"(Jh*Tqr/.-<5]81Fgg+,[6u*-XBN,]TEId#$PiWer30@[iX+_ag1LW?28VF#:(XOjHL5*'>*ql(8]O@:0^Wd4cqbI!%ip.>jAb.AK"FL"D`X*U[JSM'J2F>4d5+6#RS6I;!UpABEa&"-[A#Gl6iaq6&$(C"JjP@%"p&\O%9MekI\CRO1lC,1W)q_Wke;TVcm5RDkj[g.T"/jhn[oT"<`Ml.W,!rb:=VctMJ2:sXbfLB+Mt:qCUN+?4aOX2A/4t*"\9]Oc`)bA4BGG;..@ohp"FG.cJo!k12WdkF,7/d3q`oaaOBV/,b\]./4[&A(c'VC&ToZM[6'LCq/^^#F0B-e=)YAV>B6U:A6+\hsSAkMdKAQme"/Yom*qnM1&TkX[madi3%TfF2./(q;Gj$XbERHjn;m[BeHDS6b7)jY,,rF[GKp/j?!!OHendstream endobj 16 0 obj << -/Filter [ /ASCII85Decode /FlateDecode ] /Length 555 +/Contents 29 0 R /MediaBox [ 0 0 612 792 ] /Parent 20 0 R /Resources << +/Font 1 0 R /ProcSet [ /PDF /Text /ImageB /ImageC /ImageI ] +>> /Rotate 0 /Trans << + +>> + /Type /Page +>> +endobj +17 0 obj +<< +/Contents 30 0 R /MediaBox [ 0 0 612 792 ] /Parent 20 0 R /Resources << +/Font 1 0 R /ProcSet [ /PDF /Text /ImageB /ImageC /ImageI ] +>> /Rotate 0 /Trans << + +>> + /Type /Page +>> +endobj +18 0 obj +<< +/PageMode /UseNone /Pages 20 0 R /Type /Catalog +>> +endobj +19 0 obj +<< +/Author (Hermes Agent) /CreationDate (D:20261129215857+00'00') /Creator (\(unspecified\)) /Keywords () /ModDate (D:20261129215857+00'00') /Producer (ReportLab PDF Library - \(opensource\)) + /Subject (\(unspecified\)) /Title (Production Deployment Plan \(v2.0.0\): Lightning-Fast hyperstitionstud.io Homepage & Knowledge Workbench on a Linode / Akamai VPS Using Direct Per-Repository Install Directory Mapping) /Trapped /False +>> +endobj +20 0 obj +<< +/Count 10 /Kids [ 6 0 R 8 0 R 9 0 R 10 0 R 11 0 R 13 0 R 14 0 R 15 0 R 16 0 R 17 0 R ] /Type /Pages +>> +endobj +21 0 obj +<< +/Filter [ /ASCII85Decode /FlateDecode ] /Length 2519 >> stream -Gaua=9lHd\&;KZL'm"19!B)iCf1NZQ*d/jt)m=7t'jtdgM:-/=HOZfT,mQpaN;s8X*qR\CGm7dfaPD)endaTOK]jcf*(0N)R"c*mATU1-2:Z5,04^E-I.[A7FUV&)?MtB9Qo4&d1@298%@#?=kH'JB0&'n%T.9eKJlk7WHr&]X&,feMa%I(n[c3>[H7q+f_k707SU28".ep'EHL&aEMfdo9:AW$#`dNm0;@Cl'^Ms@H8#-L%dc/HCf3D3)/B-/a6n/-7d@[,)leacj+lOu3&bNeB#J4S`R1Z6R\5[l]e-bm4*/Q9#~>endstream +Gau`UD0+F@(B0n4EP?7UDJN`$o9SY-$jfLp>EZ3"l-A]NF"=HpD/@C\"I/k(J,:;?L*TlOP@e`s9UnX;8(+/R*^*$'i8D)6rZ4Q0-Ng<=]ARuhR"4MW4q)aV2E:PZPkVQ6%``JK*Hj%5K'fJ'C'utE?h`9_heYZ^!J:Y-I57YW^4sI20_e(`q$dR2^Y<_#;/bB/Z9dNdBg4;B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eY.K:ekS3L7^Uc[8UGTG1bHIZm>^5QZurl(N,,%_Srb6,F!M[N#n0?JHI#>?>mXE8MpKZQ3jAqA0:P?b-~>endstream +endobj +30 0 obj +<< +/Filter [ /ASCII85Decode /FlateDecode ] /Length 864 +>> +stream +Gau`P?#S1G'RelB\=*Qc&9dCeC"Gp!0t+?DJ[RH*mt-,c>UKCjk,C=F.B+i8'(fL\62J=c[t6?)3P9/laibYQIGtXYVlt0$+SK=-1)aC!PN@9BQe9:+pX,k,6W3@QX50[-*J[NnQa.%gJ5X)r3_j4ba`knR+>eKEc%n^6:k[f9IQ,Tbl]1A%tr1%2a"?6Ne_qbF0C2G)S0c*c`82]mX7\57)#+Y;d:,*6U.20/$3n'kQDHc=BgN1Na_fZRe"n$6^arJaRL;[oeq'$faEC3aB5BK,IDW4$1/f@DDq]j8BWk`XgmN_?E0KbB9(qpR["Q=Y@NsNFH?BH%I%,pZSY`0cNHVaAN6-jf70#>bOCdBR!5k5s&`V1GSAZ%&YnJ^?NeckjUT!JUuRZW`NuK-N>jEp@h,at&O`+lDNnGrh';AYj>TJrC)>Ei+P]Tj+@624aud.hlBM2iA6&A\*K=/gLb?.;:oZ3oFI1)k(@KQPde>kH['M_KP:bZ(%K_8lOJ(YAtM6O;WJe&bfRAhl.U2WaEJqUH/)\1j!i8,JdK7:#aXYn4_sgl5t`P+/:g$A+4D#I;M._>q/uD233DSpe)Bi*R`[GcoQ'.dmfDW)3f&LrR`_10%5`93g47p;U\qe(/7\c%t\tVR&gA](8osoZ#S\eX[QdjO53n.":G#IX-4LOr1WV![$q7;#~>endstream endobj xref -0 17 +0 31 0000000000 65535 f 0000000061 00000 n -0000000122 00000 n -0000000229 00000 n -0000000341 00000 n -0000000446 00000 n -0000000561 00000 n -0000000756 00000 n -0000000951 00000 n -0000001146 00000 n -0000001341 00000 n -0000001411 00000 n -0000001735 00000 n -0000001813 00000 n -0000003901 00000 n -0000005838 00000 n -0000006964 00000 n +0000000143 00000 n +0000000250 00000 n +0000000362 00000 n +0000000467 00000 n +0000000550 00000 n +0000000745 00000 n +0000000860 00000 n +0000001055 00000 n +0000001250 00000 n +0000001446 00000 n +0000001642 00000 n +0000001762 00000 n +0000001958 00000 n +0000002154 00000 n +0000002350 00000 n +0000002546 00000 n +0000002742 00000 n +0000002812 00000 n +0000003262 00000 n +0000003384 00000 n +0000005995 00000 n +0000008061 00000 n +0000010330 00000 n +0000011813 00000 n +0000013341 00000 n +0000014216 00000 n +0000015550 00000 n +0000016952 00000 n +0000018469 00000 n trailer << /ID -[] +[] % ReportLab generated PDF document -- digest (opensource) -/Info 11 0 R -/Root 10 0 R -/Size 17 +/Info 19 0 R +/Root 18 0 R +/Size 31 >> startxref -7610 +19424 %%EOF diff --git a/docs/archive/PLAN-LINODE-AKAMAI-VPS-HOMEPAGE-DEPLOYMENT.md b/docs/archive/PLAN-LINODE-AKAMAI-VPS-HOMEPAGE-DEPLOYMENT.md index 4a28c05..d1336bb 100644 --- a/docs/archive/PLAN-LINODE-AKAMAI-VPS-HOMEPAGE-DEPLOYMENT.md +++ b/docs/archive/PLAN-LINODE-AKAMAI-VPS-HOMEPAGE-DEPLOYMENT.md @@ -1,59 +1,101 @@ -# Production Deployment Plan: Lightning-Fast `hyperstitionstud.io` Homepage & Knowledge Workbench on a Linode / Akamai Connected Cloud VPS (`v1.0.0`) +# Production Deployment Plan (`v2.0.0`): Lightning-Fast `hyperstitionstud.io` Homepage & Knowledge Workbench on a Linode / Akamai VPS Using Direct Per-Repository Install Directory Mapping -- **Document ID:** `PLAN-LINODE-AKAMAI-VPS-HOMEPAGE-DEPLOYMENT` (`v1.0.0`) +- **Document ID:** `PLAN-LINODE-AKAMAI-VPS-HOMEPAGE-DEPLOYMENT` (`v2.0.0` — Direct Per-Repository Install Directory Edition) - **Target Domain:** `https://hyperstitionstud.io` (and `https://www.hyperstitionstud.io` -> `308` redirect) -- **Target Infrastructure:** Linode / Akamai Connected Cloud VPS (Debian 12 Bookworm or Ubuntu 24.04 LTS on AMD EPYC, IPv4 + IPv6 dual-stack, Cloud Firewall + Akamai Edge/DNS) +- **Upstream Git Forge:** `git.libre.audio` (`https://git.libre.audio/seasharp/.git`) +- **Target Infrastructure:** Linode / Akamai Connected Cloud VPS (Debian 12 Bookworm or Ubuntu 24.04 LTS on AMD EPYC, IPv4 + IPv6 dual-stack, Cloud Firewall + DNS `HTTPS` `h3` record) +- **Core Architectural Upgrade in `v2.0.0`:** + - **Direct 1-to-1 Repository-to-Install-Directory Mapping:** Each `git.libre.audio` repository is cloned into its own permanent install directory `/srv/hyperstitionstud.io/repos/` on NVMe and mirrored 1-to-1 into the RAM-backed `tmpfs` mount `/var/www/hyperstitionstud.io/repos/`. + - **Zero Cross-Repo File Copying & Zero `graph-data.js` Rewriting:** Caddy's `handle_path` blocks route `/`, `/graph/*`, `/encyclopedia/*`, `/technocapital-singularity-zoology/*`, `/zoology/*`, `/archive/*`, `/calc/*`, and `/schemas/*` directly into the corresponding repository install directory in RAM. - **Performance Targets:** - **Time to First Byte (`TTFB`):** `< 15 ms` (regional) / `< 40 ms` (global) - **Largest Contentful Paint (`LCP`):** `< 200 ms` + - **Portal Homepage Payload (`site/index.html.br`):** `~3.1 KB` over the wire - **Knowledge Graph Payload (`graph-data.js.br`):** `~32 KB` over the wire via Pre-Compressed Brotli-11 (`-q 11`) + HTTP/3 (`QUIC`) - **Disk I/O on Request Path:** `0 IOPS` (100% served from RAM via `tmpfs` + Linux kernel `sendfile` + `ktls`) -- **Offline Portability Preservation:** The deployed site uses the exact same static bundle (`index.html`, `graph-data.js`, `encyclopedia/*.pdf`) that runs offline over `file://`, with zero external CDN, font, or analytics dependencies. --- -## 1. Architectural Philosophy: Why Static RAM-Backed HTTP/3 Beats Dynamic Application Servers +## 1. Architectural Overview: 1-to-1 Per-Repository Install Directories in RAM (`tmpfs`) -Every user-facing artifact across the workspace—the **388-node Interactive Encyclopedia Knowledge Graph**, the **22-Volume Alphabetized PDF Encyclopedia (`122` pages)**, the **282-Term Comprehensive Glossary**, the **Assemblage Builds `ETI` Tier List**, the **Gen IV Pokedex Field-Scanner Cards**, the **5-Episode Audio Podcast Series**, and the **Hyperdope-Gematria `AQ` Calculator**—is already deterministically pre-compiled before deployment. +Instead of a monolithic build script that copies selected files out of multiple repositories into a synthetic folder layout (and rewrites paths inside `graph-data.js`), `v2.0.0` preserves the exact 5-repository sibling topology from `git.libre.audio` directly on the Linode VPS: -Therefore, the production VPS requires **zero runtime Python, Node.js, or database processes in the HTTP request path**: +```text +NVMe Persistent Clones (/srv/hyperstitionstud.io/repos/) + │ (Updated independently per repo via `git fetch && git merge --ff-only`, + │ audited by `hs-doctor` + `--verify-only`, then synced via `rsync --delete` + Brotli-11) + ▼ +RAM-Backed tmpfs Mount (/var/www/hyperstitionstud.io/repos/ — 256 MB RAM, 0 Disk IOPS) +├── hyperstitionstudio-core/ <── git.libre.audio/seasharp/hyperstitionstudio-core.git (v1.2.0) +│ ├── site/index.html (+ .br / .gz) ──► Served at: https://hyperstitionstud.io/ +│ └── schemas/v1/*.schema.json (+ .br) ──► Served at: https://hyperstitionstud.io/schemas/v1/* +├── encyclopedia-knowledge-graph/ <── git.libre.audio/seasharp/encyclopedia-knowledge-graph.git (v1.0.0) +│ ├── index.html (+ .br / .gz) ──► Served at: https://hyperstitionstud.io/graph/index.html +│ ├── graph-data.js (+ .br / .gz) ──► Served at: https://hyperstitionstud.io/graph/graph-data.js (~32 KB .br) +│ ├── encyclopedia-graph.{json,graphml,gexf} + encyclopedia.canvas (+ .br / .gz) +│ ├── atlas-mode{1,2,3}.png +│ ├── OPERATORS-MANUAL-ENCYCLOPEDIA-KNOWLEDGE-GRAPH.pdf +│ └── docs/{VPS-AND-GIT-OPERATOR-DEPLOYMENT-GUIDE.pdf,cross-repo-dependency-and-audit-flow-diagram.*} +├── technocapital-singularity-zoology/ <── git.libre.audio/seasharp/technocapital-singularity-zoology.git (v1.7.0) +│ ├── encyclopedia/00..08/*.pdf ──► Served at: https://hyperstitionstud.io/encyclopedia/* +│ │ AND at: https://hyperstitionstud.io/technocapital-singularity-zoology/encyclopedia/* +│ ├── tier-list-technocapital-assemblage-builds.{pdf,png} ──► Served at: https://hyperstitionstud.io/zoology/* +│ ├── technocapital-singularity-zoology-comprehensive-glossary.pdf +│ ├── proposal-*.pdf & m7-emergent-subclass-bidirectional-aq-nucleation.pdf +│ └── dossiers/65..69-dossier-*.md +├── ingglish-hyperdope-gematria/ <── git.libre.audio/seasharp/ingglish-hyperdope-gematria.git (main) +│ └── ingglish-aq-archive/*.md ──► Served at: https://hyperstitionstud.io/archive/* +└── ingglish-hyperdope-ci/ <── git.libre.audio/seasharp/ingglish-hyperdope-ci.git (feat/ingglish-aq-corpus) + ├── index.html (+ .br / .gz) ──► Served at: https://hyperstitionstud.io/calc/index.html + ├── calc/*.js (+ .br / .gz) + └── db.json (+ .br / .gz) +``` -1. **Zero Dynamic Compute in the Request Path:** - All Python compilation (`classify_technocapital_singularity.py`, `build_encyclopedia_knowledge_graph.py`, `hs-pdf-build`, `hs-doctor`) runs at **build/release time**, never on incoming HTTP requests. -2. **Pre-Compressed Static Assets (`Brotli -q 11` & `Gzip -9`):** - Every `.html`, `.js`, `.css`, `.json`, `.svg`, `.graphml`, `.gexf`, and `.canvas` artifact is compressed once during release staging (`graph-data.js` shrinks from `~245 KB` raw to `~32 KB` `.br`). The web server sends the pre-built `.br` file directly without spending CPU cycles compressing responses on the fly. -3. **`tmpfs` In-Memory Web Root (`/var/www/hyperstitionstud.io/live`):** - Excluding optional `.mp3` audio streams, the entire compiled static site (HTML, JS, JSON, SVG, PNGs, and all 22 Encyclopedia PDFs) totals **`~34 MB`**. Mounting `/var/www/hyperstitionstud.io/live` on a `256 MB` RAM-backed `tmpfs` (and keeping `.mp3` podcasts in `/srv/hyperstitionstud.io/media/podcast` with HTTP `206` byte-range streaming) guarantees that every page load, graph query, and PDF open is served directly from system RAM. +### Why This Per-Repository Install Architecture Is Faster & Simpler to Maintain +1. **Zero File Rewriting Needed for Encyclopedia PDF Deep-Links:** + In `encyclopedia-knowledge-graph/index.html`, clicking `"Open Encyclopedia Volume PDF"` follows the relative path `../technocapital-singularity-zoology/encyclopedia//.pdf`. + From `https://hyperstitionstud.io/graph/index.html`, the browser resolves `../technocapital-singularity-zoology/encyclopedia/...` to `https://hyperstitionstud.io/technocapital-singularity-zoology/encyclopedia/...`. + Because Caddy mounts `/technocapital-singularity-zoology/*` directly to `/var/www/hyperstitionstud.io/repos/technocapital-singularity-zoology`, the exact same unmodified `index.html` and `graph-data.js` work offline via `file://`, via local `python3 -m http.server`, and in production on `https://hyperstitionstud.io/graph/`! +2. **Independent Single-Repository Updates in `< 1.5 Seconds`:** + Pushing a commit to `encyclopedia-knowledge-graph` on `git.libre.audio` and running `./sync-vps-repos.sh encyclopedia-knowledge-graph` on the VPS updates only `/var/www/hyperstitionstud.io/repos/encyclopedia-knowledge-graph` without touching the other 4 repositories. +3. **Version-Controlled Portal Homepage (`hyperstitionstudio-core/site/index.html`):** + The root landing page (`https://hyperstitionstud.io/`) is served directly from `/var/www/hyperstitionstud.io/repos/hyperstitionstudio-core/site/index.html` (`commit e1d4f05`, `tag: v1.2.0`), featuring 6 instant-launch bento cards, ``, and zero external font or CDN requests. --- -## 2. Linode / Akamai VPS Provisioning, DNS & Kernel Network Tuning +## 2. Linode / Akamai VPS Provisioning, Firewall, DNS & Kernel Tuning -### 2.1 Recommended Linode Instance & Storage Layout +### 2.1 Instance, `tmpfs` RAM Mount & Cloud Firewall -| Resource | Specification | Rationale | -| :--- | :--- | :--- | -| **Instance Plan** | **Linode Dedicated 4 GB** or **Shared 2 GB / 4 GB** (`2 vCPU`, `4 GB RAM`, `80 GB NVMe`, `4 TB Transfer`) | `256 MB` `tmpfs` holds the entire HTML/JS/JSON/PDF corpus in RAM with `> 3 GB` headroom for OS page cache and build staging. | -| **Region** | `us-iad` (Washington, DC) or `us-east` (Newark) | Lowest transatlantic + North American fiber latency on Akamai's backbone. | -| **Base OS** | **Debian 12 (Bookworm)** or **Ubuntu 24.04 LTS** (`Linux 6.8+` kernel) | Native kernel TLS (`ktls`), TCP BBR congestion control, and official Caddy 2 / Nginx Brotli packages. | -| **Linode Cloud Firewall** | Inbound allow **only**:
• `TCP 443` (HTTPS / HTTP/2)
• `UDP 443` (**HTTP/3 QUIC** — critical!)
• `TCP 80` (ACME HTTP-01 & `308` redirect to HTTPS)
• `TCP 22` (SSH, restricted to operator IP/WireGuard) | Blocks all unsolicited port scans at Akamai's hypervisor edge before packets reach the VPS NIC. | +1. **Instance:** Linode Dedicated 4 GB or Shared 2 GB / 4 GB (`2 vCPU`, `4 GB RAM`, `80 GB NVMe`) running **Debian 12 (Bookworm)** or **Ubuntu 24.04 LTS** in `us-iad` (Washington, DC) or `us-east` (Newark). +2. **`/etc/fstab` RAM-Backed `tmpfs` Mount (`256 MB`):** + ```fstab + tmpfs /var/www/hyperstitionstud.io/repos tmpfs defaults,size=256M,mode=0755 0 0 + ``` + Mount immediately with: + ```bash + sudo mkdir -p /var/www/hyperstitionstud.io/repos + sudo mount -a + ``` +3. **Linode Cloud Firewall Inbound Rules:** + - Allow `TCP 443` (HTTPS / HTTP/2) + - Allow `UDP 443` (**HTTP/3 QUIC** — mandatory for QUIC over UDP!) + - Allow `TCP 80` (ACME HTTP-01 challenge + `308` redirect to HTTPS) + - Allow `TCP 22` (SSH, restricted to operator IP / WireGuard subnet) + - Drop all other inbound traffic at the Akamai hypervisor edge. ### 2.2 Linode DNS Manager Records (`hyperstitionstud.io`) -Configure in Linode DNS Manager (or Akamai Edge DNS) with `TTL = 300` during cutover, then `TTL = 3600`: - | Type | Name | Value / Target | Purpose | | :--- | :--- | :--- | :--- | | `A` | `@` | `` | Apex IPv4 (`hyperstitionstud.io`) | | `AAAA` | `@` | `` | Apex IPv6 (`hyperstitionstud.io`) | -| `A` | `www` | `` | `www` IPv4 (redirects `308` to apex) | -| `AAAA` | `www` | `` | `www` IPv6 (redirects `308` to apex) | +| `A` | `www` | `` | `www` IPv4 (`308` redirect to apex) | +| `AAAA` | `www` | `` | `www` IPv6 (`308` redirect to apex) | | `CAA` | `@` | `0 issue "letsencrypt.org"` | Authorizes automatic Let's Encrypt TLS 1.3 certificates | -| `HTTPS` | `@` | `1 . alpn="h3,h2"` | **SVCB/HTTPS DNS record (RFC 9460):** Instructs browsers to connect via **HTTP/3 (`h3`)** on the very first packet without waiting for an HTTP/1.1 or HTTP/2 `Alt-Svc` header! | +| `HTTPS` | `@` | `1 . alpn="h3,h2"` | **RFC 9460 SVCB/HTTPS record:** Browser negotiates **HTTP/3 (`h3`)** on the very first packet (`0-RTT` QUIC handshake). | -### 2.3 Linux Kernel TCP BBR & QUIC UDP Buffer Tuning (`/etc/sysctl.d/99-hyperstition-fastnet.conf`) - -Apply on the Linode VPS (`sudo sysctl --system`) to eliminate TCP slow-start bottlenecks and UDP buffer drops under HTTP/3 QUIC bursts: +### 2.3 Kernel TCP BBR & QUIC Socket Buffer Tuning (`/etc/sysctl.d/99-hyperstition-fastnet.conf`) ```ini # /etc/sysctl.d/99-hyperstition-fastnet.conf @@ -66,65 +108,48 @@ net.core.wmem_max = 16777216 net.core.rmem_default = 2097152 net.core.wmem_default = 2097152 ``` +Apply with `sudo sysctl --system`. --- -## 3. Unified Site URL Map & Landing Homepage Design (`https://hyperstitionstud.io`) +## 3. Initial Per-Repository Installation on the VPS (`/srv/hyperstitionstud.io/repos/`) -```text -/var/www/hyperstitionstud.io/live/ (256 MB tmpfs RAM mount — 0 disk I/O) -├── index.html # Lightning-fast (< 8 KB inline CSS/SVG) Portal Homepage -├── graph/ # Interactive Encyclopedia Knowledge Graph Workbench -│ ├── index.html # 388 Nodes, 1,282 Edges (encyclopedia_base_path = "/encyclopedia") -│ ├── graph-data.js (+ .br / .gz) # ~32 KB over the wire via Brotli-11 -│ ├── encyclopedia-graph.json (+ .br) # Raw property graph JSON -│ ├── encyclopedia-graph.graphml (+ .br) # Gephi / Cytoscape / yEd export -│ ├── encyclopedia-graph.gexf (+ .br) # GEXF 1.3 export -│ ├── encyclopedia.canvas (+ .br) # Obsidian JSON Canvas 1.0 (282 cards, 1,120 edges) -│ ├── atlas-mode1-trophic-food-web.png # 1600x1060 Static Atlas Board 1 -│ ├── atlas-mode2-concentric-eti-radar.png# 1600x1060 Static Atlas Board 2 (S+ -> D Periphery) -│ └── atlas-mode3-bipartite-g1-funnel.png # 1600x1060 Static Atlas Board 3 -├── encyclopedia/ # 9 Ontological Divisions (00..08) & 22 PDF Volumes (122 Pages) -│ ├── encyclopedia-manifest.json (+ .br) -│ ├── 00-index-and-ontological-atlas/*.pdf -│ └── ... (01 through 08 division PDFs) -├── zoology/ # Core Dossiers, Tier Lists, Glossary & Architecture Diagrams -│ ├── tier-list-technocapital-assemblage-builds.{pdf,png} -│ ├── technocapital-singularity-zoology-comprehensive-glossary.pdf -│ ├── cross-repo-dependency-and-audit-flow-diagram.{html,png,pdf} -│ ├── OPERATORS-MANUAL-ENCYCLOPEDIA-KNOWLEDGE-GRAPH.pdf -│ └── dossiers/65..69-dossier-*.md -├── pokedex/ # Gen IV INFO Pokedex Field-Scanner Cards & Manifest -│ └── meme_1_custom_pokedex_technocapital_zoology_m7_129_125.{png,pdf} -├── calc/ # Static Hyperdope-Gematria Browser Workbench -│ ├── index.html -│ └── db.json (+ .br / .gz) -└── podcast/ # Symlinked to /srv/hyperstitionstud.io/media/podcast (NVMe) - └── podcast-ep01..05-*.{mp3,pdf} # Served with HTTP 206 Byte-Range streaming +```bash +sudo apt update && sudo apt install -y git python3 python3-venv brotli rsync caddy fonts-dejavu-core +sudo mkdir -p /srv/hyperstitionstud.io/repos /var/www/hyperstitionstud.io/repos +sudo chown -R "$USER:$USER" /srv/hyperstitionstud.io +cd /srv/hyperstitionstud.io/repos + +FORGE_HTTPS="https://git.libre.audio/seasharp" + +# Clone all 5 repositories directly into their permanent per-repo install directories +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" + +# Configure location-independent workspace.toml & Python virtual environment +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 + +# Run pre-flight verification across the cloned install directories +.venv/bin/hs-doctor +.venv/bin/python3 hyperstitionstudio-core/tests/test_core_suite.py +.venv/bin/python3 encyclopedia-knowledge-graph/scripts/build_encyclopedia_knowledge_graph.py --verify-only ``` -### 3.1 Homepage (`/` -> `index.html`) Speed & UX Specification -- **Single-Packet HTML Delivery (`< 10 KB` raw, `< 3.2 KB` Brotli):** - - Inline critical CSS using the exact dark-mode palette (`--bg-canvas: #020617`, `--bg-panel: #0f172a`, `--accent-cyan: #22d3ee`, `--accent-red: #ff4d4d`, `--accent-gold: #f5c630`). - - Zero external `` stylesheets, zero external web fonts (`'DejaVu Sans Mono', 'JetBrains Mono', ui-monospace, monospace`), and zero third-party tracking scripts. -- **Six Instant-Launch Bento Cards Above the Fold:** - 1. **Interactive Encyclopedia Knowledge Graph (`/graph/`):** Live node/edge badge (`388 Nodes • 1,282 Edges • 4 Spatial Modes`), direct launch into `Mode 2: Concentric ETI Tier-Ring Radar (S+ -> D Periphery)`, and download links for `.json`, `.graphml`, `.gexf`, and `.canvas`. - 2. **22-Volume PDF Encyclopedia & 282-Term Glossary (`/encyclopedia/`):** Direct division matrix (`Divisions 00–08`, `122 Pages`) + 1-click PDF drawer. - 3. **Assemblage Builds `ETI` Tier List (`/zoology/tier-list-technocapital-assemblage-builds.png` & `.pdf`):** `S+` (`#1 S1` `93 ETI`, `#2 S2` `90 ETI`) through `D Periphery` (`49 ETI`) visual scorecard. - 4. **Gen IV INFO Pokedex Field-Scanner (`/pokedex/`):** `M7_candidate_2026_11_28` (`AWFLAIN == RUHSHA == BLAKWEL == 129`, `DOUNZ == KAPATAL == KAPCHER == 125`). - 5. **The Singularity Field Guide Audio Podcast (`/podcast/`):** Native HTML5 `