Skip to content

docs(zcode): note ZCode 3.19.0 hook script trust and workspace plugins.dirs - #3910

Merged
dyoshikawa merged 1 commit into
mainfrom
resolve-issue-3527-zcode-3-19-docs
Nov 20, 2026
Merged

dyoshikawa merged 1 commit into
mainfrom
resolve-issue-3527-zcode-3-19-docs

Conversation

@dyoshikawa

Copy link
Copy Markdown
Owner

Refs #3527

Summary

Covers the two docs-only items from the 2026-11-19 upstream re-check (ZCode 3.19.0). No code change: rulesync's output stays the same.

  • Hooks (docs/reference/file-formats.md): the ZCode hooks note now says that since 3.19.0 the trust also covers the script a workspace hook runs, when that script is inside the workspace (the first word of the command, or the first argument after an interpreter). Editing the script asks for trust again, and a hook whose script is missing is blocked with workspace_hook_script_unavailable.
  • Plugins (docs/guide/plugin-packaging.md, ZCode section): since 3.19.0 a project can load a generated zcode-plugin bundle through plugins.dirs in .zcode/config.json. Relative paths resolve against the project root, and each user must trust the plugin for the workspace (a changed declaration asks again). Rulesync does not write plugins.dirs. The zcode writers patch only mcp / hooks, so an existing plugins key is kept.

Fact-checked against the 3.19.0 Linux AppImage (resources/glm/zcode.cjs, extracted with unsquashfs without running it; build listed in latest.yml). The bundle has the workspace_hook_script_unavailable reason code and a scriptEntry on hook trust records. It reads sources.plugins.dirs.workspace, and its workspace plugin trust records carry a declarationDigest (workspace_plugin_declaration_changed).

Remaining in #3527

  • Gap 2: the config.json permission block (mode including guarded, allowedTools, disallowedTools, autoApproveHighRisk, allowMediumRiskInAuto). Still a maintainer design decision.
  • An optional opt-in that registers the generated bundle path in plugins.dirs (a design decision, not done here).

Test notes

  • pnpm cicheck passes (docs-content regenerated).

🤖 Generated with Claude Code

https://claude.ai/code/session_01JdNNKCxxrKAMDANMGDEGP4

…s.dirs

ZCode 3.19.0 ties the trust of a workspace hook to the script it runs
(when that script is inside the workspace) and blocks the hook when the
script is missing. It also reads plugins.dirs from the project
.zcode/config.json, so a project can load a generated zcode-plugin
bundle after per-workspace trust.

Refs #3527

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01JdNNKCxxrKAMDANMGDEGP4
@dyoshikawa
dyoshikawa merged commit 32dd85b into main Nov 20, 2026
11 checks passed
@dyoshikawa
dyoshikawa deleted the resolve-issue-3527-zcode-3-19-docs branch November 20, 2026 00:07
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