Skip to content

Skills: apply tool policy to direct slash dispatch - #46793

Closed
vincentkoc wants to merge 3 commits into
mainfrom
vincentkoc-code/pr-skill-tool-policy
Closed

vincentkoc wants to merge 3 commits into
mainfrom
vincentkoc-code/pr-skill-tool-policy

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

Summary

  • Problem: direct /skill inline dispatch only applied the owner-only filter and skipped the rest of the tool-policy pipeline.
  • Why it matters: inline slash dispatch should honor the same allow/deny and policy composition rules as the rest of tool execution.
  • What changed: route direct /skill dispatch through the full tool-policy resolution pipeline before exposing or invoking a tool.
  • What did NOT change: normal slash parsing and owner-only gating still apply first.

Change Type

  • Bug fix
  • Skills / tool execution

User-visible / Behavior Changes

  • Tools denied by config or policy now stay unavailable for direct /skill inline dispatch.
  • The unavailable-tool reply path now matches the rest of the tool-policy behavior.

Verification

  • pnpm test -- src/auto-reply/reply/get-reply-inline-actions.tool-policy.test.ts

Human Verification

  • Verified scenarios: a denied tool remains unavailable through direct /skill dispatch and is not executed.
  • Edge cases checked: the existing owner-only filter still runs before the full pipeline.
  • What I did not verify: no broad end-to-end chat surface run in this branch.

Compatibility / Migration

  • Backward compatible? Yes
  • Config/env changes? No
  • Migration needed? No

Failure Recovery

  • How to disable/revert this change quickly: revert this PR.
  • Known bad symptoms reviewers should watch for: inline /skill actions unexpectedly disappearing when a config deny rule already covers them.

@vincentkoc vincentkoc self-assigned this Mar 15, 2026
@openclaw-barnacle openclaw-barnacle Bot added size: M maintainer Maintainer-authored PR labels Mar 15, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review March 15, 2026 03:53
@greptile-apps

greptile-apps Bot commented Mar 15, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR fixes a security gap where direct /skill inline dispatch was only applying the owner-only filter and bypassing the rest of the tool-policy pipeline (profile, global, agent, provider, group, sandbox, and subagent policies). The fix extracts all tool resolution logic into a new resolveSkillDispatchTools helper and routes the dispatch path through applyToolPolicyPipeline, bringing it in line with every other tool-execution surface in the codebase.

Key changes:

  • New resolveSkillDispatchTools function in get-reply-inline-actions.ts that replicates the full policy-resolution sequence used by the agent runtime (owner gate → effective policy → group policy → profile policy → sandbox policy → subagent policy) and applies them via applyToolPolicyPipeline.
  • The inline dispatch call site is reduced to a single resolveSkillDispatchTools(...) call, removing ~20 lines of duplicated tool-setup code.
  • One new integration test verifies the denial path: a tool in cfg.tools.deny is blocked and never executed even when the sender is an owner.
  • The test suite has no positive-path coverage (an allowed tool that should be executed) nor a test that the owner-only gate still fires for non-owners. Adding these would protect against a future regression that blocks all tools or silently removes the ownership check.

Confidence Score: 4/5

  • Safe to merge; the fix is a well-scoped routing change with no backward-incompatible behaviour and a passing test for the regression path.
  • The core logic is correct and mirrors the established pattern used throughout the codebase. The change is backward compatible (owner-only gate still runs first, all existing policies still apply), the CHANGELOG is updated, and the critical denial path is tested. Score is 4 rather than 5 because the test suite lacks a positive-path assertion (allowed tool executes) and an owner-gate assertion for non-owners — gaps that could silently hide a future regression.
  • src/auto-reply/reply/get-reply-inline-actions.tool-policy.test.ts — would benefit from an additional positive-path test case.
Prompt To Fix All With AI
This is a comment left during a code review.
Path: src/auto-reply/reply/get-reply-inline-actions.tool-policy.test.ts
Line: 117-133

Comment:
**Missing positive-path and owner-gate test cases**

The suite only exercises the "denied by config" path. Two important scenarios are left uncovered:

