From 82d3c60f55e95b80ac109d08c6d60be45f52a941 Mon Sep 17 00:00:00 2001 From: lucaronin Date: Sat, 28 Mar 2026 18:25:23 +0100 Subject: [PATCH] =?UTF-8?q?docs:=20forbid=20vault=20modifications=20for=20?= =?UTF-8?q?testing=20=E2=80=94=20use=20demo-vault-v2=20only?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CLAUDE.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/CLAUDE.md b/CLAUDE.md index ff9bc75b..8766fbc7 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -100,6 +100,17 @@ ADRs live in `docs/adr/`. Before making an architectural choice, check existing 2. Design in light mode. Create `design/.pen` for the task. 3. On merge to main: merge frames into `ui-design.pen`, delete `design/.pen`. +## ⛔ Never modify the user vault for testing + +`~/Laputa/` is Luca's real vault. **Never create, edit, or delete notes there for testing purposes.** + +Use the demo vault for all testing: +- Playwright / Vitest: use the fixtures in `tests/` or `demo-vault-v2/` +- `pnpm tauri dev` manual testing: open `demo-vault-v2/` as the vault, not `~/Laputa/` +- If a test genuinely requires the real vault (e.g. verifying git history), read only — never write + +Any commit that touches `~/Laputa/` content is a bug. If you accidentally created test notes there, delete them before committing. + ## Vault Retrocompatibility Every feature that depends on vault files must auto-bootstrap: check if file/folder exists on vault open, create with defaults if missing (silent, idempotent). Register with the central `Cmd+K → "Repair Vault"` command.