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:
1 parent
64825ffd75
commit
54e7f8ff61
55 files changed
+4039
-62
No files matched your search
+100
-1
@@ -564,7 +564,8 @@ def test_ipld_quant_and_mcp_server() -> None:
|
||||
)
|
||||
|
||||
web_pdf_pairs = discover_web_and_repo_pdf_pairs()
|
||||
assert len(web_pdf_pairs) >= 80
|
||||
assert len(web_pdf_pairs) >= 48
|
||||
assert all("archive" not in pdf_p.parts for _, pdf_p in web_pdf_pairs)
|
||||
assert any("encyclopedia/" in str(pdf_p) for _, pdf_p in web_pdf_pairs[:25])
|
||||
|
||||
row_cells = _split_markdown_table_row(r"| **3** | Pipes `a|b` & \| | $\mathbb{E}[|\Delta\text{bps}_{i,t}|] \in \{0..4\}$<br/>Line 2 & ⓘ |")
|
||||
@@ -647,6 +648,104 @@ def test_ipld_quant_and_mcp_server() -> None:
|
||||
g3_css = (cfg_test.core_dir / "site" / "assets" / "hs-group3-basalt-chamfer.css").read_text(encoding="utf-8")
|
||||
assert ".btn-donate-pill" in g3_css and "border-radius: 999px !important;" in g3_css
|
||||
assert ".tactile-donate-btn" in g3_css
|
||||
|
||||
# Produce & verify the Periodic Harvest -> CI/CD -> VPS Infrastructure Flow Diagram PNG
|
||||
from hyperstitionstud_io.publishing.flow_diagram import render_periodic_harvest_cicd_flow_diagram_png
|
||||
|
||||
flow_res = render_periodic_harvest_cicd_flow_diagram_png()
|
||||
flow_png_p = Path(flow_res["png_path"])
|
||||
assert flow_png_p == (cfg_test.knowledge_graph_dir / "docs" / "periodic-harvest-cicd-to-vps-flow-diagram.png").resolve()
|
||||
assert flow_png_p.is_file() and flow_png_p.read_bytes()[:8] == b"\x89PNG\r\n\x1a\n"
|
||||
assert flow_res["dimensions"] == [1800, 1280] and flow_res["breach_count"] == 0
|
||||
|
||||
# Verify Archive Rotator (Gematria-Pipeline Immunity, Richness Parity & require_companion_md=True)
|
||||
from hyperstitionstud_io.publishing.archive_rotator import (
|
||||
assert_not_gematria_pipeline_source,
|
||||
rotate_docs_archive_directory,
|
||||
snapshot_gematria_pipeline_richness,
|
||||
verify_gematria_pipeline_richness_invariant,
|
||||
)
|
||||
|
||||
for protected_p in (
|
||||
cfg_test.archive_dir / "00-index-and-methodology.md",
|
||||
cfg_test.zoology_dir / "taxonomy" / "glossary-registry.json",
|
||||
cfg_test.paths["gematria_js_dir"] / "db.txt",
|
||||
):
|
||||
try:
|
||||
assert_not_gematria_pipeline_source(protected_p)
|
||||
raise AssertionError(f"Expected ValueError for protected path {protected_p}")
|
||||
except ValueError:
|
||||
pass
|
||||
|
||||
rich_snap = snapshot_gematria_pipeline_richness()
|
||||
assert verify_gematria_pipeline_richness_invariant(rich_snap, rich_snap) is True
|
||||
|
||||
arc_test_dir = tmp_path / "test_arc"
|
||||
arc_test_dir.mkdir(parents=True, exist_ok=True)
|
||||
(arc_test_dir / "README.md").write_text("# Index\n", encoding="utf-8")
|
||||
(arc_test_dir / "PLAN-SAMPLE.md").write_text("# Sample\n", encoding="utf-8")
|
||||
(arc_test_dir / "PLAN-SAMPLE.pdf").write_bytes(b"%PDF-1.4 sample")
|
||||
(arc_test_dir / "STANDALONE-NO-MD.pdf").write_bytes(b"%PDF-1.4 standalone")
|
||||
rot_res = rotate_docs_archive_directory(arc_test_dir, require_companion_md=True, check_allowed_dir=False)
|
||||
assert rot_res["member_count"] == 2
|
||||
assert rot_res["preserved_standalone_pdfs"] == ["STANDALONE-NO-MD.pdf"]
|
||||
assert (arc_test_dir / "STANDALONE-NO-MD.pdf").is_file()
|
||||
assert not (arc_test_dir / "PLAN-SAMPLE.pdf").exists()
|
||||
|
||||
# Verify VPS Data Production incremental cache merge & static script/timer invariants
|
||||
from hyperstitionstud_io.quant.collector import update_real_market_history_cache
|
||||
|
||||
tmp_hist = tmp_path / "test-real-history.json"
|
||||
upd_h = update_real_market_history_cache(
|
||||
history_path=tmp_hist,
|
||||
new_bars_by_symbol={"NVDA": {"2026-12-01": {"close_usd": 152.10, "change_bps": 107}}},
|
||||
allow_live_network=False,
|
||||
)
|
||||
assert upd_h["appended_bars_count"] == 1
|
||||
parsed_h = json.loads(tmp_hist.read_text(encoding="utf-8"))
|
||||
assert parsed_h["instruments"]["ANTHR-PVT"]["data_available"] is False
|
||||
assert parsed_h["instruments"]["NVDA"]["bars_by_date"]["2026-12-01"]["close_usd"] == 152.10
|
||||
|
||||
vps_prod_sh = cfg_test.core_dir / "deploy" / "run-vps-data-production.sh"
|
||||
assert vps_prod_sh.is_file() and "/dev/null" not in vps_prod_sh.read_text(encoding="utf-8")
|
||||
for u_name in (
|
||||
"hyperstition-closing-bell-harvest.service",
|
||||
"hyperstition-closing-bell-harvest.timer",
|
||||
"hyperstition-utc-rollover-harvest.service",
|
||||
"hyperstition-utc-rollover-harvest.timer",
|
||||
):
|
||||
assert (cfg_test.core_dir / "deploy" / u_name).is_file()
|
||||
|
||||
# Verify /engineering/ (hs-eng-docs) & /math/ (hs-math-docs) Piecewise & Non-Sequential Revertability
|
||||
from hyperstitionstud_io.publishing.engineering_docs import build_engineering_site
|
||||
from hyperstitionstud_io.publishing.math_docs import build_math_site
|
||||
|
||||
eng_sub_res = build_engineering_site(
|
||||
out_dir=tmp_path / "eng_subset",
|
||||
enabled_subpages=("ciphers-and-phonetics", "mcp-chatbot-rest-and-ipld"),
|
||||
)
|
||||
assert eng_sub_res["enabled_subpages"] == ["ciphers-and-phonetics", "mcp-chatbot-rest-and-ipld"]
|
||||
assert (tmp_path / "eng_subset" / "ciphers-and-phonetics" / "index.html").is_file()
|
||||
assert not (tmp_path / "eng_subset" / "quant-macro-and-bayesian-brief").exists()
|
||||
assert "hs-prereq-ladder" in (tmp_path / "eng_subset" / "index.html").read_text(encoding="utf-8")
|
||||
|
||||
math_sub_res = build_math_site(
|
||||
out_dir=tmp_path / "math_subset",
|
||||
enabled_subpages=("base36-algebra-and-primes", "timeseries-moments-and-confluence-dose"),
|
||||
)
|
||||
assert math_sub_res["enabled_subpages"] == ["base36-algebra-and-primes", "timeseries-moments-and-confluence-dose"]
|
||||
math_man = json.loads((tmp_path / "math_subset" / "math-manifest.json").read_text(encoding="utf-8"))
|
||||
assert math_man["algebraic_invariants"]["eti_weights_sum"] == 1.0
|
||||
assert abs(math_man["algebraic_invariants"]["bayesian_posterior_simplex_sum"] - 1.0) < 1e-3
|
||||
assert math_man["algebraic_invariants"]["cluster_292_gen0_variance"] > 300.0
|
||||
assert math_man["algebraic_invariants"]["cluster_292_gen1_variance"] == 0.0
|
||||
assert math_man["algebraic_invariants"]["g4_isometric_fixed_point_count"] == 21
|
||||
|
||||
# Write cached internal test baseline (.cache/internal-test-baseline-latest.json) for hs-public-smoke
|
||||
from hyperstitionstud_io.ci.public_regression import write_internal_test_baseline_cache
|
||||
|
||||
base_cache_p = write_internal_test_baseline_cache()
|
||||
assert base_cache_p.is_file()
|
||||
finally:
|
||||
if prev_tel_env is None:
|
||||
os.environ.pop("HYPERSTITION_TELEMETRY_DB_PATH", None)
|
||||
|
||||
Reference in new issue
Block a user