Repository navigation
fix(plugins): retain existing quarantine across unrelated reloads - #157907
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: blocked before merge. Reviewed September 25, 2026, 2:02 AM ET / 06:02 UTC (Revision 2). ClawSweeper reviewWhat this changesThe branch lets an unchanged failure from an already quarantined plugin remain visible without blocking an unrelated plugin reload, and adds a loader regression test. Merge readiness⛔ Blocked before merge - 2 items remain Keep open. Current main still rejects this unrelated plugin replacement, and the branch provides a focused fix with no definite code defect found. The remaining merge work is the repository-required published-driver check and measured test-cost reporting. Priority: P2 Review scores
Verification
How this fits togetherGateway plugin reload builds a replacement registry from plugin configuration and the previous runtime registry. The loader decides which failures reject publication; the Gateway then applies healthy registrations and reports plugin errors. flowchart TD
A[Plugin configuration change] --> B[Gateway reload request]
B --> C[Build replacement registry]
D[Previous plugin registry] --> E[Compare plugin failures]
C --> E
E --> F[Reject new or targeted failure]
E --> G[Publish healthy reload and retain quarantine]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +18, Tests +68. Total +86 across 3 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: An existing quarantine should remain visible and unexecutable while an unrelated healthy plugin reload publishes; a direct retry of the quarantined plugin should still reject. Do we have a high-confidence way to reproduce the issue? Yes. The contributor reports a failing isolated baseline test on unmodified main, and current main's strict-load rule explains that failure; this read-only review did not rerun it. Is this the best way to solve the issue? Yes. The strict-load decision belongs in the plugin loader, and the comparison preserves rejection of targeted or changed failures without executing quarantined code. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 1976a166443f. 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)
|
|
Merged via squash.
|
…4-prep * commit '8fe893da516ebdc817692fb2d272e27bc3c88376': (31 commits) fix(test): wait for reload admission before restart polling (#157964) refactor(mattermost): reuse DM retry option selection (#157800) chore(i18n): refresh native locales (#157850) perf(sessions): reuse current participants across transcript appends (#157622) refactor(signal): share pending transport migration results (#157777) fix(tui): open model pickers without waiting for the Gateway (#157839) fix(gateway): apply config despite delayed file notifications (#157906) fix(auth): clear deleted account selections and support account recovery (#157745) fix: plugin reloads lose tool results and strand subagent settlement (#157339) fix(gateway): avoid preview errors during worker metadata updates (#157943) refactor(diffs): reuse native promisify for compression (#157835) fix(models): keep current choices on the first picker page (#157869) fix(plugins): retain existing quarantine across unrelated reloads (#157907) fix(openai): prioritize ChatGPT sign-in and clarify auth choices (#157792) chore(ui): refresh control ui locales (#157955) fix(ui): refresh connected accounts after auth changes (#157950) fix(scripts): avoid redundant npm version process in package checks (#157809) refactor(usage): capture hosted pricing once per operation (#157838) refactor(ui): share slash-command failure results (#157649) fix(cron): announce runs miss the channel's formatting rules (#157877) ...
What Problem This Solves
Enabling UI Kitchen Sink on a work Gateway was rejected during
preparewithplugin load failed: composio: configured plugin payload verification failed (missing-openclaw-peer-link). Composio was already quarantined; its plugin-localopenclawsymlink targeted a different checkout than the running Gateway. The full-registry replacement re-evaluated that same error and treated it as a newly failed plugin, blocking an unrelated action.Fix
Strict replacement loading compares a re-evaluated failure against the previous registry's plugin source, failure phase, and message. An unchanged failure stays visible but does not veto an unrelated replacement. A requested plugin replacement or genuinely new/different failure still rejects. No quarantine, verification, or repair path is bypassed; Composio remains unavailable until its host link is repaired and the intended Gateway is restarted/reloaded.
Evidence
prepareby Composio'smissing-openclaw-peer-link, generation 26 not applied. Read-only inspection confirmed the Composio symlink pointed to the launcher checkout while the listening Gateway process used a separate checkout;/healthzreturned HTTP 200. The OCM supervisor separately reports a port-family collision with that process. Subsequent authorized work-Gateway repair is documented below.main):node scripts/run-vitest.mjs src/plugins/loader.runtime-registry.test.ts -t 'does not reject an unrelated replacement'failed withPluginLoadFailureError: plugin load failed: startup-quarantined: configured plugin payload verification failed (missing-openclaw-peer-link)atloader-shared.ts:434.codex review --uncommitted: no actionable regression. A patched runtime was not deployed towork.Scope and risk
Owner: plugin loader strict-failure policy. Production delta: +22/-4 lines (net +18); test delta +68. The extra comparison preserves existing behavior for first-time failures and explicit target reloads, while handling a previously quarantined sibling whose load inputs change. No configuration, storage, protocol, or SDK changes; no old runtime path retained.
After-fix runtime proof
ocm @work -- plugins enable ui-kitchen-sinkexited 0, the persisted entry becameenabled: true, Gateway logs recordedconfig hot reload applied (plugins.entries.ui-kitchen-sink.enabled), and/healthzreturned 200. This repairs the user's machine independently of the PR; the older work runtime has not been upgraded to this patch.node_modules/openclawlink. Startup reportedmissing-openclaw-peer-linkand reached/readyz200. An unrelatedplugins.setEnabledRPC returnedok: true, restartRequired: false, generation: 5; Gateway loggedPlugin replacement applied: healthy-targetandconfig hot reload applied (plugins.entries.healthy-target). The invalid peer remained a real directory after the operation. The focused red/green loader regression additionally asserts that the quarantined record remains an error and cannot execute, while the healthy replacement loads. These are disposable fixture IDs and paths; no work-state data was copied into this proof.[email protected]npm CLI in a separate driver state with a disposable shared token for the isolated candidate. It dispatchedplugins.setEnabledforhealthy-targetfalse and true; both returnedok: true, restartRequired: false(generations 3 and 4). The candidate logged bothPlugin replacement applied: healthy-targetandconfig hot reload applied;/healthzreturned 200 and the quarantined plugin's invalid peer remained a real directory. An initial auth-none probe stopped atNOT_PAIRED; token auth allowed the published CLI to reach the real RPC without weakening device policy.