repo-layout: delete the retired stacks (1/2) #5

Merged
thodkatz merged 5 commits from impl/repo-layout-1-prune into main 2026-11-05 09:31:59 +00:00
Owner

Slice 1/2 of the repo-layout plan (docs/superpowers/plans/2026-11-05-repo-layout/slice-1-prune.md; spec
docs/superpowers/specs/2026-11-05-repo-layout-design.md, D2, D3, the retired part of D10, Early output).

Status: implemented; review round next (local).

What it deletes, and why

The stacks that no longer run anywhere still read as live config, so slice 2 would have moved dead directories.
This slice deletes them and lists each in a new RETIRED.md, with why it was dropped and the commit that still has
it (844f082e27fe): git checkout 844f082e27fe -- <path> restores one.

  • Stacks (D2): caddy-microvm/, memos/, newsblur/, open-webui/, pdfding/, seafile/, ttrss/, and
    their .gitignore lines. RETIRED.md also lists plane-microvm, code-server and cptr (routes only).
  • Routes and DNS (D3): the VPS caddy's seafile, ttrss and newsblur blocks; headscale's records for those
    plus memos, code-server, cptr and plane-microvm.
  • Docs (D10, retired part): caddy-nixed's comments, AGENTS.md (machine table, check command) and
    docs/guides/network-and-caddy.md stop describing the microVM's caddy. plane/'s microVM case is slice 2's (D8).

Rules this PR removes or rewrites

  • AGENTS.md, Setup: the check command validates two Caddyfiles, not three (caddy-microvm dropped from the
    loop). "A caddy-microvm/ change is reloaded here only if that stack is running (…)": dropped, nothing left to
    reload.
  • AGENTS.md, Project in brief: the microVM's row says it runs no caddy and hosts no stacks.
  • docs/guides/network-and-caddy.md, Caddy conventions: "caddy-microvm/ is for services that run in this
    microVM … adding one means a block in caddy-microvm/config/Caddyfile plus an extra_records entry pointing at
    192.168.122.51" and "caddy-microvm's committed blocks … kept for re-enabling; don't bring it back up unasked":
    dropped on purpose, replaced by one bullet, "This microVM hosts no stacks and runs no caddy". In the test recipe,
    "if caddy-microvm is up it holds 80/443" becomes "if 80/443 are taken here", and the container-name clash with
    caddy-microvm is gone.
  • caddy-nixed/docker-compose.yaml's comment (not an instructions file, listed so you see it): if ./data is lost,
    the recovery is no longer "copy those four files across again" (their source, caddy-microvm, is retired) but
    "caddy makes a new root, which every device then has to trust again".

After the merge, the user (on the VPS)

Nothing here is deployed. In this order:

  1. Before git pull (the pull deletes their compose files): docker compose down in seafile/, ttrss/ and
    newsblur/, and in open-webui/, pdfding/ wherever they still run. Their containers: seafile seafile-mysql seafile-redis; ttrss and ttrss-*-1 (four); newsblur_* (nine); pdfding; open-webui litellm.
  2. git pull.
  3. Reload caddy: docker exec caddy caddy reload --config /config/Caddyfile --adapter caddyfile.
  4. Restart headscale: docker compose restart headscale in headscale/.

Their named volumes (ttrss_db ttrss_app pdfding_sqlite_data pdfding_media open-webui_open-webui) and untracked
state stay until you remove them.

The pull also drops the .gitignore lines for ttrss/themes.local, ttrss/plugins.local and newsblur/NewsBlur
(a git checkout of the fork), so they show up as untracked: delete newsblur/ and ttrss/ from the VPS clone after
the pull, and don't git add -A there until you have.

Three questions for you

Why did you drop memos, open-webui and pdfding? One line each for RETIRED.md's Why it was dropped;
with no answer by the merge, the rows keep ? (an answer later is a one-line edit).

The target tree (spec, Early output)

Slice 2 moves every live stack under its machine. Please say if a stack is under the wrong machine:

vps/
  caddy/             was caddy/ (+ external-upstreams)
  headscale/
  rclone/            rclone.service: the StorageBox mount
  actual/
  authentik/
  firefly/
  forgejo/
  freshrss/
  grafana/
  hedgedoc/
  overleaf-toolkit/
  portainer/
  stirling-pdf/
  uptime-kuma/
  wallos/
  wud/
  mywebsite/         untracked, as today (gitignored)
nixos/
  caddy/             was caddy-nixed/
  ente/
  plane/
  spliit/
backup/              setup.sh, sync.sh, README.md (stale)
RETIRED.md

Handoff

docs/superpowers/plans/2026-11-05-repo-layout/handoffs/2026-11-05T0928Z-slice-1-done.md; Current work now names
slice 2.

🤖 Generated with Claude Code

Slice 1/2 of the repo-layout plan (`docs/superpowers/plans/2026-11-05-repo-layout/slice-1-prune.md`; spec `docs/superpowers/specs/2026-11-05-repo-layout-design.md`, D2, D3, the retired part of D10, *Early output*). **Status:** implemented; review round next (local). ## What it deletes, and why The stacks that no longer run anywhere still read as live config, so slice 2 would have moved dead directories. This slice deletes them and lists each in a new `RETIRED.md`, with why it was dropped and the commit that still has it (`844f082e27fe`): `git checkout 844f082e27fe -- <path>` restores one. - **Stacks (D2):** `caddy-microvm/`, `memos/`, `newsblur/`, `open-webui/`, `pdfding/`, `seafile/`, `ttrss/`, and their `.gitignore` lines. `RETIRED.md` also lists plane-microvm, code-server and cptr (routes only). - **Routes and DNS (D3):** the VPS caddy's `seafile`, `ttrss` and `newsblur` blocks; headscale's records for those plus `memos`, `code-server`, `cptr` and `plane-microvm`. - **Docs (D10, retired part):** `caddy-nixed`'s comments, `AGENTS.md` (machine table, check command) and `docs/guides/network-and-caddy.md` stop describing the microVM's caddy. `plane/`'s microVM case is slice 2's (D8). ## Rules this PR removes or rewrites - `AGENTS.md`, *Setup*: the check command validates two Caddyfiles, not three (`caddy-microvm` dropped from the loop). "A `caddy-microvm/` change is reloaded here only if that stack is running (…)": dropped, nothing left to reload. - `AGENTS.md`, *Project in brief*: the microVM's row says it runs no caddy and hosts no stacks. - `docs/guides/network-and-caddy.md`, *Caddy conventions*: "`caddy-microvm/` is for services that run in this microVM … adding one means a block in `caddy-microvm/config/Caddyfile` plus an `extra_records` entry pointing at `192.168.122.51`" and "caddy-microvm's committed blocks … kept for re-enabling; don't bring it back up unasked": dropped on purpose, replaced by one bullet, "This microVM hosts no stacks and runs no caddy". In the test recipe, "if caddy-microvm is up it holds 80/443" becomes "if 80/443 are taken here", and the container-name clash with caddy-microvm is gone. - `caddy-nixed/docker-compose.yaml`'s comment (not an instructions file, listed so you see it): if `./data` is lost, the recovery is no longer "copy those four files across again" (their source, caddy-microvm, is retired) but "caddy makes a new root, which every device then has to trust again". ## After the merge, the user (on the VPS) Nothing here is deployed. In this order: 1. **Before `git pull`** (the pull deletes their compose files): `docker compose down` in `seafile/`, `ttrss/` and `newsblur/`, and in `open-webui/`, `pdfding/` wherever they still run. Their containers: `seafile seafile-mysql seafile-redis`; `ttrss` and `ttrss-*-1` (four); `newsblur_*` (nine); `pdfding`; `open-webui litellm`. 2. `git pull`. 3. Reload caddy: `docker exec caddy caddy reload --config /config/Caddyfile --adapter caddyfile`. 4. Restart headscale: `docker compose restart headscale` in `headscale/`. Their named volumes (`ttrss_db ttrss_app pdfding_sqlite_data pdfding_media open-webui_open-webui`) and untracked state stay until you remove them. The pull also drops the `.gitignore` lines for `ttrss/themes.local`, `ttrss/plugins.local` and `newsblur/NewsBlur` (a git checkout of the fork), so they show up as untracked: delete `newsblur/` and `ttrss/` from the VPS clone after the pull, and don't `git add -A` there until you have. ## Three questions for you Why did you drop **memos**, **open-webui** and **pdfding**? One line each for `RETIRED.md`'s *Why it was dropped*; with no answer by the merge, the rows keep `?` (an answer later is a one-line edit). ## The target tree (spec, *Early output*) Slice 2 moves every live stack under its machine. Please say if a stack is under the wrong machine: ``` vps/ caddy/ was caddy/ (+ external-upstreams) headscale/ rclone/ rclone.service: the StorageBox mount actual/ authentik/ firefly/ forgejo/ freshrss/ grafana/ hedgedoc/ overleaf-toolkit/ portainer/ stirling-pdf/ uptime-kuma/ wallos/ wud/ mywebsite/ untracked, as today (gitignored) nixos/ caddy/ was caddy-nixed/ ente/ plane/ spliit/ backup/ setup.sh, sync.sh, README.md (stale) RETIRED.md ``` ## Handoff `docs/superpowers/plans/2026-11-05-repo-layout/handoffs/2026-11-05T0928Z-slice-1-done.md`; *Current work* now names slice 2. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Signed-off-by: theo <thodkatz@pm.me>
caddy-microvm, memos, newsblur, open-webui, pdfding, seafile and ttrss no
longer run anywhere, but their directories still read as live config. Git
keeps them: RETIRED.md names each one, why it was dropped and the commit
(844f082e27) that still has it, so any of them can be restored with
`git checkout <commit> -- <path>`. Their .gitignore lines go with them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: theo <thodkatz@pm.me>
The VPS caddy still routed seafile, ttrss and newsblur, and headscale still
resolved those plus memos, code-server, cptr and plane-microvm, all to stacks
or services that no longer run. caddy-nixed's comments pointed at
caddy-microvm, which the previous commit deleted.

Nothing changes until the user deploys on the VPS: reload its caddy and
restart headscale (the PR body lists the steps).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: theo <thodkatz@pm.me>
AGENTS.md's machine table, its check command and the network guide still
described caddy-microvm as the microVM's deployment, and the check command
validated a Caddyfile this branch deleted. The microVM now hosts no stacks;
RETIRED.md says where caddy-microvm went.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: theo <thodkatz@pm.me>
Marks slice 1 merged in the plan's slices table, points Current work at
slice 2 and writes its handoff, so the next session starts from the pruned
tree without rereading this one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: theo <thodkatz@pm.me>
thodkatz changed title from WIP: repo-layout: delete the retired stacks (1/2) to repo-layout: delete the retired stacks (1/2) 2026-11-05 09:29:42 +00:00
Author
Owner

Local review round (two reviewer subagents: correctness, methodology). No Critical or Important findings.

  1. (correctness, minor) PR body: the pull drops the .gitignore lines for ttrss/themes.local, ttrss/plugins.local and newsblur/NewsBlur (a git checkout), so on the VPS they turn untracked and a git add -A would commit newsblur/NewsBlur as a gitlink. The body only said the untracked state stays.
  2. (methodology, minor) caddy-nixed/docker-compose.yaml:12-16: the CA recovery step changed ("copy those four files" → "caddy makes a new root"). It's the plan's wording, and the rule list strictly covers only instructions files, but the user should see it.
  3. (methodology, minor) docs/guides/network-and-caddy.md:28-30 still offers the microVM as a place a service could move to, next to "This microVM hosts no stacks".
  4. (methodology, minor) AGENTS.md Current work and the plan's slices table say "merged #5" before the merge.

Checks run by the reviewers: D2's two checks (nothing; 10 ok), D3's grep (exit 1 only), Task 1.3's retired-names grep (only the expected BACKLOG, zsh-glob note and plane/ hits), RETIRED.md diffed against the plan (empty), sync-agents.py --check exit 0, sign-off branch check prints nothing.

Checks: for c in caddy caddy-nixed; do docker run … caddy validate …; done: exit 0

**Local review round** (two reviewer subagents: correctness, methodology). No Critical or Important findings. 1. *(correctness, minor)* PR body: the pull drops the `.gitignore` lines for `ttrss/themes.local`, `ttrss/plugins.local` and `newsblur/NewsBlur` (a git checkout), so on the VPS they turn untracked and a `git add -A` would commit `newsblur/NewsBlur` as a gitlink. The body only said the untracked state stays. 2. *(methodology, minor)* `caddy-nixed/docker-compose.yaml:12-16`: the CA recovery step changed ("copy those four files" → "caddy makes a new root"). It's the plan's wording, and the rule list strictly covers only instructions files, but the user should see it. 3. *(methodology, minor)* `docs/guides/network-and-caddy.md:28-30` still offers the microVM as a place a service could move to, next to "This microVM hosts no stacks". 4. *(methodology, minor)* `AGENTS.md` *Current work* and the plan's slices table say "merged #5" before the merge. Checks run by the reviewers: D2's two checks (nothing; 10 `ok`), D3's grep (`exit 1` only), Task 1.3's retired-names grep (only the expected BACKLOG, zsh-glob note and `plane/` hits), `RETIRED.md` diffed against the plan (empty), `sync-agents.py --check` exit 0, sign-off branch check prints nothing. Checks: for c in caddy caddy-nixed; do docker run … caddy validate …; done: exit 0
Author
Owner

Replies to the review round:

  1. Fixed: the PR body's After the merge now says to delete newsblur/ and ttrss/ from the VPS clone after the pull, and not to git add -A there until then.
  2. Fixed: added to the PR body's rule list, so the changed recovery step is visible.
  3. No change: it describes what the network allows, not a hosted stack (noted in the slice-1 handoff), and slice 2 rewrites that sentence (slice-2-restructure.md).
  4. No change: the plan's Finishing the slice asks for it, and it becomes true with this PR's squash merge.
Replies to the review round: 1. Fixed: the PR body's *After the merge* now says to delete `newsblur/` and `ttrss/` from the VPS clone after the pull, and not to `git add -A` there until then. 2. Fixed: added to the PR body's rule list, so the changed recovery step is visible. 3. No change: it describes what the network allows, not a hosted stack (noted in the slice-1 handoff), and slice 2 rewrites that sentence (`slice-2-restructure.md`). 4. No change: the plan's *Finishing the slice* asks for it, and it becomes true with this PR's squash merge.
thodkatz deleted branch impl/repo-layout-1-prune 2026-11-05 09:31:59 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
thodkatz/selfhosted!5
No description provided.