You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Global plugin availability is not project authorization
#1663
A global plugin view can be available before a project exists. That does not authorize its file and tool calls across every project. This fixed-commit source review explains why AI WorkDeck separates projectId=null from openProjectId, what still requires per-call membership checks, and what marketplace reviewers should test. PR tests are author-reported and were not rerun here.
Two contexts, not one overloaded identifier
A lawyer-desk plugin may need to accept intake before any matter exists, then later save a document into the matter currently open in the workbench. Those are different contexts. If one project identifier serves both purposes, a global calendar, clipboard, or intake view can accidentally become project-scoped—or a file operation can act on a scope the reviewer did not intend.
The implementation in PR #1644 separates those roles:
projectId describes the view's own scope. A global view keeps it null.
openProjectId identifies the named project currently open. It is null when none is open; the loose scratch workspace is not promoted into a named matter.
Only operations that genuinely concern project files or project tools receive openProjectId. In the cited implementation those are files.*, ui.openFile, and tools.invoke. Global behavior does not silently change its scope.
With no named project open, a file list can be empty and a tool call can still be refused. That is more useful than falling back to an arbitrary previous project. The review question becomes concrete: which identifier reached this call, under which permission, and what did the user see when no valid target existed?
Opening a different project is also a separate transition, not a hidden side effect of reading a file. ui.openWorkspace({projectId}) accepts a numeric project ID, checks it against the user's project list, and distinguishes forbidden from unavailable. The host opens only the calling plugin's declared workspace; a supplied plugin identity or URL is not trusted as a substitute. The navigation path is in pluginWorkspaceTabs.js, while the SDK contract and capability advertisement are in awd-plugin-sdk.js.
Plugins can inspect context.capabilities before using these newer contracts rather than assuming every host supports them. Capability detection is not a permission grant: per-call membership checks still decide whether a particular operation is allowed.
A marketplace review checklist
A global view keeps projectId=null while file and tool calls use the open named project.
Scratch and no-project states never become implicit project authorization.
Per-call membership checks remain in force; capability detection changes behavior only when the host advertises support.
Cross-project file_read / file_write consequences are visible in permissions and review notes.
Refusal, unavailable, and successful navigation are distinguishable outcomes, with no success message when navigation did not occur.
The fixed-contract tests are useful review entry points: global-view-project.test.mjs and workspace-opening.test.mjs. The PR reports SDK and frontend tests plus a live scenario; those results were not independently rerun for this note.
Release and evidence boundary
PR #1644 was merged at 2026-11-21T12:38:19Z as commit 68e8bbc5d0a12772d4537812bd93b0fff73f64c7. GitHub compare shows that merge commit is an ancestor of both v0.88.2 and the current v0.90.0 source release. This establishes source inclusion, not that every user has installed the release or that this note revalidated runtime behavior.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
A global plugin view can be available before a project exists. That does not authorize its file and tool calls across every project. This fixed-commit source review explains why AI WorkDeck separates
projectId=nullfromopenProjectId, what still requires per-call membership checks, and what marketplace reviewers should test. PR tests are author-reported and were not rerun here.Two contexts, not one overloaded identifier
A lawyer-desk plugin may need to accept intake before any matter exists, then later save a document into the matter currently open in the workbench. Those are different contexts. If one project identifier serves both purposes, a global calendar, clipboard, or intake view can accidentally become project-scoped—or a file operation can act on a scope the reviewer did not intend.
The implementation in PR #1644 separates those roles:
projectIddescribes the view's own scope. A global view keeps itnull.openProjectIdidentifies the named project currently open. It isnullwhen none is open; the loose scratch workspace is not promoted into a named matter.openProjectId. In the cited implementation those arefiles.*,ui.openFile, andtools.invoke. Global behavior does not silently change its scope.The relevant wiring is visible in the fixed-commit
PluginPane.vueandproject-overview.vue.Failure should be inspectable
With no named project open, a file list can be empty and a tool call can still be refused. That is more useful than falling back to an arbitrary previous project. The review question becomes concrete: which identifier reached this call, under which permission, and what did the user see when no valid target existed?
Opening a different project is also a separate transition, not a hidden side effect of reading a file.
ui.openWorkspace({projectId})accepts a numeric project ID, checks it against the user's project list, and distinguishes forbidden from unavailable. The host opens only the calling plugin's declared workspace; a supplied plugin identity or URL is not trusted as a substitute. The navigation path is inpluginWorkspaceTabs.js, while the SDK contract and capability advertisement are inawd-plugin-sdk.js.Plugins can inspect
context.capabilitiesbefore using these newer contracts rather than assuming every host supports them. Capability detection is not a permission grant: per-call membership checks still decide whether a particular operation is allowed.A marketplace review checklist
projectId=nullwhile file and tool calls use the open named project.file_read/file_writeconsequences are visible in permissions and review notes.The fixed-contract tests are useful review entry points:
global-view-project.test.mjsandworkspace-opening.test.mjs. The PR reports SDK and frontend tests plus a live scenario; those results were not independently rerun for this note.Release and evidence boundary
PR #1644 was merged at 2026-11-21T12:38:19Z as commit
68e8bbc5d0a12772d4537812bd93b0fff73f64c7. GitHub compare shows that merge commit is an ancestor of both v0.88.2 and the current v0.90.0 source release. This establishes source inclusion, not that every user has installed the release or that this note revalidated runtime behavior.Repository: https://github.com/AI-WorkDeck/aiworkdeck
All reactions