Repository navigation
Conversation
Greptile SummaryThis PR fixes a two-phase tool-policy bug in embedded runs: Confidence Score: 5/5Safe to merge — fix is narrowly scoped, deny-wins is preserved, and key regression cases are covered. No P0 or P1 findings. No files require special attention. Reviews (1): Last reviewed commit: "Agents: re-expose force-allowed core too..." | Re-trigger Greptile |
d43df58 to
781130b
Compare
|
ClawSweeper review: did not complete due to Codex infrastructure failure. Reviewed June 29, 2026, 12:15 AM ET / 04:15 UTC. Summary PR surface: Source +41, Tests +76. Total +117 across 5 files. Reproducibility: unclear. The review failed before ClawSweeper could establish a reproduction path. Review metrics: none identified. Merge readiness This is a ClawSweeper/Codex infrastructure failure, not a PR readiness or patch-quality verdict. Risk before merge
Maintainer options:
Next step before merge
Review detailsBest possible solution: Retry the Codex review after fixing the execution failure. Do we have a high-confidence way to reproduce the issue? Unclear. The review failed before ClawSweeper could establish a reproduction path. Is this the best way to solve the issue? Unclear. Retry the review first so ClawSweeper can evaluate the actual issue and fix direction. AGENTS.md: unclear because the file could not be read completely. Codex review notes: model internal, reasoning high; reviewed against dd6143f60c24. Label changesLabel changes:
Evidence reviewedPR surface: Source +41, Tests +76. Total +117 across 5 files. View PR surface stats
What I checked:
Likely related people:
How this review workflow works
|
|
ClawSweeper PR egg 🎁 Pass real behavior proof to wake the egg and unlock a hatchable treat. Where did the egg go?
|
|
This pull request has been automatically marked as stale due to inactivity. |
|
Thanks for the contribution. I’m closing this stale PR because the latest review rated the current branch F: it still lacks the requested real-behavior proof or merge-ready branch shape, and there has been no human follow-up after the review. A fresh, focused PR against current |
Summary
Describe the problem and fix in 2–5 bullets:
toolsAllowaftercreateOpenClawCodingTools, so restrictive config allowlists could removeexec/read/writebeforetoolsAllowhad any effect.toolsAllow: ["exec"]still lostexecunder configs liketools.allow: ["group:openclaw"], breaking workflows that depended on explicit per-run tool exposure.runEmbeddedAttemptnow forwardstoolsAllowintocreateOpenClawCodingTools, and the tool policy merge re-exposes explicitly requested core tools through restrictive config allowlists without overridingdeny.deny, sandbox/group/subagent tool policies, or provider/runtime capability gating.Change Type (select all)
Scope (select all touched areas)
Linked Issue/PR
Root Cause (if applicable)
runEmbeddedAttemptonly did a final.filter()againsttoolsAllow, butcreateOpenClawCodingToolshad already applied config-driven allowlists. Once the policy pipeline filtered a core tool out, the later post-filter could not re-add it.toolsAllowunder a restrictive config allowlist such asgroup:openclaw.group:openclawintentionally excludesexec,process,read,write, andedit, so the bug is deterministic under configs that rely on that group and then expecttoolsAllowto re-expose a core tool for a specific run.Regression Test Plan (if applicable)
src/agents/pi-tools-agent-config.test.ts,src/agents/pi-embedded-runner/run/attempt.memory-flush-forwarding.test.tsdenycontinues to win.runEmbeddedAttempt -> createOpenClawCodingToolsforwarding seam.User-visible / Behavior Changes
Embedded runs that set
toolsAllowcan now re-expose the requested core tools (exec,read,write, etc.) even when a restrictive config allowlist would otherwise hide them. Explicitdenystill wins.Diagram (if applicable)
Security Impact (required)
Yes, explain risk + mitigation:The PR allows an embedded run to re-expose explicitly requested core tools through restrictive config allowlists. Mitigation: the re-exposure is limited to named core tools for that run, explicit
denystill wins, and sandbox/group/subagent/provider/runtime restrictions still apply.Repro + Verification
Environment
openai/gpt-5.4tools.profile: "full",tools.allow: ["group:openclaw"]Steps
tools.allow: ["group:openclaw"].toolsAllow: ["exec"].Expected
execfor that run unless a stronger deny/runtime restriction blocks it.Actual
execwas missing because it had already been filtered out beforetoolsAllowwas applied.Evidence
Attach at least one:
Human Verification (required)
attempt.memory-flush-forwardingtest file;pnpm check;pnpm build.denystill blocks forced tools, and only known core tool ids are re-exposed.Review Conversations
Compatibility / Migration
Risks and Mitigations
toolsAllowrequest could unintentionally widen a restrictive config allowlist too broadly.denysemantics are preserved.