Skip to content

fix: keep legacy upgrade fixture plugin selections explicit - #165263

Merged
shakkernerd merged 1 commit into
mainfrom
fix/legacy-plugin-fixture
Oct 5, 2026
Merged

shakkernerd merged 1 commit into
mainfrom
fix/legacy-plugin-fixture

Conversation

@shakkernerd

@shakkernerd shakkernerd commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

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.allow after 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=1 took 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.

@clawsweeper

clawsweeper Bot commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: XS labels Oct 5, 2026
@shakkernerd
shakkernerd force-pushed the fix/legacy-plugin-fixture branch from 3f8c3dc to 22eaedf Compare October 5, 2026 02:00
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 5, 2026
@clawsweeper

clawsweeper Bot commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed October 4, 2026, 10:48 PM ET / October 5, 2026, 02:48 UTC (Revision 2).

ClawSweeper review

What this changes

The 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
Reviewed head: 22eaedf569650391fce37729581b69c1d92ed4b3

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The patch is focused and preserves strong assertions, with a relevant exact-head upgrade success and one unresolved validation result.
Proof confidence 🐚 platinum hermit (4/6) Not applicable: The ordinary contributor-proof gate is exempt for this MEMBER-authored PR. The exact-head 2026.6.34 published-CLI upgrade provides relevant after-fix evidence for fixture selection and DuckDuckGo recovery; 2026.9.2 retirement coverage remains incomplete pending failure attribution. Detailed job logs were inaccessible to the reviewer. No production stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The ordinary contributor-proof gate is exempt for this MEMBER-authored PR. The exact-head 2026.6.34 published-CLI upgrade provides relevant after-fix evidence for fixture selection and DuckDuckGo recovery; 2026.9.2 retirement coverage remains incomplete pending failure attribution. Detailed job logs were inaccessible to the reviewer. No production stored-data contract changes.
Evidence reviewed 7 items Pinned introduced change: The merge-base-to-head diff changes only fixture selection and DuckDuckGo setup ordering, plus focused authoring regressions. Strict installation, enablement, warning, hook-preservation, and retirement assertions remain intact.
Current main still needs the fix: The fetched-main source still derives the fallback allowlist from enabled inventory entries and enables bundled DuckDuckGo without first extending the allowlist. Local retrieval encountered unavailable blobs; the exact main source was successfully inspected through GitHub's contents API.
Regression coverage: The existing authoring test now distinguishes incidental default-enabled inventory from configured selections and excludes explicitly disabled entries. A separate case preserves an authored allowlist. The captured body reports that the original producer fails the selection assertion and the candidate passes all three cases, with 1.88 seconds wall time.
Findings None None.
Security None None.

How this fits together

The 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]
Loading

Before merge

  • Complete next step (P2) - Complete the original-harness comparison for the 2026.9.2 Doctor failure and record a passing exact-head upgrade cell or a policy-valid inherited-failure disposition before landing.
  • Add data-model compatibility proof - Confirm migration or upgrade compatibility proof before merge.
Agent review details

Security

None.

PR surface

Tests +12, Other +16. Total +28 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 12 0 +12
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 19 3 +16
Total 2 31 3 +28

Review metrics

None.

Stored data model

Persistent data-model change detected: migration/backfill/repair: scripts/e2e/lib/upgrade-survivor/legacy-operator-state.mjs, serialized state: scripts/e2e/lib/upgrade-survivor/legacy-operator-state.mjs. Confirm migration or upgrade compatibility proof before merge.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #165260
Summary: This PR is the explicit candidate fix for the linked fixture-selection bug.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Technical review

Best 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.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This is a bounded upgrade-fixture defect that creates unrelated plugin warnings and obscures intended recovery coverage.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The ordinary contributor-proof gate is exempt for this MEMBER-authored PR. The exact-head 2026.6.34 published-CLI upgrade provides relevant after-fix evidence for fixture selection and DuckDuckGo recovery; 2026.9.2 retirement coverage remains incomplete pending failure attribution. Detailed job logs were inaccessible to the reviewer. No production stored-data contract changes.

Evidence

What I checked:

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Attribute the 2026.9.2 Doctor failure through the original-harness comparison and record successful validation or a supported inherited-failure disposition.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (1 earlier review cycle)
  • reviewed 2026-10-05T02:05:22.869Z sha 22eaedf :: blocked before merge. :: none

@shakkernerd
shakkernerd merged commit bb12da4 into main Oct 5, 2026
138 of 139 checks passed
@shakkernerd
shakkernerd deleted the fix/legacy-plugin-fixture branch October 5, 2026 03:06
@shakkernerd

Copy link
Copy Markdown
Contributor Author

Fixed: legacy upgrade fixtures preserve authored plugin selections and enable DuckDuckGo without importing unrelated bundled defaults.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 5, 2026
…#165263)

Keep synthetic legacy upgrade plugin allowlists tied to authored selections and explicitly allow bundled DuckDuckGo before enabling it.

Fixes openclaw#165260.
RomneyDa pushed a commit that referenced this pull request Oct 5, 2026
Keep synthetic legacy upgrade plugin allowlists tied to authored selections and explicitly allow bundled DuckDuckGo before enabling it.

Fixes #165260.
RomneyDa pushed a commit that referenced this pull request Oct 5, 2026
Keep synthetic legacy upgrade plugin allowlists tied to authored selections and explicitly allow bundled DuckDuckGo before enabling it.

Fixes #165260.

(cherry picked from commit 3383c77)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: legacy upgrade fixture selects unused bundled plugins

1 participant