plan(homelab): relocate architecture consolidation series to subsystem lineage folder
Brain Structural Validation / Validate Markdown Structure & Links (push) Failing after 8s
Brain Structural Validation / Validate Markdown Structure & Links (push) Failing after 8s
Move roadmap and guide documents (v1–v4) into 01-plans/homelab/consolidation/ preserving max_depth=3 contract and update intra-vault relative links across journals.
This commit is contained in:
1 parent
1a7205385b
commit
dc9a55163d
10 files changed
+20
-34
No files matched your search
File renamed without changes.
+1
-1
@@ -521,7 +521,7 @@ Update `~/.local/state/homelab/gitops/<repo>.status` to record complete revision
|
||||
|
||||
### Deliverable 5.2: `appctl` Status & History Subcommand
|
||||
|
||||
**Note**: Requires completion of the [appctl refactor](appctl/appctl-engine-v2-refactoring.md).
|
||||
**Note**: Requires completion of the [appctl refactor](../appctl/appctl-engine-v2-refactoring.md).
|
||||
|
||||
Expose deployment state directly through CLI:
|
||||
|
||||
File renamed without changes.
File renamed without changes.
+12
-26
@@ -19,7 +19,9 @@ tags:
|
||||
>
|
||||
> **Current Platform Baseline**: Commit `246b587` (NixOS standalone appliance, consolidated docs, Portainer deprecated, Stalwart mail & SMTPS submission, Dozzle auth, Diun jitter/worker pool, Gitea Actions CI).
|
||||
>
|
||||
> **Architectural Decision Record**: [`03-records/decisions/homelab-3tier-architecture-and-provenance.md`](../../03-records/decisions/homelab-3tier-architecture-and-provenance.md)
|
||||
> **Architectural Decision Record**: [`03-records/decisions/homelab-3tier-architecture-and-provenance.md`](../../../03-records/decisions/homelab-3tier-architecture-and-provenance.md)
|
||||
>
|
||||
> **Architectural Discussion & Rationale**: [`02-discussions/homelab/architecture-migration-v3-to-v4.md`](../../../02-discussions/homelab/architecture-migration-v3-to-v4.md)
|
||||
>
|
||||
> **Target System**: `roadtotech.me` (NixOS appliance `Core/`, application workloads `Sites/`)
|
||||
|
||||
@@ -27,18 +29,9 @@ tags:
|
||||
|
||||
## Executive Summary
|
||||
|
||||
Roadmap v3 established a rigorous operational baseline: clarifying controller authority, inverting GitOps trust boundaries, isolating mail capabilities, and establishing parallel seams for the `appctl-v2` modernization.
|
||||
Roadmap v4 formalizes the **3-Tier Architecture**, introduces **declarative source provenance**, defines **two workload deployment classes** (Source-Backed vs. Image-Only), and establishes **two operational inspection axes with three independent revision identities**.
|
||||
|
||||
However, Roadmap v3 still inherited an obsolete assumption from early homelab prototypes: **it treated each workload directory in `~/Sites/<app>` as an individual Git repository cloned directly from Gitea**.
|
||||
|
||||
This coupled model created three fundamental architectural liabilities:
|
||||
1. **Source Repository Pollution**: In-house applications (e.g., `doc2site`, `bitetrack`) carried Homelab-specific Traefik labels, Docker bridge network names, and host path mounts directly inside their application source trees.
|
||||
2. **Repository Inflation**: Off-the-shelf applications (e.g., `jellyfin`, `stirling`) required their own standalone Git repositories merely to store a 20-line `docker-compose.yml` and a minimal `app.yaml`.
|
||||
3. **Ambiguous Freshness Semantics**: `appctl`'s Git status inspection was coupled to `Sites/<app>/.git`. It could only report whether local deployment files had uncommitted edits or differed from their origin branch; it could not report whether the running container was built from the latest upstream source code.
|
||||
|
||||
**Roadmap v4 decouples software development from deployment configuration and platform orchestration.** It formalizes a clean **3-Tier Architecture**, introduces **declarative source provenance**, defines **two workload deployment classes** (Source-Backed vs. Image-Only), and establishes **two operational inspection axes with three independent revision identities**.
|
||||
|
||||
Furthermore, this unified document consolidates both the architectural specifications and the step-by-step phased execution deliverables (P0 through P5) into a single, cohesive source of truth.
|
||||
This document serves as the authoritative implementation specification and phased execution roadmap (P0 through P5) for the homelab architecture consolidation. For the deep-dive analysis of legacy multirepo friction and rejected alternatives, see the companion [Architectural Discussion](../../../02-discussions/homelab/architecture-migration-v3-to-v4.md); for the architectural commitments and trade-offs, see the [ADR](../../../03-records/decisions/homelab-3tier-architecture-and-provenance.md).
|
||||
|
||||
---
|
||||
|
||||
@@ -217,26 +210,19 @@ The `source.ref` field governs how `appctl` and GitOps evaluate software freshne
|
||||
|
||||
---
|
||||
|
||||
## Part 4: Ancestry Analysis Trade-Off & `git ls-remote` Downgrade
|
||||
## Part 4: Remote Revision Verification & `git ls-remote` Constraint
|
||||
|
||||
Early designs considered calculating exact "ahead/behind" commit distances for source-backed applications. However, evaluating Git history requires a full local clone of the application source tree.
|
||||
|
||||
### Architectural Decision: Commit Equality via `git ls-remote`
|
||||
To prevent the Platform Host from cloning full Git repositories or storing local copies of application source trees, `appctl` explicitly downgrades ancestry evaluation to **commit equality verification**:
|
||||
Remote provenance inspection MUST evaluate commit equality using `git ls-remote` rather than performing on-host source cloning or commit-distance traversal.
|
||||
|
||||
```text
|
||||
git ls-remote <source.url> refs/heads/<source.ref>
|
||||
```
|
||||
|
||||
- **Answers**: *"Does the remote ref point to the exact commit SHA stamped into the running container's `org.opencontainers.image.revision` label?"*
|
||||
- **Equality (`==`)**: Running container is up to date (`✓ Up to date (<sha>)`).
|
||||
- **Inequality (`!=`)**: Running container is stale (`⚡ Revision Changed (deployed: <d_sha>, remote: <r_sha>)`).
|
||||
- **Trade-off Accepted**: The platform foregoes commit distance counts (`"3 commits behind"`) in exchange for zero disk bloat, zero repository cloning, and minimal network overhead.
|
||||
|
||||
### Transport Security & Timeouts
|
||||
1. **Permitted Schemes**: `source.url` must strictly use `https://`, `ssh://`, or `git@`.
|
||||
2. **Prohibited Schemes**: `file://`, `ext::`, or relative filesystem paths are rejected with `ManifestError`.
|
||||
3. **Execution Timeout**: Any network call invoking `git ls-remote` must be wrapped in a strict timeout (maximum 10 seconds). Failure to reach remote upstream degrades gracefully to an error badge without hanging the CLI.
|
||||
- **Resolution Invariant**:
|
||||
- `Remote SHA == Deployed SHA`: Running container is up to date (`✓ Up to date (<sha>)`).
|
||||
- `Remote SHA != Deployed SHA`: Running container is stale (`⚡ Revision Changed (deployed: <d_sha>, remote: <r_sha>)`).
|
||||
- **Transport Security**: `source.url` MUST strictly use `https://`, `ssh://`, or `git@`. Schemes such as `file://`, `ext::`, or relative paths are rejected with `ManifestError`.
|
||||
- **Execution Timeout**: Any network call invoking `git ls-remote` MUST be bounded by a strict 10-second timeout and degrade gracefully to an error badge on failure without blocking CLI execution.
|
||||
|
||||
---
|
||||
|
||||
File renamed without changes.
@@ -15,7 +15,7 @@ tags:
|
||||
## Wins
|
||||
|
||||
### Homelab Core — Milestone P0: GitOps Trust Boundary Implementation
|
||||
Completed and validated all deliverables (1.1–1.5 and 3.1–3.6) for Milestone P0 of the [Architecture Consolidation Plan](../../01-plans/homelab/architecture-consolidation-implementation-guide-v2.md).
|
||||
Completed and validated all deliverables (1.1–1.5 and 3.1–3.6) for Milestone P0 of the [Architecture Consolidation Plan](../../01-plans/homelab/consolidation/architecture-consolidation-implementation-guide-v2.md).
|
||||
|
||||
#### Completed Deliverables & Commit Chain
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ tags:
|
||||
## Wins
|
||||
|
||||
### Homelab Core — Milestone P0: Final Closure and P1 Transition
|
||||
Achieved 100% frozen closure for Milestone P0 (GitOps Trust Boundary) in the [Architecture Consolidation Plan](../../01-plans/homelab/architecture-consolidation-implementation-guide-v2.md).
|
||||
Achieved 100% frozen closure for Milestone P0 (GitOps Trust Boundary) in the [Architecture Consolidation Plan](../../01-plans/homelab/consolidation/architecture-consolidation-implementation-guide-v2.md).
|
||||
|
||||
#### Resolution of Reviewer Feedback & Final P0 Hardening
|
||||
Following architectural review of Milestone P0, two execution-path considerations were addressed:
|
||||
|
||||
@@ -17,8 +17,8 @@ tags:
|
||||
|
||||
### Homelab Architecture Consolidation Roadmap v3 & Guide Promotion
|
||||
- Formally curated and promoted **Homelab Architecture Consolidation & Hardening Roadmap v3** and **Implementation Guide v3** to the canonical knowledge graph:
|
||||
- [`projects/homelab/plans/architecture-consolidation-roadmap-v3.md`](../../01-plans/homelab/architecture-consolidation-roadmap-v3.md)
|
||||
- [`projects/homelab/plans/architecture-consolidation-implementation-guide-v3.md`](../../01-plans/homelab/architecture-consolidation-implementation-guide-v3.md)
|
||||
- [`projects/homelab/plans/architecture-consolidation-roadmap-v3.md`](../../01-plans/homelab/consolidation/architecture-consolidation-roadmap-v3.md)
|
||||
- [`projects/homelab/plans/architecture-consolidation-implementation-guide-v3.md`](../../01-plans/homelab/consolidation/architecture-consolidation-implementation-guide-v3.md)
|
||||
- Re-baselined the platform architecture against commit `246b587` (NixOS appliance, Portainer deprecation, Stalwart mail & SMTPS submission, Dozzle forward-proxy auth, Diun jitter/workers, and 35 invariant tests).
|
||||
- Codified the 5-tier service taxonomy: Host Foundation, Edge & Security Primitives, Core Platform Capabilities, Platform Operations, and Workloads (Sites).
|
||||
- Codified the Controller Authority Matrix and Resource & State Ownership Matrix, resolving multi-controller ambiguities across systemd, Core Compose, GitOps, and `appctl`.
|
||||
@@ -47,9 +47,9 @@ tags:
|
||||
|
||||
## Planning & Specifications
|
||||
|
||||
- [Architecture Consolidation & Hardening Roadmap v3](../../01-plans/homelab/architecture-consolidation-roadmap-v3.md)
|
||||
- [Architecture Consolidation & Hardening Roadmap v3](../../01-plans/homelab/consolidation/architecture-consolidation-roadmap-v3.md)
|
||||
- Canonical 5-tier architecture, authority matrices, inverted GitOps registry, mail topology realignment, and platform readiness contracts.
|
||||
- [Architecture Consolidation Implementation Guide v3](../../01-plans/homelab/architecture-consolidation-implementation-guide-v3.md)
|
||||
- [Architecture Consolidation Implementation Guide v3](../../01-plans/homelab/consolidation/architecture-consolidation-implementation-guide-v3.md)
|
||||
- Executable step-by-step phased runbooks, zero-data-loss SnappyMail migration gates, and P3 controlled convergence procedure.
|
||||
- [appctl Engine V2 Refactoring Plan](../../01-plans/homelab/appctl/appctl-engine-v2-refactoring.md)
|
||||
- Modernization of `appctl` into a typed, test-driven engine, aligned with the 5 integration seams and P3 cherry-pick runbook.
|
||||
|
||||
@@ -44,7 +44,7 @@ tags:
|
||||
|
||||
## Planning & Specifications
|
||||
|
||||
- [Homelab Architecture Consolidation Roadmap & Execution Plan v4](../../01-plans/homelab/architecture-consolidation-roadmap-v4.md)
|
||||
- [Homelab Architecture Consolidation Roadmap & Execution Plan v4](../../01-plans/homelab/consolidation/architecture-consolidation-roadmap-v4.md)
|
||||
- Unified architecture and implementation blueprint defining 3-tier decoupling, provenance ledger, Core registry authority, and phased execution deliverables P0–P5.
|
||||
- [Legacy Multirepo (v3) to 3-Tier Architecture (v4) Migration Discussion](../../02-discussions/homelab/architecture-migration-v3-to-v4.md)
|
||||
- Architectural evaluation analyzing multirepo friction (source pollution, repo inflation, state co-location) vs. 3-tier decoupling.
|
||||
|
||||
Reference in new issue
Block a user