Repository navigation
fix(doctor): preserve allowlist entries for version-bound runtime plugins during stale config scan - #107285
Conversation
d8d66da to
4dac7f2
Compare
4dac7f2 to
11c6ac0
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Codex review: stale review; fresh review needed. Summary Next step Review history (21 earlier review cycles; latest 8 shown)
|
|
P2 fixed in commit 59ffa82 — restored codex to direct scanner expectation. Tests:
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 re-review |
…gins (codex) during stale config scan
…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.
Co-authored-by: hailory <[email protected]>
6543494 to
d94d20c
Compare
|
Merged via squash.
|
…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]>
…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]>
Related: #107226
What Problem This Solves
Fixes an issue where
openclaw doctor --fixcould remove thecodexplugin policy during the first update after Codex moved from the core package to the version-bound@openclaw/codexplugin. 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, andplugins.entriessurfaces. 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
[email protected]baseline upgraded to the candidate tarball;doctor --fixcompleted; the Codex allow entry survived; gateway/healthz,/readyz, and status probes passed on Testbox-through-Crabboxtbx_01kxj087x58p2wbsesy0gmyv38(Actions run).Exact PR head:
d94d20c2d45671b423332b972f729c32d7b7f141.