Adopt agent-methodology #1

Merged
thodkatz merged 2 commits from change/adopt-methodology into main 2026-10-28 22:33:58 +00:00
Owner

Adopts agent-methodology (.methodology/ pinned at 3ebd12f) by its ADOPTING.md: Forgejo, local review, sign-off kept, AGENTS.md on the managed blocks from the start.

Plan

  • Submodule .methodology, the template's .claude/settings.json (hooks, AGENT_* env), docs/ skeleton; no pr-checks.yml (Forgejo).
  • AGENTS.md rebuilt from the template (forge=forgejo, sign-off=kept), filled from the old one. Long project text moves out: docs/guides/network-and-caddy.md (tailnet, headscale DNS, caddy conventions, the microVM test recipe, verbatim except the machines table, which now lives only in AGENTS.md) and docs/knowledge/bind-mount-single-file.md.
  • README.md becomes the symlink to AGENTS.md.
  • The ente https spec: status approved (the user, 2026-10-28), and its pointers to moved AGENTS.md text (D9's checks, the deployment and testing steps) now name the guide and the knowledge note. Caddyfile and compose comments pointing to ../AGENTS.md follow the same move.
  • Comparison: docs/investigations/2026-10-28-guides-vs-shared.md.

Check: python3 .methodology/shared/sync-agents.py --check exits 0; every link in AGENTS.md resolves; ADOPTING's settings check exits 0 and git check-ignore .claude/settings.json prints nothing; the Setup check (the three Caddyfiles validate) prints nothing.

Rules moved, rewritten or dropped

Rule (old place) Now
Where you are running: agentvm-repos microVM, no tailscale client, subnet route (AGENTS.md) AGENTS.md, Project in brief
Nothing here runs nixos-rebuild; only the user, from nixed (AGENTS.md) Project in brief, traps
The tailnet: headscale public on the VPS, never behind the tailnet; extra_records; editing config.yaml needs the user's redeploy (AGENTS.md) docs/guides/network-and-caddy.md, verbatim; the redeploy also in Project in brief, traps
Caddy conventions: tls internal vs ACME, one caddy per machine and its table, caddy-nixed default, testing recipe, don't compose up caddy-nixed here, bring down only what you started, caddy-microvm retired, Plane via compose.sh, reverseproxy-nw (AGENTS.md) docs/guides/network-and-caddy.md, verbatim; the machines table moved to Project in brief, where the "never run" and "bring down only what you started" traps point to the guide
Known gotcha: single-file bind mount doesn't hot-reload (AGENTS.md) docs/knowledge/bind-mount-single-file.md, indexed in docs/knowledge/README.md
Commit and push straight to main, no feature branches (AGENTS.md) Replaced by the shared modes (development-workflow.md): direct commits only for one-sentence diffs, change PRs otherwise. The user's decision, 2026-10-28; no Overrides line
One commit per logical change (AGENTS.md) Commit after each edit (methodology block)
Messages say why, not just what; history is the record (AGENTS.md) Working Conventions, after the block
Never commit secrets; check what's staged (AGENTS.md) Working Conventions, after the block
setup.sh / sync.sh are stale, don't extend without flagging (AGENTS.md) Project in brief, traps
Backup/restore with setup.sh, clone URL (README.md) Dropped: README.md is now the symlink (the user, 2026-10-28); the notes were stale (previous row)
Spec approval "by saying so", status line (ente spec) That spec is approved here; new specs wait for the approved label

Process changes

  • Anything bigger than a one-sentence diff goes through a change PR (or spec → plan → slices), reviewed by local reviewer subagents; the agent merges it once the forge sheet's Before a merge checks pass.
  • Specs wait for your approved label on their PR; an agent never adds it.
  • Every commit is signed off (git commit -s), and the merge carries the sign-offs.
  • A context budget of 150k per session, enforced by a hook; sessions hand off and may start their successor (continue.sh).
  • Next unit: the ente https plan, plan/ente-https.

Already done for adoption step 4: the six labels. Left for you: the repo setting Delete pull request branch after merge by default.

🤖 Generated with Claude Code

Adopts agent-methodology (`.methodology/` pinned at `3ebd12f`) by its `ADOPTING.md`: Forgejo, local review, sign-off kept, `AGENTS.md` on the managed blocks from the start. ## Plan - Submodule `.methodology`, the template's `.claude/settings.json` (hooks, `AGENT_*` env), `docs/` skeleton; no `pr-checks.yml` (Forgejo). - `AGENTS.md` rebuilt from the template (`forge=forgejo`, `sign-off=kept`), filled from the old one. Long project text moves out: `docs/guides/network-and-caddy.md` (tailnet, headscale DNS, caddy conventions, the microVM test recipe, verbatim except the machines table, which now lives only in `AGENTS.md`) and `docs/knowledge/bind-mount-single-file.md`. - `README.md` becomes the symlink to `AGENTS.md`. - The ente https spec: status **approved** (the user, 2026-10-28), and its pointers to moved `AGENTS.md` text (D9's checks, the deployment and testing steps) now name the guide and the knowledge note. Caddyfile and compose comments pointing to `../AGENTS.md` follow the same move. - Comparison: `docs/investigations/2026-10-28-guides-vs-shared.md`. **Check:** `python3 .methodology/shared/sync-agents.py --check` exits 0; every link in `AGENTS.md` resolves; ADOPTING's settings check exits 0 and `git check-ignore .claude/settings.json` prints nothing; the *Setup* check (the three Caddyfiles validate) prints nothing. ## Rules moved, rewritten or dropped | Rule (old place) | Now | |---|---| | Where you are running: `agentvm-repos` microVM, no tailscale client, subnet route (`AGENTS.md`) | `AGENTS.md`, *Project in brief* | | Nothing here runs `nixos-rebuild`; only the user, from `nixed` (`AGENTS.md`) | *Project in brief*, traps | | The tailnet: headscale public on the VPS, never behind the tailnet; `extra_records`; editing `config.yaml` needs the user's redeploy (`AGENTS.md`) | `docs/guides/network-and-caddy.md`, verbatim; the redeploy also in *Project in brief*, traps | | Caddy conventions: `tls internal` vs ACME, one caddy per machine and its table, caddy-nixed default, testing recipe, don't `compose up` caddy-nixed here, bring down only what you started, caddy-microvm retired, Plane via `compose.sh`, `reverseproxy-nw` (`AGENTS.md`) | `docs/guides/network-and-caddy.md`, verbatim; the machines table moved to *Project in brief*, where the "never run" and "bring down only what you started" traps point to the guide | | Known gotcha: single-file bind mount doesn't hot-reload (`AGENTS.md`) | `docs/knowledge/bind-mount-single-file.md`, indexed in `docs/knowledge/README.md` | | Commit and push straight to `main`, no feature branches (`AGENTS.md`) | **Replaced** by the shared modes (`development-workflow.md`): direct commits only for one-sentence diffs, `change` PRs otherwise. The user's decision, 2026-10-28; no *Overrides* line | | One commit per logical change (`AGENTS.md`) | *Commit after each edit* (methodology block) | | Messages say why, not just what; history is the record (`AGENTS.md`) | *Working Conventions*, after the block | | Never commit secrets; check what's staged (`AGENTS.md`) | *Working Conventions*, after the block | | `setup.sh` / `sync.sh` are stale, don't extend without flagging (`AGENTS.md`) | *Project in brief*, traps | | Backup/restore with `setup.sh`, clone URL (`README.md`) | **Dropped**: `README.md` is now the symlink (the user, 2026-10-28); the notes were stale (previous row) | | Spec approval "by saying so", status line (ente spec) | That spec is approved here; new specs wait for the `approved` label | ## Process changes - Anything bigger than a one-sentence diff goes through a `change` PR (or spec → plan → slices), reviewed by local reviewer subagents; the agent merges it once the forge sheet's *Before a merge* checks pass. - Specs wait for your `approved` label on their PR; an agent never adds it. - Every commit is signed off (`git commit -s`), and the merge carries the sign-offs. - A context budget of 150k per session, enforced by a hook; sessions hand off and may start their successor (`continue.sh`). - Next unit: the ente https plan, `plan/ente-https`. Already done for adoption step 4: the six labels. Left for you: the repo setting *Delete pull request branch after merge by default*. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
The methodology arrives as the .methodology submodule, with its hooks in
.claude/settings.json and AGENTS.md's methodology blocks synced from the
pinned template (forge=forgejo, sign-off=kept). selfhosted's own rules
moved out of AGENTS.md: the tailnet and caddy conventions into
docs/guides/network-and-caddy.md, the bind-mount gotcha into
docs/knowledge/, the traps every session needs into Project in brief.
"Push everything straight to main" gives way to the shared modes, and
README.md becomes the symlink to AGENTS.md, both the user's decisions
(2026-10-28). The ente https spec is approved by the user and points to
the moved text. The rule-by-rule comparison is in
docs/investigations/2026-10-28-guides-vs-shared.md.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Signed-off-by: theo <thodkatz@pm.me>
thodkatz changed title from WIP: Adopt agent-methodology to Adopt agent-methodology 2026-10-28 22:30:51 +00:00
Author
Owner

Local review (correctness, methodology subagents). Passed: sync-agents --check exits 0, every AGENTS.md link resolves, the settings check, .claude/settings.json not ignored, README.md mode 120000, moved text verbatim, comment-only edits in caddy files, sign-off on every commit, every old rule has a row.

  1. Medium, AGENTS.md Setup: the Caddyfile check doesn't "print nothing": caddy validate logs to stderr. Fix: >/dev/null 2>&1.
  2. Medium, ente spec D9 / AGENTS.md Setup: once D3 builds caddy-nixed with caddy-dns/cloudflare, the stock-image check fails on caddy-nixed's Caddyfile; D9's Docs this changes doesn't list Setup. Fix: add it there.
  3. Medium/low, AGENTS.md Setup, after a merge: says a caddy-microvm/ change is redeployed with --force-recreate, but that stack is retired and not brought back up unasked, and it mounts a directory, not a single file. Fix: redeploy only if running, by reload.
  4. Low, AGENTS.md Project in brief vs docs/guides/network-and-caddy.md: the machines table and two traps live in both, already worded differently. Fix: the table only in AGENTS.md; the traps there point to the guide's rule.
  5. Low, AGENTS.md Project in brief: "(the guide, Caddy conventions)" doesn't name the file. Fix: name it and the bullet.
  6. Nit: double blank line in Reviewers.
Local review (correctness, methodology subagents). Passed: sync-agents `--check` exits 0, every `AGENTS.md` link resolves, the settings check, `.claude/settings.json` not ignored, `README.md` mode 120000, moved text verbatim, comment-only edits in caddy files, sign-off on every commit, every old rule has a row. 1. **Medium**, `AGENTS.md` *Setup*: the Caddyfile check doesn't "print nothing": `caddy validate` logs to stderr. Fix: `>/dev/null 2>&1`. 2. **Medium**, ente spec D9 / `AGENTS.md` *Setup*: once D3 builds caddy-nixed with `caddy-dns/cloudflare`, the stock-image check fails on caddy-nixed's Caddyfile; D9's *Docs this changes* doesn't list *Setup*. Fix: add it there. 3. **Medium/low**, `AGENTS.md` *Setup*, after a merge: says a `caddy-microvm/` change is redeployed with `--force-recreate`, but that stack is retired and not brought back up unasked, and it mounts a directory, not a single file. Fix: redeploy only if running, by reload. 4. **Low**, `AGENTS.md` *Project in brief* vs `docs/guides/network-and-caddy.md`: the machines table and two traps live in both, already worded differently. Fix: the table only in `AGENTS.md`; the traps there point to the guide's rule. 5. **Low**, `AGENTS.md` *Project in brief*: "(the guide, *Caddy conventions*)" doesn't name the file. Fix: name it and the bullet. 6. Nit: double blank line in *Reviewers*.
Author
Owner

Review addressed in 4189b22:

  1. Fixed: >/dev/null 2>&1; the loop now prints nothing (run on this branch).
  2. Fixed: D9's Docs this changes lists AGENTS.md Setup (validate caddy-nixed with its built image).
  3. Fixed: a caddy-microvm/ change is reloaded only if the stack is running; it stays retired.
  4. Fixed: the machines table lives only in AGENTS.md; the guide points to it, the two traps point to the guide's bullet.
  5. Fixed: names docs/guides/network-and-caddy.md, Caddy conventions, "Testing a caddy-nixed service".
  6. Fixed.

Checks: Caddyfile validation loop (Setup): exit 0, no output; sync-agents.py --check: exit 0.

Review addressed in 4189b22: 1. Fixed: `>/dev/null 2>&1`; the loop now prints nothing (run on this branch). 2. Fixed: D9's *Docs this changes* lists `AGENTS.md` *Setup* (validate caddy-nixed with its built image). 3. Fixed: a `caddy-microvm/` change is reloaded only if the stack is running; it stays retired. 4. Fixed: the machines table lives only in `AGENTS.md`; the guide points to it, the two traps point to the guide's bullet. 5. Fixed: names `docs/guides/network-and-caddy.md`, *Caddy conventions*, "Testing a caddy-nixed service". 6. Fixed. Checks: Caddyfile validation loop (*Setup*): exit 0, no output; `sync-agents.py --check`: exit 0.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Signed-off-by: theo <thodkatz@pm.me>
thodkatz deleted branch change/adopt-methodology 2026-10-28 22:33:58 +00:00
thodkatz referenced this pull request from a commit 2026-10-28 22:33: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!1
No description provided.