Compare commits
13
Commits
967f983eda
...
v2.17.1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0083a3fa24 | ||
|
|
c34f121206 | ||
|
|
b4240a742b | ||
|
|
54334966b9 | ||
|
|
ac0e4c25a6 | ||
|
|
1bf7c1f85e | ||
|
|
1dbb52608c | ||
|
|
878a385573 | ||
|
|
2530d2455a | ||
|
|
826eac29d2 | ||
|
|
e8f94ffe84 | ||
|
|
42cc4cb430 | ||
|
|
a16957da62 |
No files matched your search
@@ -3,8 +3,8 @@
|
|||||||
<!-- HS-COMMIT-STATUS:START -->
|
<!-- HS-COMMIT-STATUS:START -->
|
||||||
> **Gitea Commit & Release Telemetry (`v2.17.1` • Namespace `urn:io:hyperstitionstud`)**
|
> **Gitea Commit & Release Telemetry (`v2.17.1` • Namespace `urn:io:hyperstitionstud`)**
|
||||||
> - **Repository Role & Public Route:** `388`-Node / `1,282`-Edge Interactive Knowledge Graph Workbench (Modes 1-4), 6-Gate Verifier, & Architectural Plan/Release Archive → [`https://hyperstitionstud.io/graph/index.html`](https://hyperstitionstud.io/graph/index.html)
|
> - **Repository Role & Public Route:** `388`-Node / `1,282`-Edge Interactive Knowledge Graph Workbench (Modes 1-4), 6-Gate Verifier, & Architectural Plan/Release Archive → [`https://hyperstitionstud.io/graph/index.html`](https://hyperstitionstud.io/graph/index.html)
|
||||||
> - **Latest Commit Scope (`encyclopedia-knowledge-graph`):** Synchronized v2.17.1 release state across 3 tracked module/artifact surface(s)
|
> - **Latest Commit Scope (`encyclopedia-knowledge-graph`):** Synchronized v2.17.1 release state across 1 tracked module/artifact surface(s)
|
||||||
> - **Touched Files / Surfaces:** `docs/periodic-harvest-cicd-to-vps-flow-diagram.png`, `docs/plans/active/PLAN-VPS-LOCALHOST-NAMESPACE-DISCREPANCY-RESOLUTION.md`, `docs/plans/active/PLAN-VPS-LOCALHOST-NAMESPACE-DISCREPANCY-RESOLUTION.pdf`
|
> - **Touched Files / Surfaces:** `docs/periodic-harvest-cicd-to-vps-flow-diagram.png`
|
||||||
> - **Live Verified Ecosystem Metrics (`v2.17.1`):** `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
|
> - **Live Verified Ecosystem Metrics (`v2.17.1`):** `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 -->
|
<!-- HS-COMMIT-STATUS:END -->
|
||||||
|
|
||||||
|
|||||||
@@ -104,7 +104,7 @@ curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | sudo gpg --d
|
|||||||
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' | sudo tee /etc/apt/sources.list.d/caddy-stable.list >/dev/null
|
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' | sudo tee /etc/apt/sources.list.d/caddy-stable.list >/dev/null
|
||||||
sudo chmod a+r /usr/share/keyrings/caddy-stable-archive-keyring.gpg /etc/apt/sources.list.d/caddy-stable.list
|
sudo chmod a+r /usr/share/keyrings/caddy-stable-archive-keyring.gpg /etc/apt/sources.list.d/caddy-stable.list
|
||||||
|
|
||||||
sudo apt update && sudo apt install -y git python3 python3-venv python3-pip brotli rsync curl logrotate caddy fonts-dejavu-core
|
sudo apt update && sudo apt install -y git python3 python3-venv python3-pip nodejs npm brotli rsync curl logrotate caddy fonts-dejavu-core
|
||||||
|
|
||||||
sudo tee /etc/sysctl.d/99-hyperstition-fastnet.conf >/dev/null <<'EOF'
|
sudo tee /etc/sysctl.d/99-hyperstition-fastnet.conf >/dev/null <<'EOF'
|
||||||
net.core.default_qdisc = fq
|
net.core.default_qdisc = fq
|
||||||
@@ -230,3 +230,20 @@ Sync the updated working tree(s) into the RAM mount and regenerate the `.br` / `
|
|||||||
- **Negating Service/Caddy Sync (`--no-caddy` / `--no-services`):**
|
- **Negating Service/Caddy Sync (`--no-caddy` / `--no-services`):**
|
||||||
Pass `--no-caddy` (e.g., `sync-vps-repos.sh --no-pull --no-caddy`) to sync only the RAM-backed webroot files and `.br`/`.gz` sidecars without touching `/etc/caddy/Caddyfile` or `systemd`.
|
Pass `--no-caddy` (e.g., `sync-vps-repos.sh --no-pull --no-caddy`) to sync only the RAM-backed webroot files and `.br`/`.gz` sidecars without touching `/etc/caddy/Caddyfile` or `systemd`.
|
||||||
- **Browser Cache Note:** `HTML`/`JS`/`JSON` routes carry `Cache-Control: public, max-age=300` (5 minutes); press `Ctrl+Shift+R` (`Cmd+Shift+R` on macOS) in your browser to bypass the 5-minute client cache immediately after syncing.
|
- **Browser Cache Note:** `HTML`/`JS`/`JSON` routes carry `Cache-Control: public, max-age=300` (5 minutes); press `Ctrl+Shift+R` (`Cmd+Shift+R` on macOS) in your browser to bypass the 5-minute client cache immediately after syncing.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 6. Automated VPS Telemetry Push & Deploy Key Configuration (`run-vps-data-production.sh`)
|
||||||
|
|
||||||
|
When autonomous VPS harvest timers (`hyperstition-closing-bell-harvest.timer` or `hyperstition-utc-rollover-harvest.timer`) execute `deploy/run-vps-data-production.sh`, Step 4 [4/5] automatically commits and pushes updated telemetry and harvest state back to `git.libre.audio` if a secure deploy key is provisioned.
|
||||||
|
|
||||||
|
### 1. Deploy Key File Path
|
||||||
|
- **Required Path on VPS**: `/etc/hyperstitionstud.io/id_ed25519_git_libre_audio`
|
||||||
|
- **Permissions**: Must be restricted (`chmod 600`) and owned by the harvesting user.
|
||||||
|
|
||||||
|
### 2. Autonomous Git Push Mechanism
|
||||||
|
When the deploy key file is present, `run-vps-data-production.sh` exports `GIT_SSH_COMMAND` to authenticate securely without interactive prompts:
|
||||||
|
```bash
|
||||||
|
export GIT_SSH_COMMAND="ssh -i /etc/hyperstitionstud.io/id_ed25519_git_libre_audio -o StrictHostKeyChecking=accept-new"
|
||||||
|
```
|
||||||
|
If the deploy key file is absent, step [4/5] safely skips the automated push (`[4/5] Skipping automated git.libre.audio push (no-push or deploy key absent)`), allowing harvesting to complete locally without failure.
|
||||||
Binary file not shown.
Binary file not shown.
|
Before Width: | Height: | Size: 281 KiB After Width: | Height: | Size: 285 KiB |
@@ -1,4 +1,4 @@
|
|||||||
# PLAN: Resolution of Filesystem & Namespace Discrepancies Between Localhost & VPS (`PLAN #71`)
|
# PLAN: Comprehensive Root-Cause Resolution of All Namespace & Path Discrepancies Between Localhost & VPS (`PLAN #71`)
|
||||||
|
|
||||||
**Document ID:** `PLAN-VPS-LOCALHOST-NAMESPACE-DISCREPANCY-RESOLUTION`
|
**Document ID:** `PLAN-VPS-LOCALHOST-NAMESPACE-DISCREPANCY-RESOLUTION`
|
||||||
**Status:** `ACTIVE (docs/plans/active/)`
|
**Status:** `ACTIVE (docs/plans/active/)`
|
||||||
@@ -9,32 +9,34 @@
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## 1. Context & Problem Statement
|
## 1. Context & Scope of Discrepancies
|
||||||
|
|
||||||
### Problems Solved
|
### Ecosystem-Wide Namespace & Path Discrepancies
|
||||||
As observed during VPS harvest test suite runs, path resolution discrepancies between local development workstations (`/workspace/...`) and target production VPS environments (`/srv/hyperstitionstud.io/repos/...`) frequently arise due to repository alias naming variations—specifically `hyperdope-ci-build` versus `ingglish-hyperdope-ci`.
|
Beyond the CI repository naming divergence (`hyperdope-ci-build` ↔ `ingglish-hyperdope-ci`), subtle namespace and path discrepancies can occur across environments due to:
|
||||||
|
1. **Repository Naming Aliases**: Alternative folder clones for the CI artifact generator.
|
||||||
Hardcoded fallback expressions such as `cfg.paths.get("ci_repo_dir") or (cfg.workspace_root / "hyperdope-ci-build")` fail when the physical directory on the VPS is named `ingglish-hyperdope-ci`. This leads to assertion failures during Stage 3 transactional verification gates (`test_core_suite.py`), triggering automated harvest rollbacks.
|
2. **Configuration Synchronization**: Decoupled `workspace.toml` (untracked) vs `workspace.example.toml` (template), requiring programmatic schema version synchronization.
|
||||||
|
3. **Host Path Leakage**: Absolute container host path references breaking offline URN invariants (`test_offline_urn_namespaces_and_no_external_https_fonts`).
|
||||||
|
4. **Persistent Source vs. Tmpfs RAM Webroot**: Divergence between persistent source checkouts (`REPOS_ROOT`) and RAM-backed webroots (`LIVE_REPOS` at `/var/www/hyperstitionstud.io/repos`).
|
||||||
|
|
||||||
### Architectural Goal
|
### Architectural Goal
|
||||||
Standardize all workspace-wide path resolution around centralized properties on `WorkspaceConfig` (e.g., `cfg.ci_build_dir`, `cfg.core_dir`, `cfg.archive_dir`, `cfg.zoology_dir`, `cfg.knowledge_graph_dir`) backed by `resolve_workspace_repo_dir()`, which transparently handles repository key aliases and Gitea slug variations across host environments.
|
Establish a **comprehensive single-source-of-truth namespace standardization framework** that resolves all path, directory, and configuration discrepancies at the root across local development and production VPS environments.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## 2. Technical Implementation Specifications
|
## 2. Technical Implementation Specifications
|
||||||
|
|
||||||
### 1. Centralized Property Enforcement in `WorkspaceConfig` (`config/__init__.py`)
|
### 1. Complete CI Repository Standardization (`hyperdope-ci-build`)
|
||||||
Ensure all configuration accessors (`ci_build_dir`, `core_dir`, `archive_dir`, `zoology_dir`, `knowledge_graph_dir`) rely exclusively on `resolve_workspace_repo_dir()` to dynamically detect repository folders regardless of local vs. production directory naming (`hyperdope-ci-build` ↔ `ingglish-hyperdope-ci`).
|
Eliminate `ingglish-hyperdope-ci` entirely across Gitea remotes, clone guides (`README.md`), deployment scripts (`sync-vps-repos.sh`), and configuration accessors (`config/__init__.py`), enforcing `hyperdope-ci-build` as the sole canonical repository key.
|
||||||
|
|
||||||
### 2. Elimination of Ad-Hoc Hardcoded Path Fallbacks in Test Suites (`test_core_suite.py`)
|
### 2. Strict Workspace Configuration & Schema Parity (`workspace.toml`)
|
||||||
Replace all ad-hoc fallback expressions across test suites and build scripts (such as `cfg.paths.get("ci_repo_dir") or (cfg.workspace_root / "hyperdope-ci-build")`) with direct accessor calls (`cfg.ci_build_dir`), ensuring 100% environment parity between localhost and VPS execution.
|
Enforce programmatic `schema_version` synchronization between `hyperstitionstud_io.__version__` and `workspace.toml` during version bumps and deployments, ensuring configuration keys never drift.
|
||||||
|
|
||||||
### 3. Resilient File Globbing for CI Patches & Artifacts
|
### 3. Container-Relative URN & Path Normalization (`normalize_workspace_relpath`)
|
||||||
Utilize glob patterns (`ci_dir.glob("0001-*.patch")`) rather than rigid absolute filenames in validation assertions to absorb minor hyphenation or versioning string differences safely.
|
Ensure all configuration paths, IPLD DAG CIDs, and metadata registries utilize container-relative `/workspace/...` or `/srv/hyperstitionstud.io/repos/...` representations, backed by `ReadOnlyIsolationGuard` and `test_offline_urn_namespaces_and_no_external_https_fonts`.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## 3. Verification Plan
|
## 3. Verification & Preservation Assurances
|
||||||
1. Compile Plan Markdown into Dark-Mode PDF via `hs-pdf-build`.
|
1. **8-Gate Deployment Readiness**: Verified via `hs-deploy-scripts-sync` (`D1`–`D8`).
|
||||||
2. Run `python3 -m hyperstitionstud_io.ci.deploy_scripts_sync --workspace-root /workspace` (Gates `D1`–`D8`).
|
2. **Full Test Suite Enforcement**: Verified via `tests/test_core_suite.py` (`ALL 7 TEST SUITES PASSED`).
|
||||||
3. Run `tests/test_core_suite.py` (`ALL 7 TEST SUITES PASSED`).
|
3. **AST Invariance**: Guaranteed zero behavioral or functional changes to executable code.
|
||||||
Binary file not shown.
Binary file not shown.
Reference in new issue
Block a user