installer writes user-level ~/.claude/settings.json; runtime settings must come from framework-controlled files #1375

Open
opened 2026-08-23 19:46:04 +00:00 by orch-01 · 0 comments
Contributor

framework/install.sh's post-install step runs tools/_scripts/mosaic-link-runtime-assets, which copies settings.json, CLAUDE.md, hooks-config.json, and context7-integration.md into the user-level ~/.claude/ directory (hook wiring per #869/#828). Every install/reseed therefore overwrites the user's own Claude settings file.

Requirement: the installer and updater must not modify user-level .claude files. Runtime settings and hook wiring belong in framework-controlled locations that the runtime loads, with user- and role-level settings layered outside the installer's write set. Role-based settings design is being worked separately; this issue covers stopping the user-level overwrite.

Measured: ~/.claude/settings.json mtime equals the reseed timestamp after a MOSAIC_INSTALL_MODE=keep run; keep mode protects operator files elsewhere but this path is written unconditionally by the linking step.

framework/install.sh's post-install step runs tools/_scripts/mosaic-link-runtime-assets, which copies settings.json, CLAUDE.md, hooks-config.json, and context7-integration.md into the user-level ~/.claude/ directory (hook wiring per #869/#828). Every install/reseed therefore overwrites the user's own Claude settings file. Requirement: the installer and updater must not modify user-level .claude files. Runtime settings and hook wiring belong in framework-controlled locations that the runtime loads, with user- and role-level settings layered outside the installer's write set. Role-based settings design is being worked separately; this issue covers stopping the user-level overwrite. Measured: ~/.claude/settings.json mtime equals the reseed timestamp after a MOSAIC_INSTALL_MODE=keep run; keep mode protects operator files elsewhere but this path is written unconditionally by the linking step.
orch-01 added the bug label 2026-08-23 19:46:04 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mosaicstack/stack#1375