Skip to content

fix(deploy): protect host config - #339

Merged
shuv1337 merged 1 commit into
integration-v2from
protect-host-config
Jul 15, 2026
Merged

fix(deploy): protect host config#339
shuv1337 merged 1 commit into
integration-v2from
protect-host-config

Conversation

@shuv1337

Copy link
Copy Markdown
Collaborator

Summary

  • designate ~/.config/shuvcode/opencode.json as the canonical Shuvcode preferences file
  • retain ~/.config/opencode for required XDG compatibility, service registration, and state
  • require the compatibility preferences path to symlink to the Shuvcode file
  • add a guarded host installer that proves the preferences target and hash are unchanged
  • add a non-mutating deploy preflight mode

Root cause

The shared-service migration repointed the compatibility preferences path at an older V1-shaped dotfiles config. Later binary restarts reloaded that wrong source, making deployment appear to overwrite newer preferences.

Validation

  • bash -n deploy/install-host.sh
  • shellcheck deploy/install-host.sh, when available
  • invalid-argument behavior check
  • git diff --check
  • pre-push monorepo typecheck: 32/32
  • live shuvdev symlink and config hash verification
  • live Build agent and OAuth/plugin verification

@shuv1337
shuv1337 merged commit 97ab091 into integration-v2 Jul 15, 2026
5 checks passed
@shuv1337
shuv1337 deleted the protect-host-config branch July 15, 2026 10:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant