spec: reorganize the repo by machine #3

Merged
thodkatz merged 6 commits from spec/repo-layout into main 2026-11-05 08:50:53 +00:00
Owner

Spec for laying the repo out by machine (vps/, nixos/), deleting retired stacks with a RETIRED.md ledger, and the one-time move on each machine.

Spec: docs/superpowers/specs/2026-11-05-repo-layout-design.md. Needs the user's approved label.

Also: a knowledge note for fj failing on the remote's SSH port 222, and Current work lines (this track; the ente plan now waits for it).

🤖 Generated with Claude Code

Spec for laying the repo out by machine (`vps/`, `nixos/`), deleting retired stacks with a `RETIRED.md` ledger, and the one-time move on each machine. Spec: `docs/superpowers/specs/2026-11-05-repo-layout-design.md`. Needs the user's `approved` label. Also: a knowledge note for `fj` failing on the remote's SSH port 222, and *Current work* lines (this track; the ente plan now waits for it). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Signed-off-by: theo <thodkatz@pm.me>
The remote moved to ssh://…:222, and fj then calls https://git-ssh.thodkatz.com:222/api/v1, which the
keys.json alias doesn't cover. Record the -H/-r form that works so the next session doesn't rediscover it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: theo <thodkatz@pm.me>
The flat tree doesn't say which machine runs a stack, and dropped experiments look like live ones. The
user wants placement visible in the tree itself rather than in an inventory file to keep in sync, so
stacks move under vps/ and nixos/, dead ones are deleted with a ledger of why, and the ente plan waits
to be written against the new paths.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: theo <thodkatz@pm.me>
thodkatz changed title from WIP: spec: reorganize the repo by machine to spec: reorganize the repo by machine 2026-11-05 08:45:05 +00:00
Author
Owner

Local review round (correctness + methodology reviewer subagents). Every finding addressed; fixes in e053f9b (methodology) and the commit after it (correctness).

