Skip to content

fix(doctor): preserve allowlist entries for version-bound runtime plugins during stale config scan - #107285

Merged
steipete merged 6 commits into
openclaw:mainfrom
xydt-tanshanshan:fix/preserve-allowlist-version-bound-107226-clean
Jul 15, 2026
Merged

steipete merged 6 commits into
openclaw:mainfrom
xydt-tanshanshan:fix/preserve-allowlist-version-bound-107226-clean

Conversation

@xydt-tanshanshan

@xydt-tanshanshan xydt-tanshanshan commented Jul 14, 2026 •

Copy link
Copy Markdown
Contributor

Related: #107226

What Problem This Solves

Fixes an issue where openclaw doctor --fix could remove the codex plugin policy during the first update after Codex moved from the core package to the version-bound @openclaw/codex plugin. That removal left existing Codex-backed agents unable to register their harness.

Why This Change Was Made

The canonical configured-runtime install catalog now marks host-version-bound plugins. During the transient gap between the core package swap and companion-plugin convergence, doctor preserves those plugins on policy-bearing plugins.allow, plugins.deny, and plugins.entries surfaces. Preview diagnostics use the same policy classification, while unrelated stale slots, channels, and dependent config still repair normally.

Gateway readiness semantics are intentionally unchanged; issue #107226 remains open for that separate product decision.

User Impact

Existing Codex policy survives routine updates and doctor repair. Users do not need to reconstruct the allowlist manually, and explicit deny/disabled policy is not lost while the external package is temporarily absent.

Evidence

  • Focused doctor and upgrade-harness tests: 171 passed across six files on Testbox-through-Crabbox.
  • Current-tree doctor, preview-warning, and repair-sequencing tests: 81 passed.
  • Policy-surface regression tests: 36 passed, covering allow, deny, disabled entries, and continued stale-slot cleanup (Actions run).
  • Packaged upgrade E2E: exact published [email protected] baseline upgraded to the candidate tarball; doctor --fix completed; the Codex allow entry survived; gateway /healthz, /readyz, and status probes passed on Testbox-through-Crabbox tbx_01kxj087x58p2wbsesy0gmyv38 (Actions run).
  • Build/package integrity completed inside the packaged upgrade lane.
  • Exact-head CI passed (Actions run).
  • Fresh full-branch autoreview on the final patch: no accepted/actionable findings.

Exact PR head: d94d20c2d45671b423332b972f729c32d7b7f141.

@xydt-tanshanshan

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Jul 14, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. P1 High-priority user-facing bug, regression, or broken workflow. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. labels Jul 14, 2026
@clawsweeper

clawsweeper Bot commented Jul 14, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: stale review; fresh review needed.

Summary
The latest durable ClawSweeper review was for head 6543494a42c39e53089c1af2bb19006c92e02d59, but the PR head is now d94d20c2d45671b423332b972f729c32d7b7f141. Its old verdict and PR readiness labels are no longer current.

Next step
Run or wait for a fresh ClawSweeper review on the current PR head.

Review history (21 earlier review cycles; latest 8 shown)
  • reviewed 2026-07-14T22:37:56.480Z sha 11c6ac0eb32e5187a1e19abafa2b0223eecc7ac1 :: needs real behavior proof before merge. :: [P2] Preserve version-bound IDs only for allowlist findings | [P2] Restore Codex to the direct scanner expectation
  • reviewed 2026-07-14T22:56:21.476Z sha 11c6ac0eb32e5187a1e19abafa2b0223eecc7ac1 :: needs real behavior proof before merge. :: [P2] Scope version-bound preservation to allowlist findings | [P2] Restore Codex to the direct scanner expectation
  • reviewed 2026-07-14T23:12:53.704Z sha 11c6ac0eb32e5187a1e19abafa2b0223eecc7ac1 :: needs real behavior proof before merge. :: [P2] Limit version-bound preservation to allowlist findings | [P2] Restore Codex to the direct scanner expectation
  • reviewed 2026-07-14T23:29:54.514Z sha 11c6ac0eb32e5187a1e19abafa2b0223eecc7ac1 :: needs real behavior proof before merge. :: [P2] Scope version-bound preservation to allowlist findings | [P2] Keep Codex in the direct scanner expectation
  • reviewed 2026-07-15T00:02:07.850Z sha 11c6ac0eb32e5187a1e19abafa2b0223eecc7ac1 :: needs real behavior proof before merge. :: [P2] Limit version-bound preservation to allowlist findings | [P2] Restore Codex to the direct scanner expectation
  • reviewed 2026-07-15T01:38:49.811Z sha 05ec7037e3828af06b0620617a89ce66d1cc18be :: needs real behavior proof before merge. :: [P2] Preserve version-bound IDs only on the allowlist surface
  • reviewed 2026-07-15T02:41:51.631Z sha 18d3983a2afda5b21144ebf4b5633819c31ca846 :: needs real behavior proof before merge. :: none
  • reviewed 2026-07-15T03:54:13.433Z sha 18d3983a2afda5b21144ebf4b5633819c31ca846 :: needs real behavior proof before merge. :: none

@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Jul 14, 2026
@xydt-tanshanshan

