Repository navigation
fix: keep legacy upgrade fixture plugin selections explicit - #165263
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. |
3f8c3dc to
22eaedf
Compare
|
Codex review: blocked before merge. Reviewed October 4, 2026, 10:48 PM ET / October 5, 2026, 02:48 UTC (Revision 2). ClawSweeper reviewWhat this changesThe PR limits synthetic upgrade-fixture plugin selections to authored configuration, preserves existing allowlists, and allows DuckDuckGo before enabling it. Merge readiness⛔ Blocked before merge - 2 items remain The focused fix remains necessary on current main, and no introduced correctness defect was found. The recorded 2026.6.34 upgrade succeeds; the 2026.9.2 failure still needs attribution before landing. Priority: P2 Review scores
Verification
How this fits togetherThe upgrade-survivor harness authors synthetic operator state with a published OpenClaw CLI, then upgrades that installation to the candidate. Its assertions check plugin recovery, retired-plugin cleanup, and preservation of operator configuration. flowchart TD
A[Published OpenClaw CLI] --> B[Synthetic operator configuration]
B --> C[Preserve authored plugin selections]
C --> D[Allow and enable DuckDuckGo]
D --> E[Upgrade to candidate]
E --> F[Validate recovery and retirement]
Before merge
Agent review detailsSecurityNone. PR surfaceTests +12, Other +16. Total +28 across 2 files. View PR surface stats
Review metricsNone. Stored data modelPersistent data-model change detected: Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest possible solution: Keep fixture selections faithful to authored operator configuration while retaining strict published-driver upgrade and retirement checks. Do we have a high-confidence way to reproduce the issue? Yes, source establishes that the old fixture converts default-enabled inventory into explicit plugin selections; the linked published-upgrade failure and reported pre-fix regression corroborate that mechanism. No tests were executed during this read-only review. Is this the best way to solve the issue? Yes, repairing the synthetic input producer is the narrowest solution and preserves the candidate's strict recovery assertions rather than weakening validation. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against d4ce3b2f33d4. LabelsLabel changes: No label 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)
|
|
Fixed: legacy upgrade fixtures preserve authored plugin selections and enable DuckDuckGo without importing unrelated bundled defaults. |
…#165263) Keep synthetic legacy upgrade plugin allowlists tied to authored selections and explicitly allow bundled DuckDuckGo before enabling it. Fixes openclaw#165260.
Keep synthetic legacy upgrade plugin allowlists tied to authored selections and explicitly allow bundled DuckDuckGo before enabling it. Fixes #165260.
Fixes #165260
What Problem This Solves
The 2026.6.34 legacy-operator upgrade fixture creates an explicit plugin allowlist from every enabled plugin in the old bundle. After an upgrade, that list references unused providers that are now external packages, so the strict warning-free validation fails even though configured DuckDuckGo recovery succeeded.
User Impact
Restores focused upgrade coverage for authored plugin selections, Webhooks retirement, and DuckDuckGo recovery. This changes the synthetic fixture and its authoring tests.
Why This Change Was Made
When the fixture has no authored allowlist, derive its initial entries from configured, non-disabled plugins. Preserve an existing allowlist and keep the Webhooks allow/deny specimen intact.
The bundled DuckDuckGo setup also adds its selected ID through the published config CLI before enabling it. The 6.34 CLI logs an allowlist refusal without a failing exit status, so enabling first would silently leave the plugin blocked. The installed-version, enablement, warning-free validation, hook-preservation, and retirement assertions remain strict.
Evidence
The original published-upgrade failure reports eleven unused provider references in
plugins.allowafter the DuckDuckGo checks passed. The existing authoring test now distinguishes a default-enabled inventory entry from configured selections and separately verifies preservation of an authored list.On the Cloud Mac (Node 24.21.0, pnpm 12.5.1), this unchanged patch passed focused formatting/type-aware lint and the affected script-test type partition. The pre-fix producer fails the new selection assertion; restoring the candidate passes all three cases.
pnpm test test/scripts/upgrade-survivor-webhooks.test.ts --maxWorkers=1took 1.88 seconds wall time (455 ms in Vitest). The test adds one small authored-list case and no CI job. Source review and repository autoreview are clean.The exact-head 2026.6.34 legacy-operator scenario passed in 718 seconds, including strict plugin validation, the mock-provider turn, no-op update, and final Doctor checks.
The 2026.9.2 scenario failed earlier during candidate Doctor: update rehearsal rejected ownership or links on a copied Discord native dependency. The original-harness control reproduced the identical refusal using the same package and all 43 byte-matched plugin artifacts on the same Ubuntu runner image. Both runs passed the baseline CLI/loopback turn and policy capture before that failure. The separate policy fixture and all its assertions are unchanged. This is a qualified inherited failure; full 9.2 acceptance remains failed, and the exact rejected filesystem property remains unresolved. The admission guard is unchanged. Both scenarios use existing loopback fixtures; no live provider or channel tests are selected.