Repository navigation
fix(doctor): suppress false groupAllowFrom warning when per-account allowlists cover all accounts - #92990
Conversation
…llowlists cover all accounts When channels.<platform>.groupPolicy is "allowlist" and the top-level groupAllowFrom is empty, but every account has its own populated groupAllowFrom, openclaw doctor incorrectly warns that inbound group messages will be dropped. Add allTopLevelAccountsCoverGroupPolicy() check that only suppresses the top-level warning when all non-disabled accounts have their own allowlists, avoiding a false positive. Per-account warnings still fire for any individual uncovered account. Fixes openclaw#92684
|
Thanks for the context here. I did a careful shell check against current Close: current main already contains a narrower merged doctor scanner repair with regression tests, while this branch is now conflicting and would suppress more parent-scope diagnostics than the merged implementation. Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. So I’m closing this as already implemented rather than keeping a duplicate issue open. Review detailsBest possible solution: Keep the current-main implementation from #93434 and close this conflicting branch rather than merging a broader parent-scan skip. Do we have a high-confidence way to reproduce the issue? Yes. The original failure is source-reproducible from the old top-level parent scan path, and current main now has source and regression-test proof that the false warning is suppressed only under covered account scopes. Is this the best way to solve the issue? No. The submitted branch is not the best final fix because it skips the whole parent scan; the merged current-main repair is narrower and preserves parent-scope diagnostics. Security review: Security review cleared: The diff only changes doctor warning logic and adds no dependency, workflow, secret-handling, or code-execution surface. AGENTS.md: found and applied where relevant. What I checked:
Likely related people:
Codex review notes: model internal, reasoning high; reviewed against 23b8f5d03782; fix evidence: commit d697ecf1720e, main fix timestamp 2026-06-16T16:51:04+08:00. |
|
ClawSweeper applied the proposed close for this PR.
|
Summary
Fixes #92684.
When
channels.<platform>.groupPolicyis "allowlist" and the top-levelgroupAllowFromis empty, but every account has its own populatedgroupAllowFrom,openclaw doctorincorrectly warns that inbound group messages will be dropped. At runtime, per-account allowlists handle routing correctly.What changed
allTopLevelAccountsCoverGroupPolicy()that checks whether every non-disabled account under a channel has its own populated allowlist (groupAllowFrom, allowFrom, or dm.allowFrom).Real behavior proof
node --import tsx scripts/repro/repro-92684-doctor-false-positive.mtsnode scripts/run-vitest.mjs src/commands/doctor/shared/empty-allowlist-scan.test.tsopenclaw doctorend-to-end with actual config files on disk.