Copy link
Copy Markdown
Contributor Author

P2 fixed in commit 59ffa82 — restored codex to direct scanner expectation. Tests:

Suite Result
stale-plugin-config.test.ts 18/18 ✅
repair-sequencing.test.ts 16/16 ✅
doctor-config-flow.test.ts 40/41 ✅ (1 unrelated Node SQLite env)

P1 evidence: the repair-sequencing integration test at src/commands/doctor/repair-sequencing.test.ts:986 verifies that preservePluginIds receives ["brave", "codex"] (line 989) and ["whatsapp", "codex"] (line 1084), proving the VERSION_BOUND_RUNTIME_PLUGIN_IDS propagation through the full runDoctorRepairSequence function.

A complete upgrade-to-agent-turn proof would require a real gateway restart; the bounded preservation (allowlist entry survives until release backfill install) is verified at the config mutation boundary.

@clawsweeper re-review

@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. P0 Emergency: data loss, security bypass, crash loop, or unusable core runtime. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. P1 High-priority user-facing bug, regression, or broken workflow. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Jul 14, 2026
@xydt-tanshanshan

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui gateway Gateway runtime plugin: workspaces Agent-composable Workspaces plugin size: XL and removed size: M labels Jul 15, 2026
hailory and others added 6 commits July 15, 2026 01:01
…epair-sequencing

Scanner now flags codex in plugins.allow as stale so diagnostics are visible.
Repair-sequencing preserves the entry via preservePluginIds which already
includes VERSION_BOUND_RUNTIME_PLUGIN_IDS.
… surface only

ClawSweeper P2: VERSION_BOUND_RUNTIME_PLUGIN_IDS was applied globally
across all stale config surfaces (deny, entries, slots, channels, etc.),
but only plugins.allow needs preservation. Move to a surface-scoped
parameter surfacePreservePluginIds so codex is preserved only in allow.
@steipete
steipete force-pushed the fix/preserve-allowlist-version-bound-107226-clean branch from 6543494 to d94d20c Compare July 15, 2026 05:03
@openclaw-barnacle openclaw-barnacle Bot added size: M and removed docs Improvements or additions to documentation channel: discord Channel integration: discord app: web-ui App: web-ui gateway Gateway runtime plugin: workspaces Agent-composable Workspaces plugin size: XL labels Jul 15, 2026
@clawsweeper clawsweeper Bot removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Jul 15, 2026
@steipete
steipete merged commit f638cbd into openclaw:main Jul 15, 2026
128 of 136 checks passed
@steipete

Copy link
Copy Markdown
Contributor

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 15, 2026
…gins during stale config scan (openclaw#107285)

* fix(doctor): preserve allowlist entries for version-bound runtime plugins (codex) during stale config scan

* fix(doctor): restore codex to scanner stale expectation, protect at repair-sequencing

Scanner now flags codex in plugins.allow as stale so diagnostics are visible.
Repair-sequencing preserves the entry via preservePluginIds which already
includes VERSION_BOUND_RUNTIME_PLUGIN_IDS.

* fix(doctor): scope version-bound runtime plugin preservation to allow surface only

ClawSweeper P2: VERSION_BOUND_RUNTIME_PLUGIN_IDS was applied globally
across all stale config surfaces (deny, entries, slots, channels, etc.),
but only plugins.allow needs preservation. Move to a surface-scoped
parameter surfacePreservePluginIds so codex is preserved only in allow.

* fix(doctor): harden version-bound allowlist repair

* fix(doctor): retain version-bound plugin policy

* fix(doctor): align version-bound plugin diagnostics

Co-authored-by: hailory <[email protected]>

---------

Co-authored-by: hailory <[email protected]>
Co-authored-by: Peter Steinberger <[email protected]>
zooqueen pushed a commit to zooqueen/openclaw that referenced this pull request Sep 11, 2026
…gins during stale config scan (openclaw#107285)

* fix(doctor): preserve allowlist entries for version-bound runtime plugins (codex) during stale config scan

* fix(doctor): restore codex to scanner stale expectation, protect at repair-sequencing

Scanner now flags codex in plugins.allow as stale so diagnostics are visible.
Repair-sequencing preserves the entry via preservePluginIds which already
includes VERSION_BOUND_RUNTIME_PLUGIN_IDS.

* fix(doctor): scope version-bound runtime plugin preservation to allow surface only

ClawSweeper P2: VERSION_BOUND_RUNTIME_PLUGIN_IDS was applied globally
across all stale config surfaces (deny, entries, slots, channels, etc.),
but only plugins.allow needs preservation. Move to a surface-scoped
parameter surfacePreservePluginIds so codex is preserved only in allow.

* fix(doctor): harden version-bound allowlist repair

* fix(doctor): retain version-bound plugin policy

* fix(doctor): align version-bound plugin diagnostics

Co-authored-by: hailory <[email protected]>

---------

Co-authored-by: hailory <[email protected]>
Co-authored-by: Peter Steinberger <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

commands Command implementations P0 Emergency: data loss, security bypass, crash loop, or unusable core runtime. scripts Repository scripts size: M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants