Skip to content

Fix canonical OpenCode workspace permissions - #353

Merged
chubes4 merged 1 commit into
mainfrom
fix/352-opencode-workspace-root
Aug 7, 2026
Merged

Fix canonical OpenCode workspace permissions#353
chubes4 merged 1 commit into
mainfrom
fix/352-opencode-workspace-root

Conversation

@chubes4

@chubes4 chubes4 commented Aug 7, 2026

Copy link
Copy Markdown
Member

Summary

  • resolve the canonical DMC workspace before fresh runtime config generation
  • resolve it before upgrade-time opencode.json reconciliation
  • replace stale managed absolute grants while preserving explicit overrides
  • cover discovery, generated permissions, and stale-grant repair

Closes #352.

Verification

  • ./tests/dm-workspace-discovery.sh
  • ./tests/opencode-local-plugin-path.sh
  • ./tests/repair-opencode-json.sh
  • bash -n on changed shell scripts
  • git diff --check
  • all other shell tests pass except pre-existing environment-sensitive failures reproduced on main in tests/service-migration.sh, tests/source-mode.sh, and tests/verify.sh

AI assistance: OpenAI GPT-5.6 Sol via OpenCode diagnosed the lifecycle gap, implemented the fix, and ran verification; Chris Huber remains responsible for every line.

Resolve the active Data Machine Code workspace before generating or repairing runtime permissions, replacing stale fallback grants on upgrade.\n\nAI assistance: OpenAI GPT-5.6 Sol via OpenCode diagnosed the lifecycle gap, implemented the fix, and added regression coverage; Chris Huber remains responsible for the change.
@chubes4
chubes4 merged commit 5acd697 into main Aug 7, 2026
46 checks passed
@chubes4
chubes4 deleted the fix/352-opencode-workspace-root branch August 7, 2026 18:26
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.

OpenCode permission reconciliation uses stale fallback workspace root

1 participant