Correctness

  1. (high) Absolute /srv/selfhosted/<stack> bind mounts (headscale, authentik, grafana, uptime-kuma, wud) would start empty after the move: fixed, new D11 makes them ./….
  2. (high) D5 git check-ignore on a tracked file always exits 1: fixed, --no-index.
  3. (high) D10 regex \x60 isn't a backtick in ERE: fixed, [^/a-z0-9-] before the old names; tested on backticked and new paths.
  4. (medium) Move ordering ignored caddy and headscale's OIDC dependency on authentik: fixed, up order authentik → caddy → headscale → rest.
  5. (medium) D3's grep passed vacuously on missing files: fixed, exits 1, with per-slice file lists.
  6. (medium) VPS ente copied while running, and its project name would change: fixed, stopped first, copied to ~/ente-vps/ente (keeps project name ente).
  7. (low) Named-volume list missed firefly: fixed (eight), overleaf's texlive_data noted.
  8. (low) D6 awk rules underspecified: fixed in Inputs for the plan (services keys and container_name at any indent, the overleaf override, no top-level keys, trailing {).
  9. (low) Relative ../caddy-nixed, ../docs comments, memos placement, last-commit rule: fixed in D10's text, RETIRED.md section.

Methodology
1–3. (medium) Backup redesign, nixed comments, VPS ente shutdown, move guide deletion had no landing spot: fixed, BACKLOG.md lines in this PR.
4. (medium) AGENTS.md Never commit secrets names a backup/ this layout tracks: fixed, D10 rewrites it.
5. (low) ? reasons had no owner: fixed, asked in slice 1's PR body.
6. (low) D10 missed caddy-nixed without a slash: fixed.
7. (low) Early output came last: fixed, slice 1's PR body shows the target tree.
8. (low) "Parent of the deleting commit" doesn't exist with squash: fixed, a commit on main that still has the path.
9. (low) Status lines go stale at merge: will flip to approved just before the merge.

  • Also: carry the fj gotcha to agent-methodology: BACKLOG.md line added.

Checks: sign-off branch check: exit 0 (printed nothing)
Checks: python3 .methodology/shared/sync-agents.py --check: exit 0
Checks: AGENTS.md Setup Caddyfile validate loop: exit 0

Local review round (correctness + methodology reviewer subagents). Every finding addressed; fixes in e053f9b (methodology) and the commit after it (correctness). **Correctness** 1. (high) Absolute `/srv/selfhosted/<stack>` bind mounts (headscale, authentik, grafana, uptime-kuma, wud) would start empty after the move: fixed, new D11 makes them `./…`. 2. (high) D5 `git check-ignore` on a tracked file always exits 1: fixed, `--no-index`. 3. (high) D10 regex `\x60` isn't a backtick in ERE: fixed, `[^/a-z0-9-]` before the old names; tested on backticked and new paths. 4. (medium) Move ordering ignored caddy and headscale's OIDC dependency on authentik: fixed, up order authentik → caddy → headscale → rest. 5. (medium) D3's grep passed vacuously on missing files: fixed, exits 1, with per-slice file lists. 6. (medium) VPS ente copied while running, and its project name would change: fixed, stopped first, copied to `~/ente-vps/ente` (keeps project name `ente`). 7. (low) Named-volume list missed firefly: fixed (eight), overleaf's `texlive_data` noted. 8. (low) D6 awk rules underspecified: fixed in *Inputs for the plan* (services keys and `container_name` at any indent, the overleaf override, no top-level keys, trailing `{`). 9. (low) Relative `../caddy-nixed`, `../docs` comments, memos placement, last-commit rule: fixed in D10's text, RETIRED.md section. **Methodology** 1–3. (medium) Backup redesign, nixed comments, VPS ente shutdown, move guide deletion had no landing spot: fixed, `BACKLOG.md` lines in this PR. 4. (medium) AGENTS.md *Never commit secrets* names a `backup/` this layout tracks: fixed, D10 rewrites it. 5. (low) `?` reasons had no owner: fixed, asked in slice 1's PR body. 6. (low) D10 missed `caddy-nixed` without a slash: fixed. 7. (low) Early output came last: fixed, slice 1's PR body shows the target tree. 8. (low) "Parent of the deleting commit" doesn't exist with squash: fixed, a commit on `main` that still has the path. 9. (low) Status lines go stale at merge: will flip to approved just before the merge. - Also: carry the fj gotcha to agent-methodology: `BACKLOG.md` line added. Checks: sign-off branch check: exit 0 (printed nothing) Checks: python3 .methodology/shared/sync-agents.py --check: exit 0 Checks: AGENTS.md Setup Caddyfile validate loop: exit 0
The backup redesign, the nixed comments, the VPS ente shutdown, the move guide's deletion and carrying
the fj gotcha upstream now each have a BACKLOG.md line instead of a promise in the spec. D10 also covers
AGENTS.md's ignored-paths list, which names the backup/ this layout tracks, and the early output moves
to slice 1 so the user sees the layout before anything moves.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: theo <thodkatz@pm.me>
Five VPS stacks bind-mount /srv/selfhosted/<stack>/ by absolute path, so moving their directories would
have started headscale and authentik on empty state: D11 makes those mounts relative first. The move
now stops the old VPS ente before copying it and starts stacks in dependency order (authentik, caddy,
then headscale, which waits for its OIDC issuer). D5, D10 and D3's checks could pass without checking:
--no-index, a regex that matches backticked paths, and an exit status instead of empty output.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: theo <thodkatz@pm.me>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: theo <thodkatz@pm.me>
Author
Owner

The user approved this spec in chat and asked the agent to add approved on their behalf (2026-11-05).

The user approved this spec in chat and asked the agent to add `approved` on their behalf (2026-11-05).
thodkatz deleted branch spec/repo-layout 2026-11-05 08:50:53 +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!3
No description provided.