diff --git a/README.md b/README.md index 8ec8acd..44832b0 100644 --- a/README.md +++ b/README.md @@ -3,8 +3,8 @@ > **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) -> - **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` +> - **Latest Commit Scope (`encyclopedia-knowledge-graph`):** Synchronized v2.17.1 release state across 3 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` > - **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 diff --git a/docs/periodic-harvest-cicd-to-vps-flow-diagram.png b/docs/periodic-harvest-cicd-to-vps-flow-diagram.png index e7c2c01..4cfd05b 100644 Binary files a/docs/periodic-harvest-cicd-to-vps-flow-diagram.png and b/docs/periodic-harvest-cicd-to-vps-flow-diagram.png differ diff --git a/docs/plans/active/PLAN-VPS-LOCALHOST-NAMESPACE-DISCREPANCY-RESOLUTION.md b/docs/plans/active/PLAN-VPS-LOCALHOST-NAMESPACE-DISCREPANCY-RESOLUTION.md new file mode 100644 index 0000000..325e908 --- /dev/null +++ b/docs/plans/active/PLAN-VPS-LOCALHOST-NAMESPACE-DISCREPANCY-RESOLUTION.md @@ -0,0 +1,40 @@ +# PLAN: Resolution of Filesystem & Namespace Discrepancies Between Localhost & VPS (`PLAN #71`) + +**Document ID:** `PLAN-VPS-LOCALHOST-NAMESPACE-DISCREPANCY-RESOLUTION` +**Status:** `ACTIVE (docs/plans/active/)` +**Target Ecosystem Version:** `v2.17.2` (Baseline: `v2.17.1`) +**Target Repositories:** `hyperstitionstudio-core`, `encyclopedia-knowledge-graph` +**Author:** m00t & Hermes Agent +**Date:** 2026-12-02 + +--- + +## 1. Context & Problem Statement + +### Problems Solved +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`. + +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. + +### 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. + +--- + +## 2. Technical Implementation Specifications + +### 1. Centralized Property Enforcement in `WorkspaceConfig` (`config/__init__.py`) +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`). + +### 2. Elimination of Ad-Hoc Hardcoded Path Fallbacks in Test Suites (`test_core_suite.py`) +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. + +### 3. Resilient File Globbing for CI Patches & Artifacts +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. + +--- + +## 3. Verification Plan +1. Compile Plan Markdown into Dark-Mode PDF via `hs-pdf-build`. +2. Run `python3 -m hyperstitionstud_io.ci.deploy_scripts_sync --workspace-root /workspace` (Gates `D1`–`D8`). +3. Run `tests/test_core_suite.py` (`ALL 7 TEST SUITES PASSED`). diff --git a/docs/plans/active/PLAN-VPS-LOCALHOST-NAMESPACE-DISCREPANCY-RESOLUTION.pdf b/docs/plans/active/PLAN-VPS-LOCALHOST-NAMESPACE-DISCREPANCY-RESOLUTION.pdf new file mode 100644 index 0000000..8748c97 Binary files /dev/null and b/docs/plans/active/PLAN-VPS-LOCALHOST-NAMESPACE-DISCREPANCY-RESOLUTION.pdf differ