1. **Allowed tool is actually executed** — without a test asserting that a non-denied tool reaches `execute`, a future regression that accidentally blocks _all_ tools in this path would be invisible to this suite.
2. **Owner-only gate still blocks non-owners** — the PR description states "the existing owner-only filter still runs before the full pipeline", but there is no assertion for it. Passing `senderIsOwner: false` for a tool marked `ownerOnly: true` should still block execution regardless of the `cfg.tools.deny` config.

Consider adding:

```typescript
it("executes an allowed tool through direct /skill dispatch", async () => {
  const input = createInput();
  // Override command so it targets the non-denied 'read' tool
  (input.skillCommands as SkillCommandSpec[]) = [
    {
      name: "read-skill",
      skillName: "read-skill",
      description: "Allowed direct tool dispatch",
      dispatch: { kind: "tool", toolName: "read" },
    },
  ];
  (input.command as any).rawBodyNormalized = "/read-skill test";
  (input.command as any).commandBodyNormalized = "/read-skill test";
  readExecuteMock.mockResolvedValue({ content: "OK" });

  const result = await handleInlineActions({ ...input, cleanedBody: "/read-skill test" });

  expect(result).toEqual({ kind: "reply", reply: { text: "OK" } });
  expect(readExecuteMock).toHaveBeenCalled();
});
```

How can I resolve this? If you propose a fix, please make it concise.

---

This is a comment left during a code review.
Path: src/auto-reply/reply/get-reply-inline-actions.ts
Line: 129-144

Comment:
**`agentId` destructured name shadows the outer parameter**

`resolveEffectiveToolPolicy` returns an `agentId` field (the normalized/resolved agent ID) which is destructured on this line using the same name as `params.agentId`. This silent shadow means any reader of the function body below this block cannot easily tell which `agentId` is active.

Consider renaming the destructured binding to `resolvedAgentId` (and updating its single usage in `buildDefaultToolPolicyPipelineSteps`) to make the distinction explicit and match the naming convention already used elsewhere for resolved values in this file.

How can I resolve this? If you propose a fix, please make it concise.

Last reviewed commit: 6b47a95

Comment on lines +117 to +133
describe("handleInlineActions skill tool dispatch", () => {
beforeEach(() => {
handleCommandsMock.mockReset();
gatewayExecuteMock.mockReset().mockResolvedValue({ content: "EXECUTED" });
readExecuteMock.mockReset().mockResolvedValue({ content: "READ" });
});

it("applies the tool policy pipeline before direct /skill tool execution", async () => {
const result = await handleInlineActions(createInput());

expect(result).toEqual({
kind: "reply",
reply: { text: "❌ Tool not available: gateway" },
});
expect(gatewayExecuteMock).not.toHaveBeenCalled();
});
});

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing positive-path and owner-gate test cases

The suite only exercises the "denied by config" path. Two important scenarios are left uncovered:

  1. Allowed tool is actually executed — without a test asserting that a non-denied tool reaches execute, a future regression that accidentally blocks all tools in this path would be invisible to this suite.
  2. Owner-only gate still blocks non-owners — the PR description states "the existing owner-only filter still runs before the full pipeline", but there is no assertion for it. Passing senderIsOwner: false for a tool marked ownerOnly: true should still block execution regardless of the cfg.tools.deny config.

Consider adding:

it("executes an allowed tool through direct /skill dispatch", async () => {
  const input = createInput();
  // Override command so it targets the non-denied 'read' tool
  (input.skillCommands as SkillCommandSpec[]) = [
    {
      name: "read-skill",
      skillName: "read-skill",
      description: "Allowed direct tool dispatch",
      dispatch: { kind: "tool", toolName: "read" },
    },
  ];
  (input.command as any).rawBodyNormalized = "/read-skill test";
  (input.command as any).commandBodyNormalized = "/read-skill test";
  readExecuteMock.mockResolvedValue({ content: "OK" });

  const result = await handleInlineActions({ ...input, cleanedBody: "/read-skill test" });

  expect(result).toEqual({ kind: "reply", reply: { text: "OK" } });
  expect(readExecuteMock).toHaveBeenCalled();
});
Prompt To Fix With AI
This is a comment left during a code review.
Path: src/auto-reply/reply/get-reply-inline-actions.tool-policy.test.ts
Line: 117-133

