Repository navigation
fix(codex): keep healthy apps available when plugins are missing - #150255
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review in progressClawSweeper is reviewing this revision. This supersedes any previous blocked status. |
|
Codex review: needs real behavior proof before merge. Reviewed September 18, 2026, 11:04 AM ET / 15:04 UTC (Revision 11). ClawSweeper reviewWhat this changesThe PR excludes missing Codex plugins from runtime policy while preserving saved settings, healthy apps, diagnostics, and later discovery. Merge readiness⛔ Blocked before merge - 4 items remain The replacement implements the explicitly requested contract without a demonstrated introduced defect. Current main still needs this change. Earlier findings tied to the removed overlays and recovery machinery no longer apply, but the replacement needs scoped native authorization and upgrade proof. Priority: P2 Review scores
Verification
How this fits togetherOpenClaw’s Codex plugin combines saved plugin preferences with native marketplace and account-app inventory. It produces thread configuration and approval context that determine which connected apps a conversation can use. flowchart TD
A[Saved plugin settings] --> C[Resolve native inventory]
B[Codex marketplace and app inventory] --> C
C --> D{Plugin found?}
D -->|No| E[Log error and retain saved settings]
D -->|Yes| F[Apply resolved plugin restrictions]
E --> G[Apply account app policy]
F --> H[Native thread and approval checks]
G --> H
Before merge
Agent review detailsSecurityNone. PR surfaceSource +13, Tests +142, Docs +7. Total +162 across 5 files. View PR surface stats
Review metricsNone. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the inventory-owned simplification and establish native authorization and existing-binding upgrade safety without restoring the superseded permission overlays. Do we have a high-confidence way to reproduce the issue? Yes, from source: with account-wide apps enabled, a missing configured plugin reaches main's unresolved-ownership guard and suppresses account apps. No target code was executed during this read-only review. Is this the best way to solve the issue? Yes, the inventory owner is the narrowest place to separate discovery requests from resolved runtime policy; the stated contract resolves the earlier policy disagreement. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against cb4d0357c84e. 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 (10 earlier review cycles; latest 8 shown)
|
279e7d9 to
bfb6995
Compare
|
@clawsweeper re-review The PR description now includes six passing live connector/policy scenarios and 117 passing plugin configuration/inventory regression tests for head |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
Retain the strictest missing-plugin action policy for account apps with unknown ownership while preserving proven configured app permissions. Refresh existing bindings and cover absent or mismatched owner names. ClawSweeper request: #150255 (comment)
|
The unresolved restrictive-policy finding is addressed in c5401dd. Account apps with unknown ownership now retain the strictest global or missing-plugin action restriction. Proven configured apps retain their own permissions. The same effective policy is written to native configuration and the persisted approval context; the input fingerprint changes so existing bindings rebuild. The regression matrix covers absent/mismatched ownership names for missing plugins and marketplaces under auto, false, and ask policies. Focused execution is in progress; the PR description distinguishes earlier evidence from this follow-up. |
|
@clawsweeper re-review The permission-preservation follow-up is now pushed and tested: c5401dd. All 214 focused configuration, inventory, and approval-bridge tests passed, including the 12-case missing-entry permission matrix. The PR description has the current evidence and distinguishes the earlier live scenarios from this follow-up. Please review the fix and identify any remaining concrete blockers. Review only; no autofix or automerge. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
Keep the permission matrix in a focused sibling suite and share its existing fixtures to satisfy the line-cap ratchet. ClawSweeper request: #150255 (comment)
|
@clawsweeper re-review The previous request reports that its result was superseded by the test-file split. Please review current head |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
Project explicit writable-tool denials into conversation configuration and refresh restrictions before replay. Preserve read-tool and saved settings; fail closed when tool metadata cannot establish a safe read-only subset. ClawSweeper request: #150255 (comment)
|
@clawsweeper re-review Updated the PR body with real-native recovery and revocation evidence for the production code at e830921 (identical production code at current head 25ea6c6). The first loaded-thread policy rebuild recovered a real Drive fetch after fallback context passed through JSON serialization and the production stored-binding parser. The exact write key remained disabled despite permissive saved settings. Revoking native app access after fallback caused the first rebuild to exclude the app; its native turn made zero connector calls. Saved layers were restored exactly. The body explicitly describes the harness boundary rather than claiming whole-transport fault injection. Fresh conversation checks on the deployed production revision also passed Calendar/Drive reads under false and ask, write-tool unavailability under false, and pending-to-expired approval under ask before connector execution. Original tenant and native settings were restored with version checks and exact readback. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
Replace review-driven permission overlays and metadata recovery with the requested separation between saved configuration and resolved runtime plugins. Keep error diagnostics and normal rediscovery without applying missing-entry restrictions to other apps.
|
@clawsweeper re-review The requested product contract has changed explicitly: keep unresolved plugin entries in saved settings, but omit them from effective runtime plugin policy. A missing plugin or marketplace is not a runtime authority and its per-plugin restrictions must not affect other apps. Those apps follow the existing account-wide policy or their own resolved plugin policy. Found administrator-disabled plugins keep their existing handling. The prior permission-overlay and persisted metadata-recovery implementation has been reverted. The replacement filters missing identities at inventory output and uses that resolved policy at both ownership checks. Saved settings remain untouched and normal discovery can resolve the entry later. This is an intentional contract change, not an attempt to retain the earlier unresolved-restriction behavior. At c0a4ed1, all 137 focused inventory and thread-policy tests pass, including nine new missing-entry cases. The PR body is rewritten for this five-file implementation; older live proof is not claimed for the replacement. Please review against this explicit scope and contract. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review Please review current head f86cf32. The previous request was marked superseded after the final test-style commit; production behavior is unchanged from that request. The explicit product contract remains: missing plugin/marketplace entries stay saved but do not participate in effective runtime plugin policy or impose restrictions on unrelated apps. Found administrator-disabled plugins retain their existing behavior. The PR body describes this simplified five-file change. All 137 focused tests and focused lint passed on this exact head, with zero lint warnings or errors. Earlier live results are not claimed as verification of this replacement. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
Why
A stale or misspelled Codex plugin entry should produce an error without disabling healthy plugins or connected account apps. Saved settings describe requested plugins; they should not also serve as proof that those plugins exist at runtime.
Changes
Keep missing plugin and marketplace entries in saved settings, but omit them from the effective runtime plugin policy. Log lookup failures at error level. Use the resolved runtime policy when deciding app ownership, including when an account app's display name matches a missing entry.
A missing entry has no permission effect on other apps. Healthy configured plugins retain their explicit policies, and connected account apps use the account-wide policy. Found plugins disabled by an administrator retain existing behavior. Normal inventory refresh can discover a previously missing plugin without editing settings.
Existing conversation policy bindings refresh for this change. No new persisted recovery state, native tool inventory requests, or per-tool permission overlays are introduced.
Validation
Head:
f86cf32b2f0746cb9b376c9de3f7f0ea1e27d7f0.