Skip to content

fix(doctor): suppress false empty groupAllowFrom warning when all accounts have populated allowlists - #93305

Closed
whiteyzy wants to merge 2 commits into
openclaw:mainfrom
whiteyzy:fix/92684-doctor-empty-allowlist-v2
Closed

whiteyzy wants to merge 2 commits into
openclaw:mainfrom
whiteyzy:fix/92684-doctor-empty-allowlist-v2

Conversation

@whiteyzy

Copy link
Copy Markdown
Contributor

Summary

Fixes #92684: openclaw doctor falsely warns "all group messages will be silently dropped" when a channel has groupPolicy: "allowlist" with an empty top-level groupAllowFrom, but every real account under it carries its own populated groupAllowFrom/allowFrom.

Fix: In scanEmptyAllowlistPolicyWarnings, detect when all non-disabled accounts have populated allowlists and pass a shouldSkipGroupWarning function to suppress the false positive for the top-level scope.

Real behavior proof

  • Behavior or issue addressed: doctor false-positively warns about empty top-level groupAllowFrom despite per-account allowlists
  • Real environment tested: macOS, Node v22.22.3, latest upstream/main (301213a)
  • Exact steps or command run after this patch: node scripts/run-vitest.mjs run src/commands/doctor/repair-sequencing.test.ts --reporter=verbose
  • Evidence after fix: 12/12 passed — includes "applies ordered repairs and sanitizes empty-allowlist warnings"
  • Observed result after fix: Top-level empty groupAllowFrom no longer triggers warning when every account supplies its own list
  • What was not tested: End-to-end openclaw doctor with live multi-account channel config (requires gateway)

Closes #92684.


🤖 Generated with Claude Code
Co-Authored-By: Claude Code [email protected]

…ounts have populated allowlists

When every real account under a channel has its own populated
groupAllowFrom or allowFrom, the top-level empty groupAllowFrom
is never reached at runtime. Skip the warning in this case.

Closes openclaw#92684.
@openclaw-barnacle openclaw-barnacle Bot added commands Command implementations size: XS triage: mock-only-proof Candidate: PR proof only shows tests, mocks, snapshots, lint, typecheck, or CI. labels Jun 15, 2026
@clawsweeper

clawsweeper Bot commented Jun 15, 2026 •

Copy link
Copy Markdown
Contributor

Thanks for the context here. I swept through the related work, and this is now duplicate or superseded.

Close as superseded: the same doctor false-positive was fixed by the merged canonical PR and shipped in v2026.6.10, while this stale branch is narrower than current main and would drop current account-resolution safeguards.

Root-cause cluster
Relationship: superseded
Canonical: #93434
Summary: The same doctor parent groupAllowFrom false-positive cluster is already fixed by the merged canonical PR; this PR is a duplicate stale attempt with a narrower suppression strategy.

Members:

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

Canonical path: Keep the merged current-main implementation from #93434; if a plugin-specific warning still false-positives on current main, track that as a fresh narrow issue with redacted openclaw doctor output.

So I’m closing this here and keeping the remaining discussion on #93434.

Review details

Best possible solution:

Keep the merged current-main implementation from #93434; if a plugin-specific warning still false-positives on current main, track that as a fresh narrow issue with redacted openclaw doctor output.

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

Yes, source-reproducible. The linked issue describes the parent-channel false warning, and current main has focused regression tests for the fixed scanner path; I did not run tests because this review is read-only.

Is this the best way to solve the issue?

No. This branch is not the best fix because the canonical merged path resolves runtime account identities and preserves conservative warnings, while this PR keeps a configured-account-only suppression strategy.

Security review:

Security review cleared: No concrete security or supply-chain issue was found; the diff only changes doctor warning logic in one TypeScript source file.

AGENTS.md: found and applied where relevant.

What I checked:

Likely related people:

  • vincentkoc: Live canonical PR metadata shows this person authored the runtime-account hardening commits and merged the canonical doctor false-positive fix. (role: recent area contributor and merger; confidence: high; commits: 80d230196894, a111fda1fecf, 9afea700a357; files: src/commands/doctor/channel-capabilities.ts, src/commands/doctor/shared/empty-allowlist-scan.ts, src/commands/doctor/shared/empty-allowlist-scan.test.ts)
  • kingrubic: This person opened the merged canonical PR and authored the initial implementation commit for the parent group allowlist false-positive fix. (role: canonical source PR author; confidence: high; commits: 1e3050e736fc, d697ecf1720e; files: src/commands/doctor/shared/empty-allowlist-scan.ts, src/commands/doctor/shared/empty-allowlist-scan.test.ts)

Codex review notes: model internal, reasoning high; reviewed against d1b917120a47; fix evidence: release v2026.6.10, commit d697ecf1720e.

@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. labels Jun 15, 2026
@whiteyzy

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

This is a deterministic scope check in the doctor empty-allowlist scanner. When every real account under a channel has its own populated groupAllowFrom/allowFrom, the top-level empty allowlist is never reached at runtime. The fix checks this condition before generating the warning. 12/12 tests pass.

@clawsweeper

clawsweeper Bot commented Jun 18, 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 repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

Re-review progress:

…wlist scan

- Only skip top-level warning when at least one enabled account exists
- Also suppress plugin extraWarningsForAccount for the top-level scope
  when all enabled accounts have populated allowlists
- Disabled accounts no longer count as 'covered'

Refs: openclaw#92684
@whiteyzy

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Updated (per P1 review feedback):

  • Enabled account requirement: Only skip the top-level warning when at least one enabled account exists with a populated allowlist. Disabled-only account maps no longer suppress the warning.
  • Extra warnings gated: Plugin extraWarningsForAccount now also suppressed for the top-level scope when all enabled accounts have allowlists.
  • Real proof: Direct scanner output via npx tsx demonstrates the fix on the documented config shape. 12/12 tests pass.

@clawsweeper

clawsweeper Bot commented Jun 18, 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 repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Jun 21, 2026
@steipete steipete closed this Jul 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

commands Command implementations merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. size: XS status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. triage: mock-only-proof Candidate: PR proof only shows tests, mocks, snapshots, lint, typecheck, or CI.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

doctor over-warns on an empty top-level groupAllowFrom despite populated per-account allowlists (2026.6.5)

2 participants