Repository navigation
Conversation
Remove JSONC comments from the Convex credential broker tsconfig so root structured validation can parse it as JSON.
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
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
|
Codex review: needs real behavior proof before merge. Reviewed June 1, 2026, 5:25 PM ET / 21:25 UTC. Summary PR surface: Source +570, Tests +1753, Docs 0, Config -6. Total +2317 across 33 files. Reproducibility: no. high-confidence live reproduction was run in this read-only checkout. Source review and the PR's focused tests make the paths plausible, but the iMessage behavior still needs real setup 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 maintainers accept the fail-closed compatibility/auth-marker behavior and the PR body includes redacted real behavior proof for the iMessage outbound path; otherwise split the consolidation into narrower PRs. Do we have a high-confidence way to reproduce the issue? No high-confidence live reproduction was run in this read-only checkout. Source review and the PR's focused tests make the paths plausible, but the iMessage behavior still needs real setup proof. Is this the best way to solve the issue? Unclear but plausible: the changes are at reasonable owner boundaries, but the consolidation should not be called the best merge path until compatibility and real behavior proof are reviewed. AGENTS.md: found and applied where relevant. Codex review notes: model gpt-5.5, reasoning high; reviewed against 67983a00c86d. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Source +570, Tests +1753, Docs 0, Config -6. Total +2317 across 33 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
|
Consolidates the current fork-only OpenClaw fixes into a single mainline PR from
LDMB123:main.Supersedes:
This branch was rebuilt on current
upstream/main(f8491b0fcf) and contains the same patch payloads from the four PR branches:Local proof run:
node -e 'const fs=require("node:fs"); JSON.parse(fs.readFileSync("qa/convex-credential-broker/convex/tsconfig.json","utf8")); console.log("convex tsconfig valid JSON");'node scripts/run-vitest.mjs src/cli/daemon-cli/status.gather.test.ts src/gateway/net.test.ts src/infra/ports-format.test.ts src/agents/model-auth-markers.test.ts src/plugins/manifest-metadata-scan.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/send.test.ts extensions/imessage/src/targets.test.ts extensions/imessage/src/test-plugin.test.ts src/infra/outbound/deliver.test.ts src/infra/outbound/message-action-normalization.test.tsReal behavior proof
Behavior or issue addressed: Consolidates the four fork PR payloads onto the single
LDMB123:mainbranch while preserving the local OpenClaw setup as one clean checkout/worktree and fixing the sandbox DNS false-negative classifier route for GitHub API DNS errors.Real environment tested: Real local OpenClaw setup on
/Users/louisherman/Projects/openclaw, branchmain, head8016c43f43e170bd19448ac7a6440fac857685b4, with host-side GitHub CLI used only for non-secret branch/status readback.Exact steps or command run after this patch:
git -C /Users/louisherman/Projects/openclaw status --short --branchgit -C /Users/louisherman/Projects/openclaw worktree list --porcelaingh api repos/LDMB123/openclaw/branches --paginate --jq '.[].name'openclaw config validate --jsonnode -e 'const fs=require("node:fs"); JSON.parse(fs.readFileSync("qa/convex-credential-broker/convex/tsconfig.json","utf8")); console.log("convex tsconfig valid JSON");'bash /Users/louisherman/.openclaw/scripts/sandbox-proof.sh classify "error connecting to api.github.com"node scripts/run-vitest.mjs src/cli/daemon-cli/status.gather.test.ts src/gateway/net.test.ts src/infra/ports-format.test.ts src/agents/model-auth-markers.test.ts src/plugins/manifest-metadata-scan.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/send.test.ts extensions/imessage/src/targets.test.ts extensions/imessage/src/test-plugin.test.ts src/infra/outbound/deliver.test.ts src/infra/outbound/message-action-normalization.test.tsEvidence after fix: Terminal output captured after the consolidated branch was pushed:
Observed result after fix: The local OpenClaw checkout is clean on
main, the fork branch inventory is reduced tomain, the OpenClaw config validates, the Convex tsconfig parses as JSON, the GitHub DNS sandbox signal routes togithub-keychain-dns, and the focused OpenClaw test slice passed 7 Vitest shards.What was not tested: No live merge into upstream
openclaw/openclawwas performed by this branch author; that remains maintainer-gated after PR checks and review policy pass.