20 KiB
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: ACTIVE / READY FOR IMPLEMENTATION
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 ESTDaily) — which runscollect_news_aq.py(Step A,0tokens), synthesizes the daily news-wire dossier<NN>-dossier-news-YYYY-MM-DD.mdunder Division08"The Room Filter" (Step B), and runsci_provision_ingglish.py --tier 2 --apply-repo(Step C,0tokens).
This plan completes the migration of the final recurring cronjob (d28b479ec217) off localhost onto hyperstitionstud.io, while:
- Preserving the current
localhostHermes configuration (execution_mode = "localhost_hermes") as a first-class, one-switch option, - 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\rightarrowTier 2: Optional Anonymous BTC/XMR-Funded Prepaid API\rightarrowTier 3: 100% Deterministic Zero-Token Structural Dossier Compiler), so that<NN>-dossier-news-YYYY-MM-DD.mdis guaranteed to compile at00:00 UTCeven with zero external LLM API keys, zero cloud tokens, and zero internet access to LLM providers, and - Integrating an Anonymous BTC (
bc1q...) & Monero (XMR83ZC...) 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;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);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.gguforLlama-3.1-8B-Instruct-Q4_K_M.gguf) andllama-cli(llama.cpp) are present at/var/lib/hyperstitionstud.io/models/,hs-exegesis-runinvokesllama-cliinside a network-isolated subprocess (bwrap --unshare-netwhen available). - Every equation
(word, ing, eng_aq, ing_aq, breakdown = 333/666/777)is injected fromcollect_news_aq.pyas an immutable table block and verified post-generation byci_provision_ingglish.pyGate 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.mddirectly in pure Python (0LLM tokens,0external network calls):- Ingests the dated story clusters and verified
333 / 666 / 777eng_aqanding_aqequation locks fromnews-aq-harvest-YYYY-MM-DD.json(or cached local RSS/Wikipedia corpus). - Runs
hs_classify_singularityacross each story cluster to assign exact Landian-Deleuzean Singularity Classes (S1–S6),S×S6Double Articulation flags, and Two-Gate state-matchedM1–M7+memetic activations. - Computes exact
G1intergenerational variance collapse (\Delta\sigma^2_{\text{G1}} = \sigma^2_0 - \sigma^2_1),G3quantized steps,G4isometric fixed points (\Delta = 0), andG5twin-prime mutations for every equation lock. - Renders the complete Division
08"The Room Filter" Markdown dossier (including YAML/header metadata, Story Cluster Analysis, Verified333 / 666 / 777Equation Ledger, Cross-ScaleS1–S6&Dose 0..3+Market Confluence Table, and Grounded Citation Sources[1]..[k]), updates00-index-and-methodology.md, and runsci_provision_ingglish.py --tier 2 --apply-repo. - Explicit UI Provenance Tag: Every dossier compiled in
deterministic_structuralmode carries the header badgeSynthesis Mode: DETERMINISTIC_ZERO_TOKEN_STRUCTURAL (0 LLM Tokens)so readers and downstream tools know its exact provenance.
- Ingests the dated story clusters and verified
Tier 3: Optional Anonymous Crypto-Funded Prepaid API (synthesis_backend = "crypto_funded_api")
- Opt-in only when
/etc/hyperstitionstud.io/exegesis-budget.envis populated andremaining_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:
1run per day (365runs/year). - Token Footprint (when using LLM synthesis):
~18,000input tokens +~4,000output tokens =~22,000tokens/day (~660,000tokens/month). - Monthly Cost Envelope:
- Pathway A (
vps_offline_first— Deterministic or Local GGUF):$0.00 / monthmarginal 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$10equivalent contribution in XMR or BTC funds 5 to 48 months of daily00:00 UTCexegesis runs.
- Pathway A (
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
- Zero Private Spend Keys on VPS: Neither the BTC private key nor the XMR private spend key is ever stored on
hyperstitionstud.ioor in any Git repository. Only public addresses (bc1q...,83ZC...) and static signed budget receipts (site/donate/reactor-fuel-status.json) exist in the webroot. - 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-shot00:00 UTCrunner—never passed tohyperstition-mcp.service(:8095) or Caddy. - Hard Daily Token Circuit-Breaker (
MAX_DAILY_EXEGESIS_TOKENS = 35,000):hs-exegesis-runtracks 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 tovps_offline_first(local_gguf\rightarrowdeterministic_structural) so the00:00 UTCdossier never fails. - Strict Zero-Synthetic-Data Rule on
/donate/: Insite/donate/reactor-fuel-status.jsonand/donate/index.html, if live wallet/credit balance telemetry has not been populated (data_available: false), all balance and runway fields serialize strictly asnull("No data available")—never simulated or fabricated numbers.
5. Step-by-Step Implementation Specification
- Create
src/hyperstitionstud_io/publishing/exegesis_runner.py(hs-exegesis-runCLI):- 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.mdalready exists fortarget_date_utc. If present (e.g. already pushed bylocalhostinlocalhost_hermesmode), logs"already_synthesized": Trueand proceeds directly to Step C verification (0duplicate work). - Step A: Runs
collect_news_aq.py --date YYYY-MM-DD(0tokens). - Step B: Dispatches according to
[exegesis] execution_modeandsynthesis_backend(local_gguf\rightarrowcrypto_funded_api[if enabled & funded]\rightarrowdeterministic_structural). - Step C: Runs
ci_provision_ingglish.py --tier 2 --apply-repo, verifies all 4 CI gates (aq_mismatches == 0), and updatessite/donate/reactor-fuel-status.json.
- Idempotency Gate: Checks whether
--print-localhost-cron-spec: Prints the exactcronjob_manageJSON specification ford28b479ec217so an operator can restorelocalhost_hermesmode in one step at any time.
- Implements:
- Wire
hs-exegesis-runintodeploy/run-vps-data-production.sh --window=utc-rollover(00:00 UTCDaily on VPS):- Before recomputing
timeseries.py,hs-daily-brief, andbuild_encyclopedia_knowledge_graph.py,run-vps-data-production.sh --window=utc-rolloverinvokeshs-exegesis-run --autoso the new UTC day's news dossier<NN>-dossier-news-YYYY-MM-DD.mdis synthesized, verified byci_provision_ingglish.py, and committed/pushed togit.libre.audioautonomously onhyperstitionstud.io.
- Before recomputing
- Decommission
d28b479ec217onlocalhost(Rule ASource-Decommissioning) While Preserving First-Class Re-Enablement:- Remove
d28b479ec217from the activelocalhostHermes cron scheduler viacronjob_manage(action="remove", job_id="d28b479ec217")when activatingexecution_mode = "vps_offline_first", bringinglocalhostrecurring cronjobs from1down to0. - 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: ExplicitlocalhostExegesis Push & VPS Reflection Procedure (detailed in Section 6 below).
- Remove
- 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 ofexecution_mode,synthesis_backend,btc_address,xmr_address, anddaily_token_cap: 35000). - Expose
reactor-fuel-statusviahs_query_workspace_catalog_and_release_stateand/donate/index.html.
- Create
- Verification Gates (
tests/test_core_suite.py&deploy/test-first-deployment.sh):- Test
compile_deterministic_news_dossier()intests/test_core_suite.pyinside a temporary directory and under simulatedProtectSystem=strict(EROFS), verifying 4-gateci_provision_ingglish.pycompliance (0AQ mismatches,0external network calls,0LLM tokens) and strict"No data available"behavior on unpopulated wallet balances.
- Test
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 2mentions in a brief clause thatd28b479ec217"backfills the missed UTC news dossier ... and pushes togit.libre.audio", neitherOPERATORS-MANUAL-LLM-TOKEN-DEPENDENT-DATA-PIPELINES.pdfnorVPS-AND-GIT-OPERATOR-DEPLOYMENT-GUIDE.pdfexplicitly documents the step-by-steplocalhostexegesis push procedure—specifically: which repositories are dirtied by an exegesis run, how downstream time-series/Bayesian artifacts ingest the new dossier's333 / 666 / 777equation locks, and the exact commands required to push fromlocalhost(/workspace) togit.libre.audioand reflect the dossier onhttps://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)
/workspace/ingglish-hyperdope-gematria:ingglish-aq-archive/<NN>-dossier-news-YYYY-MM-DD.md(new Division08"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_aqharvest).
/workspace/hyperdope-ci-build&/workspace/haiperdohp-jemaytreeah(via Step Cci_provision_ingglish.py --tier 2 --apply-repo):db.txt,db_ingglish_entries.txt,ci-audit-report.json, andONBOARDING-INGGLISH-AQ.{md,pdf}(plus untrackedhaiperdohp-jemaytreeah/db.jsonanddb_lite.jsonwhen regenerated).
/workspace/hyperstitionstudio-core(Downstream Time-Series & Bayesian Brief Integration):site/quant/quant-timeseries.jsonandsite/quant/quant-timeseries-data.js(daily_wire_seriesandDose 2 / Dose 3+intersection counts forYYYY-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):
- On
localhost(/workspace): Run the single master topological push script, which automatically recomputesquant-timeseries.jsonanddaily-brief-latest.jsonagainst the new<NN>-dossier-news-YYYY-MM-DD.md, runshs-sync-version --auto-bump(0LLM tokens), runs all 7 test suites intests/test_core_suite.py, commits all modified repositories, and pushes commits and tags togit.libre.audio:/workspace/push-all-to-git-libre-audio.sh - On
hyperstitionstud.io(VPS): Run the single master VPS hydration script to pull fromgit.libre.audio, rebuild untracked.cache/hyperstition-meta.dbandhaiperdohp-jemaytreeah/db.json, and sync the RAM-backedtmpfswebroot (/var/www/hyperstitionstud.io/repos) with.br/.gzpre-compression:sudo /srv/hyperstitionstud.io/repos/hyperstitionstudio-core/deploy/sync-vps-repos.sh
- On
- Workflow 2 — Unattended
00:00 UTClocalhost_hermesPush into the00:20 UTCVPS Pull Window:- When
execution_mode = "localhost_hermes"is active,d28b479ec217executes/workspace/push-all-to-git-libre-audio.shas its final deterministic Step D terminal command (~00:05 UTC) afterci_provision_ingglish.py --tier 2 --apply-repopasses with0AQ mismatches. - At
00:20 UTC, the VPS/etc/cron.d/hyperstition-archive-rotate/hyperstition-archive-rotate.timerjob (deploy/run-vps-archive-rotation.sh) automatically pulls the pushed commits fromgit.libre.audioand hydrates/var/www/hyperstitionstud.io/repos(tmpfs) with zero manual operator intervention.
- When