Brain Structural Validation / Validate Markdown Structure & Links (push) Failing after 8s
5.8 KiB
5.8 KiB
type, project, date, tags
| type | project | date | tags | ||||||
|---|---|---|---|---|---|---|---|---|---|
| journal | homelab | 2026-09-27 |
|
Daily Journal: 2026-09-27
Wins
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:
- 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. - Inverted the GitOps trust boundary: admissions are authoritatively driven by
Core/config/deployments.yamlinstead of workload manifests claiming aliases. - Isolated Second Brain (
~/Brain) as a strictly read-only data vault (strategy: pull-only), completely stripped of Docker socket access and container lifecycle capabilities. - Added workload Compose policy validation to treat untrusted Compose files as a capability attack surface.
- Archived superseded Roadmap v2 and Implementation Guide v2 into
projects/homelab/archive/with updated backlinks in past journals (2026-09-13,2026-09-14) and project landing pages.
Dual-Track Boundary Lock & P3 Convergence Runbook
- Synchronized cross-track coordination between Track A (Architecture on
main) and Track B (appctl-v2in~/Projects/active/appctl-refactoronrefactor/appctl-rework). - Codified the 5 stable architectural seams protected by
appctl-v2until convergence:- CLI Syntax: Caller flags, subcommands (
list,info,up,down,sync), and exit codes remain identical. resolveJSON Contract:cmd_resolveschema guarantee (name,dir_path,type,domain,container,env) verified via automated test fixtures.- Canonical Identity: Unified service identifiers across platforms.
- Core vs. Sites Taxonomy: Platform capabilities strictly separated from workloads.
- Homepage Sync Semantics: Unbroken
services.yamlcompilation from Core inventory + Sites manifests.
- CLI Syntax: Caller flags, subcommands (
- Defined symmetrical P1 isolation rules: minimal legacy patch to
Core/scripts/appctl_engine.pyonmain(Stalwart domain tosmtp.roadtotech.me, removesnappymail), while Track B applies the identical semantic change directly to its typedCoreServicemodel without branch cross-merging. - Established the concrete 6-step P3 convergence sequence:
mainauthorscore_manifest.py, Track B cherry-picks the isolated contract commit, adaptsappctl_engine_v2.py, runs hermetic test verification, promotesappctl_engine_v2.pytoappctl_engine.py, and merges intomainwith full regression verification (./scripts/testandnix flake check).
Architectural Planning Freeze & Transition to Implementation
- Formally declared an end to architectural revision cycles across Homelab Core documentation.
- The guides are now the authoritative source of truth. Implementation of Phase 1 (Mail Topology Realignment) is cleared to begin.
- Implementation-level issues encountered during rollout will be addressed directly in code unless an underlying architectural assumption in the frozen guides is proven invalid.
Planning & Specifications
- Architecture Consolidation & Hardening Roadmap v3
- Canonical 5-tier architecture, authority matrices, inverted GitOps registry, mail topology realignment, and platform readiness contracts.
- Architecture Consolidation Implementation Guide v3
- Executable step-by-step phased runbooks, zero-data-loss SnappyMail migration gates, and P3 controlled convergence procedure.
- appctl Engine V2 Refactoring Plan
- Modernization of
appctlinto a typed, test-driven engine, aligned with the 5 integration seams and P3 cherry-pick runbook.
- Modernization of
Architecture & Design Decisions
Strict Direction of Integration (main \rightarrow refactor/appctl-rework \rightarrow main)
Treating appctl-v2 as a hard prerequisite for Phase 1 and Phase 2 would stall necessary infrastructure realignments (mail domain migration, GitOps sandboxing). Conversely, continuous bidirectional merging between main and the refactor branch risks thrashing and merge conflicts in rapidly changing files. By adopting a strict one-way contract flow—authoring core_manifest.py on main, cherry-picking only the contract commit into the worktree, adapting and verifying hermetically, promoting the file, and then merging back to main—both tracks maintain complete velocity and clean boundaries until convergence at P3.
Incidents & Debugging
- Laptop Memory Exhaustion Postmortem & Mitigation: Mobile workstation UI lockup under memory pressure due to 0B swap causing synchronous file-backed page eviction; mitigated via compressed in-RAM swap (
zramSwap) and proactive early OOM termination (services.earlyoom).