Skip to content

fix(config): warn on empty allow tool policies in validate - #147490

Open
Navras98 wants to merge 2 commits into
openclaw:mainfrom
Navras98:feat/validate-empty-allow-warn
Open

Navras98 wants to merge 2 commits into
openclaw:mainfrom
Navras98:feat/validate-empty-allow-warn

Conversation

@Navras98

@Navras98 Navras98 commented Sep 13, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

An explicit allow: [] in a tool policy reads as deny-all but the matcher treats it as allow-all — identical to omitting allow. openclaw config validate reported Config valid with no warning. Field case: WhatsApp sender policies documented as restricted with allow: [] while every non-denied tool stayed allowed.

Changes

Warn-only; matcher semantics, exit codes and JSON shape unchanged:

  • src/config/validation-core.ts: pushEmptyAllowWarning now takes alsoAllowNarrows — suppression applies only to tools.subagents.tools, the single scope where mergeConfiguredSubagentAllow (src/agents/agent-tools.policy.ts:87-89) narrows [] + alsoAllow to the alsoAllow list. Global/sandbox stay permissive (pickSandboxToolPolicy maps to ["*", ...alsoAllow] per src/agents/sandbox-tool-policy.test.ts:39-48; mergeAllowlist in src/agents/sandbox/tool-policy.ts:54-62 preserves []), so they still warn. Collector now also visits tools.byProvider.*, agents.entries.*.tools.byProvider.* (consumed at src/agents/agent-tools.policy.ts:391/396 via CommonToolPolicyFields.byProvider at src/config/zod-schema.agent-runtime.ts:631) and agents.entries.*.tools.sandbox.tools (AgentToolsSchema.sandbox at :722-726).
  • src/config/validation.ts:264: wires the combined collector into the existing snapshot warnings channel (validate already prints and JSON-serializes warnings; no CLI plumbing needed).
  • docs/tools/subagents/tool-policy.md: sole-exception wording — only tools.subagents.tools narrows with alsoAllow; all other scopes warn.
  • src/config/empty-allow-policy-warnings.test.ts: 8 tests (global, per-sender, agent entries, subagents/sandbox, subagent-only silence, global+sandbox warn with alsoAllow, byProvider + nested sandbox coverage, omit silence).

Correction: the original blanket alsoAllow exception was wrong — withdrawn (see concession comments with sandbox-tool-policy.test.ts + tool-policy.ts refs). Now scope-aware.

Evidence

Branch-source run from this head (21684cda) via collectConfigValidationWarnings (the validation.ts:264 snapshot path):

WARNINGS:8
! agents.entries.chat.tools: Empty allow list permits everything not denied; use deny:["*"] to deny all or omit allow to keep the default.
! agents.entries.chat.tools.byProvider.anthropic: Empty allow list permits everything not denied; use deny:["*"] to deny all or omit allow to keep the default.
! agents.entries.chat.tools.sandbox.tools: Empty allow list permits everything not denied; use deny:["*"] to deny all or omit allow to keep the default.
! agents.entries.chat.tools.toolsBySender.e164:+390****0000: Empty allow list permits everything not denied; use deny:["*"] to deny all or omit allow to keep the default.
! tools: Empty allow list permits everything not denied; use deny:["*"] to deny all or omit allow to keep the default.
! tools.byProvider.openai: Empty allow list permits everything not denied; use deny:["*"] to deny all or omit allow to keep the default.
! tools.sandbox.tools: Empty allow list permits everything not denied; use deny:["*"] to deny all or omit allow to keep the default.
! tools.toolsBySender.e164:+390****0000: Empty allow list permits everything not denied; use deny:["*"] to deny all or omit allow to keep the default.

Notably absent: tools.subagents.tools with { allow: [], alsoAllow: ["read"] } stays silent (narrowing proven), while tools and tools.sandbox.tools with the same pair warn (still permissive). Both P2 findings resolved through the validation boundary.

Gates on this head:

  • src/config/empty-allow-policy-warnings.test.ts: 8/8 pass
  • src/commands/doctor/shared/empty-allowlist-policy.test.ts + channel-doctor.test.ts: 19/19 pass
  • [email protected]: 0 warnings 0 errors; [email protected] --check: clean; git diff --check: clean
  • Absent on main: main has zero collectEmptyAllowPolicyWarnings warnings for byProvider/nested sandbox; branch adds them.
  • CI on head 4cd90aa9 (run 34838344387 + 34838344518): touched-area gates green (8/8 new tests, 19/19 doctor tests, lint/format/diff-check clean, Critical Quality config-boundary pass). 5 remaining fails are upstream/unrelated, zero file overlap with this PR's 4 touched files — verified 2026-09-14: changed-extensions-config-54 (qa-lab coverage timeout 60s), compact-large-12 (src/state/openclaw-agent-db-module-identity timeout 45s, byte-identical on feat(skills): add requires.anyEnv alternate credentials (sag accepts SAG_API_KEY) #147455), compact-small-12 (docker-build-helper clawhub-fixture assertion, already failing on clean main per feat(skills): add requires.anyEnv alternate credentials (sag accepts SAG_API_KEY) #147455 thread), dependency-guard-detect (500 Internal Server Error, infra), ci-gate (aggregate). Local re-proof on this head: collector 8 warnings with tools.subagents.tools silent, 8/8 unit replications pass, oxlint 0, oxfmt + diff-check clean. These shards need a maintainer re-run, not a code fix.

Evidence update 2026-11-02 — refreshed integration proof, credit jerome-queck with permission

Head 99e3d45 predates current main refactors, gh pr update-branch reports conflicts, rebase is planned. To unblock the reviewer request for real output from the refreshed integration path (validation-plugin-rules.ts), pasting below the Linux run jerome-queck captured on the equivalent logic merged onto current main, with his permission from the 2026-11-01 comment. This run is his, not mine. My own refreshed-branch run will follow after the rebase.

Config under test: allow: [] at every level (tools, toolsBySender, byProvider, subagents.tools, sandbox.tools, and the same under agents.entries.chat.tools). Run method: source (node --import ./scripts/tsx.mjs src/entry.ts), isolated HOME per case. His branch head 884b51c; before is the same tree with src/config/validation-core.ts and src/config/validation-plugin-rules.ts reset to origin/main 2c0ab86fa41.

Before on main: openclaw config validate prints Config valid with exit 0, --json returns valid true with warnings []. After on branch: Config valid with 9 warnings, one per scope listed above. JSON returns valid true with 9 warning entries with the same message. Exit stays 0 in both cases. No-warn cases identical on main and branch: subagents allow: [] + alsoAllow: ["read"] stays silent, allow omitted or non-empty stays silent. Tests on that tree: src/config/empty-allow-policy-warnings.test.ts 8 failed on main sources (collectConfigValidationWarnings not exported on main), 8 passed on branch. oxfmt --check clean on 4 files, oxlint 0 errors, git diff --check clean, TruffleHog filesystem scan of the 4 touched files 0 verified and 0 unverified.

Full terminal transcript is in jerome-queck's 2026-11-01 comment on this PR. Keeping this PR as the primary validate-warning implementation. The companion doctor-note PR #190269 stays as the alternative surface; maintainer decides which surface to land. Happy to add jerome-queck as co-author on the rebased commits.

Risk

Warn-only addition. Suppression is now scope-aware (subagents only). No matcher, exit-code, or JSON-contract change. Worst case: a warning an operator disagrees with — actionable guidance included.

Rollback

Revert the branch commits; validate returns to prior behavior with no migration.

Follow-ups (out of scope)

  • doctor surfacing an emptyAllowPolicies count
  • Exit-policy for gates consuming warnings

Refs #147342.

Evidence update 2026-11-02 — rebased run on current main (mine)

Branch rebased: head 87372713 on current main, forced update of feat/validate-empty-allow-warn. Previous conflict on update-branch is resolved by re-applying the collector onto the new structure. Co-authored with jerome-queck.

Fresh runs from this rebased tree, source via node --import ./scripts/tsx.mjs src/entry.ts, isolated HOME per case:

Config with allow [] at every level (tools, toolsBySender, byProvider, subagents tools, sandbox tools, same under agents entries chat tools):

openclaw config validate prints Config valid with 9 warnings, one per scope, exit 0. openclaw config validate --json returns valid true with 9 warning entries with the same message, exit 0.

No-warn cases on the same tree: subagents allow [] paired with alsoAllow read stays silent, Config valid with no warnings. Allow omitted or non-empty stays silent, Config valid with no warnings.

Tests on this tree: src/config/empty-allow-policy-warnings.test.ts 8 passed out of 8. oxfmt check clean on the 3 touched source and test files. oxlint clean on the same files. git diff check clean for the 4 touched files.