Comment:
**Missing positive-path and owner-gate test cases**

The suite only exercises the "denied by config" path. Two important scenarios are left uncovered:

1. **Allowed tool is actually executed** — without a test asserting that a non-denied tool reaches `execute`, a future regression that accidentally blocks _all_ tools in this path would be invisible to this suite.
2. **Owner-only gate still blocks non-owners** — the PR description states "the existing owner-only filter still runs before the full pipeline", but there is no assertion for it. Passing `senderIsOwner: false` for a tool marked `ownerOnly: true` should still block execution regardless of the `cfg.tools.deny` config.

Consider adding:

```typescript
it("executes an allowed tool through direct /skill dispatch", async () => {
  const input = createInput();
  // Override command so it targets the non-denied 'read' tool
  (input.skillCommands as SkillCommandSpec[]) = [
    {
      name: "read-skill",
      skillName: "read-skill",
      description: "Allowed direct tool dispatch",
      dispatch: { kind: "tool", toolName: "read" },
    },
  ];
  (input.command as any).rawBodyNormalized = "/read-skill test";
  (input.command as any).commandBodyNormalized = "/read-skill test";
  readExecuteMock.mockResolvedValue({ content: "OK" });

  const result = await handleInlineActions({ ...input, cleanedBody: "/read-skill test" });

  expect(result).toEqual({ kind: "reply", reply: { text: "OK" } });
  expect(readExecuteMock).toHaveBeenCalled();
});
```

How can I resolve this? If you propose a fix, please make it concise.

Comment on lines +129 to +144
const {
agentId,
globalPolicy,
globalProviderPolicy,
agentPolicy,
agentProviderPolicy,
profile,
providerProfile,
profileAlsoAllow,
providerProfileAlsoAllow,
} = resolveEffectiveToolPolicy({
config: params.cfg,
sessionKey: params.sessionKey,
agentId: params.agentId,
modelProvider: params.provider,
});

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agentId destructured name shadows the outer parameter

resolveEffectiveToolPolicy returns an agentId field (the normalized/resolved agent ID) which is destructured on this line using the same name as params.agentId. This silent shadow means any reader of the function body below this block cannot easily tell which agentId is active.

Consider renaming the destructured binding to resolvedAgentId (and updating its single usage in buildDefaultToolPolicyPipelineSteps) to make the distinction explicit and match the naming convention already used elsewhere for resolved values in this file.

Prompt To Fix With AI
This is a comment left during a code review.
Path: src/auto-reply/reply/get-reply-inline-actions.ts
Line: 129-144

Comment:
**`agentId` destructured name shadows the outer parameter**

`resolveEffectiveToolPolicy` returns an `agentId` field (the normalized/resolved agent ID) which is destructured on this line using the same name as `params.agentId`. This silent shadow means any reader of the function body below this block cannot easily tell which `agentId` is active.

Consider renaming the destructured binding to `resolvedAgentId` (and updating its single usage in `buildDefaultToolPolicyPipelineSteps`) to make the distinction explicit and match the naming convention already used elsewhere for resolved values in this file.

How can I resolve this? If you propose a fix, please make it concise.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6b47a95c6f

ℹ️ 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".

Comment on lines +139 to +144
} = resolveEffectiveToolPolicy({
config: params.cfg,
sessionKey: params.sessionKey,
agentId: params.agentId,
modelProvider: params.provider,
});

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Pass model ID into inline tool policy resolution

The direct /skill path resolves policies with modelProvider only, so model-scoped entries in tools.byProvider (for example openai/gpt-4o) never match in this flow. In configurations that rely on model-specific allow/deny rules, inline dispatch can still expose or execute tools that should be blocked; this should pass the selected model ID into resolveEffectiveToolPolicy to match normal tool-execution policy behavior.

Useful? React with 👍 / 👎.

