Files
encyclopedia-knowledge-graph/docs/OPERATORS-MANUAL-LLM-TOKEN-DEPENDENT-DATA-PIPELINES.md
T

13 KiB
Raw Blame History

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.
• 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.
• 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)
(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)
(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:
    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:
    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).

5. Turnkey Fedora 41 Package (ingglish-isopsephic-exegesis-2.13.0-1.fc41.noarch.rpm) & Automated git.libre.audio Push Worker (/usr/bin/ingglish-exegesis-push)

To populate ingglish-hyperdope-gematria, hyperdope-ci-build, and haiperdohp-jemaytreeah with LLM-dependent daily 00:00 UTC exegesis data from a second Fedora 41 machine that has SSH push credentials for git.libre.audio and an OPENROUTER_API_KEY:

5.1 Three-Command Fedora 41 Quickstart

  1. Build the .fc41.noarch.rpm (into /workspace/untracked/rpm-builds/ so 0 nested compressed archives enter Git):
    /workspace/ingglish-hyperdope-gematria/packaging/build-fedora41-rpm.sh
    
  2. Install on the Target Fedora 41 Machine (pulling all Python, Node, Git, OpenSSH, Font & ReportLab dependencies automatically):
    sudo dnf install -y ./ingglish-isopsephic-exegesis-2.13.0-1.fc41.noarch.rpm
    
  3. Configure OPENROUTER_API_KEY & SSH Key in /etc/sysconfig/ingglish-exegesis and Enable the 00:00 UTC Timer:
    sudo sed -i 's|^OPENROUTER_API_KEY=.*|OPENROUTER_API_KEY="sk-or-v1-..."|' /etc/sysconfig/ingglish-exegesis
    sudo systemctl enable --now ingglish-exegesis.timer
    # Or run an immediate one-shot harvest + OpenRouter synthesis + 4-gate CI + git.libre.audio push as service user ingglish:
    sudo -u ingglish /usr/bin/ingglish-exegesis-push
    

5.2 What /usr/bin/ingglish-exegesis-push (run_exegesis_and_push_fedora41.sh) Executes Automatically

  1. Stage 1 (Git Workspace Sync): Clones (on first run) or git pull --rebase --autostash updates hyperstitionstudio-core, ingglish-hyperdope-gematria, hyperdope-ci-build (feat/ingglish-aq-corpus), and haiperdohp-jemaytreeah under WORKSPACE_DIR (/var/lib/ingglish-exegesis/workspace or /workspace), and unpacks the 1x-compressed ingglish-vendor.tgz into node_modules/.
  2. Stage 2 (Step A — Deterministic Harvest, 0 LLM tokens): Runs TZ=UTC collect_news_aq.py --mode closing-bell to harvest Wikipedia Portal:Current_events, BBC RSS, and AP RSS and compute dual eng_aq/ing_aq prime and isometric locks.
  3. Stage 3 (Step B — Pre-Solved 333/666/777 Combinatorics + OpenRouter API Synthesis): Runs synthesize_news_dossier_openrouter.py, which deterministically solves 30 (10×333, 10×666, 10×777) non-padded Ingglish equations in pure Python (0 mental math by LLM), calls https://openrouter.ai/api/v1/chat/completions (Bearer ${OPENROUTER_API_KEY}, default OPENROUTER_MODEL="google/gemini-2.5-pro") to author Sections 1–2, splices the pre-verified equations into Sections 3–5, verifies aq_mismatches == 0, writes <NN>-dossier-news-YYYY-MM-DD.md, and updates 00-index-and-methodology.md.
  4. Stage 4 (Step C — 4-Gate CI Provisioning & Calculator DB Rebuild, 0 LLM tokens): Runs ci_provision_ingglish.py --tier 2 --apply-repo --generate-docs, generate_db_json.py, and hs-readme-sync.
  5. Stage 5 (Step D — Topological Git Commit & Push): Commits and pushes ingglish-hyperdope-gematria, hyperdope-ci-build, and haiperdohp-jemaytreeah to ssh://git@git.libre.audio:2222/seasharp.