Repository navigation
fix(plugins): reject cyclic marketplace aliases at their owner - #117440
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 1, 2026, 10:18 AM ET / 14:18 UTC. ClawSweeper reviewWhat this changesThe PR makes plugin marketplace alias resolution iterative, returns a deterministic cycle error instead of recursing indefinitely, and adds listing/install regressions. Merge readinessKeep this maintainer-labeled PR open for normal landing review. Current Priority: P2 Review scores
Verification
How this fits togetherThe plugin marketplace resolver turns CLI marketplace names and Claude registry aliases into a local marketplace manifest or a remote clone. Marketplace list and install commands consume that result, with installation then applying the existing plugin install-policy checks. flowchart LR
A[Marketplace CLI input] --> B[Marketplace resolver]
C[Known marketplace registry] --> B
B --> D{Alias cycle?}
D -->|Yes| E[Actionable error]
D -->|No| F[Local manifest or remote clone]
F --> G[Marketplace list]
F --> H[Plugin installation policy]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +12, Tests +162. Total +174 across 2 files. View PR surface stats
Review metricsNone. Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep one iterative, snapshot-based alias resolver in Do we have a high-confidence way to reproduce the issue? Yes, by source inspection: current main recursively reloads a normalized registry alias with no visited set, and the PR’s bounded self-cycle and two-node fixtures directly exercise list and install paths. This read-only review did not run the tests because they create temporary test artifacts. Is this the best way to solve the issue? Yes. Alias traversal belongs in the shared marketplace loader, so snapshot-based iterative detection fixes both callers without introducing a timeout, fallback, or command-specific workaround. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against a172857acc75. 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
|
|
Merged via squash.
|
…up-ownership-20260801 * origin/main: fix(gateway): trim audit.list exact-match filter ids (openclaw#110847) fix: harden plugin import-boundary guards and remove dead scanner (openclaw#117386) fix(ci): keep PTY tests observable and wait for completed turns (openclaw#117405) fix(plugins): resolve marketplace aliases without recursive cycles (openclaw#117440) fix: break command recovery import cycle (openclaw#116947) fix: clear offscreen command recovery fix: fence command recovery ownership fix: scope failed command recovery fix(plugins): fail closed on ambiguous uninstall targets (openclaw#117406)
…penclaw#117440) Co-authored-by: Peter Steinberger <[email protected]>
…up-ownership-20260801 * origin/main: fix(gateway): trim audit.list exact-match filter ids (openclaw#110847) fix: harden plugin import-boundary guards and remove dead scanner (openclaw#117386) fix(ci): keep PTY tests observable and wait for completed turns (openclaw#117405) fix(plugins): resolve marketplace aliases without recursive cycles (openclaw#117440) fix: break command recovery import cycle (openclaw#116947) fix: clear offscreen command recovery fix: fence command recovery ownership fix: scope failed command recovery fix(plugins): fail closed on ambiguous uninstall targets (openclaw#117406)
What Problem This Solves
A self-referential or cyclic entry in Claude's documented known-marketplace registry makes OpenClaw recursively reread the registry forever. Both marketplace listing and plugin installation hang; installation also retains the shared plugin-lifecycle mutation lease while the operation never settles.
Why This Change Was Made
The marketplace loader owns alias resolution. Resolve aliases iteratively against one registry snapshot, track per-call visited marketplace identities, and return a deterministic actionable cycle diagnostic. This removes recursive loading and redundant registry reads while preserving installed-local-marketplace precedence, source labels, malformed-source fallback, transport trust, cleanup, and independent root calls.
User Impact
openclaw plugins marketplace list <name>, explicitplugins install --marketplace <name>, and Claude-style<plugin>@<marketplace>installation now fail promptly with the actual alias chain instead of hanging. Existing valid marketplaces and remote-install safety rules retain their behavior.Evidence
e7114c0f1f5dd26aca9194317815cf5283191b1c; parentfb9c8e74e61977835d811f2855ca2b134d549c4f.git diff --checkall pass on the exact two changed files.