Repository navigation
docs(plugins): align permissions matrix with host behavior - #2024
Merged
Merged
Conversation
The matrix read as if each permission had its own default policy, with some prompting at first use, while the installer grants the declared set as a whole and no runtime path prompts again. The display copy table no longer matched the i18n catalogs, listed copy for permissions that have no catalog entry, and omitted eight that do. The dependency list also named only four of the contributions the host rejects without their permission. Record the current grant behavior, take the copy from the catalogs, complete the dependency and no-permission event lists, and add pi.net.websocket to the net.domains bound, in both the English and zh-CN documents. Related to vastsa#2000
vastsa
approved these changes
Oct 31, 2026
vastsa
left a comment
Owner
There was a problem hiding this comment.
已独立对照安装/更新授权、运行时 assertPermission、贡献校验、scenicThemes 显示过滤、事件通道和权限审核 UI。另逐项验证中英文文档的 48 项风险等级、38 条显示文案、7 个原始权限名回退与 SDK、PERMISSION_RISK 和语言包完全一致,未发现阻塞问题。
最新 main:e93d50efdecf2733bf8ded32ae6641e103b21c5c;已验证的 GitHub 合并候选:fa858cd3cd1619da82a49bb8a4f5b666c89cd591。diff --check、base ancestry、86 组中英配对、599 个文档页面、agent-policy sync、VitePress 生产构建及 GitHub Docs checks / Head contains latest base 全部通过。仅文档改动,应用 E2E 不适用。
Collaborator
|
Merged. Thanks! The permissions matrix is the highest-stakes document in the set, and you audited it against both the SDK permission definitions and the host-side |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related to #2000
P1 第 3 项:
13-plugin-permissions-matrix.md对照 SDK 权限定义与宿主权限检查。只改文档,中英文成对。检查的文档
docs/spec/07-plugins/13-plugin-permissions-matrix.mddocs/zh-CN/spec/07-plugins/13-plugin-permissions-matrix.md对照的代码
PLUGIN_PERMISSIONSPERMISSION_RISKassertPermission各调用点(plugin-runtime.ts)packages/i18n/src/locales/{en,zh-CN}/index.ts的plugins.permissions;permissionLabel、PluginDialogs.tsx、presentation.tsx已核对一致
PLUGIN_PERMISSIONS45 项一一对应(另含 3 个 legacyfs.*.workspace)。PERMISSION_RISK逐项一致(48 项,无差异)。assertPermission抽查一致(clipboard、shell、keyboard、session.*、models、usage、speech、project、net.websocket 等)。发现与修改
PLUGIN_PERMISSION_DENIED: missing grant for …;运行时没有首次使用确认,clipboard.*/shell.openExternal只调用assertPermissionnet.domains约束的出网路径未列 websocketmanifest.net.domains的主机拒绝连接;§2net.websocket行本身也这样写pi.net.websocketthemes、mcpServers、services、busscenicThemes缺ui.settings/ui.theme时只是 不显示appearance:changed、session:activated同样无需权限、走同一通道fs.read文档为 “Read the files it lists”,实际 “Read files”;net.fetch为 “Use the network”);5 条写了语言包里不存在的文案(ui.settings、session.import、session.*.own);缺 8 条语言包已有的权限(ui.panel、ui.microphone、clipboard.write、provider.register、provider.oauth、desktop.control、net.anyHost、session.autoTitle)发现但未在本 PR 处理
fs.*的声明范围,与 §7 验收第 2 条不符;7 个权限没有显示文案。这是代码问题,已另开 plugins: permission review lacks copy for 7 permissions and does not show fs scope #2023。§7 验收条件保持不变。agent.extension/renderer.extension/provider.register写的 “local imports and development plugins only in v1.1”:桌面宿主安装路径里没有找到对应限制(install.rs、marketplace.rs)。市场目录是否另有限制不在本仓库,无法核实,所以没改。验证
git diff --check通过upstream/mainc85251b