Repository navigation
Conversation
c0b3ca3 to
49ec978
Compare
|
@clawsweeper re-review |
|
🦞👀 Command router queued. I will update this comment with the next step. |
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Codex review: found issues before merge. Reviewed August 7, 2026, 10:38 AM ET / 14:38 UTC. ClawSweeper reviewWhat this changesMoves configured MCP tools in Codex-backed runs into OpenClaw’s dynamic tool bridge, captures callable tools in cron creator ceilings, and retires legacy native-MCP thread bindings. Regression provenancePossible regression — probable (reproduction; reviewed change). No predecessor PR is attributed. Merge readinessKeep open: current main still has the reported senderless finite-cap MCP omission, while this protected maintainer PR is the active candidate fix; one release-owned changelog entry and material upgrade/contract proof remain before merge. Priority: P1 Review scores
Verification
How this fits togetherConfigured MCP servers feed Codex agent attempts and isolated cron turns. The harness must expose only policy-allowed tools, preserve cron authority, and invoke MCP through OpenClaw without leaking credentials or reviving stale thread authority. flowchart TD
A[Configured MCP servers] --> B[Codex attempt setup]
B --> C[OpenClaw dynamic tool bridge]
C --> D[Final policy and approvals]
D --> E[Cron creator tool ceiling]
E --> F[Isolated scheduled turn]
D --> G[OpenClaw MCP invocation]
B --> H[Legacy thread retirement]
Decision needed
Why: The repair changes where MCP credentials and approval decisions are enforced and makes old threads non-resumable; that is a lasting authorization and upgrade policy choice, not a mechanical test gap. Before merge
Findings
Agent review detailsSecurityNeeds attention: The patch moves MCP credentials and approvals across a security boundary, but the exact-head legacy-transition proof and direct Codex contract inspection were unavailable to this review. Review metrics
Stored data modelPersistent data-model change detected: Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Land a rebased Phase A repair only after removing the release-owned changelog line and proving a legacy native-MCP thread transitions once to a safe dynamic-tool successor without reopening old authority. Do we have a high-confidence way to reproduce the issue? Yes—current main is source-reproducible: finite allowlists disable native Codex MCP while the only dynamic bridge returns nothing without a requester sender. Is this the best way to solve the issue? Unclear: OpenClaw-owned generic MCP materialization matches the existing embedded-runner owner pattern, but the exact PR head and required Codex dependency contract were unavailable for an independent best-fix verdict. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 3bc188efe55e. LabelsLabel changes:
Label justifications:
EvidenceSecurity concerns:
What 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 (4 earlier review cycles)
|
|
@clawsweeper re-review |
|
🦞👀 Command router queued. I will update this comment with the next step. |
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Local exact-range ClawSweeper review completed against Its single P1 recommends treating non-
The report's proof criticism is fair and remains disclosed: AWS Crabbox Hosted re-review was requested twice, but both ClawSweeper comment-router attempts failed before worker dispatch on GitHub App rate limiting. |
|
Superseded by #120366, the clean Phase A replacement for configured MCP scheduling and #113475. The replacement preserves ordinary Codex-native behavior, removes the global legacy-thread retirement design, and carries the reviewed focused, stdio, exact-head gate, and direct Codex contract proof. Thank you to everyone who reviewed this work and supplied the context that helped refine the boundary. |
Fixes #113475
What problem this solves
Users running isolated Codex-backed automations could have a healthy globally configured MCP server, but the scheduled turn received none of its callable tools. The automation could therefore finish without doing its MCP-backed work even though
openclaw mcp probereported the server and tools as healthy.This is the configured-MCP Phase A repair split from #119299. It does not add the Phase B scheduled-native app/connector authority model, provenance, descendant propagation, worker routing, or migration semantics discussed there.
Root cause and canonical owner
The Codex harness delegated OpenClaw-configured MCP ownership to Codex-native MCP configuration. That split transport, credential, discovery, policy, approval, invocation, persistence, and cleanup across two owners. A fresh senderless isolated cron turn could skip requester-scoped materialization, while an existing Codex thread could retain the retired native MCP configuration after OpenClaw moved to dynamic tools.
OpenClaw is now the sole owner of configured MCP execution:
before_tool_callpolicy runs before configured-MCP approval, so denial or parameter rewriting cannot be bypassed by opening approval first.writesvalue on the existingmcp.codex.defaultToolsApprovalModesetting.Safe upgrade of existing Codex threads
Threads created by a shipped version may still contain the retired Codex-native configured-MCP binding. Reusing those threads in place would preserve stale authority, while deleting them would erase valid user history. This PR therefore performs a one-time crash-recoverable replacement:
thread/delete.This is fail-forward rather than rollback-to-stale-authority behavior: after a durable tombstone exists, the old native-MCP thread can never silently become executable again.
User impact and compatibility
New isolated Codex-backed automations can call healthy, allowed globally configured MCP tools. Finite caps remain finite, requester-scoped tools do not become senderless, and creator-default caps contain only tools actually executable at creation time.
Upgrade notes:
mcp__server__toolnames to OpenClaw canonicalserver__toolnames because Codex reservesmcp__for native MCP.--clear-toolsremains an explicit unrestricted ceiling, not a migration command.approvemode.There is no new dependency, Gateway protocol surface, SQLite schema-version change, environment variable, or user-facing configuration key.
Direct Codex runtime contract verification
The pinned dependency is Codex CLI 0.146.1 (
rust-v0.146.1, commit79b4f03d35962b005b007a015113b38930711665). The implementation was checked directly against:mcp__prefix:codex-rs/app-server/src/request_processors/thread_processor.rs:226-313codex-rs/app-server/src/request_processors/thread_processor.rs:1209-1244codex-rs/core/src/tools/handlers/dynamic.rs:85-148codex-rs/core/src/session/mod.rs:659-664codex-rs/app-server/src/request_processors/thread_delete.rs:39-61codex-rs/app-server/src/request_processors/thread_processor.rs:1433-1486codex-rs/app-server/src/request_processors/thread_processor.rs:3380-3525and3959-4160codex-rs/app-server-protocol/src/protocol/v2/thread_data.rs:170-185codex-rs/core/src/codex_delegate.rs:101-126codex-rs/core/src/tools/handlers/multi_agents_common.rs:176-205codex-rs/app-server/src/request_processors/thread_goal_processor.rs:122-214,codex-rs/ext/goal/src/runtime.rs:159-209, andcodex-rs/app-server/src/request_processors/turn_processor.rs:920-966codex-rs/protocol/src/protocol.rs:691-697,codex-rs/thread-store/src/store.rs:48-51, andcodex-rs/thread-store/src/local/mod.rs:253-279Evidence
Frozen merge base:
ec023a433614bdca5567fac0f00ea86b92fc60a9Exact HEAD:
d658fb391206d1a96417f2d85821d2d3b0a422f6$autoreview --mode local --stream-engine-outputreviewed the 522,691-byte final hardening bundle in two complete passes. Both returned zero accepted/actionable P0 findings; combined correctness was 0.96. TruffleHog was clean.CODEX_HOME.tbx_01kzdjxfrrr8a3rtw6jrbkn0js(Actions31158890667).run_2c07be5a4141. The remote source matched the committed retirement-module hash, built with real Codex CLI 0.146.1, completed normal first and resumed turns, persistedcronCleanupProbe__cleanup_probein the creator-default cap, force-ran the isolated job, and proved invocation with an out-of-band nonce. One live test passed in 256.9 seconds; the lease stopped.run_4ba61517036c. Production was the exact merge-base tree with only two current assertion-harness files overlaid. It reproduced the defect before force-run:toolsAllowIsDefault=true, but the default cap omittedcronCleanupProbe__cleanup_probe, emittingEXPECTED_BASELINE_REPRO=missing_creator_default_configured_mcp_authority. The lease stopped.The live server is a deterministic fake stdio MCP fixture, not Todoist. It proves the generic ownership boundary without requiring a hosted OAuth credential.
Diff classification against the frozen branch base:
+4,067/-1,545(net+2,522)+7,574/-1,592(net+5,982)+121/-41(net+80)The positive production delta is the concrete capability/security/upgrade owner boundary: OpenClaw-owned configured MCP runtime, persisted crash-safe retirement state, global mutation coordination, exact lineage validation, and complete lifecycle routing. The old parallel Codex-native configured-MCP fingerprint/runtime path is removed rather than retained as a fallback.