Repository navigation
fix(doctor): skip top-level allowlist scan when active per-account scopes exist - #93246
1052326311 wants to merge 1 commit into
Conversation
…opes exist The empty-allowlist doctor scanner treated the top-level channel config as its own standalone account, producing false 'empty allowlist' warnings when every active account under that channel supplied its own populated groupAllowFrom / allowFrom. Fix: only run the top-level check when there are no active (non-disabled) account entries. When accounts exist, the top-level config acts only as a parent fallback — matching runtime resolution semantics. Closes openclaw#92684
|
Codex review: needs real behavior proof before merge. Reviewed June 15, 2026, 6:23 AM ET / 10:23 UTC. Summary PR surface: Source +8, Tests +26. Total +34 across 2 files. Reproducibility: yes. source-level. Current main scans the top-level channel record before accounts, so the reported false warning follows from the described config; no live doctor command was run because this review kept the checkout read-only. Review metrics: 1 noteworthy metric.
Stored data model Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Proof guidance:
Risk before merge
Maintainer options:
Next step before merge
Security Review findings
Review detailsBest possible solution: Preserve root/default account diagnostics and only suppress the parent group-allowlist false positive when every active account has an effective group sender allowlist, with redacted real Do we have a high-confidence way to reproduce the issue? Yes, source-level. Current main scans the top-level channel record before accounts, so the reported false warning follows from the described config; no live doctor command was run because this review kept the checkout read-only. Is this the best way to solve the issue? No. The fix direction is right, but gating the entire top-level scan on active accounts is too broad; the safer fix is a narrower group-warning suppression that preserves root/default-account diagnostics. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 0314819f918a. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Source +8, Tests +26. Total +34 across 2 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
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
|
Summary
The empty-allowlist doctor scanner treated the top-level channel config as its own standalone account, producing false 'empty allowlist' warnings when every active account under that channel supplied its own populated
groupAllowFromorallowFrom.Behavior addressed
When a channel has
groupPolicy: "allowlist"with an empty top-levelgroupAllowFrom, but every active account carries its own populated list,openclaw doctorincorrectly warns that inbound group messages will be dropped. Runtime resolves per-account (account ?? parent), and since every account has its own list, the top-level scope is never read — inbound routing works correctly.Closes #92684
Fix
Change Type
Scope
Evidence
Source-level reproduction path (from ClawSweeper review, issue #92684):
checkAccount(channelConfig, ...)before iterating accounts (src/commands/doctor/shared/empty-allowlist-scan.ts:91)groupAllowFromas drop risk (src/commands/doctor/shared/empty-allowlist-policy.ts:61)extensions/telegram/src/account-config.ts:94)Test coverage:
does not warn top-level empty groupAllowFrom when active accounts have their own lists— verifies the core fix scenario@clawsweeper review