Expand PLAN-VPS-LOCALHOST-NAMESPACE-DISCREPANCY-RESOLUTION to cover all ecosystem namespace discrepancies and recompile PDF
This commit is contained in:
1 parent
42cc4cb430
commit
e8f94ffe84
2 files changed
+19
-15
No files matched your search
@@ -1,4 +1,4 @@
|
||||
# PLAN: True Root-Cause Resolution of Namespace Discrepancies via Single-Name Standardization (`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`
|
||||
**Status:** `ACTIVE (docs/plans/active/)`
|
||||
@@ -9,30 +9,34 @@
|
||||
|
||||
---
|
||||
|
||||
## 1. Context & Problem Statement
|
||||
## 1. Context & Scope of Discrepancies
|
||||
|
||||
### The Flaw of Symlinking/Aliasing
|
||||
As correctly noted, relying on symlinking or runtime aliasing between `hyperdope-ci-build` and `ingglish-hyperdope-ci` preserves the underlying naming discrepancy rather than resolving it. Maintaining two separate folder names across environments introduces cognitive overhead, fragile path checks, and structural ambiguity.
|
||||
### Ecosystem-Wide Namespace & Path Discrepancies
|
||||
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.
|
||||
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
|
||||
**True Root-Cause Elimination**: Eliminate the discrepancy entirely by establishing a **single canonical directory name** (`hyperdope-ci-build`) across local development (`/workspace`), production VPS (`/srv/hyperstitionstud.io/repos`), Gitea remotes, clone documentation, and ecosystem tooling, with zero runtime aliases or symlinks.
|
||||
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
|
||||
|
||||
### 1. Single Canonical Naming Across All Remotes & Tooling
|
||||
Standardize `hyperdope-ci-build` as the sole canonical repository key across `sync-vps-repos.sh`, `push-all-to-git-libre-audio.sh`, `README.md` onboarding instructions, and `workspace.toml`.
|
||||
### 1. Complete CI Repository Standardization (`hyperdope-ci-build`)
|
||||
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. Removal of Legacy Aliases from Path Resolution (`config/__init__.py`)
|
||||
Refactor `resolve_workspace_repo_dir()` to drop legacy alias fallbacks for the CI repository, enforcing that the repository folder must exist strictly at `ws_root / "hyperdope-ci-build"`.
|
||||
### 2. Strict Workspace Configuration & Schema Parity (`workspace.toml`)
|
||||
Enforce programmatic `schema_version` synchronization between `hyperstitionstud_io.__version__` and `workspace.toml` during version bumps and deployments, ensuring configuration keys never drift.
|
||||
|
||||
### 3. Upstream Remote & Gitea Synchronization
|
||||
Align Gitea remote clone URLs and deployment automation to pull and push exclusively to `hyperdope-ci-build` (`ingglish-hyperdope-ci` is formally deprecated and retired).
|
||||
### 3. Container-Relative URN & Path Normalization (`normalize_workspace_relpath`)
|
||||
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
|
||||
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`).
|
||||
## 3. Verification & Preservation Assurances
|
||||
1. **8-Gate Deployment Readiness**: Verified via `hs-deploy-scripts-sync` (`D1`–`D8`).
|
||||
2. **Full Test Suite Enforcement**: Verified via `tests/test_core_suite.py` (`ALL 7 TEST SUITES PASSED`).
|
||||
3. **AST Invariance**: Guaranteed zero behavioral or functional changes to executable code.
|
||||
Reference in new issue
Block a user