From 9535110f2f65e3ca22c2d07eef2b3720fda9a071 Mon Sep 17 00:00:00 2001 From: w3cj Date: Thu, 12 Nov 2026 11:54:42 -0700 Subject: [PATCH] docs: user-page rule covers safety, backends and compared; strict section leads with today's behaviour Co-Authored-By: Claude Opus 5.5 --- AGENTS.md | 2 +- docs/content/docs/safety/git-protection.md | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index a42329f8..8509a493 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -71,7 +71,7 @@ Each package's concerns and identifiers: [The packages](docs/content/docs/contri - **Adding or changing a command** follows the cli skill (`.agents/skills/cli/`): its checklist, then its review. - **Adding or changing a shared tool** updates its page and follows Contributing's checklist: `using/toolchains.md` for a toolchain ([Adding a toolchain](docs/content/docs/contributing/extending.md#adding-a-toolchain)), `using/coding-agents.md`'s Supported agents for an agent ([Adding a coding agent](docs/content/docs/contributing/extending.md#adding-a-coding-agent)). - **Docs by reader:** user pages name no repo paths, Go identifiers or message names; How it works explains mechanisms; Contributing has the paths and identifiers ([Writing docs](docs/content/docs/contributing/docs.md#writing-docs)). -- **User pages lead with doing:** in `getting-started/` and `using/`, a task shows its command, and prose never runs to back-to-back paragraphs; one explanatory paragraph is fine, and longer mechanism moves to How it works, linked, every fact kept. +- **User pages lead with doing:** in `getting-started/`, `using/`, `safety/`, `backends/` and `compared/`, a task shows its command, and prose never runs to back-to-back paragraphs; one explanatory paragraph is fine, and longer mechanism moves to How it works, linked, every fact kept. - **Extend the owner, don't copy it:** before adding a helper, parser, path, file reader, message or table, find its owner and extend it; a new owner gets a forbidigo rule or a structure-test check only when a second copy would be a bug ([Contributing](docs/content/docs/contributing/structure.md#one-owner-for-each-concern)). - **Edit files with the editor tools,** not `sed`, `awk`, `python`, heredocs or `cat >`. - **Ask first** before anything outward-facing (publishing, releases, repos, pushing) and before deleting anything you didn't create. diff --git a/docs/content/docs/safety/git-protection.md b/docs/content/docs/safety/git-protection.md index 3b18c7f8..6c015748 100644 --- a/docs/content/docs/safety/git-protection.md +++ b/docs/content/docs/safety/git-protection.md @@ -55,7 +55,9 @@ On an existing VM, devvm ignores `--no-git-protect` and warns you. A `--clone` V ### VMs that were strict -In devvm 0.1.0 and 0.1.1-rc.1, `devvm git-protect strict` sets `diff.ignoreSubmodules = all` in the locked `.git/config`, so that `git status` and `git diff` on this machine skip the submodules the VM adds. That can't keep git on this machine out of them. A `.gitmodules` line that the VM writes, such as `ignore = none`, makes `git status` enter a submodule again, and `git add -A`, `git add -u`, `git describe --dirty`, `git diff-index`, `git diff-files`, `git fetch` and `git pull` enter one whatever the setting says, as does `--ignore-submodules` on the command line. So `devvm git-protect` takes only `on` and `off`, and `devvm git-protect strict` is a usage error that points to `devvm clone on`, which keeps the VM's code away from git on this machine. +`devvm git-protect` takes only `on` and `off`. `devvm git-protect strict` is a usage error that points to `devvm clone on`, which keeps the VM's code away from git on this machine. + +An earlier devvm's `strict` set `diff.ignoreSubmodules = all` in the locked `.git/config`, so that `git status` and `git diff` on this machine skipped the submodules the VM adds. That couldn't keep git on this machine out of them. A `.gitmodules` line that the VM writes, such as `ignore = none`, makes `git status` enter a submodule again, and `git add -A`, `git add -u`, `git describe --dirty`, `git diff-index`, `git diff-files`, `git fetch` and `git pull` enter one whatever the setting says, as does `--ignore-submodules` on the command line. A VM that was made strict shows as `on` at once, in `devvm ls`, `devvm git-protect` and its `--json`, and its locks stay as they are while it runs. The first time devvm finds it stopped, at a launch, at `devvm stop`, or at `devvm clone on`, or when devvm undoes a `devvm clone off` that didn't finish, devvm takes `diff.ignoreSubmodules = all` out of the `.git/config` of the folder's own repo and of each nested repo the VM protected, unlocking each file for the moment and locking it again. Then it records the VM as `on` and says so once, unless you chose `devvm git-protect off` while it ran, which it applies next. `devvm git-protect on` and `off` and `devvm rm` take the setting out the same way, without saying so.