Release v2.13.0: Implement zero-Git-audio /quant/ guided tour voice narration (Strategies 1A/2A/3A via hs-quant-voice-build, 250ms onstart watchdog & WebAudio formant fallback) and turnkey Fedora 41 OpenRouter exegesis & git.libre.audio push package (Plan #56 & Plan #57)
This commit is contained in:
1 parent
14c467fa4f
commit
6af5d32b15
40 files changed
+761
-189
No files matched your search
@@ -1266,6 +1266,65 @@ def test_ipld_quant_and_mcp_server() -> None:
|
||||
)
|
||||
assert node_quant_tut_test.returncode == 0, f"Node QuantTutorials check failed ({node_quant_tut_test.returncode}): {node_quant_tut_test.stderr}"
|
||||
|
||||
# Verify Plan #57 (Strategies 1A, 2A, 3A): Zero-Git-Audio deploy-time WAV voice compiler (quant_voice.py) & 0 audio files in Git
|
||||
from hyperstitionstud_io.publishing.quant_voice import build_quant_tour_voice_assets
|
||||
|
||||
tmp_voice_dir = tmp_path / "quant_audio"
|
||||
v_res = build_quant_tour_voice_assets(out_dir=tmp_voice_dir, workspace_root=cfg.workspace_root)
|
||||
assert v_res["ok"] is True and v_res["clip_count"] == 25
|
||||
assert (tmp_voice_dir / "ep01-s1.wav").is_file() and (tmp_voice_dir / "ep01-s1.wav").read_bytes()[:4] == b"RIFF"
|
||||
assert (tmp_voice_dir / "ep04-s1.wav").is_file() and (tmp_voice_dir / "voice-manifest.json").is_file()
|
||||
git_gitignore = (cfg.core_dir / ".gitignore").read_text(encoding="utf-8")
|
||||
assert "site/quant/audio/" in git_gitignore, "site/quant/audio/ must be in .gitignore so 0 audio files enter Git"
|
||||
assert "__hsActiveUtterance" in quant_tut_txt and "playDeployTimeWavOrFormant" in quant_tut_txt
|
||||
|
||||
# Verify Plan #56: Fedora 41 OpenRouter Exegesis Synthesizer, Pre-Solved 333/666/777 Equation Engine & Push Worker
|
||||
import importlib.util
|
||||
|
||||
synth_script_p = cfg.archive_dir / "ingglish-aq-archive" / "scripts" / "synthesize_news_dossier_openrouter.py"
|
||||
assert synth_script_p.is_file()
|
||||
spec_s = importlib.util.spec_from_file_location("synthesize_news_dossier_openrouter", synth_script_p)
|
||||
assert spec_s is not None and spec_s.loader is not None
|
||||
mod_s = importlib.util.module_from_spec(spec_s)
|
||||
spec_s.loader.exec_module(mod_s)
|
||||
sample_harvest = {
|
||||
"temporal_metadata": {"target_date_utc": "2026-12-01"},
|
||||
"counts": {"total_headlines": 2, "cross_story_collision_classes": 1, "isometric_locks": 1},
|
||||
"headlines": [
|
||||
{"headline": "Nvidia unveils next-generation Blackwell wafer cluster", "eng_aq": 812, "ing_aq": 834},
|
||||
{"headline": "Spanish election coalition talks continue in Madrid", "eng_aq": 745, "ing_aq": 761},
|
||||
],
|
||||
"entities": [
|
||||
{"eng": "Nvidia", "ing": "envideea", "eng_aq": 115, "ing_aq": 137, "story": "Silicon Wire"},
|
||||
{"eng": "Spanish", "ing": "spanish", "eng_aq": 149, "ing_aq": 149, "story": "Europe Wire"},
|
||||
],
|
||||
"isometric_locks": [{"eng": "Spanish", "ing": "spanish", "eng_aq": 149, "ing_aq": 149}],
|
||||
"cross_story_collisions": {},
|
||||
}
|
||||
solved_30 = mod_s.solve_cluster_equations_333_666_777(sample_harvest)
|
||||
assert len(solved_30["eq_333"]) == 10 and len(solved_30["eq_666"]) == 10 and len(solved_30["eq_777"]) == 10
|
||||
tmp_arc_d = tmp_path / "test_exegesis_arc"
|
||||
tmp_arc_d.mkdir(parents=True, exist_ok=True)
|
||||
(tmp_arc_d / "00-index-and-methodology.md").write_text("# Index\n\n### Category D:\n", encoding="utf-8")
|
||||
tmp_harv_f = tmp_path / "sample-harvest.json"
|
||||
tmp_harv_f.write_text(json.dumps(sample_harvest), encoding="utf-8")
|
||||
syn_out = mod_s.synthesize_news_dossier(
|
||||
harvest_path=tmp_harv_f,
|
||||
archive_dir=tmp_arc_d,
|
||||
api_key="",
|
||||
allow_deterministic_fallback=True,
|
||||
)
|
||||
assert syn_out["ok"] is True and syn_out["equations_verified_count"] == 30 and syn_out["aq_mismatches"] == 0
|
||||
assert Path(syn_out["dossier_path"]).is_file()
|
||||
for pkg_f in (
|
||||
cfg.archive_dir / "packaging" / "build-fedora41-rpm.sh",
|
||||
cfg.archive_dir / "packaging" / "bundle" / "scripts" / "run_exegesis_and_push_fedora41.sh",
|
||||
cfg.archive_dir / "packaging" / "rpm" / "ingglish-isopsephic-exegesis.spec",
|
||||
cfg.archive_dir / "packaging" / "rpm" / "ingglish-exegesis.sysconfig",
|
||||
):
|
||||
assert pkg_f.is_file(), f"Missing Fedora 41 packaging file {pkg_f}"
|
||||
assert "/dev/null" not in pkg_f.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