diff --git a/README.md b/README.md index 5e7824a..ba804f1 100644 --- a/README.md +++ b/README.md @@ -3,8 +3,8 @@ > **Gitea Commit & Release Telemetry (`v2.14.0` • Namespace `urn:io:hyperstitionstud`)** > - **Repository Role & Public Route:** Shared PEP 420 Python core library (`hyperstitionstud_io.*`), MCP/REST server, `/quant/`, `/learn/`, `/engineering/`, `/math/`, & `/donate/` webroots → [`https://hyperstitionstud.io/`](https://hyperstitionstud.io/) -> - **Latest Commit Scope (`hyperstitionstudio-core`):** Synchronized v2.14.0 release state across 38 tracked module/artifact surface(s) -> - **Touched Files / Surfaces:** `deploy/push-all-to-git-libre-audio.sh`, `deploy/sync-vps-repos.sh`, `package.json`, `packages-js/ciphers-aq/package.json`, `pyproject.toml`, `scripts/build_gallery_manifest.py`, `site/donate/index.html`, `site/engineering/cicd-vps-tmpfs-and-regression/index.html` (+30 more) +> - **Latest Commit Scope (`hyperstitionstudio-core`):** Synchronized v2.14.0 release state across 3 tracked module/artifact surface(s) +> - **Touched Files / Surfaces:** `deploy/sync-vps-repos.sh`, `src/hyperstitionstud_io/ci/deploy_scripts_sync.py`, `src/hyperstitionstud_io/version_sync.py` > - **Live Verified Ecosystem Metrics (`v2.14.0`):** `6` Repositories • `17` CLI Entrypoints • `20` MCP/REST Tools • `14` URN Resources • `63` Verified Web Routes • `388` KG Nodes / `1,282` Edges • `282` Glossary Entries • `4,943` Offline CMUdict Phonetics • `0` Synthetic Data diff --git a/deploy/sync-vps-repos.sh b/deploy/sync-vps-repos.sh index 58e2188..3462f20 100755 --- a/deploy/sync-vps-repos.sh +++ b/deploy/sync-vps-repos.sh @@ -158,6 +158,7 @@ if p.is_file(): ' fi run_checked "hs-readme-sync --hooks-only" "${PYTHON_BIN}" -m hyperstitionstud_io.publishing.readme_sync --hooks-only +run_checked "hs-deploy-scripts-sync --check" "${PYTHON_BIN}" -m hyperstitionstud_io.ci.deploy_scripts_sync --workspace-root "${REPOS_ROOT}" --check run_checked "hs-closeups-sync --check" "${PYTHON_BIN}" -m hyperstitionstud_io.publishing.closeups_sync --check run_checked "version_sync --check" "${PYTHON_BIN}" -m hyperstitionstud_io.version_sync --check run_checked "hs-db-build (--build)" "${PYTHON_BIN}" -m hyperstitionstud_io.db.sqlite_meta --build diff --git a/src/hyperstitionstud_io/ci/deploy_scripts_sync.py b/src/hyperstitionstud_io/ci/deploy_scripts_sync.py index 6dfdf13..f9e0353 100644 --- a/src/hyperstitionstud_io/ci/deploy_scripts_sync.py +++ b/src/hyperstitionstud_io/ci/deploy_scripts_sync.py @@ -57,6 +57,8 @@ def prepare_and_verify_deploy_scripts( errors: list[str] = [] # Gate D1: Version Header & Tracked Mirror Parity + # Note: On VPS (/srv/hyperstitionstud.io/repos), the tracked copy is `hyperstitionstudio-core/deploy/push-all-to-git-libre-audio.sh` + # while the parent directory `ws_root/push-all-to-git-libre-audio.sh` may be absent until hydrated. if ws_push_sh.is_file(): push_txt = ws_push_sh.read_text(encoding="utf-8") upd_push = re.sub(r"^#\s*Release\s+v\d+\.\d+\.\d+:", f"# Release v{ver}:", push_txt, count=1, flags=re.M) @@ -69,7 +71,6 @@ def prepare_and_verify_deploy_scripts( modified_files.append(_norm_ws_path(ws_push_sh, workspace_root=ws_root)) push_txt = upd_push - # Ensure tracked mirror inside hyperstitionstudio-core/deploy/push-all-to-git-libre-audio.sh is byte-identical tracked_txt = tracked_push_sh.read_text(encoding="utf-8") if tracked_push_sh.is_file() else "" if tracked_txt != push_txt: if check_only: @@ -79,8 +80,25 @@ def prepare_and_verify_deploy_scripts( tracked_push_sh.write_text(push_txt, encoding="utf-8") tracked_push_sh.chmod(0o755) modified_files.append(_norm_ws_path(tracked_push_sh, workspace_root=ws_root)) + elif tracked_push_sh.is_file(): + push_txt = tracked_push_sh.read_text(encoding="utf-8") + upd_push = re.sub(r"^#\s*Release\s+v\d+\.\d+\.\d+:", f"# Release v{ver}:", push_txt, count=1, flags=re.M) + if upd_push != push_txt: + if check_only: + errors.append(f"Gate D1: {tracked_push_sh} release header does not match v{ver}") + else: + tracked_push_sh.write_text(upd_push, encoding="utf-8") + tracked_push_sh.chmod(0o755) + modified_files.append(_norm_ws_path(tracked_push_sh, workspace_root=ws_root)) + push_txt = upd_push + if not check_only: + try: + ws_push_sh.write_text(push_txt, encoding="utf-8") + ws_push_sh.chmod(0o755) + except OSError: + pass else: - errors.append(f"Gate D1: Missing {ws_push_sh}") + errors.append(f"Gate D1: Missing both {ws_push_sh} and {tracked_push_sh}") if sync_vps_sh.is_file(): sync_txt = sync_vps_sh.read_text(encoding="utf-8") @@ -155,7 +173,8 @@ def prepare_and_verify_deploy_scripts( # Gate D6: Single-Layer 1x Compression & Caddyfile Media Extension Parity caddy_txt = caddyfile_p.read_text(encoding="utf-8") if caddyfile_p.is_file() else "" - push_txt_cur = ws_push_sh.read_text(encoding="utf-8") if ws_push_sh.is_file() else "" + push_src = ws_push_sh if ws_push_sh.is_file() else tracked_push_sh + push_txt_cur = push_src.read_text(encoding="utf-8") if push_src.is_file() else "" gate_d6_ok = ( "--enforce-single-compression" in push_txt_cur and "--enforce-single-compression" in sync_txt_cur diff --git a/src/hyperstitionstud_io/version_sync.py b/src/hyperstitionstud_io/version_sync.py index 2019fb0..a95ce21 100755 --- a/src/hyperstitionstud_io/version_sync.py +++ b/src/hyperstitionstud_io/version_sync.py @@ -425,6 +425,12 @@ def get_version_targets(ws_root: Path | None = None) -> list[tuple[Path, list[tu (rf'encyclopedia-knowledge-graph \(v{SEMVER_RE}\)', "encyclopedia-knowledge-graph (v{V})"), ], ), + ( + core / "deploy" / "push-all-to-git-libre-audio.sh", + [ + (rf'# Release v{SEMVER_RE}:', "# Release v{V}:"), + ], + ), ( core.parent / "push-all-to-git-libre-audio.sh", [