CI on the pushed head is running. Requesting fresh review:

@clawsweeper re-review

Evidence update 2026-11-03 — review feedback addressed (mine)

Removed the test-only collectConfigValidationWarnings wrapper from validation-core.ts. Production wiring stays as the single call in validation-plugin-rules.ts to collectEmptyAllowPolicyWarnings. The test file now exercises the real production owner validateConfigObjectWithPlugins with fixed plugin metadata, following validation.policy.test.ts, so the assertions fail if the wiring is removed.

Fresh runs on head d12da06, source via node --import ./scripts/tsx.mjs src/entry.ts with isolated HOME per case, plus vitest:

Targeted tests: src/config/empty-allow-policy-warnings.test.ts 8 passed out of 8 through the production owner. Base behavior proof on clean main with the same test file: 6 warn cases fail with 0 warnings, 2 silence cases pass, which is the true behavioral red. CLI validate on the all-empty config prints Config valid with 9 warnings, exit 0. CLI validate --json returns valid true with 9 warning entries, exit 0. Subagents allow plus alsoAllow stays silent, allow omitted stays silent. oxfmt check clean and oxlint clean on the 3 touched source and test files.

CI on the pushed head is running. Requesting fresh review:

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 13, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation size: S labels Sep 13, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 13, 2026
@clawsweeper

clawsweeper Bot commented Sep 13, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: stale review; fresh review needed.

Summary
The latest durable ClawSweeper review was for head d12da065bc984e8dc1e2ad886da19d9f5a0b87bc, but the PR head is now def3709dce16c82cab3b2512d749542d6ab4952a. Its old verdict and PR readiness labels are no longer current.

Next step
Comment @clawsweeper re-review when the current head is ready; pushes after the first review are not reviewed automatically.

Review history (16 earlier review cycles; latest 8 shown)
  • reviewed 2026-09-22T08:59:04.631Z sha 205cc362a5c24f8ee8acd2876a8fb709778ebe77 :: blocked before merge. :: none
  • reviewed 2026-09-27T21:05:06.451Z sha 205cc362a5c24f8ee8acd2876a8fb709778ebe77 :: blocked before merge. :: none
  • reviewed 2026-10-05T15:17:48.646Z sha 205cc362a5c24f8ee8acd2876a8fb709778ebe77 :: blocked before merge. :: none
  • reviewed 2026-10-16T15:37:15.443Z sha 99e3d45 :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-16T17:44:21.385Z sha 99e3d45 :: needs real behavior proof before merge. :: none
  • reviewed 2026-11-02T09:26:08.743Z sha 99e3d45 :: needs changes before merge. :: none
  • reviewed 2026-11-02T09:40:51.719Z sha 87372713f65ef1562f4d155216dc56e0cc75acff :: needs changes before merge. :: [P2] Remove the test-only warning aggregator and test the existing owner
  • reviewed 2026-11-03T10:30:45.442Z sha d12da06 :: blocked before merge. :: none

@Navras98

Copy link
Copy Markdown
Contributor Author

You're right on both P2s — verified in-tree just now:

  • Scope exists: ToolPolicySchema (src/config/zod-schema.agent-runtime.ts:147) carries alsoAllow (:141), and tools.subagents.tools (:820) + tools.sandbox.tools (:827) both use it. My commit-message claim of "no ToolPolicyLike surface" was wrong — I had only read the typed-config/policy layer, not the zod schema layer. That sentence is withdrawn.
  • alsoAllow exception is real: mergeConfiguredSubagentAllow (src/agents/agent-tools.policy.ts:87-89, consumed at :110-115) maps allow: [] + alsoAllow: ["read"] to ["read"], while omitted allow stays undefined. Not equivalent, so the unconditional docs wording was false.

Fix pushed as 18c76ecc: collector now visits tools.subagents.tools + tools.sandbox.tools, skips allow: [] paired with non-empty alsoAllow, docs qualify the exception, lint is clean (oxlint 0 errors on the 3 touched source files, git diff --check clean), tests extended (subagents/sandbox scopes + alsoAllow silence). Watching CI on the new head; I'll update the PR body with the evidence once the gate is green.

@Navras98
Navras98 force-pushed the feat/validate-empty-allow-warn branch from f1e9298 to 29a10a0 Compare September 14, 2026 07:47
@Navras98

Copy link
Copy Markdown
Contributor Author

Real end-to-end proof from this branch source (29a10a01), isolated OPENCLAW_HOME with allow: [] at four scopes:

