Release v2.0.30: Cold-archive rotation (.tar.gz), 6-Gate public regression suite (hs-public-smoke), VPS-native periodic data production timers, /engineering/ (E0-E5) & /math/ (M0-M5) explication hubs, and LLM pipeline operator manual

This commit is contained in:
Hermes Agent committed 2026-12-01 00:06:05 +00:00
1 parent e3a77c1bf5
commit a2a84f429a
69 files changed
+492 -4115

No files matched your search

@@ -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 `&#95;` HTML entities in `id="2026&#95;November&#95;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`). |