Repository navigation
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed June 1, 2026, 4:54 PM ET / 20:54 UTC. Summary PR surface: Source +496, Tests +1578. Total +2074 across 20 files. Reproducibility: no. live reproduction was run. Source inspection shows current main has no outbound allowlist gate while docs define iMessage DM/group allowlist policy, so the issue is source-reproducible but the real iMessage path still needs live proof. 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:
Proof guidance:
Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Land only after a maintainer accepts the fail-closed upgrade semantics and redacted live iMessage/Gateway proof shows both blocked and allowlisted outbound paths in a real setup. Do we have a high-confidence way to reproduce the issue? No live reproduction was run. Source inspection shows current main has no outbound allowlist gate while docs define iMessage DM/group allowlist policy, so the issue is source-reproducible but the real iMessage path still needs live proof. Is this the best way to solve the issue? Unclear until live proof and maintainer compatibility acceptance are supplied. The code shape is plausibly the right plugin-boundary fix, with shared core only forwarding trusted context, but the fail-closed behavior is a maintainer decision before merge. 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 +496, Tests +1578. Total +2074 across 20 files. View PR surface stats
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: c862c3972b
ℹ️ 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: f7d898aa32
ℹ️ 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 Follow-up pushed at d8480a894e. Summary:
Verification:
No live iMessage private API proof was run from this contributor machine. |
|
@clawsweeper re-review Follow-up pushed at d8480a894e. The authorization fix now binds sender-based group reply allowance to a trusted inbound sender and removes the previous replyToId-only boolean shortcut. Local proof:
No live iMessage private API proof was run from this contributor machine. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@codex review Follow-up pushed in 50c8db0dbc:
Verification:
|
|
@clawsweeper re-review Follow-up pushed in 50c8db0dbc for the remaining outbound groupPolicy/groupAllowFrom review threads. Tests and check:changed passed locally; please re-review the updated diff. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d8480a894e
ℹ️ 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".
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@codex review |
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: aa6d130416
ℹ️ 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".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 7e41334189
ℹ️ 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 Review follow-up pushed in 93eec64a42. Addressed the two fresh Codex review threads:
Verification:
|
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 93eec64a42
ℹ️ 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".
|
Status after latest follow-up (
Please rerun the failed check or grant an upstream maintainer rerun. I also cannot merge from this account: GitHub returns |
Preserve sender-handle group reply allowlists for reply sends, treat direct iMessage/SMS chat identifiers as DM targets, and honor literal wildcard allowlist entries in outbound iMessage checks. Verification: - node scripts/run-vitest.mjs extensions/imessage/src/send.test.ts extensions/imessage/src/actions.test.ts - git diff --check
Treat the auto-service direct chat identifier form as a DM target and add explicit SMS/auto direct-chat allowlist coverage for the outbound gate. Verification: - node scripts/run-vitest.mjs extensions/imessage/src/send.test.ts extensions/imessage/src/actions.test.ts - git diff --cached --check
Close the group reply allowlist shortcut so replyToId alone cannot authorize arbitrary group targets. Thread the trusted inbound sender through monitor reply delivery and use it only for same-context replies, while explicit action targets still require normal group target allowlisting.
Apply the same effective groupPolicy resolution used by inbound iMessage monitoring to outbound group sends, and preserve the legacy allowFrom fallback only when groupAllowFrom is absent. Keep explicit empty groupAllowFrom as a hard block and add regression coverage for channel default groupPolicy and fallback semantics.
Gate sender-based group reply allowance on the sanitized reply id so malformed reply tags cannot carry requester identity into outbound allowlist checks. Thread requesterSenderId from the shared outbound delivery session through channel send contexts and the iMessage runtime, preserving trusted reply sender context for durable and attached-result sends. Verification: - node scripts/run-vitest.mjs extensions/imessage/src/send.test.ts extensions/imessage/src/actions.test.ts extensions/imessage/src/monitor/deliver.test.ts extensions/imessage/src/test-plugin.test.ts extensions/imessage/src/monitor.gating.test.ts extensions/imessage/src/channel.runtime.test.ts src/infra/outbound/deliver.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 - git diff --cached --check
Route direct service-handle chat GUIDs through the iMessage DM allowlist path while leaving chat_id and group GUID behavior under group policy. Stop passing numeric chat ids when sending DM pairing challenges so unpaired users are not blocked by group outbound policy before they receive the pairing code. Verification: - git diff --check - node scripts/run-vitest.mjs extensions/imessage/src/send.test.ts - node scripts/run-vitest.mjs extensions/imessage/src/send.test.ts extensions/imessage/src/actions.test.ts extensions/imessage/src/monitor/deliver.test.ts extensions/imessage/src/test-plugin.test.ts extensions/imessage/src/monitor.gating.test.ts extensions/imessage/src/channel.runtime.test.ts src/infra/outbound/deliver.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
Move the iMessage outbound allowlist assertion into a lightweight policy module so action registration no longer imports the full send runtime. Keep the previous send.ts export available for internal compatibility. Verification: - git diff --cached --check - node scripts/run-vitest.mjs extensions/imessage/src/send.test.ts extensions/imessage/src/actions.test.ts extensions/imessage/src/channel.runtime.test.ts extensions/imessage/src/monitor/deliver.test.ts extensions/imessage/src/test-plugin.test.ts extensions/imessage/src/monitor.gating.test.ts - CI=1 PNPM_CONFIG_VERIFY_DEPS_BEFORE_RUN=false corepack pnpm check:changed Note: the documented Blacksmith Testbox check was rejected by sandbox policy because it would export unpublished staged code to an external runner.
Require implicit reply metadata before using requester sender allowlist context, enforce disabled iMessage DM policy for outbound sends, and classify raw handle-shaped chat identifiers as direct targets with tighter heuristics. Verification: - node scripts/run-vitest.mjs extensions/imessage/src/send.test.ts extensions/imessage/src/actions.test.ts extensions/imessage/src/channel.runtime.test.ts extensions/imessage/src/monitor/deliver.test.ts extensions/imessage/src/test-plugin.test.ts extensions/imessage/src/monitor.gating.test.ts src/infra/outbound/deliver.test.ts src/infra/outbound/message.channels.test.ts - node scripts/run-vitest.mjs src/infra/outbound/reply-policy.test.ts src/infra/outbound/message-plan.test.ts - git diff --check - pnpm test:changed (host-side rerun after sandbox EPERM/sysctl false negatives)
Tighten the follow-up PR review fixes so fallback delivery no longer marks payload reply ids as implicit without a verified source, group mutation actions go through outbound policy before private API mutation, and direct chat identifiers use one classifier across allowlist and routing. Verification: - node scripts/run-vitest.mjs extensions/imessage/src/monitor/deliver.test.ts extensions/imessage/src/actions.test.ts extensions/imessage/src/targets.test.ts extensions/imessage/src/test-plugin.test.ts - node scripts/run-vitest.mjs extensions/imessage/src/send.test.ts extensions/imessage/src/actions.test.ts extensions/imessage/src/channel.runtime.test.ts extensions/imessage/src/monitor/deliver.test.ts extensions/imessage/src/test-plugin.test.ts extensions/imessage/src/monitor.gating.test.ts src/infra/outbound/deliver.test.ts src/infra/outbound/message.channels.test.ts extensions/imessage/src/targets.test.ts - node scripts/run-vitest.mjs src/infra/outbound/reply-policy.test.ts src/infra/outbound/message-plan.test.ts - git diff --check - pnpm test:changed
Ensure react, edit, and unsend enforce the outbound allowlist before private API capability checks, message resolution, or bridge calls. Add regression coverage that blocked group targets stop before chat resolution, message resolution, private API probing, or runtime mutation.
Pass payload replyToIdSource through the legacy iMessage fallback delivery path when the payload already carries an explicit source marker. Keep bare payload reply ids unchanged so the fallback path does not infer implicit trust without source proof.
Filter legacy iMessage group allowlist fallback entries to conversation targets only so DM sender wildcards do not authorize group sends.
Remove a redundant spread from the iMessage group allowlist fallback after filtering legacy conversation entries. The filtered result is already a fresh array, so the extra spread only trips the repo lint rule.
Keep explicit group target fallback limited to legacy conversation entries while allowing implicit trusted replies to use legacy sender and access-group allowFrom entries when groupAllowFrom is absent. Verification: - node scripts/run-vitest.mjs extensions/imessage/src/send.test.ts - node scripts/run-vitest.mjs extensions/imessage/src/send.test.ts extensions/imessage/src/actions.test.ts extensions/imessage/src/channel.runtime.test.ts extensions/imessage/src/monitor/deliver.test.ts extensions/imessage/src/test-plugin.test.ts extensions/imessage/src/monitor.gating.test.ts src/infra/outbound/deliver.test.ts src/infra/outbound/message.channels.test.ts extensions/imessage/src/targets.test.ts - pnpm exec oxlint extensions/imessage/src/outbound-allowlist.ts extensions/imessage/src/send.test.ts - git diff --check - pnpm tsgo:prod - pnpm check:test-types - node scripts/check-extension-package-tsc-boundary.mjs --mode=compile - pnpm lint --threads=8 - Ollama Cloud sanitized ten-model blocker review: 9 no blockers, 1 timed out before final verdict
Track message-action targets that are inferred from the current channel so iMessage reply authorization can keep using trusted requester sender context for same-conversation replies. Strip caller-supplied inferred-target markers during normalization and require the marked target to match the current channel before treating it as inferred. Also default trusted monitor fallback reply ids to implicit so sender-based group reply allowlists keep working.
Keep inferred iMessage reply targets sender-authorized only when the target actually used for delivery matches the current channel, and ignore gateway-supplied requester identities for sender-based group allowlist checks. Preserve sender authorization for internally consumed implicit reply chunks while still rejecting malformed reply ids that sanitize away. Validation: - node scripts/run-vitest.mjs extensions/imessage/src/actions.test.ts extensions/imessage/src/send.test.ts - node scripts/run-vitest.mjs extensions/imessage/src/send.test.ts extensions/imessage/src/actions.test.ts extensions/imessage/src/channel.runtime.test.ts extensions/imessage/src/monitor/deliver.test.ts extensions/imessage/src/test-plugin.test.ts extensions/imessage/src/monitor.gating.test.ts src/infra/outbound/deliver.test.ts src/infra/outbound/message.channels.test.ts extensions/imessage/src/targets.test.ts src/infra/outbound/message-action-normalization.test.ts - pnpm exec oxlint extensions/imessage/src/actions.ts extensions/imessage/src/actions.test.ts extensions/imessage/src/send.ts extensions/imessage/src/send.test.ts - git diff --check
|
Superseded by consolidated fork-main PR #89224, which carries this branch payload on top of current upstream main. |
Summary
Verification
node scripts/run-vitest.mjs extensions/imessage/src/actions.test.ts extensions/imessage/src/send.test.tspnpm run lint:extensions:bundledgit diff --checkReal behavior proof
Behavior addressed: iMessage outbound sends now fail closed before transport/runtime calls when the configured allowlist does not include the handle or group target.
Real environment tested: Local OpenClaw source checkout on macOS at PR head
cb227048c2; commands ran against the actual OpenClaw iMessage extension code, with no live iMessage account or private API secrets used.Exact steps or command run after this patch:
node scripts/run-vitest.mjs extensions/imessage/src/actions.test.ts extensions/imessage/src/send.test.ts;pnpm run lint:extensions:bundled;git diff --check.Evidence after fix: Terminal capture from the local OpenClaw checkout:
Observed result after fix: Blocked-target paths reject before
runtimeMock.sendRichMessage,runtimeMock.sendAttachment, orclient.requestare called; allowlisted paths still callclient.requestwith the expected iMessage payload. The bundled-extension lint command exits 0.What was not tested: A live iMessage private API send was not run from this machine; this PR intentionally avoids live account credentials and validates the fail-closed behavior in the extension runtime.
Fork Context
This is a temporary upstream-review branch. The same accepted fix remains on
LDMB123/openclawforkmain, per the fork cleanup plan.