Repository navigation
fix(plugins): keep inventory available without a system owner - #123378
fuller-stack-dev merged 6 commits into
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 13, 2026, 9:17 PM ET / August 14, 2026, 01:17 UTC. ClawSweeper reviewWhat this changesThe PR makes plugin inventory and managed-plugin operations return shared-scope results with a warning when an explicit multi-agent installation has no configured system owner. Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readinessKeep open for human maintainer review: this MEMBER-authored, Priority: P2 Review scores
Verification
How this fits togetherPlugin control-plane commands assemble bundled, managed, global, and workspace plugins for CLI and management operations. Agent configuration determines whether workspace-scoped discovery can safely enrich that shared inventory and persisted index. flowchart LR
Config[Agent configuration] --> Resolver[Workspace ownership resolver]
Explicit[Explicit workspace argument] --> Resolver
Resolver --> Decision{Owner proven?}
Decision -->|yes| Workspace[Workspace plugin discovery]
Decision -->|no| Shared[Shared plugin inventory]
Workspace --> Index[Persisted plugin index]
Shared --> Warning[Partial-scope warning]
Index --> CLI[CLI and management results]
Warning --> CLI
Decision needed
Why: This PR changes compatibility-sensitive workspace selection and persisted index state, and this review worker could not independently inspect the source or exact merged head. Before merge
Agent review detailsSecurityNone. PR surfaceSource +168, Tests +392, Generated +1. Total +561 across 33 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Have a maintainer with a working checkout verify the exact head’s ownerless, explicit-workspace, sole/legacy, and upgrade/self-heal paths before deciding whether to merge. Do we have a high-confidence way to reproduce the issue? Unclear. The PR supplies a concrete ownerless multi-agent built-CLI scenario, but the review sandbox failed before it could inspect or run the current checkout. Is this the best way to solve the issue? Unclear. A single ownership resolver and scope-aware persisted index appear directionally appropriate, but exact-head callers and sibling runtime behavior were not available for independent comparison. AGENTS.md: unclear because the file could not be read completely. Codex review notes: model internal, reasoning high; reviewed against 4fcac7415d52. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
Maintainer verification for the ClawSweeper review at exact head
Maintainer decision: the compatibility and persisted-scope boundaries are directly verified and acceptable for merge. The optional Rank-up transcript is intentionally skipped because public session-log insertion requires separate explicit approval; the PR body and this comment carry the reproducible command-level evidence instead. |
|
Maintainer owner decision on reviewed head |
|
Merged via squash.
|
…aw#123378) * fix(plugins): degrade inventory without system owner * fix(plugins): keep workspace resolver internals private * fix(plugins): align workspace persistence compatibility
What Problem This Solves
Fixes an issue where plugin inventory, registry refresh, and install post-processing failed when an explicit multi-agent installation had no configured system owner. A local plugin could be copied into managed storage and then removed by compensation because ambient reporting tried to select an agent workspace.
Why This Change Was Made
Plugin control-plane inventory now uses one ownership resolver: preserve an explicit workspace, otherwise prefer
agents.defaults.systemAgent.agentId, retain sole/legacy compatibility, and omit workspace discovery when no owner can be proved. Ownerless results still inventory bundled, managed, and global plugins, carry an actionableworkspace-scope-omittedwarning, and never select the first roster entry.The persisted installed-plugin index records the exact selected
workspace_dirin one same-version nullableTEXTcolumn. This fences cached workspace plugins from another owner while allowing a later system-owner configuration to refresh and self-heal workspace discovery. No schema-version bump is required.User Impact
Operators can list, refresh, and install shared-scope plugins before assigning a system owner. Human and JSON output make the partial workspace scope visible. Configuring a system owner later restores that owner's workspace plugins on the next refresh. Explicit workspace callers and sole/legacy installations keep their existing behavior.
Evidence
f66a2c6a2944: ownerlessplugins list --jsonandplugins registry --refresh --jsonboth exit 1 with owner selection. Local install copies the plugin, then exits 1, removes the managed directory, and persists empty install/plugin records.pnpm build: passed, including 35 built plugin control-plane module checks, SDK exports, and Control UI build.pnpm tsgo:core,pnpm db:kysely:check,pnpm lint:kysely, type-aware focused oxlint, oxfmt, andgit diff --check: passed.Production delta: +214/-46 (net +168). Test and test-support delta: +418/-25. The production growth owns the central resolution/diagnostic contract and the persisted cross-agent scope fence; the redundant persisted scope column was removed before publication.