Repository navigation
fix(doctor): keep open groupPolicy as a warning so updates can finish - #145379
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: blocked before merge. Reviewed September 12, 2026, 2:59 AM ET / 06:59 UTC (Revision 15). ClawSweeper reviewWhat this changesThe PR makes open-group policy diagnostics advisory, preserves Doctor warnings in update reports and history, and recognizes trusted-proxy authentication in network-exposure diagnostics. Merge readiness⛔ Blocked before merge - 1 item remains This remains a useful, supported fix: current main and v2026.9.4 retain the reported blocker. No actionable patch defect was found. The published-updater evidence and unchanged warning-storage contract resolve the previous compatibility-proof concern. Priority: P0 Review scores
Verification
How this fits togetherDoctor converts channel and Gateway diagnostics into findings consumed by OpenClaw’s update checks. Those checks decide whether an update proceeds and pass advisories into the existing update history. flowchart TD
A[Existing operator configuration] --> B[Channel and Gateway diagnostics]
B --> C[Doctor severity classification]
C --> D[Update readiness checks]
D -->|Errors or execution failure| E[Update refused]
D -->|Warnings only| F[Update proceeds]
F --> G[Warnings in update history]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +73, Tests +317, Docs +7. Total +397 across 37 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest possible solution: Preserve intentional group policies while updates finish, retain useful advisories in update status, and keep genuine readiness failures blocking. Do we have a high-confidence way to reproduce the issue? Yes. Current main’s open-policy producer emits critical, Doctor maps it to error, and the updater’s error-threshold lint rejects it; the report supplies the matching update failure. This review did not execute a reproduction. Is this the best way to solve the issue? Yes. Correcting severity at the existing producers and retaining warnings through the existing update ledger addresses the supported-policy failure without changing user configuration or introducing a competing policy owner. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 5678830c8960. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (14 earlier review cycles; latest 8 shown)
|
Intentional channels.*.groups.open posture advisories were critical, so candidate Doctor lint with --severity-min error refused supported configs during openclaw update. Classify them as warn at the producer.
56ee880 to
6b9fdca
Compare
|
@clawsweeper re-review Added published-updater proof to the PR body:
Head after rebase onto current |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Thanks, this is the right shape and the lead review of 6b9fdca found no P0/P1 defect in the producer changes. Three things stand between it and
Your commit stays as the base with your authorship; the additions land as separate commits on top, and the PR body will list them. I will land it once exact-head CI is green. |
Merge current main into PR openclaw#145379 while preserving its contributor history and Doctor advisory handling. Resolve the update documentation conflict by retaining both warning-retention and candidate-capability-probe guidance.
Merge main at 49286e6 into PR openclaw#145379. Preserve candidate Doctor migration receipts, typed config-change ledger records, and bounded text alongside the existing Doctor warning retention.
Merge main at f35d894 into PR openclaw#145379. Keep Doctor advisories and source-bundled plugin outcomes together in update convergence.
|
Merged via squash.
|
Prevent healthy Gateway worker preparation from failing a test-only five-second observation deadline on loaded hosts. Await execution completion and credential readiness while preserving early-settlement errors and unjoined-owner cleanup guards. Extend the existing replay case to cross the former deadline without changing its base-leaf or history assertions. Use two concurrent worktrees for stale-retention reconciliation, preserving the upload barrier, real manifests and Git operations, binary result checks, journals, and released claims. Production code is unchanged. CI run 34679294250, job 103514926295 failed six detached-context cases and timed out the 50-turn reconciliation case; #145349 was blocked on this shard. https://github.com/openclaw/openclaw/actions/runs/34679294250/job/103514926295 Recorded proof: controlled regression failed before and passed after; the reduced reconciliation case failed the historical retention mutation; the contention suite passed all 13 tests; the full agentic-gateway-core-2 shard passed 255 files and 5,038 tests. Exact-head CI run 34680987053 is green for b3edad9 and was reverified with the native watcher before preparation. https://github.com/openclaw/openclaw/actions/runs/34680987053 The lead's P1 autoreview is scoped-clean. ClawSweeper found no actionable findings on the approved head; no fixups or skips were needed. Refs #145349, #145379. Follow-up to #145657.
…openclaw#145379) An intentional open group policy on Discord, Feishu, MS Teams, Google Chat, IRC, Matrix, and the other channels no longer fails candidate Doctor lint during openclaw update. The advisory is recorded as a warning in the update report and update status without changing the operator's policy. Classify the advisory at its channel producer and carry warnings through the existing update warning ledger. Genuine error findings and failed check execution still block activation. Preserve public plugin boundaries in the regressions and recognize valid trusted-proxy authentication in exposure diagnostics. Closes openclaw#145339. Thanks @PatrykPatryk5 for reporting and @DonnieFi for the original repair. Co-authored-by: Peter Steinberger <[email protected]>
…5770) Prevent healthy Gateway worker preparation from failing a test-only five-second observation deadline on loaded hosts. Await execution completion and credential readiness while preserving early-settlement errors and unjoined-owner cleanup guards. Extend the existing replay case to cross the former deadline without changing its base-leaf or history assertions. Use two concurrent worktrees for stale-retention reconciliation, preserving the upload barrier, real manifests and Git operations, binary result checks, journals, and released claims. Production code is unchanged. CI run 34679294250, job 103514926295 failed six detached-context cases and timed out the 50-turn reconciliation case; openclaw#145349 was blocked on this shard. https://github.com/openclaw/openclaw/actions/runs/34679294250/job/103514926295 Recorded proof: controlled regression failed before and passed after; the reduced reconciliation case failed the historical retention mutation; the contention suite passed all 13 tests; the full agentic-gateway-core-2 shard passed 255 files and 5,038 tests. Exact-head CI run 34680987053 is green for b3edad9 and was reverified with the native watcher before preparation. https://github.com/openclaw/openclaw/actions/runs/34680987053 The lead's P1 autoreview is scoped-clean. ClawSweeper found no actionable findings on the approved head; no fixups or skips were needed. Refs openclaw#145349, openclaw#145379. Follow-up to openclaw#145657.
Closes #145339
What Problem This Solves
Fixes an issue where users updating OpenClaw 2026.9.3 → 2026.9.4 with Discord
groupPolicy="open"would fail candidate Doctor lint.channels.discord.groups.openwas emitted as auditcritical, Doctor mapped it toerror, anddoctor --lint --severity-min errorexited 1 even though the open policy is supported and intentional.openclaw update repairon 9.3 could complete while showing the same text.Why This Change Was Made
Classify at the producer (maintainer direction on #145339). Posture advisories are recorded warnings; update gates refuse only when the candidate cannot operate. The same
createConditionalWarningCollector.findingsshape covers Discord, Feishu, MS Teams, and the other*.groups.openproducers, includingcreateRestrictSendersChannelSecurity. Real exposure findings (dmPolicy="open", gateway bind without auth) staycritical.User Impact
Intentional
groupPolicy="open"no longer blocksopenclaw update. Doctor and security audit still record the advisory as a warning. No configuration change is required.Evidence
Exact-head producer → Doctor security check → lint exit probe on isolated
groupPolicy="open"config (Discord + Feishu + MS Teams). Base revision:281307e782bc0b853bef88ed632129b0ca3878c7. Candidate:6b9fdca810ddb0a16019ef4762b22a229518a9d5.Before (
origin/mainproducers){ "discord": { "checkId": "channels.discord.groups.open", "severity": "critical", "title": "Discord security warning", "detail": "Discord guilds: groupPolicy=\"open\" with no guild/channel allowlist; any channel can trigger (mention-gated). Set channels.discord.groupPolicy=\"allowlist\" and configure channels.discord.guilds.<id>.channels." }, "feishu_severity": "critical", "teams_severity": "critical", "health_severity": "error", "exitError": 1, "exitWarning": 1 }After (this PR)
{ "discord": { "checkId": "channels.discord.groups.open", "severity": "warn", "title": "Discord security warning", "detail": "Discord guilds: groupPolicy=\"open\" with no guild/channel allowlist; any channel can trigger (mention-gated). Set channels.discord.groupPolicy=\"allowlist\" and configure channels.discord.guilds.<id>.channels." }, "feishu_severity": "warn", "teams_severity": "warn", "health_severity": "warning", "exitError": 0, "exitWarning": 1 }Candidate update lint uses
--severity-min error; the published updater already runs the candidate Doctor, so this candidate-side classification is what existing installations consume.Published updater → candidate (real install)
Isolated npm
--prefixglobal install of published OpenClaw 2026.9.4 (3a9d69d/2026.9.4-release-3a9d69db306c-…), with existing operator configchannels.telegram.groupPolicy="open"(Discord is npm-excluded; Telegram ships bundled and shares the same update canary). Driver ownership vianpm_config_prefixsodetectGlobalInstallManagerForRootresolves to npm.Config after activation still has
channels.telegram.groupPolicy: "open"(preserved; Doctor may rewrite adjacent agent/wizard metadata).Fresh-install Doctor on activated candidate + genuine errors still refuse
Tests
All focused suites above passed, including Discord producer →
core/doctor/security→exitCodeFromFindings(error=0,warning=1).Maintainer additions
Added retention of warning-severity Doctor findings in updater JSON and the existing
ctx.updateWarnings/run-warning ledger, soopenclaw update statuskeeps open-policy advisories. Fixed the Feishu/MS Teams resolved-account arguments and Discord excess argument; the core test now loadsextensions/discord/api.jsthrough the existing async public-surface test helper, preserving the core TypeScript boundary. Also corrected valid trusted-proxy authentication to use the existing authenticated-network warning classification. Thanks @PatrykPatryk5 for the original report. DonnieFi's original commit remains unchanged; these additions are commit65cfb911f274de5224c24eaeed06eb8ff24c4dc9.Release-note context: updates retain intentional open-group policy warnings in JSON and status without requiring policy changes; error findings and failed check execution still refuse the update. The broader operability-classification refactor and the MCP-settings report remain follow-ups.
Validation: failing-before/passing-after regressions cover lint JSON retention, canary/post-plugin acceptance and blocking controls, normal Doctor warning handoff, and trusted-proxy authentication. Focused Doctor, channel, and shared-policy tests pass.
pnpm run lint:tmp:tsgo-core-boundarypasses, and fresh P1 autoreview of the whole branch is scoped-clean. The local changed-file gate passed all typechecks and core lint, then stopped at extension declaration preparation because this worktree is nested beneath another installation'snode_modules; the guard was preserved, with that lane delegated to exact-head CI's clean checkout. Resolved conflicts with main in merge commit8c5e74896886de0f04188f35d23d31f8f3309064, preserving main’s canary source-root isolation and deadline/abort fixes. The merged branch passed 44 canary/post-plugin tests, core typechecking, and fresh whole-branch P1 review. Exact-head CI completed with failures in run 34663062530 at8c5e74896886de0f04188f35d23d31f8f3309064. Production/test typechecks,check-lint, and the additional extension package-boundary check passed. Remaining failures are outside this PR's changed files:where-chip.test.ts:1080exceeds max-lines (1020),cloud-target.tshas two unused exports, andcursor-policy.node.test.ts:83rejects the unconditional pointer on.new-session-page__touch-details;resolve-auth.test.ts:159andopenclaw-database-preflight.artifacts.test.ts:397timed out at 1000 ms and 30000 ms respectively. The implicated tests and implementations are byte-identical to merged main (db2666090f196b07ec84867972a6c5f571b1b013); timeout causes remain unproven. No unrelated fixes, timeout increases, or retries were added. The merge ref contains required commit87504f7ec9eand this PR head.Compatibility: the PR delta against merged main makes no schema, migration, retention, or recovery-semantic change. It adds an optional lint JSON warnings array and reuses existing update warning storage. The producer severity correction is the explicitly accepted maintainer direction; the lead retains the landing decision. ClawSweeper reviewed this exact head with no actionable code/security findings and sufficient proof, while retaining compatibility/data-model review flags.
ClawSweeper review
Reviewed head:
bafdffac649b8432a9fc1dfef9a8d6e64b1520cd. ClawSweeper found no actionable code or security findings and rated the recorded behavior proof sufficient. Its remaining “Add data-model compatibility proof” item is satisfied by the published-updater proof above and the unchanged warning-ledger contract: there is no schema, migration, row representation, retention, recovery, or transaction-ownership change, and the shared lint reader accepts older reports withoutwarnings. Themerge-risk: compatibilitydisposition is intentional under the maintainer ruling on #145339. No code fixup or migration is needed.Release-note context: An intentional open group policy on Discord, Feishu, MS Teams, Google Chat, IRC, Matrix, and the other channels no longer fails candidate Doctor lint during
openclaw update; the advisory is recorded as a warning in the update report andupdate status. Closes #145339. Thanks @PatrykPatryk5 for reporting and @DonnieFi for the original repair.Landing CI verification
Landed head:
bafdffac649b8432a9fc1dfef9a8d6e64b1520cd, an empty refresh commit over reviewedb153ede66e720823cffdb621b9e19c3328eae010; their trees are identical. The lead's P1 autoreview is scoped-clean, and the latest exact-head ClawSweeper review has no actionable code or security findings.CI run 34679266807 completed successfully on the approved head. The refreshed merge snapshot contains the required main repair, and
checks-node-compact-large-4passed without a rerun. Earlier failing runs are superseded by this green proof. No assertions, timeouts, or code were changed during landing.Native review-artifact validation, hosted preparation, and merge verification passed. The PR was squash-merged as 0e29319a6a3d635d66277828043132525985d2d7, and the commit was verified on fetched main. The native worktree and operation lock were removed. The contributor fork branch remains because deletion was denied; the accepted completion receipt is
commented.