fix(installer): preserve credentials dir and seed STANDARDS.md #452

Merged
jason.woltje merged 1 commits from fix/installer-idempotent-creds into main 2026-04-08 00:40:50 +00:00
Owner

Summary

  • Credentials preserved: Added credentials/ to PRESERVE_PATHS so rsync --delete no longer wipes user credential stores on framework upgrade
  • AGENTS.md / STANDARDS.md preserved: Both added to PRESERVE_PATHS to protect user customizations from being deleted during sync
  • Default seeding: AGENTS.md and STANDARDS.md are now seeded from defaults/ on first install — previously they existed in defaults/ but were never copied to the framework root, so STANDARDS.md was missing after install
  • credentials/ dir created: mkdir -p during install alongside memory/

Test plan

  • Pre-push gates pass (typecheck, lint, format)
  • Fresh install: verify STANDARDS.md and AGENTS.md appear at ~/.config/mosaic/
  • Upgrade with existing credentials/: verify contents survive
  • Upgrade with customized AGENTS.md: verify not overwritten

🤖 Generated with Claude Code

## Summary - **Credentials preserved**: Added `credentials/` to `PRESERVE_PATHS` so `rsync --delete` no longer wipes user credential stores on framework upgrade - **AGENTS.md / STANDARDS.md preserved**: Both added to `PRESERVE_PATHS` to protect user customizations from being deleted during sync - **Default seeding**: `AGENTS.md` and `STANDARDS.md` are now seeded from `defaults/` on first install — previously they existed in `defaults/` but were never copied to the framework root, so `STANDARDS.md` was missing after install - **credentials/ dir created**: `mkdir -p` during install alongside `memory/` ## Test plan - [x] Pre-push gates pass (typecheck, lint, format) - [ ] Fresh install: verify STANDARDS.md and AGENTS.md appear at `~/.config/mosaic/` - [ ] Upgrade with existing credentials/: verify contents survive - [ ] Upgrade with customized AGENTS.md: verify not overwritten 🤖 Generated with [Claude Code](https://claude.com/claude-code)
jason.woltje added 1 commit 2026-04-08 00:40:43 +00:00
fix(installer): preserve credentials dir and seed STANDARDS.md on install
All checks were successful
ci/woodpecker/pr/ci Pipeline was successful
ci/woodpecker/push/ci Pipeline was successful
6a58c51872
- Add credentials/ to PRESERVE_PATHS so rsync --delete doesn't wipe
  user credential stores on framework upgrades
- Add AGENTS.md and STANDARDS.md to PRESERVE_PATHS to protect
  user-customized copies from being deleted during sync
- Seed AGENTS.md and STANDARDS.md from defaults/ on first install
  (previously only existed in defaults/ but never copied to framework root)
- Create credentials/ directory during install (alongside memory/)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
jason.woltje merged commit f64ec12f39 into main 2026-04-08 00:40:50 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mosaicstack/stack#452