Repository navigation
Conversation
|
Codex review: needs maintainer review before merge. Reviewed June 1, 2026, 4:49 PM ET / 20:49 UTC. Summary PR surface: Source +31, Tests +109, Docs 0. Total +140 across 6 files. Reproducibility: yes. at source level: current main filters manifest Review metrics: 2 noteworthy metrics.
Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Merge only after maintainer approval of the external-plugin marker trust boundary; if accepted, this manifest-metadata plus lifecycle-cache shape is the maintainable owner-boundary direction. Do we have a high-confidence way to reproduce the issue? Yes, at source level: current main filters manifest Is this the best way to solve the issue? Conditionally yes: if maintainers accept the external plugin trust boundary, using manifest metadata with lifecycle-cleared caches is the clean owner-boundary fix. Without that decision, the safer alternative is to keep bundled-only markers or gate external markers behind a narrower trusted contract. AGENTS.md: found and applied where relevant. Codex review notes: model gpt-5.5, reasoning high; reviewed against f8d5f162a129. Label changesLabel justifications:
Evidence reviewedPR surface: Source +31, Tests +109, Docs 0. Total +140 across 6 files. View PR surface stats
Security concerns:
What I checked:
Likely related people:
What the crustacean ranks mean
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. How this review workflow works
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 6100de63c3
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b5cf9508a7
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review |
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Codex Review: Didn't find any major issues. Keep it up! ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
@codex review Latest update: pushed bdc8191cdb to align the PluginManifest source contract with the docs/runtime contract after the P3 review note. Local proof: git diff --check; node scripts/run-vitest.mjs src/agents/model-auth-markers.test.ts src/plugins/manifest-metadata-scan.test.ts; env OPENCLAW_CHECK_CHANGED_REMOTE_CHILD=1 OPENCLAW_CHANGED_LANES_RAW_SYNC=1 CI=1 PNPM_CONFIG_VERIFY_DEPS_BEFORE_RUN=false corepack pnpm check:changed. |
|
@clawsweeper re-review Latest update: pushed bdc8191cdb to align the PluginManifest source contract with the docs/runtime contract after the P3 review note. Local proof: git diff --check; node scripts/run-vitest.mjs src/agents/model-auth-markers.test.ts src/plugins/manifest-metadata-scan.test.ts; env OPENCLAW_CHECK_CHANGED_REMOTE_CHILD=1 OPENCLAW_CHANGED_LANES_RAW_SYNC=1 CI=1 PNPM_CONFIG_VERIFY_DEPS_BEFORE_RUN=false corepack pnpm check:changed. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Codex Review: Didn't find any major issues. What shall we delve into next? ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
@codex review Rebased onto current upstream main and force-with-lease pushed refreshed head . Verification after rebase:RUN v4.1.7 /Users/louisherman/Projects/openclaw-wt-plugin-auth-review Test Files 1 passed (1) RUN v4.1.7 /Users/louisherman/Projects/openclaw-wt-plugin-auth-review Test Files 1 passed (1) |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Correction to the previous rebase note: shell backticks in the inline body were interpreted locally before posting. Actual refreshed head: 57579be178.
|
|
Codex Review: Didn't find any major issues. 🎉 ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
@codex review Added the same test-only CI stabilizers already proven on #88911 after the rebase exposed shared upstream CI failures on this PR:
Refreshed head: 1c80fe96dc.
|
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Codex Review: Didn't find any major issues. Bravo. ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
Status check:
I attempted to merge, but GitHub rejected it with: |
Drop the extra non-secret marker cache so plugin manifest marker changes are visible on subsequent reads, and skip disabled persisted plugin records before manifest metadata contributes markers. Verification: - node scripts/run-vitest.mjs src/agents/model-auth-markers.test.ts src/plugins/manifest-metadata-scan.test.ts - env OPENCLAW_CHECK_CHANGED_REMOTE_CHILD=1 OPENCLAW_CHANGED_LANES_RAW_SYNC=1 CI=1 PNPM_CONFIG_VERIFY_DEPS_BEFORE_RUN=false corepack pnpm check:changed - git diff --cached --check
Keep plugin manifest metadata process-stable by removing per-call manifest file fingerprint polling, and refresh the manifest/auth-marker caches through the plugin metadata lifecycle clear. Exclude disabled persisted plugin roots from the global extensions fallback so disabled installed plugins cannot contribute manifest-owned auth markers. Verification: - node scripts/run-vitest.mjs src/agents/model-auth-markers.test.ts src/plugins/manifest-metadata-scan.test.ts - env OPENCLAW_CHECK_CHANGED_REMOTE_CHILD=1 OPENCLAW_CHANGED_LANES_RAW_SYNC=1 CI=1 PNPM_CONFIG_VERIFY_DEPS_BEFORE_RUN=false corepack pnpm check:changed - git diff --check
Update the PluginManifest source comment for nonSecretAuthMarkers to match the runtime and docs contract that enabled plugin manifests can own non-secret placeholder auth markers. Verification: - git diff --check - node scripts/run-vitest.mjs src/agents/model-auth-markers.test.ts src/plugins/manifest-metadata-scan.test.ts - env OPENCLAW_CHECK_CHANGED_REMOTE_CHILD=1 OPENCLAW_CHANGED_LANES_RAW_SYNC=1 CI=1 PNPM_CONFIG_VERIFY_DEPS_BEFORE_RUN=false corepack pnpm check:changed
|
Superseded by consolidated fork-main PR #89224, which carries this branch payload on top of current upstream main. |
Summary
openclaw/openclaw.Verification
git diff --checknode scripts/run-vitest.mjs src/agents/model-auth-markers.test.ts src/plugins/manifest-metadata-scan.test.tsnode scripts/run-vitest.mjs --reporter=verbose src/agents/model-auth-markers.test.ts src/plugins/manifest-metadata-scan.test.tsenv OPENCLAW_CHECK_CHANGED_REMOTE_CHILD=1 OPENCLAW_CHANGED_LANES_RAW_SYNC=1 CI=1 PNPM_CONFIG_VERIFY_DEPS_BEFORE_RUN=false corepack pnpm check:changedReal Behavior Proof
Behavior addressed: model/auth marker handling now respects enabled installed external plugin manifest metadata, ignores disabled installed plugin marker metadata, and refreshes marker lookup only through the plugin metadata lifecycle path.
Real environment tested: local OpenClaw source checkout on macOS at PR head
bdc8191cdbd7926f68fc918563a7eeb8cee7a6e0. The proof used repository production modules for persisted installed-plugin index writes, manifest metadata scanning, lifecycle cache clearing, and model auth marker lookup. No.dev.vars, live credentials, or private plugin config were read.Exact steps or command run after this patch:
node --import tsx -with a redacted temp-home script that created enabled and disabled plugin manifests under/private/tmp/openclaw-pr-88913-proof-*/home/.openclaw/extensions, wrote the persisted installed-plugin index withwritePersistedInstalledPluginIndexSync(...), then calledlistOpenClawPluginManifestMetadata(),isNonSecretApiKeyMarker(...), and the lifecycle-cleared marker path againstOPENCLAW_HOME=<tmp>/homeandOPENCLAW_DISABLE_BUNDLED_PLUGINS=1.Evidence after fix: terminal output from the current-head temp-home proof:
Observed result after fix: the enabled installed plugin manifest was discovered and its marker was accepted; the disabled installed plugin manifest was filtered and its marker was rejected; marker lookup stayed process-stable until the installed-index write cleared plugin metadata lifecycle caches, after which the new marker was accepted and the old marker was no longer accepted.
What was not tested: no networked marketplace/plugin registry install and no live third-party credentials were used; the proof exercises the installed-plugin index and manifest metadata production path with redacted temp files.