Comment on lines +182 to +184
return applyToolPolicyPipeline({
tools: toolsByAuthorization,
toolMeta: (tool) => getPluginToolMeta(tool),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Avoid stripping allowlists against a reduced tool set

This pipeline runs over createOpenClawTools() (not the full core tool catalog) and uses default steps that strip allowlists when no "core" entries are found. If a policy/profile allowlist only names tools outside this reduced set (such as read/exec), the allowlist gets stripped and inline-dispatch tools like gateway remain available, which bypasses allowlist-based restrictions for /skill dispatch.

Useful? React with 👍 / 👎.

@vincentkoc

Copy link
Copy Markdown
Member Author

Addressed the follow-up notes.

  • Renamed the resolved agentId binding to avoid shadowing the request parameter.
  • Added a positive-path test for an allowed tool.
  • Added an owner-gate regression test for non-owner dispatch.

Verification:

  • pnpm test -- src/auto-reply/reply/get-reply-inline-actions.tool-policy.test.ts

@clawsweeper clawsweeper Bot added the rating: 🌊 off-meta tidepool PR readiness rating does not apply to this item. label May 19, 2026
@clawsweeper

clawsweeper Bot commented May 19, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: found issues before merge. Reviewed July 5, 2026, 8:32 AM ET / 12:32 UTC.

Summary
The PR routes direct /skill tool dispatch through tool-policy filtering, adds focused inline-dispatch regression tests, and adds a changelog entry.

PR surface: Source +112, Tests +167, Docs +1. Total +280 across 3 files.

Reproducibility: yes. source-level. The PR head omits model, sender, inherited, and declared-allowlist policy inputs, while current main has focused tests for denied, allowlisted, sender, subagent, and sandboxed inline dispatch paths; I did not run tests in this read-only review.

Review metrics: 1 noteworthy metric.

  • Policy Inputs Omitted: 4 confirmed missing. The branch lacks modelId, sender policy, inherited policy, and declared allowlist context that current main uses before authorizing direct /skill dispatch.

Root-cause cluster
Relationship: superseded
Canonical: #78525
Summary: This PR and the merged successor both address the direct inline skill dispatch tool-policy bypass; the successor is canonical because it merged with broader policy context, real behavior proof, and current-main tests.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge readiness
Overall: 🧂 unranked krab
Proof: 🌊 off-meta tidepool
Patch quality: 🧂 unranked krab
Result: blocked by patch quality or review findings.

Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch.

Rank-up moves:

Risk before merge

  • [P1] Merging or reviving this branch as-is could leave direct /skill dispatch outside model-specific, sender-specific, inherited, and declared-allowlist policy checks.
  • [P1] The PR is stale and conflicting against current main, so any revival needs a fresh port of the current resolver rather than a normal merge.

Maintainer options:

  1. Close the Superseded Branch (recommended)
    Close this PR after maintainer confirmation because the merged successor and release already cover the central security fix.
  2. Port Current Resolver Before Any Merge
    If this branch must continue, replace the branch helper with current-main skill dispatch policy handling and prove model, sender, inherited, and declared allowlist cases.

Next step before merge

  • [P2] A maintainer should close this protected, MEMBER-authored PR as superseded or explicitly request a fresh port; automated repair is not the right path for the stale security-boundary branch.

Maintainer decision needed

  • Question: Should this protected maintainer-labeled PR be closed as superseded by fix(skills): honor tool policy for inline dispatch #78525, or should the branch be revived with a fresh port of current-main policy handling?
  • Rationale: Automation should not auto-close a MEMBER-authored, maintainer-labeled PR, and the remaining choice is branch ownership rather than a safe repair on the stale head.
  • Likely owner: vincentkoc — vincentkoc owns and is assigned to this protected branch, and also has recent history in the inline action path.
  • Options:
    • Close as Superseded (recommended): Close this PR because the merged successor already shipped the stronger fix and this branch still has security-boundary gaps.
    • Revive With Fresh Port: Keep the PR open only if a maintainer wants to replace its helper with current-main resolver behavior and updated tests.
    • Keep Paused: Leave it open as a protected placeholder while a maintainer decides whether any branch-specific discussion still matters.

Security
Needs attention: The stale branch still has concrete tool-authorization gaps compared with current main, so it should not merge as-is.

Review findings

  • [P1] Pass the model into policy resolution — src/auto-reply/reply/get-reply-inline-actions.ts:139-144
  • [P1] Keep reduced dispatch allowlists restrictive — src/auto-reply/reply/get-reply-inline-actions.ts:182-202
Review details

Best possible solution:

Close this PR as superseded by #78525.

Do we have a high-confidence way to reproduce the issue?

Yes, source-level. The PR head omits model, sender, inherited, and declared-allowlist policy inputs, while current main has focused tests for denied, allowlisted, sender, subagent, and sandboxed inline dispatch paths; I did not run tests in this read-only review.

Is this the best way to solve the issue?

No. The current main implementation is the better fix because it isolates skill tool dispatch in src/skills/runtime/tool-dispatch.ts and carries the complete policy context used by the rest of runtime authorization.

Full review comments:

  • [P1] Pass the model into policy resolution — src/auto-reply/reply/get-reply-inline-actions.ts:139-144
    The branch calls resolveEffectiveToolPolicy with only modelProvider, so model-scoped tools.byProvider entries cannot match direct /skill dispatch. A model-specific deny can therefore still expose or execute the tool on this path.
    Confidence: 0.9
  • [P1] Keep reduced dispatch allowlists restrictive — src/auto-reply/reply/get-reply-inline-actions.ts:182-202
    This helper filters the inline dispatch tool set without the declared allowlist, sender policy, or inherited policy context that current main uses. Restrictive allowlists can be stripped or skipped, leaving a direct-dispatch target available when it should be unavailable.
    Confidence: 0.88

Overall correctness: patch is incorrect
Overall confidence: 0.92

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 785ab7477982; fix evidence: release v2026.6.11, commit e085fa1a3ffd.

Label changes

Label justifications:

  • P1: This PR touches a security-sensitive tool-policy bypass path, but current main and the latest release already contain the stronger fix.
  • merge-risk: 🚨 security-boundary: Merging the stale branch as-is could weaken direct skill-dispatch tool authorization compared with current main.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🌊 off-meta tidepool and patch quality is 🧂 unranked krab.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: This is a MEMBER-authored maintainer PR, so the external-contributor real-behavior proof gate does not apply.
Evidence reviewed

PR surface:

Source +112, Tests +167, Docs +1. Total +280 across 3 files.

View PR surface stats
Area Files Added Removed Net
Source 1 127 15 +112
Tests 1 167 0 +167
Docs 1 1 0 +1
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 3 295 15 +280

Security concerns:

  • [high] Model-scoped tool policy is skipped — src/auto-reply/reply/get-reply-inline-actions.ts:139
    The PR head does not pass modelId into effective policy resolution, leaving model-specific allow/deny rules unenforced for direct skill dispatch.
    Confidence: 0.9
  • [high] Restrictive policy context is incomplete — src/auto-reply/reply/get-reply-inline-actions.ts:182
    The PR head filters a reduced direct-dispatch tool set without current-main sender, inherited, and declared allowlist context, which can widen available tools.
    Confidence: 0.88

What I checked:

  • linked superseding PR: fix(skills): honor tool policy for inline dispatch #78525 (fix(skills): honor tool policy for inline dispatch) is merged at 2026-05-17T05:09:54Z.
  • cluster evidence: the durable review links that PR in the work cluster or recommended risk path.
  • no human follow-up: live comments and timeline hydrated by apply contain no non-automation activity after the ClawSweeper review.

Likely related people:

  • vincentkoc: The PR is assigned to vincentkoc, and current main history shows recent merged work in get-reply-inline-actions.ts plus the PR head commits for this branch. (role: branch owner and recent inline-action contributor; confidence: high; commits: b71d5609d98a, 76d686cf61f2, 1380a9e09400; files: src/auto-reply/reply/get-reply-inline-actions.ts, src/auto-reply/reply/get-reply-inline-actions.tool-policy.test.ts)
  • eleqtrizit: Authored the merged successor PR that implements the same central direct skill dispatch policy fix with broader policy inputs and proof. (role: current-main successor fix contributor; confidence: high; commits: 372acbbc01dc, c1baad8a66f1, 5fc34b7163da; files: src/skills/runtime/tool-dispatch.ts, src/auto-reply/reply/get-reply-inline-actions.ts, src/auto-reply/reply/get-reply-inline-actions.skip-when-config-empty.test.ts)
  • giodl73-repo: Recently changed declared tool allowlist handling in the shared policy pipeline that current skill dispatch relies on for safe filtering. (role: adjacent policy pipeline contributor; confidence: medium; commits: fadbcf8a4e43; files: src/skills/runtime/tool-dispatch.ts, src/agents/tool-policy-pipeline.ts)
  • shakkernerd: Recent skills centralization work moved and shaped the skill runtime files around the current dispatch resolver boundary. (role: skills subsystem refactor contributor; confidence: medium; commits: 6e026fbb4603, 355fb4d860e1, 22e2d1560f14; files: src/skills/runtime/tool-dispatch.ts, src/auto-reply/reply/get-reply-inline-actions.ts)
What the crustacean ranks mean
  • 🦀 challenger crab: rare, exceptional readiness with strong proof, clean implementation, and convincing validation.
  • 🦞 diamond lobster: very strong readiness with only minor maintainer review expected.
  • 🐚 platinum hermit: good normal PR, likely mergeable with ordinary maintainer review.
  • 🦐 gold shrimp: useful signal, but proof or patch confidence is still limited.
  • 🦪 silver shellfish: thin signal; proof, validation, or implementation needs work.
  • 🧂 unranked krab: not merge-ready because proof is missing/unusable or there are serious correctness or safety concerns.
  • 🌊 off-meta tidepool: rating does not apply to this item.

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
  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@clawsweeper

clawsweeper Bot commented May 20, 2026 •

Copy link
Copy Markdown
Contributor

ClawSweeper PR egg

🔥 Warming up: real-behavior proof passed; findings, security review, or rank-up moves are still in progress.

Hatch command

Comment @clawsweeper hatch when this PR is hatchable.

Hatchability rules:

  • Merged PRs are hatchable.
  • Open PRs are hatchable when they are status: 👀 ready for maintainer look, status: 🚀 automerge armed, or labeled clawsweeper:automerge.
  • Closed unmerged PRs are hatchable only when one of those hatchable labels is still present in the durable record.
What is this egg doing here?
  • Eggs appear after the PR passes real-behavior proof. It is here for vibes, not verdicts: it does not change labels, ratings, merge decisions, or automation.
  • The shell reacts to review momentum: open follow-up work warms it up, re-review makes it wobble, and a clean final review lets it hatch.
  • Hatchability usually comes from sufficient real-behavior proof, no blocking P0/P1/P2 findings, no security attention needed, and clean correctness. A merged PR is already final, so merge makes the egg hatchable independently.
  • The hatch is seeded from this repository and PR number, so the same PR keeps the same creature; the reviewed head SHA can only change safe visual details.
  • Rarity is just collectible sparkle: 🥚 common, 🌱 uncommon, 💎 rare, ✨ glimmer, and 🌈 legendary.

@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. P1 High-priority user-facing bug, regression, or broken workflow. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. and removed rating: 🌊 off-meta tidepool PR readiness rating does not apply to this item. labels May 22, 2026
@steipete

steipete commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Closing as superseded by #78525, merged in 9b96f8132781f012aeff6a0d1331f1bcde59f517.

That canonical implementation routes inline /skill tool dispatch through the current skill-tool-dispatch runtime and applies the full effective policy context: profile/provider/global/agent/group/sender policy, sandbox policy, subagent and inherited capability policy, declared tool allowlists, plugin metadata, model identity, and session context. Its regression suite covers denied and allowed tools plus sender-, ACP-envelope-, and sandbox-scoped cases.

I compared this branch against the landed helper and current callers. The original direction was correct, but this older patch is narrower and no longer has unique behavior worth replaying. Thanks @vincentkoc for identifying the direct-dispatch policy gap.

@steipete steipete closed this Jul 6, 2026
@shakkernerd
shakkernerd deleted the vincentkoc-code/pr-skill-tool-policy branch October 19, 2026 23:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P1 High-priority user-facing bug, regression, or broken workflow. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. size: M status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants