plan(homelab): record architecture docs reorganization plan and walkthrough
Brain Structural Validation / Validate Markdown Structure & Links (push) Successful in 7s

Promote reorganization plan and operational walkthrough from inbox to canonical
vault locations and update homelab project index.
This commit is contained in:
kiskaadee committed 2026-09-29 12:40:07 -05:00
1 parent a3fba634da
commit 8d07f68f16
3 files changed
+270 -6

No files matched your search

@@ -0,0 +1,194 @@
---
type: plan
status: completed
project: homelab
tags:
- homelab
- documentation
- consolidation
- madr
- taxonomy
---
# Implementation Plan: Homelab Architecture Consolidation Documents Reorganization
## Goal Description
Establish a clear, non-overlapping epistemic taxonomy across the Homelab Architecture Consolidation triad (**ADR**, **Plan**, and **Discussion**), standardize the ADR using standard MADR conventions, link the three documents bidirectionally, and relocate the architecture consolidation/hardening artifacts into a dedicated subsystem folder inside `01-plans/homelab/`.
---
## 1. Epistemic Separation of Concerns: The Three Document Types
To prevent duplicated content and keep each document focused on its distinct cognitive role (as defined in [`AGENTS.md`](../../AGENTS.md)):
```mermaid
flowchart LR
subgraph DISC["02-discussions/ (EXPLORATION)"]
D1["architecture-migration-v3-to-v4.md<br/>• WHY change?<br/>• Historical context & pain points<br/>• What did old model prevent?<br/>• What does new model unlock?<br/>• Decision-making narrative"]
end
subgraph ADR["03-records/decisions/ (COMMITMENT)"]
A1["homelab-3tier-architecture-and-provenance.md<br/>• WHAT is decided?<br/>• MADR standard structure<br/>• Problem statement & drivers<br/>• Options summary & trade-offs<br/>• Concrete decision & consequences"]
end
subgraph PLAN["01-plans/homelab/consolidation/ (INTENT)"]
P1["architecture-consolidation-roadmap-v4.md<br/>• HOW do we execute?<br/>• System specifications & contracts<br/>• Working rules & constraints<br/>• Ordered execution phases (P0–P5)<br/>• Step-by-step runbooks & DoD"]
end
DISC -->|Resolves into| ADR
ADR -->|Governs| PLAN
PLAN -.->|References rationale in| DISC
PLAN -.->|References decision in| ADR
ADR -.->|References context in| DISC
```
### Precise Document Boundaries & Responsibilities
| Dimension | Architectural Decision Record (ADR) | Actionable Plan / Specification | Epistemic Discussion |
| :--- | :--- | :--- | :--- |
| **Directory** | `03-records/decisions/` | `01-plans/homelab/consolidation/` | `02-discussions/homelab/` |
| **Type** | `decision` | `plan` | `discussion` |
| **Core Question** | *"What did we decide, and what are the point-in-time trade-offs?"* | *"What do we intend to build, and in what exact sequence?"* | *"Why was this change necessary, and how did the reasoning evolve?"* |
| **Standard Format** | **MADR 4.0 Standard** (Context, Decision Drivers, Options, Decision Outcome, Pros/Cons, Consequences) | **Actionable Roadmap / Spec** (Principles, System Spec, Working Rules, Phased Execution P0–P5, Runbooks, DoD) | **Inquiry & Rationale Analysis** (Problem Context, Root Friction Points, What Old Model Prevented, What New Model Enables, Justification) |
| **Content Included** | Decision statement, decision drivers, high-level tier definitions, options considered table, positive/negative consequences. | Pure technical specifications, schema contracts, sequence of ordered milestones, operational runbooks, rollbacks, and verification gates. | Deep dive into operational friction, evolution from v1/v2/v3 to v4, design dilemmas (e.g. why `git ls-remote` vs full clone, linear vs broker orchestrator), before/after comparison. |
| **Content Removed / Excluded** | Detailed bash execution runbooks, step-by-step phased checklists, extensive design dilemmas. | Redundant philosophical debate, historical options matrix, lengthy justifications of why we didn't pick RabbitMQ or full Git cloning. | Phased execution step-by-step instructions, operational runbooks, shell scripts. |
---
## 2. Standardizing the ADR (MADR 4.0 Alignment)
Restructure [`homelab-3tier-architecture-and-provenance.md`](../../03-records/decisions/homelab-3tier-architecture-and-provenance.md) according to the widely adopted Markdown Architectural Decision Records (MADR) format:
1. **Title**: `ADR: Homelab 3-Tier Architecture & Deployment Provenance Model`
2. **Status**: `accepted` (with date: `2026-09-28`)
3. **Context and Problem Statement**: Concise framing of the four core issues (source pollution, repo inflation, ambiguous freshness, orchestrator sprawl risk).
4. **Decision Drivers**:
- Clean separation of concerns between code development and platform deployment.
- Elimination of repository inflation for off-the-shelf software.
- Independent verification of deployment configuration state vs. application code freshness.
- Adherence to KISS primitives by strictly bounding control paths (no brokers, queues, or deployment databases).
- Absolute protection of mutable runtime data from version-controlled trees.
5. **Considered Options**:
- *Option 1*: Monolithic / Single-Repo Deployment (v1–v3 status quo)
- *Option 2*: Miniature Cloud Platform (ArgoCD/Kubernetes style with brokers and DB)
- *Option 3*: Bounded 3-Tier Platform with OCI Provenance Labels & Linear Control Path
6. **Decision Outcome**:
- Chosen option: *Option 3*.
- Crisp summary of the four key architectural commitments:
- 3-tier decoupling (Software, Deployment, Platform) with OCI image as intermediate build artifact.
- Two workload classes (Source-Backed with explicit `source:` block vs. Image-Only).
- Two operational inspection axes with three revision identities (`deployment_config_revision`, `source_revision`, `artifact_digest`).
- Minimal linear control path (`Source Push -> CI -> GitOps -> appctl update -> Compose`).
- Persistent state root isolation (`~/var/lib/homelab/<app>/`).
7. **Pros and Cons of the Options**:
- Evaluation of each option against the decision drivers.
8. **Consequences**:
- *Positive Consequences* (decoupled lifecycle, precise truth, clean state, bounded surface).
- *Negative Consequences / Accepted Trade-offs* (two repos for custom apps, commit equality without distance counts).
9. **Links & Cross-References**:
- Link forward to the Plan: [`01-plans/homelab/consolidation/architecture-consolidation-roadmap-v4.md`](consolidation/architecture-consolidation-roadmap-v4.md)
- Link to the Discussion: [`02-discussions/homelab/architecture-migration-v3-to-v4.md`](../../02-discussions/homelab/architecture-migration-v3-to-v4.md)
- Link to Project Hub: [`06-projects/homelab/README.md`](../../06-projects/homelab/README.md)
---
## 3. Deepening the Discussion (`02-discussions/homelab/...`)
Expand [`architecture-migration-v3-to-v4.md`](../../02-discussions/homelab/architecture-migration-v3-to-v4.md) to provide comprehensive justification and narrative evolution:
1. **The Evolution of the Model (From v1/v2/v3 to v4)**:
- Walk through why v1/v2 focused on NixOS appliance and basic separation, v3 focused on mail/controller authority, and why v3 still failed to solve the fundamental workload coupling.
2. **Deep Dive into the Friction Points & Concrete Operational Failures**:
- Detailed breakdown of each friction point with real-world examples:
- *Source Pollution*: What happened when developing `doc2site` or `bitetrack`—having host Traefik rules and Docker networks in Git prevented sharing code, running standalone tests, or open-sourcing.
- *Repository Inflation*: Why creating whole Git repos for 20-line Compose files for Jellyfin and Stirling cluttered Gitea and CI pipelines.
- *Ambiguous Freshness in `appctl`*: Why `git rev-list HEAD...@{u}` could only detect uncommitted changes to `app.yaml`, giving false confidence that the container was running current code.
- *Host Build Overhead*: Why compiling on the deployment host created ambient toolchain dependencies and violated least-privilege appliance principles.
3. **What the Old Model Prevented**:
- Inability to open-source or modularize internal tools without stripping Homelab configuration.
- Inability to verify if a deployed container had critical upstream security patches.
- Inability to maintain clean, reproducible Git trees without accidental database/upload commits.
4. **What the New Model Unlocks**:
- Independent application lifecycles and modern CI pipelines.
- Dual-axis diagnostic transparency: knowing exactly whether config is dirty vs. whether code is stale.
- Stateless deployment repositories (`~/Sites`) backed by isolated runtime state roots (`~/var/lib/homelab`).
- Clean, lightweight onboarding of off-the-shelf software with zero repo overhead.
5. **Architectural Dilemmas & How Decision Making Occurred**:
- *The Image Question*: Is an OCI image a 4th tier or an intermediate provenance artifact? (Resolved: Artifact).
- *The Ancestry Dilemma*: Why calculate commit distance when `git ls-remote` commit equality solves the staleness problem with zero disk bloat?
- *The Anti-Sprawl Principle*: Why reject queues/databases in favor of a strictly linear control path?
6. **Bidirectional Links**:
- Explicit links to both the ADR ([`03-records/decisions/homelab-3tier-architecture-and-provenance.md`](../../03-records/decisions/homelab-3tier-architecture-and-provenance.md)) and the Plan ([`01-plans/homelab/consolidation/architecture-consolidation-roadmap-v4.md`](consolidation/architecture-consolidation-roadmap-v4.md)).
---
## 4. Refining the Plan (`01-plans/homelab/consolidation/...`)
In [`architecture-consolidation-roadmap-v4.md`](consolidation/architecture-consolidation-roadmap-v4.md):
- **Cross-Reference in Header**: Link to BOTH the ADR and the Discussion:
```markdown
> **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)
```
- **Trim Duplicated Philosophical Rationale**: Reference the Discussion for the deep dive on pain points and options evaluation, keeping Part 1 through Part 7 focused on technical specifications, contracts, domain models, and working rules.
- **Retain & Polish the Actionable Plan**: Keep Part 8 (Phased Implementation Plan P0–P5) as the authoritative, ordered sequence of execution steps, complete with verification gates and non-destructive runbooks.
---
## 5. Subdirectory Reorganization in `01-plans/homelab/`
### Subdirectory Structure
A dedicated subsystem directory was established to organize the consolidation roadmap series:
`01-plans/homelab/consolidation/`
Organizing all 6 consolidation artifacts into this folder:
```text
01-plans/homelab/consolidation/
├── architecture-consolidation-roadmap.md (v1 - superseded)
├── architecture-consolidation-roadmap-v2.md (v2 - superseded)
├── architecture-consolidation-implementation-guide-v2.md (v2 - superseded)
├── architecture-consolidation-roadmap-v3.md (v3 - superseded)
├── architecture-consolidation-implementation-guide-v3.md (v3 - superseded)
└── architecture-consolidation-roadmap-v4.md (v4 - ACTIVE CANONICAL BLUEPRINT)
```
### Validator & Depth Contract Compliance
In `scripts/validate-brain.py`:
```python
DirectoryContract(prefix="01-plans", expected_type="plan", max_depth=3)
```
- Path: `01-plans/homelab/consolidation/architecture-consolidation-roadmap-v4.md`
- Depth relative to `01-plans`: `homelab` (1) / `consolidation` (2) / `roadmap-v4.md` (3) = **depth 3**.
- **Result**: Complies with `max_depth=3`. Note that `02-discussions` and `03-records/decisions` remain at `max_depth=2` per the repository taxonomy rules.
### External References & Relative Links
Intra-vault links updated across:
- `06-projects/homelab/README.md`
- `02-discussions/homelab/architecture-migration-v3-to-v4.md`
- `03-records/decisions/homelab-3tier-architecture-and-provenance.md`
- Recent journal entries (`03-records/journal/2026-09-28.md`, `2026-09-27.md`, `2026-09-14.md`, `2026-09-13.md`)
---
## 6. Verification Plan
### Automated Verification
1. Run structural validator:
```bash
python scripts/validate-brain.py
```
Must pass with zero errors (all links resolve, frontmatter valid, code fences and Mermaid diagrams valid, depth contracts satisfied).
2. Run validator test suite:
```bash
python scripts/test_validator.py
```
### Manual Verification
1. Verify bidirectional navigation:
- `01-plans/homelab/consolidation/architecture-consolidation-roadmap-v4.md` $\leftrightarrow$ `03-records/decisions/homelab-3tier-architecture-and-provenance.md` $\leftrightarrow$ `02-discussions/homelab/architecture-migration-v3-to-v4.md`.
2. Inspect content balance:
- Ensure the ADR has no step-by-step shell runbooks.
- Ensure the Plan has no redundant pros/cons evaluation debates.
- Ensure the Discussion thoroughly captures the justification, operational pain points, and unlocked capabilities.
@@ -0,0 +1,67 @@
---
type: guide
project: homelab
tags:
- homelab
- documentation
- consolidation
- epistemic-triad
- walkthrough
---
# Walkthrough: Homelab Architecture Consolidation Documents Reorganization
Operational walkthrough of the reorganization of the Homelab Architecture Consolidation documentation across the epistemic triad:
1. Standardized the ADR around **MADR 4.0** with purely architectural commitments (delegating exact schema fields to the Plan).
2. Deepened the Discussion with authentic historical engineering narrative while stripping out "decision voice" and absolutist language.
3. Framed the Plan as the **authoritative implementation specification** without re-litigating rationale.
4. Cleanly organized all consolidation lineage artifacts into `01-plans/homelab/consolidation/`.
---
## 1. Epistemic Model & Boundaries
```text
Discussion ──informs──> ADR ──constrains──> Plan
^ ^ |
└──────────────────────┴─────────────────┘
cross-references
```
> **Epistemic Rule**: The same fact may appear in multiple documents only when it serves a different epistemic purpose:
> - **Discussion ([`02-discussions/homelab/architecture-migration-v3-to-v4.md`](../../../02-discussions/homelab/architecture-migration-v3-to-v4.md))**: *Why did we get here?* Preserves uncertainty, historical context, friction points, rejected alternatives, and how the reasoning evolved.
> - **ADR ([`03-records/decisions/homelab-3tier-architecture-and-provenance.md`](../../../03-records/decisions/homelab-3tier-architecture-and-provenance.md))**: *What was decided?* Concise MADR 4.0 record answering what problem was being solved, what forces mattered, what options were considered, what was chosen, and what trade-offs were accepted.
> - **Plan ([`01-plans/homelab/consolidation/architecture-consolidation-roadmap-v4.md`](../../../01-plans/homelab/consolidation/architecture-consolidation-roadmap-v4.md))**: *What exactly are we going to build?* Authoritative implementation specification containing contracts, schemas, security invariants, phased milestones (P0–P5), and runbooks.
> - **Project Hub ([`06-projects/homelab/README.md`](../../../06-projects/homelab/README.md))**: *Where do I find it?* Pure navigation layer indexing the current triad and historical predecessors.
---
## 2. Document Refinements Applied
### A. Architectural Decision Record (`homelab-3tier-architecture-and-provenance.md`)
- **MADR 4.0 Standard**: Formatted into Context & Problem Statement $\to$ Decision Drivers $\to$ Considered Options $\to$ Decision Outcome $\to$ Pros and Cons $\to$ Consequences $\to$ More Information.
- **Architectural-Level Commitments**: Retains the requirement that *three independent identities must exist* (deployment configuration revision, upstream source revision, container artifact digest), but delegates the exact JSON field names (`deployment_config_revision`, etc.) exclusively to the Plan.
- **Digest Immutability vs. Artifact Identity**: Clarified that *OCI container images produced by CI act as provenance objects; the immutable identity of the deployed artifact is its OCI digest, with source commit provenance carried via the `org.opencontainers.image.revision` label*.
- **Neutral Decision Rationale**: Replaced evaluative phrasing with neutral systems language: *"because it addresses the identified coupling and provenance problems while retaining a bounded operational control path"*.
### B. Architectural Discussion (`architecture-migration-v3-to-v4.md`)
- **Eliminated "Decision Voice"**: Replaced ADR-style phrases (`"The Decision: Reject local cloning..."` and `"The Adopted Resolution:"`) with narrative exploratory phrasing (`"Resulting Direction: The exploration ultimately converged on..."`).
- **Conceptual Precision**: Clarified that the architecture decouples into **three core tiers** connected by intermediate artifacts and an isolated filesystem state root, avoiding conflation into a 5-tier model.
- **Tempered Tone**: Removed absolutist claims (e.g. replaced `"could not be cleanly open-sourced"` with `"made clean open-sourcing difficult without stripping Homelab configuration"`, and `"100% pure application code"` with `"allows the software repository to remain free of Homelab-specific infrastructure"`).
- **Historical Analysis vs. Sales Pitch**: Retitled Section 4 to *"What Became Possible After the Architectural Separation"* and framed the comparisons around concrete historical friction versus engineering motivations.
### C. Implementation Roadmap & Execution Plan (`architecture-consolidation-roadmap-v4.md`)
- **Authoritative Implementation Specification**: Clarified role as the authoritative implementation specification governing concrete phased rollout.
- **Pure Constraints**: Kept technical requirements (such as `git ls-remote` commit equality) as crisp specification invariants rather than re-arguing their rationale.
- Header bidirectionally cross-links to both the ADR and Discussion.
### D. Subsystem Lineage Directory (`01-plans/homelab/consolidation/`)
- Relocated all 6 roadmap and guide documents (v1–v4) into `01-plans/homelab/consolidation/`.
- All intra-vault links updated and verified across project hubs and journal entries.
---
## 3. Verification
- `python scripts/validate-brain.py`: **`✅ All checks passed. Brain structure is valid.`**
- `python scripts/test_validator.py`: **`Ran 10 tests in 0.001s ... OK`**
+9 -6
View File
@@ -59,9 +59,10 @@ Architectural inquiries and problem statements currently under evaluation that h
Implementation roadmaps currently in progress (`status: active`) that are actively being executed or scheduled for deployment:
1. 🟡 [**Architecture Consolidation & Hardening Roadmap & Execution Plan v4**](../../01-plans/homelab/architecture-consolidation-roadmap-v4.md) `[Active]`
1. 🟡 [**Architecture Consolidation & Hardening Roadmap & Execution Plan v4**](../../01-plans/homelab/consolidation/architecture-consolidation-roadmap-v4.md) `[Active]`
- Unified roadmap and execution blueprint: 3-tier architecture (Software vs. Deployment vs. Platform), OCI provenance model, two workload deployment classes, authoritative Core registry, Stalwart vs. SnappyMail zero-data-loss relocation, workload Compose security policy, unified typed manifest engine, linear control path (KISS), and two operational inspection axes with three revision identities.
- 🏛️ *Architectural Decision Record*: [**Homelab 3-Tier Architecture & Provenance**](../../03-records/decisions/homelab-3tier-architecture-and-provenance.md)
- 💬 *Architectural Discussion*: [**Legacy Multirepo to 3-Tier Migration Rationale**](../../02-discussions/homelab/architecture-migration-v3-to-v4.md)
2. 🟡 [**Rust Daemon Migration Plan: Standalone `dynu-monitor`**](../../01-plans/homelab/dynu-monitor-rust-daemon.md) `[Active]`
- Implementing a standalone Rust daemon with 30-second polling and round-robin public DNS resolution across 5 independent providers (Cloudflare, Quad9, Google, OpenDNS, Dynu).
3. 🟡 [**Custom API Security Hardening & Threat Analysis**](../../01-plans/homelab/api-security-hardening.md) `[Active]`
@@ -92,6 +93,7 @@ Operational runbooks and procedures for daily administration:
* [**Brain GitOps & Auto-Sync Deployment Pipeline**](../../04-learning/guides/homelab/brain-gitops-deployment-pipeline.md) — Technical runbook on how Brain commits automatically validate and publish to `docs.roadtotech.me`.
* [**Dynu DDNS Domain Configuration Troubleshooting Runbook**](../../04-learning/guides/homelab/dynu-ddns-troubleshooting.md) — Diagnostic and recovery steps for WAN address synchronization issues.
* [**Diagnosing Unexpected Server Shutdowns Runbook**](../../04-learning/guides/homelab/server-unexpected-shutdown-diagnosis.md) — Diagnostic procedure and checklist for investigating hardware thermal trips, power loss, and unexpected crashes.
* [**Homelab Architecture Consolidation Documents Reorganization Walkthrough**](../../04-learning/guides/homelab/architecture-docs-reorganization-walkthrough.md) — Operational walkthrough covering MADR 4.0 standardization, narrative discussion expansion, authoritative plan framing, and consolidation lineage reorganization.
---
@@ -117,15 +119,16 @@ Archived and foundational documentation for completed milestones:
* [**Migrating from Legacy Multirepo (v3) to 3-Tier Provenance Architecture (v4)**](../../02-discussions/homelab/architecture-migration-v3-to-v4.md) — Evaluated multirepo friction (source pollution, repo inflation, state co-location) vs 3-tier decoupling; resolved via Roadmap v4 adoption.
### Completed Plans
* 🟢 [**Architecture Consolidation & Hardening Roadmap v3**](../../01-plans/homelab/architecture-consolidation-roadmap-v3.md) (Superseded by v4; established controller authority, mail relocation plan, and manifest convergence)
* 🟢 [**Architecture Consolidation Implementation Guide v3**](../../01-plans/homelab/architecture-consolidation-implementation-guide-v3.md) (Superseded by v4)
* 🟢 [**Homelab Architecture Consolidation Documents Reorganization**](../../01-plans/homelab/architecture-docs-reorganization.md) — Reorganized consolidation documentation across the epistemic triad (ADR MADR 4.0, narrative Discussion, authoritative Plan) and created `01-plans/homelab/consolidation/` lineage directory.
* 🟢 [**Architecture Consolidation & Hardening Roadmap v3**](../../01-plans/homelab/consolidation/architecture-consolidation-roadmap-v3.md) (Superseded by v4; established controller authority, mail relocation plan, and manifest convergence)
* 🟢 [**Architecture Consolidation Implementation Guide v3**](../../01-plans/homelab/consolidation/architecture-consolidation-implementation-guide-v3.md) (Superseded by v4)
* 🟢 [**Diun Load-Shaping, Workload Exemption & Authenticated SMTPS Delivery (2026-09-24)**](../../03-records/debug/2026-09-24-diun-workload-isolation-and-load-shaping.md) — Resolved 6 post-deployment issues: Portainer bcrypt `$` interpolation, high-concurrency DNS load mitigated via `WORKERS=6` + `JITTER=30s`, local-build exemptions decentralized to `Sites/*`, and Diun migrated to port 465 SMTPS with dedicated service account. 19 images clean, mail delivered authenticated.
* 🟢 [**Clean Deprecation of Portainer from Core**](../../01-plans/homelab/portainer-deprecation-plan.md)
* 🟢 [**Stalwart Mail Server & SnappyMail Webmail Deployment**](../../01-plans/homelab/stalwart-email-server-implementation-plan.md)
* 🟢 [**Multirepo Refactor of Homepage & Learning Hub**](../../01-plans/homelab/multirepo-refactor-homepage-courses.md)
* 🟢 [**Architecture Consolidation & Hardening Roadmap v2**](../../01-plans/homelab/architecture-consolidation-roadmap-v2.md) (Superseded by v3; P0 GitOps trust boundary & automated invariant testing completed)
* 🟢 [**Architecture Consolidation Implementation Guide v2**](../../01-plans/homelab/architecture-consolidation-implementation-guide-v2.md) (Superseded by v3)
* 🟢 [**Architecture Consolidation & Hardening Roadmap v1**](../../01-plans/homelab/architecture-consolidation-roadmap.md) (Superseded by v2)
* 🟢 [**Architecture Consolidation & Hardening Roadmap v2**](../../01-plans/homelab/consolidation/architecture-consolidation-roadmap-v2.md) (Superseded by v3; P0 GitOps trust boundary & automated invariant testing completed)
* 🟢 [**Architecture Consolidation Implementation Guide v2**](../../01-plans/homelab/consolidation/architecture-consolidation-implementation-guide-v2.md) (Superseded by v3)
* 🟢 [**Architecture Consolidation & Hardening Roadmap v1**](../../01-plans/homelab/consolidation/architecture-consolidation-roadmap.md) (Superseded by v2)
* 🟢 [**Turn `homelab-core` into a Declarative NixOS Appliance**](../../01-plans/homelab/nixos-appliance-migration.md)
* 🟢 [**Core & Sites Cutover and Testing Plan**](../../01-plans/homelab/core-sites-cutover-testing-plan.md)
* 🟢 [**appctl Refactor & Decentralized `app.yaml` Metadata Architecture**](../../01-plans/homelab/refactor-and-metadata-sync.md)