Text:

Config valid: $OPENCLAW_HOME/.openclaw/openclaw.json
4 warning(s):
  ! tools: Empty allow list permits everything not denied; use deny:["*"] to deny all or omit allow to keep the default.
  ! tools.toolsBySender.e164:+390000000000: Empty allow list permits everything not denied; use deny:["*"] to deny all or omit allow to keep the default.
  ! tools.subagents.tools: Empty allow list permits everything not denied; use deny:["*"] to deny all or omit allow to keep the default.
  ! agents.entries.chat.tools: Empty allow list permits everything not denied; use deny:["*"] to deny all or omit allow to keep the default.

JSON (--json): {"valid":true,"path":"...","warnings":[{"path":"tools",...},{"path":"tools.toolsBySender.e164:+390000000000",...},{"path":"tools.subagents.tools",...},{"path":"agents.entries.chat.tools",...}]} — same array the CLI prints, exit 0, shape unchanged.

alsoAllow exception: tools.subagents.tools: { allow: [], alsoAllow: ["read"] } validates Config valid with zero warnings — the merge keeps ["read"], so no warning fires.

Repro notes: canonical config at $OPENCLAW_HOME/.openclaw/openclaw.json; run from source via node --import ./scripts/tsx.mjs src/entry.ts config validate [--json]. No real secrets involved.

@Navras98

Copy link
Copy Markdown
Contributor Author

Both P2s fixed in 21684cda (verified in-tree, see body for file:line refs):

  • alsoAllow exception is now scope-aware: only tools.subagents.tools suppresses (narrowing via mergeConfiguredSubagentAllow); global/sandbox with alsoAllow now warn (still permissive via pickSandboxToolPolicy/mergeAllowlist). My blanket-exception sentence is withdrawn.
  • Collector now visits tools.byProvider.*, agents.entries.*.tools.byProvider.* and agents.entries.*.tools.sandbox.tools — branch-source run shows 8 warnings with subagents silent, all redacted synthetic config.

Gates: 8/8 new tests, 19/19 related doctor tests, oxlint + oxfmt + diff-check clean. Full transcript in body.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@Navras98

Copy link
Copy Markdown
Contributor Author

Fresh evidence on current head 09e822bb (knip fix only narrowed the module API + reworked tests; warning behavior unchanged since the CLI proof in the previous comment):

  • vitest run src/config/empty-allow-policy-warnings.test.ts — 6/6 pass (global, toolsBySender, agent entry + sender overrides, subagents/sandbox scopes, alsoAllow silence, omit/non-empty silence)
  • oxlint on the 3 touched source files — 0 warnings, 0 errors
  • oxfmt --check on 3 sources + docs — clean; git diff --check — clean
  • CI on this head: all completed checks green, only preflight still queued, zero failures

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 14, 2026
@Navras98

Copy link
Copy Markdown
Contributor Author

Update on current head 21684cda (verified locally just now): vitest run src/config/empty-allow-policy-warnings.test.ts — 8/8 pass, oxlint 0 errors, oxfmt --check + git diff --check clean. Prior CLI proof behavior unchanged.

@Navras98

Copy link
Copy Markdown
Contributor Author

P2 doc finding addressed in 4cd90aa9: the sandbox callout no longer equates omitted and empty allow lists — it now states the verified inheritance (nested agent sandbox.tools without allow inherits global tools.sandbox.tools.allow, else DEFAULT_TOOL_ALLOW; writing [] overrides with allow-all) and corrects the [] + alsoAllow claim (resolves to [], verified in mergeAllowlist, src/agents/sandbox/tool-policy.ts). Checks on this head: target tests 8/8, oxlint 0, oxfmt + diff-check clean, docs:check-config-examples exit 0.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 14, 2026
@openclaw-barnacle openclaw-barnacle Bot reopened this Sep 14, 2026
@Navras98

Navras98 commented Nov 2, 2026

Copy link
Copy Markdown
Contributor Author

Hi @jerome-queck — thank you for the careful proof and for keeping authorship on 99e3d45.

I have pasted your Linux refreshed-integration run into the Evidence section above, clearly credited as your run with your permission, plus a note that my own refreshed-branch run follows after the rebase.

Status on my side: head 99e3d45 predates the current main refactors (workshop policy removal, mcp transport, utility warnings, heartbeat-owner removal), gh pr update-branch reports conflicts, so a clean rebase of the collector onto current validation-plugin-rules.ts is needed. I am keeping this PR as the primary validate-warning implementation and I am happy to add you as co-author on the rebased commits.

