Release v2.7.0: Subtle cybernetic code rain, micro-sigil accents, 2x2 persona UI-closeup homepage showcase, v2.4.0 donate pill single-source-of-truth, and per-commit root README & commit-msg version parity
This commit is contained in:
1 parent
694240efd1
commit
6aeaf4bc6f
49 files changed
+1476
-458
No files matched your search
@@ -59,16 +59,27 @@ def test_offline_urn_namespaces_and_no_external_https_fonts() -> None:
|
||||
assert "by Lemurs." in txt, f"Missing global Lemurs footer in {html_p}"
|
||||
assert ("♥" in txt or "♥" in txt), f"Missing Unicode heart in {html_p}"
|
||||
|
||||
g3_css_txt = (cfg.core_dir / "site" / "assets" / "hs-group3-basalt-chamfer.css").read_text(encoding="utf-8")
|
||||
for req_donate_sel in (".nav-donate-sep {", ".btn-donate-pill {", ".btn-donate-pill:hover {", ".donate-pill-emblem {"):
|
||||
assert req_donate_sel in g3_css_txt, f"Missing canonical {req_donate_sel} in hs-group3-basalt-chamfer.css"
|
||||
|
||||
for nav_p in (
|
||||
cfg.core_dir / "site" / "index.html",
|
||||
cfg.core_dir / "site" / "learn" / "index.html",
|
||||
cfg.core_dir / "site" / "quant" / "index.html",
|
||||
cfg.core_dir / "site" / "engineering" / "index.html",
|
||||
cfg.core_dir / "site" / "math" / "index.html",
|
||||
):
|
||||
nav_txt = nav_p.read_text(encoding="utf-8")
|
||||
assert "hs-group3-basalt-chamfer.css" in nav_txt, f"Missing shared stylesheet in {nav_p}"
|
||||
assert "btn-donate-pill" in nav_txt, f"Missing distinct stadium-pill Donate button in {nav_p}"
|
||||
assert "donate-pill-emblem" in nav_txt, f"Missing circular 1:2 Donate emblem in {nav_p}"
|
||||
assert "nav-donate-sep" in nav_txt, f"Missing vertical divider before Donate pill in {nav_p}"
|
||||
assert '<span class="donate-pill-emblem" aria-hidden="true">♥</span><span>DONATE</span>' in nav_txt, (
|
||||
f"Missing canonical circular 1:2 Donate emblem markup in {nav_p}"
|
||||
)
|
||||
assert "margin-left: auto" in nav_txt, f"Missing right-justification margin-left: auto in {nav_p}"
|
||||
assert ".btn-donate-pill {" not in nav_txt and ".donate-pill-emblem {" not in nav_txt, (
|
||||
f"Inline .btn-donate-pill/.donate-pill-emblem override found in {nav_p} (must inherit from hs-group3-basalt-chamfer.css)"
|
||||
)
|
||||
|
||||
schemas_dir = cfg.core_dir / "schemas" / "v1"
|
||||
for sp in schemas_dir.glob("*.schema.json"):
|
||||
@@ -99,10 +110,12 @@ def test_offline_urn_namespaces_and_no_external_https_fonts() -> None:
|
||||
if not rdir.is_dir():
|
||||
continue
|
||||
for root_s, dirs, files in os.walk(rdir):
|
||||
dirs[:] = [d for d in dirs if d not in (".git", "node_modules", "__pycache__", ".cache")]
|
||||
dirs[:] = [d for d in dirs if d not in (".git", "node_modules", "__pycache__", ".cache", "untracked")]
|
||||
for fn in files:
|
||||
if fn.startswith(".~lock."):
|
||||
continue
|
||||
fp = Path(root_s) / fn
|
||||
if fp.suffix in (".png", ".mp3", ".db", ".gz", ".br", ".ttf", ".pdf"):
|
||||
if fp.suffix in (".png", ".mp3", ".db", ".gz", ".br", ".ttf", ".woff", ".woff2", ".pdf"):
|
||||
continue
|
||||
try:
|
||||
ftxt = fp.read_text(encoding="utf-8")
|
||||
@@ -989,6 +1002,81 @@ def test_ipld_quant_and_mcp_server() -> None:
|
||||
res_eng_code, _, res_eng_body = dispatch_rest_v1("GET", "/api/v1/resources/engineering-manifest")
|
||||
assert res_eng_code == 200 and res_eng_body["data"]["$id"] == "urn:io:hyperstitionstud:engineering-manifest"
|
||||
|
||||
# Verify PLAN-SUBTLE-CYBERNETIC-MATRIX-CODE-RAIN-BACKGROUND & PLAN-CYBERNETIC-AND-OCCULT-MICRO-SIGIL-UI-ACCENTS
|
||||
matrix_woff2_p = cfg.core_dir / "site" / "assets" / "matrix-font.woff2"
|
||||
coderain_js_p = cfg.core_dir / "site" / "assets" / "hs-matrix-coderain.js"
|
||||
assert matrix_woff2_p.is_file() and matrix_woff2_p.stat().st_size > 4000
|
||||
assert coderain_js_p.is_file()
|
||||
assert "@font-face" in g3_css and "matrix-font.woff2" in g3_css
|
||||
assert ".hs-sigil-seal" in g3_css and ".hs-plate-g3.plate-lock-gold::after" in g3_css
|
||||
for surf_p in (
|
||||
cfg.core_dir / "site" / "index.html",
|
||||
cfg.core_dir / "site" / "learn" / "index.html",
|
||||
cfg.core_dir / "site" / "quant" / "index.html",
|
||||
cfg.core_dir / "site" / "donate" / "index.html",
|
||||
cfg.core_dir / "site" / "engineering" / "index.html",
|
||||
cfg.core_dir / "site" / "math" / "index.html",
|
||||
):
|
||||
surf_txt = surf_p.read_text(encoding="utf-8")
|
||||
assert "hs-matrix-coderain.js?v=" in surf_txt, f"Missing hs-matrix-coderain.js in {surf_p}"
|
||||
assert "hs-sigil-seal" in surf_txt, f"Missing hs-sigil-seal in {surf_p}"
|
||||
assert "hs-sigil-colophon" in surf_txt, f"Missing hs-sigil-colophon in {surf_p}"
|
||||
|
||||
node_rain_test = subprocess.run(
|
||||
[
|
||||
"node",
|
||||
"-e",
|
||||
f"const CR = require({json.dumps(str(coderain_js_p))});"
|
||||
"if (CR.MATRIX_CHARS.length !== 66) process.exit(1);"
|
||||
"if (CR.SIGIL_GLINTS.length < 8) process.exit(2);"
|
||||
"const sub = CR.PROFILES.subtle;"
|
||||
"if (sub.frameIntervalMs !== 80 || sub.colPitchPx !== 24 || sub.canvasOpacity !== 0.45) process.exit(3);"
|
||||
"const aCenter = CR.computeColumnAlpha(500, 1000, sub, false);"
|
||||
"const aOuter = CR.computeColumnAlpha(50, 1000, sub, false);"
|
||||
"if (!(aCenter < aOuter && aCenter <= 0.09 && aOuter >= 0.20)) process.exit(4);",
|
||||
],
|
||||
capture_output=True,
|
||||
text=True,
|
||||
check=False,
|
||||
)
|
||||
assert node_rain_test.returncode == 0, f"Node CodeRain check failed ({node_rain_test.returncode}): {node_rain_test.stderr}"
|
||||
|
||||
# Verify PLAN-AUTOMATED-PER-COMMIT-REPO-ROOT-README-SYNCHRONIZATION-FOR-GITEA
|
||||
# and PLAN-README-AND-GIT-COMMIT-MESSAGE-VERSION-PARITY-FIX
|
||||
from hyperstitionstud_io import __version__ as cur_v_str
|
||||
from hyperstitionstud_io.publishing.readme_sync import (
|
||||
install_git_pre_commit_hooks,
|
||||
sync_all_repo_readmes,
|
||||
)
|
||||
|
||||
rm_chk = sync_all_repo_readmes(ws_root=cfg.workspace_root, check_only=True)
|
||||
assert rm_chk["all_in_sync"] is True and len(rm_chk["checked_readmes"]) == 6, f"README drift: {rm_chk}"
|
||||
for rm_rel in rm_chk["checked_readmes"]:
|
||||
rm_p = cfg.workspace_root / Path(rm_rel).relative_to("/workspace")
|
||||
rm_txt = rm_p.read_text(encoding="utf-8")
|
||||
assert re.search(r"(?<![A-Za-z])EADME\.md", rm_txt) is None, f"Truncated EADME.md found in {rm_p}"
|
||||
found_v = set(re.findall(r"\bv(\d+\.\d+\.\d+)\b", rm_txt))
|
||||
assert found_v == {cur_v_str}, f"Mixed versions {found_v} in {rm_p} (expected only {cur_v_str})"
|
||||
|
||||
hk_chk = install_git_pre_commit_hooks(ws_root=cfg.workspace_root, check_only=True)
|
||||
assert hk_chk["ok"] is True and len(hk_chk["installed_hooks"]) == 12, f"Missing git hooks: {hk_chk}"
|
||||
|
||||
# Verify PLAN-HOMEPAGE-LAYOUT-GIT-VELOCITY-PRIORITIZATION-AND-DECLUTTER (Proposal A / Option 2)
|
||||
home_txt = (cfg.core_dir / "site" / "index.html").read_text(encoding="utf-8")
|
||||
for forbidden_home in ("388 Graph Nodes", "1,282 Typed Edges", "24 Quant Tickers", "stat-row", "-manifest.json"):
|
||||
assert forbidden_home not in home_txt, f"Forbidden static marker {forbidden_home!r} found on homepage"
|
||||
for q_img in (
|
||||
"assets/closeups/quadrant-1-cybermemetics-calc-graph.png",
|
||||
"assets/closeups/quadrant-2-esoteric-finance-quant.png",
|
||||
"assets/closeups/quadrant-3-info-science-novice-learn-polyglot.png",
|
||||
"assets/closeups/quadrant-4-operators-deployment-vps.png",
|
||||
):
|
||||
assert q_img in home_txt, f"Missing quadrant closeup {q_img} on homepage"
|
||||
assert (cfg.core_dir / "site" / q_img).is_file()
|
||||
home_hrefs = re.findall(r'<a[^>]+href="([^"]+)"', home_txt)
|
||||
assert len(home_hrefs) == len(set(home_hrefs)), f"Duplicate href links on homepage: {home_hrefs}"
|
||||
assert "24 Watchlist Instruments" in (cfg.core_dir / "site" / "quant" / "index.html").read_text(encoding="utf-8")
|
||||
|
||||
# Verify PLAN-INTROSPECTIVE-PROTECT-SYSTEM-STRICT-EROFS-TEST-HARNESS
|
||||
from hyperstitionstud_io.ci.erofs_harness import run_introspective_erofs_suite
|
||||
|
||||
|
||||
Reference in new issue
Block a user