Release v2.12.0: Purge pre-existing cold plan .tar.gz bundles from LIVE_REPOS in sync-vps-repos.sh and self-heal legacy .pdf archive members

This commit is contained in:
Hermes Agent committed 2026-12-01 10:42:27 +00:00
1 parent a066a0d03d
commit 14c467fa4f
3 files changed
+23 -2

No files matched your search

+2 -2
View File
@@ -3,8 +3,8 @@
<!-- HS-COMMIT-STATUS:START -->
> **Gitea Commit & Release Telemetry (`v2.12.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 &rarr; [`https://hyperstitionstud.io/`](https://hyperstitionstud.io/)
> - **Latest Commit Scope (`hyperstitionstudio-core`):** Synchronized v2.12.0 release state across 68 tracked module/artifact surface(s)
> - **Touched Files / Surfaces:** `deploy/Caddyfile`, `deploy/logrotate.d/hyperstition-sqlite-meta`, `deploy/sync-vps-repos.sh`, `deploy/test-first-deployment.sh`, `package.json`, `packages-js/ciphers-aq/package.json`, `pyproject.toml`, `scripts/build_gallery_manifest.py` (+60 more)
> - **Latest Commit Scope (`hyperstitionstudio-core`):** Synchronized v2.12.0 release state across 2 tracked module/artifact surface(s)
> - **Touched Files / Surfaces:** `deploy/sync-vps-repos.sh`, `src/hyperstitionstud_io/publishing/archive_rotator.py`
> - **Live Verified Ecosystem Metrics (`v2.12.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
<!-- HS-COMMIT-STATUS:END -->
+3
View File
@@ -183,6 +183,9 @@ for entry in "${REPOS[@]}"; do
--exclude='completed-plans-archive.tar.gz' \
--exclude='inactive-plans-archive.tar.gz' \
"${REPOS_ROOT}/${repo}/" "${LIVE_REPOS}/${repo}/"
${LIVE_SUDO} rm -f \
"${LIVE_REPOS}/${repo}/docs/archive/completed-plans-archive.tar.gz" \
"${LIVE_REPOS}/${repo}/docs/plans/inactive/inactive-plans-archive.tar.gz"
fi
done
@@ -1009,6 +1009,24 @@ def audit_and_fix_multi_compressed_files(
]
except Exception:
bad_members = []
if bad_members and fix and fn in (BUNDLE_FILENAME, INACTIVE_BUNDLE_FILENAME):
# Automatically remediate any legacy .pdf members inside plan archive tarballs (e.g. inside LIVE_REPOS)
with tempfile.TemporaryDirectory() as tmp_repack:
rep_dir = Path(tmp_repack)
with tarfile.open(fp, "r:gz") as tf_in:
for m_in in safe_tar_members(tf_in):
if "/" not in m_in.name and not nested_comp_ext_re.search(m_in.name):
ex_f = tf_in.extractfile(m_in)
if ex_f is not None:
(rep_dir / m_in.name).write_bytes(ex_f.read())
md_files = sorted(p for p in rep_dir.iterdir() if p.is_file())
_pack_deterministic_tar_gz(md_files, fp)
bad_members = []
elif bad_members and fix and fn.startswith("ingglish-isopsephic-exegesis-") and fn.endswith((".tar.gz", ".tar.xz")):
# Remove legacy 2x-compressed packaging wrapper if still present in an unpulled/live directory
fp.unlink()
removed_double_sidecars.append(_norm_ws_path(fp, workspace_root=workspace_root))
bad_members = []
if bad_members:
nested_archive_violations.append(
{