Proposal: keep #147490 for the validate warning, keep #190269 as the doctor-note alternative, maintainer picks the surface, the other closes in favour. If you prefer to carry the doctor approach here instead, say so and I will close this one in favour of #190269 with joint credit.

Requesting a fresh review after the Evidence update:

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. labels Nov 2, 2026

Copy link
Copy Markdown
Contributor

Thanks so much @Navras98, and thanks for crediting the run in the Evidence section! Your proposal sounds great to me: keep #147490 as the primary validate-warning path and #190269 as the bounded doctor-note alternative, let the maintainers pick the surface, and close the other in favour with joint credit. Happy to be co-author on your rebased commits, and I'll do the same for you on #190269 if that's the one that lands. Ping me anytime if a hand with the rebase would help.

@Navras98
Navras98 force-pushed the feat/validate-empty-allow-warn branch from 99e3d45 to 8737271 Compare November 2, 2026 09:35
@Navras98

Navras98 commented Nov 2, 2026

Copy link
Copy Markdown
Contributor Author

Rebased and pushed: head 87372713 on current main, same branch feat/validate-empty-allow-warn, co-authored with @jerome-queck.

What changed vs the old head: collector re-applied onto the new structure (validation-core plus wiring in validation-plugin-rules), no heartbeat code, docs callout kept.

Real runs on this tree: 8/8 tests pass in empty-allow-policy-warnings, CLI validate shows 9 warnings on the all-empty config and stays silent for subagents allow plus alsoAllow and for omitted allow, oxfmt and oxlint clean. Full transcript is in the new Evidence section above. CI on the pushed head is running.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. labels Nov 2, 2026
Remove the test-only collectConfigValidationWarnings wrapper. Tests now
exercise validateConfigObjectWithPlugins with fixed plugin metadata, so
they fail if the wiring in validation-plugin-rules is removed.
Base run is red by behavior (0 warnings), branch run is green. Refs openclaw#147342.

Co-authored-by: jerome-queck <[email protected]>
@Navras98
Navras98 force-pushed the feat/validate-empty-allow-warn branch from 8737271 to d12da06 Compare November 3, 2026 10:24
@Navras98

Navras98 commented Nov 3, 2026

Copy link
Copy Markdown
Contributor Author

Re-review feedback addressed and pushed: head d12da06, same branch, co-authored with @jerome-queck.

What changed: removed the test-only collectConfigValidationWarnings wrapper from validation-core. Production wiring is now the single call to collectEmptyAllowPolicyWarnings in validation-plugin-rules. Tests exercise the real production owner validateConfigObjectWithPlugins with fixed plugin metadata, following validation.policy.test.ts, so they go red if the wiring is removed.

Real runs on this head: 8/8 tests pass through the production owner. Same test file on clean main: 6 warn cases fail with 0 warnings and 2 silence cases pass, true behavioral red. CLI validate shows the 9 warnings in text and json, silent on the narrowing and omit cases. oxfmt and oxlint clean. Full transcript is in the new Evidence section above. CI on the pushed head is running.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. status: ⏳ waiting on maintainer Only explicit maintainer approvals or decisions remain; merge is still blocked. and removed status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. clawsweeper:intake:bug Preliminary submission classification; full source review pending. labels Nov 3, 2026
cursor Bot pushed a commit to jerome-queck/openclaw that referenced this pull request Nov 5, 2026
Stay silent when a non-empty deny or alsoAllow accompanies allow: [], so
the warning targets only configs that read as deny-all but restrict nothing.
Refs openclaw#147342. Builds on Navras98's openclaw#147490.

Co-authored-by: Andrea Sforna <[email protected]>
cursor Bot pushed a commit to jerome-queck/openclaw that referenced this pull request Nov 5, 2026
Doctor now reports bare allow: [] on provider, sender, sandbox, agent,
and channel tool policies, and stays quiet only where alsoAllow actually
narrows the list. Config validate is unchanged so openclaw#147490 keeps that
surface. Refs openclaw#147342.

Co-authored-by: Jerome <[email protected]>
@clawsweeper clawsweeper Bot removed proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on maintainer Only explicit maintainer approvals or decisions remain; merge is still blocked. labels Nov 8, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation P2 Normal backlog priority with limited blast radius. size: M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants