Repository navigation
fix: keep owner-only tools out of non-owner skill commands [AI] - #116532
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed July 30, 2026, 4:00 PM ET / 20:00 UTC. ClawSweeper reviewWhat this changesThe branch passes verified sender ownership into skill-command tool construction and adds the shared owner-only core-tool deny policy for non-owner skill dispatches. Merge readiness⛔ Blocked until real behavior proof from a real setup is added - 4 items remain Keep this PR open for maintainer handling: it targets a P1 security boundary and carries the protected Likely related people: ownership history could not be established from the provided read-only review context, so routing confidence is low. Priority: P1 Review scores
Verification
How this fits togetherA channel message can invoke a skill command that resolves a subset of OpenClaw tools and executes the selected one. The dispatcher must combine sender identity, ownership, sandbox, provider, and profile policies before exposing a tool backed by privileged owner capabilities. flowchart LR
A[Incoming skill command] --> B[Verified sender context]
B --> C[Skill tool dispatcher]
C --> D[Combined tool policies]
D --> E[Filtered tool surface]
E --> F[Skill command execution]
Decision needed
Why: This is a privileged-capability boundary with a protected maintainer label; source-level unit coverage alone does not establish the operational behavior maintainers intend to ship. Before merge
Agent review detailsSecurityNone. PR surfaceSource +10, Tests +99. Total +109 across 4 files. View PR surface stats
Review metricsNone. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the owner-only restriction in the shared skill-dispatch policy seam, then add redacted runtime proof covering a denied authorized non-owner dispatch and a permitted owner control before a maintainer decides whether to merge. Do we have a high-confidence way to reproduce the issue? No high-confidence live reproduction is present. The source-level path is reproducible from the supplied focused tests, but this review context contains no observed before-fix runtime dispatch from a real setup. Is this the best way to solve the issue? Unclear: applying the existing shared owner-only deny policy at the final skill-dispatch tool surface is the narrowest apparent repair, but real runtime proof is still needed to confirm that this composition point preserves intended owner behavior. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 21c533e0900a. LabelsLabel 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 (1 earlier review cycle)
|
|
ClawSweeper proof for current head Behavior proved: an authorized non-owner skill command cannot resolve owner-only tools, while the owner path still can. Environment: clean local PR checkout, Node 24.15.0, production build output. The probe imports the built Commands:
Evidence:
CI is green for this exact head, including the merge gate, build, type, lint, test, and sensitive-boundary checks. Live gaps: Blacksmith Testbox was unavailable because its CLI was absent. AWS Crabbox run |
ClawSweeper reviewReviewed July 30, 2026, 8:53 PM UTC. What this changesSkill-command dispatch now carries verified sender ownership into tool construction and withholds the canonical owner-only tools from authorized non-owner senders. PR surface: Source +10, Tests +99. Total +109 across 4 files. Merge readinessResult: ready for maintainer review. Overall: 🐚 platinum hermit Reviewed head: Review scores
VerificationStatus: sufficient How this fits togetherInline skill commands convert an authorized chat command into a policy-filtered tool invocation before any tool executes. Sender ownership and agent, group, sandbox, and delegation policies determine whether execution proceeds or the user receives a visible denial. flowchart LR
A[Chat sender] --> B[Authorized skill command]
B --> C[Verified owner status]
C --> D[Shared tool policy pipeline]
D --> E{Owner-only tool?}
E -->|Non-owner| F[Visible unavailable response]
E -->|Owner| G[Tool execution]
Before merge
Review detailsBest possible solution: Keep verified ownership as an explicit skill-dispatch input and enforce the same centralized owner-only classification used by the agent and gateway paths, with both final-surface and visible-denial coverage. Do we have a high-confidence way to reproduce the issue? Yes at source level: current main and v2026.7.1 omit ownership from skill-tool resolution, while conversation tools treat missing ownership differently from an explicit non-owner. The author’s production-build probe verifies the corrected after-fix behavior, although no independent baseline execution was performed during this read-only review. Is this the best way to solve the issue? Yes. Passing the already-verified ownership fact into the existing resolver and reusing the current canonical deny set is the narrowest maintainable fix; it avoids reviving the obsolete broad owner-only metadata system removed in commit 02182d5. AGENTS.md: found_applied Codex review notes: model internal, reasoning high; reviewed against d1d2ad7. Label detailsLabel justifications:
Evidence reviewedPR surface:
|
Verification before mergeVerified head:
Focused validation:
Behavior proof used the built production Remote proof note: Blacksmith Testbox was unavailable because its CLI was absent. AWS Crabbox run Risk: Medium because the centralized policy covers multiple privileged tools, despite the narrow implementation. No public API, CLI, config, protocol, persistence, or documentation surface changes. |
* repair/pr-111802-preserve: (3263 commits) test: type session request parameters (openclaw#116713) fix: retain event invalidation for pagination docs: note queued session refresh fix fix: preserve queued session refresh options fix(exec): require approval for abbreviated inline eval flags [AI] (openclaw#116529) fix: keep owner-only tools out of non-owner skill commands [AI] (openclaw#116532) fix(ui): bound Talk relay microphone uplink fix(tui): require a fresh agent roster (openclaw#116715) fix(memory-wiki): preserve user edits when rolling back ChatGPT imports (openclaw#116517) fix(agents): cron failures preserve timeout and cancellation reasons (openclaw#116566) fix(release): unblock beta validation workflows (openclaw#116708) fix(ci): discover frozen target startup benchmark cases (openclaw#116711) fix(session): preserve reset message payloads (openclaw#116195) fix(qa): tolerate loaded-runner bus delivery stalls (openclaw#116448) improve(ci): rebalance embedded agent test configs (openclaw#116436) fix(browser): return committed trace path (openclaw#116702) fix(qa): exceed Slack table aggregate limit in fallback probe (openclaw#116447) fix(qa): use built plugin tools server (openclaw#116442) fix(test): keep memory FD repro config valid (openclaw#116698) fix(telegram): keep queued tool progress in one message (openclaw#116685) ...
* preserve/pr-109971-ollama-show-inspection-20260731: (4302 commits) fix(agents): resume interrupted turns past progress commentary (openclaw#116725) fix(gateway): sign device proofs with challenge time (openclaw#116679) fix(testing): load relay smoke through UI Vite config test(testing): guard realtime relay smoke module path fix(testing): repair realtime relay live smoke import test: type session request parameters (openclaw#116713) fix: retain event invalidation for pagination docs: note queued session refresh fix fix: preserve queued session refresh options fix(exec): require approval for abbreviated inline eval flags [AI] (openclaw#116529) fix: keep owner-only tools out of non-owner skill commands [AI] (openclaw#116532) fix(ui): bound Talk relay microphone uplink fix(tui): require a fresh agent roster (openclaw#116715) fix(memory-wiki): preserve user edits when rolling back ChatGPT imports (openclaw#116517) fix(agents): cron failures preserve timeout and cancellation reasons (openclaw#116566) fix(release): unblock beta validation workflows (openclaw#116708) fix(ci): discover frozen target startup benchmark cases (openclaw#116711) fix(session): preserve reset message payloads (openclaw#116195) fix(qa): tolerate loaded-runner bus delivery stalls (openclaw#116448) improve(ci): rebalance embedded agent test configs (openclaw#116436) ...
* preserve/pr-107473-ollama-stream-ndjson-cap: (5598 commits) chore(changelog): remove release-owned entry fix(agents): resume interrupted turns past progress commentary (openclaw#116725) fix(gateway): sign device proofs with challenge time (openclaw#116679) fix(testing): load relay smoke through UI Vite config test(testing): guard realtime relay smoke module path fix(testing): repair realtime relay live smoke import test: type session request parameters (openclaw#116713) fix: retain event invalidation for pagination docs: note queued session refresh fix fix: preserve queued session refresh options fix(exec): require approval for abbreviated inline eval flags [AI] (openclaw#116529) fix: keep owner-only tools out of non-owner skill commands [AI] (openclaw#116532) fix(ui): bound Talk relay microphone uplink fix(tui): require a fresh agent roster (openclaw#116715) fix(memory-wiki): preserve user edits when rolling back ChatGPT imports (openclaw#116517) fix(agents): cron failures preserve timeout and cancellation reasons (openclaw#116566) fix(release): unblock beta validation workflows (openclaw#116708) fix(ci): discover frozen target startup benchmark cases (openclaw#116711) fix(session): preserve reset message payloads (openclaw#116195) fix(qa): tolerate loaded-runner bus delivery stalls (openclaw#116448) ...
…-supported-paths * origin/main: (115 commits) test: type session request parameters (#116713) fix: retain event invalidation for pagination docs: note queued session refresh fix fix: preserve queued session refresh options fix(exec): require approval for abbreviated inline eval flags [AI] (#116529) fix: keep owner-only tools out of non-owner skill commands [AI] (#116532) fix(tui): require a fresh agent roster (#116715) fix(memory-wiki): preserve user edits when rolling back ChatGPT imports (#116517) fix(agents): cron failures preserve timeout and cancellation reasons (#116566) fix(release): unblock beta validation workflows (#116708) fix(ci): discover frozen target startup benchmark cases (#116711) fix(session): preserve reset message payloads (#116195) fix(qa): tolerate loaded-runner bus delivery stalls (#116448) improve(ci): rebalance embedded agent test configs (#116436) fix(browser): return committed trace path (#116702) fix(qa): exceed Slack table aggregate limit in fallback probe (#116447) fix(qa): use built plugin tools server (#116442) fix(test): keep memory FD repro config valid (#116698) fix(telegram): keep queued tool progress in one message (#116685) fix(qa): stop waiting on yielded fanout runs (#116440) ... # Conflicts: # src/system-agent/setup-inference-detect.ts # ui/src/e2e/model-setup.e2e.test.ts
…claw#116532) * fix: enforce owner tools in skill dispatch * fix: type skill dispatch policy layers
…-supported-paths * origin/main: (115 commits) test: type session request parameters (openclaw#116713) fix: retain event invalidation for pagination docs: note queued session refresh fix fix: preserve queued session refresh options fix(exec): require approval for abbreviated inline eval flags [AI] (openclaw#116529) fix: keep owner-only tools out of non-owner skill commands [AI] (openclaw#116532) fix(tui): require a fresh agent roster (openclaw#116715) fix(memory-wiki): preserve user edits when rolling back ChatGPT imports (openclaw#116517) fix(agents): cron failures preserve timeout and cancellation reasons (openclaw#116566) fix(release): unblock beta validation workflows (openclaw#116708) fix(ci): discover frozen target startup benchmark cases (openclaw#116711) fix(session): preserve reset message payloads (openclaw#116195) fix(qa): tolerate loaded-runner bus delivery stalls (openclaw#116448) improve(ci): rebalance embedded agent test configs (openclaw#116436) fix(browser): return committed trace path (openclaw#116702) fix(qa): exceed Slack table aggregate limit in fallback probe (openclaw#116447) fix(qa): use built plugin tools server (openclaw#116442) fix(test): keep memory FD repro config valid (openclaw#116698) fix(telegram): keep queued tool progress in one message (openclaw#116685) fix(qa): stop waiting on yielded fanout runs (openclaw#116440) ... # Conflicts: # src/system-agent/setup-inference-detect.ts # ui/src/e2e/model-setup.e2e.test.ts
What Problem This Solves
Prevents an authorized non-owner sender from reaching owner-only core tools through a skill command.
Why This Change Was Made
Skill command dispatch now carries the sender's verified ownership status into tool construction and applies the shared owner-only deny policy to the final tool surface. Regular tools remain available according to the existing global, provider, agent, sender, sandbox, and subagent policies.
User Impact
Allowlisted senders can continue using permitted skill commands, while tools backed by owner credentials remain available only to owners.
Evidence
git diff --check./node_modules/.bin/oxfmt --check src/auto-reply/reply/get-reply-inline-actions.skip-when-config-empty.test.ts src/skills/runtime/tool-dispatch.ts src/skills/runtime/tool-dispatch.test.ts src/auto-reply/reply/get-reply-inline-actions.tsnode scripts/run-vitest.mjs src/skills/runtime/tool-dispatch.test.ts src/auto-reply/reply/get-reply-inline-actions.skip-when-config-empty.test.tsAI-assisted: Yes.