Skip to content

fix(doctor): keep open groupPolicy as a warning so updates can finish - #145379

Merged
steipete merged 7 commits into
openclaw:mainfrom
DonnieFi:fix/145339-open-policy-update-lint
Sep 12, 2026
Merged

steipete merged 7 commits into
openclaw:mainfrom
DonnieFi:fix/145339-open-policy-update-lint

Conversation

@DonnieFi

@DonnieFi DonnieFi commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

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.open was emitted as audit critical, Doctor mapped it to error, and doctor --lint --severity-min error exited 1 even though the open policy is supported and intentional. openclaw update repair on 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.findings shape covers Discord, Feishu, MS Teams, and the other *.groups.open producers, including createRestrictSendersChannelSecurity. Real exposure findings (dmPolicy="open", gateway bind without auth) stay critical.

User Impact

Intentional groupPolicy="open" no longer blocks openclaw 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/main producers)

{
  "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 --prefix global install of published OpenClaw 2026.9.4 (3a9d69d / 2026.9.4-release-3a9d69db306c-…), with existing operator config channels.telegram.groupPolicy="open" (Discord is npm-excluded; Telegram ships bundled and shares the same update canary). Driver ownership via npm_config_prefix so detectGlobalInstallManagerForRoot resolves to npm.

$ openclaw update --tag file:…/openclaw-candidate-145379.tgz --yes --no-restart --json
status: ok
before: { version: "2026.9.4", buildId: "2026.9.4-release-3a9d69db306c-2026-09-10T22-53-16.719Z" }
after:  { version: "2026.9.5-pr145379.0", buildId: "2026.9.4-release-3a9d69db306c-2026-09-10T22-53-16.719Z" }

candidate doctor lint: doctor --lint --json --severity-min error  exitCode=0
candidate config validation: exitCode=0
candidate gateway canary: exitCode=0
global install swap: exitCode=0
openclaw doctor (post-install): exitCode=0

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

$ openclaw --version
OpenClaw 2026.9.5-pr145379.0 (3a9d69d)

$ openclaw doctor --lint --json --severity-min error
exit 0

# same install, mutate only gateway.bind=lan with no auth (unchanged critical path):
$ openclaw doctor --lint --json --severity-min error
exit 1
finding: error  CRITICAL: Gateway bound to "lan" (0.0.0.0) without authentication.

Tests

node scripts/run-vitest.mjs --config test/vitest/vitest.extension-discord.config.ts extensions/discord/src/security.test.ts
node scripts/run-vitest.mjs --config test/vitest/vitest.extension-feishu.config.ts extensions/feishu/src/channel.test.ts -t "open groupPolicy"
node scripts/run-vitest.mjs --config test/vitest/vitest.extension-msteams.config.ts extensions/msteams/src/channel.test.ts -t "open groupPolicy"
node scripts/run-vitest.mjs --config test/vitest/vitest.commands.config.ts src/commands/doctor-security.test.ts -t "open groupPolicy"
node scripts/run-vitest.mjs --config test/vitest/vitest.config.ts src/plugin-sdk/channel-policy.test.ts

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, so openclaw update status keeps open-policy advisories. Fixed the Feishu/MS Teams resolved-account arguments and Discord excess argument; the core test now loads extensions/discord/api.js through 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 commit 65cfb911f274de5224c24eaeed06eb8ff24c4dc9.

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-boundary passes, 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's node_modules; the guard was preserved, with that lane delegated to exact-head CI's clean checkout. Resolved conflicts with main in merge commit 8c5e74896886de0f04188f35d23d31f8f3309064, 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 at 8c5e74896886de0f04188f35d23d31f8f3309064. 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:1080 exceeds max-lines (1020), cloud-target.ts has two unused exports, and cursor-policy.node.test.ts:83 rejects the unconditional pointer on .new-session-page__touch-details; resolve-auth.test.ts:159 and openclaw-database-preflight.artifacts.test.ts:397 timed 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 commit 87504f7ec9e and 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 without warnings. The merge-risk: compatibility disposition 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 and update status. Closes #145339. Thanks @PatrykPatryk5 for reporting and @DonnieFi for the original repair.

Landing CI verification

Landed head: bafdffac649b8432a9fc1dfef9a8d6e64b1520cd, an empty refresh commit over reviewed b153ede66e720823cffdb621b9e19c3328eae010; 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-4 passed 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.

@clawsweeper

clawsweeper Bot commented Sep 11, 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 channel: discord Channel integration: discord channel: googlechat Channel integration: googlechat channel: matrix Channel integration: matrix channel: msteams Channel integration: msteams channel: nextcloud-talk Channel integration: nextcloud-talk channel: slack Channel integration: slack channel: telegram Channel integration: telegram channel: whatsapp-web Channel integration: whatsapp-web channel: zalo Channel integration: zalo commands Command implementations channel: feishu Channel integration: feishu channel: irc size: S labels Sep 11, 2026
@clawsweeper clawsweeper Bot added P0 Emergency: data loss, security bypass, crash loop, or unusable core runtime. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 11, 2026
@clawsweeper

clawsweeper Bot commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 12, 2026, 2:59 AM ET / 06:59 UTC (Revision 15).

ClawSweeper review

What this changes

The 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
Reviewed head: bafdffac649b8432a9fc1dfef9a8d6e64b1520cd

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A coherent repair with convincing upgrade evidence and no actionable findings; ordinary CI completion does not change the patch-quality assessment.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (terminal): Recorded terminal evidence exercises the published npm updater against a candidate with an existing open-group policy, shows successful activation with that policy preserved, and confirms unauthenticated LAN exposure still fails lint. Producer traces cover the affected classification; later warning-ledger additions have supplemental regression coverage.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (terminal): Recorded terminal evidence exercises the published npm updater against a candidate with an existing open-group policy, shows successful activation with that policy preserved, and confirms unauthenticated LAN exposure still fails lint. Producer traces cover the affected classification; later warning-ledger additions have supplemental regression coverage.
Evidence reviewed 9 items Still necessary on main and the release: Both fetched main and v2026.9.4 assign critical severity to channels.discord.groups.open. The PR changes that producer to warn, while Doctor’s existing conversion maps critical to error and warn to warning.
Accepted repair direction: The issue discussion explicitly supports classifying intentional open policies at the producer, retaining advisories, and preserving configuration. The PR discussion additionally requests warning-ledger integration and the test-boundary corrections now present. See #145339 (comment) and #145379 (comment).
Published-driver compatibility: The v2026.9.4 Doctor environment builder already sets OPENCLAW_UPDATE_PARENT_SUPPORTS_DOCTOR_CONFIG_WRITE. The new candidate-side detector consumes that existing marker; it does not require replacing the installed updater first.
Findings None None.
Security None None.

How this fits together

Doctor 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]
Loading

Before merge

  • Add data-model compatibility proof - Confirm migration or upgrade compatibility proof before merge.
Agent review details

Security

None.

PR surface

Source +73, Tests +317, Docs +7. Total +397 across 37 files.

View PR surface stats
Area Files Added Removed Net
Source 24 161 88 +73
Tests 11 324 7 +317
Docs 2 7 0 +7
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 37 492 95 +397

Review metrics

Metric Value Why it matters
Output compatibility 1 optional lint JSON field; 0 new configuration options or schemas The warnings field preserves the shipped updater’s empty-findings success contract.
Production and regression coverage Production net +73 lines; tests and test support net +317 lines Production growth carries advisories through existing update owners, with regression coverage for thresholds, retention, and refusal controls.

Stored data model

Persistent data-model change detected: migration/backfill/repair: src/cli/update-cli/update-command-convergence.ts, migration/backfill/repair: src/cli/update-cli/update-command-finalize.ts, migration/backfill/repair: src/cli/update-cli/update-command-post-plugin-readiness.ts, migration/backfill/repair: src/commands/doctor-lint.ts, migration/backfill/repair: src/commands/doctor.fast-path-mocks.ts, migration/backfill/repair: src/flows/doctor-core-checks.ts, and 4 more. Confirm migration or upgrade compatibility proof before merge.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #145339
Summary: This PR is the explicit candidate repair for the reported open-policy update refusal; the issue should remain open until the repair lands.

Members:

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

Technical review

Best 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.

Labels

Label justifications:

  • P0: A supported update repeatedly fails on intentional existing configuration, and the reported repair attempt does not unblock it without a code fix or unwanted policy change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (terminal): Recorded terminal evidence exercises the published npm updater against a candidate with an existing open-group policy, shows successful activation with that policy preserved, and confirms unauthenticated LAN exposure still fails lint. Producer traces cover the affected classification; later warning-ledger additions have supplemental regression coverage.
  • proof: sufficient: Contributor real behavior proof is sufficient. Recorded terminal evidence exercises the published npm updater against a candidate with an existing open-group policy, shows successful activation with that policy preserved, and confirms unauthenticated LAN exposure still fails lint. Producer traces cover the affected classification; later warning-ledger additions have supplemental regression coverage.

Evidence

What I checked:

  • Still necessary on main and the release: Both fetched main and v2026.9.4 assign critical severity to channels.discord.groups.open. The PR changes that producer to warn, while Doctor’s existing conversion maps critical to error and warn to warning. (extensions/discord/src/security.ts:56, 5678830c8960)
  • Accepted repair direction: The issue discussion explicitly supports classifying intentional open policies at the producer, retaining advisories, and preserving configuration. The PR discussion additionally requests warning-ledger integration and the test-boundary corrections now present. See [Bug]: Update from 2026.9.3 to 2026.9.4 fails candidate Doctor lint with Discord groupPolicy=open #145339 (comment) and fix(doctor): keep open groupPolicy as a warning so updates can finish #145379 (comment).
  • Published-driver compatibility: The v2026.9.4 Doctor environment builder already sets OPENCLAW_UPDATE_PARENT_SUPPORTS_DOCTOR_CONFIG_WRITE. The new candidate-side detector consumes that existing marker; it does not require replacing the installed updater first. (src/infra/update-runner-doctor.ts:46, 3a9d69db306c)
  • Backward-compatible warning handoff: The shared reader accepts reports without warnings and validates supplied warnings separately. Successful lint retains an empty findings array; post-plugin readiness still rejects failed execution, unsuccessful reports, zero checks, and blocking findings. (src/infra/update-doctor-lint.ts:45, bafdffac649b)
  • Previous storage concern resolved: The introduced change feeds advisory text into existing warning-prefixed completed steps and existing finalization recording. It introduces no schema, migration, row-format, transaction, retention, or recovery change; the prior generic migration-proof request is not a remaining blocker. (src/infra/update-run-step.ts:31, bafdffac649b)
  • Recorded real upgrade and negative control: The supplied PR-body snapshot, sourceRevision 74b6a19f6689caeb7630e45bdb471a75006ffec4fb41b47084888e79857d5908, records an isolated published 2026.9.4 npm installation updating to the candidate successfully with Telegram groupPolicy=open preserved. Candidate lint, config validation, Gateway canary, package activation, and post-install Doctor succeed; an unauthenticated LAN-bind control still exits 1. Earlier producer traces cover Discord, Feishu, and MS Teams. Later warning-retention additions have supplemental regression evidence. (6b9fdca810dd)

Likely related people:

  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
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.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (14 earlier review cycles; latest 8 shown)
  • reviewed 2026-09-12T02:31:06.939Z sha 8c5e748 :: blocked before merge. :: none
  • reviewed 2026-09-12T03:12:38.948Z sha 8c5e748 :: blocked before merge. :: none
  • reviewed 2026-09-12T03:22:36.617Z sha 8c5e748 :: blocked before merge. :: none
  • reviewed 2026-09-12T04:27:23.506Z sha 688c646 :: blocked before merge. :: none
  • reviewed 2026-09-12T04:46:28.698Z sha 1dc5abf :: blocked before merge. :: none
  • reviewed 2026-09-12T05:05:19.600Z sha b153ede :: blocked before merge. :: none
  • reviewed 2026-09-12T05:56:25.718Z sha bafdffa :: blocked before merge. :: none
  • reviewed 2026-09-12T06:21:39.775Z sha bafdffa :: blocked before merge. :: none

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.
@DonnieFi
DonnieFi force-pushed the fix/145339-open-policy-update-lint branch from 56ee880 to 6b9fdca Compare September 11, 2026 23:18
@DonnieFi

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Added published-updater proof to the PR body:

  • Installed OpenClaw 2026.9.4 (3a9d69d) under an isolated npm --prefix global root
  • Existing config kept channels.telegram.groupPolicy="open" (Discord is npm-excluded; Telegram is the bundled channel that shares the same canary)
  • openclaw update --tag file:…/openclaw-candidate-145379.tgz --yes --no-restart --json → status ok
  • Canary candidate doctor lint (doctor --lint --json --severity-min error) exitCode=0; config groupPolicy=open preserved after swap
  • On the activated candidate, genuine critical still refuses: gateway.bind=lan without auth → lint exit 1

Head after rebase onto current main: 6b9fdca810ddb0a16019ef4762b22a229518a9d5

@clawsweeper

clawsweeper Bot commented Sep 11, 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 proof: sufficient ClawSweeper judged the real behavior proof convincing. 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: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 11, 2026
@steipete

Copy link
Copy Markdown
Contributor

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 main, and since "Allow edits by maintainers" is on I am pushing them onto this branch rather than asking for another round:

  • The red check-additional-boundaries job is lint:tmp:tsgo-core-boundary: the new core test in src/commands/doctor-security.test.ts imports private Discord implementation files, which pulls extensions/discord/src/** into the core tsgo graph. It will use the public extensions/discord/api.js exports instead.
  • Once the advisory is a warning, doctor-lint.ts filters it out of the update JSON and nothing records it in the update warning ledger, so the update proceeds but the advisory silently disappears. It will be carried into the existing ledger so openclaw update and update status still show it.
  • extensions/feishu/src/channel.test.ts:33 and extensions/msteams/src/channel.test.ts:37 omit the required account in the security context, and extensions/discord/src/security.test.ts:38 passes an excess accountId; those are source-level type errors even though Vitest runs them.

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.

@steipete steipete reopened this Sep 12, 2026
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.
@steipete steipete closed this Sep 12, 2026
@steipete steipete reopened this Sep 12, 2026
@steipete steipete closed this Sep 12, 2026
@steipete steipete reopened this Sep 12, 2026
@steipete steipete closed this Sep 12, 2026
@steipete steipete reopened this Sep 12, 2026
@steipete
steipete merged commit 0e29319 into openclaw:main Sep 12, 2026
604 of 609 checks passed
@steipete

Copy link
Copy Markdown
Contributor

Merged via squash.

steipete added a commit that referenced this pull request Sep 12, 2026
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.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 13, 2026
…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]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 13, 2026
…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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: discord Channel integration: discord channel: feishu Channel integration: feishu channel: googlechat Channel integration: googlechat channel: irc channel: matrix Channel integration: matrix channel: msteams Channel integration: msteams channel: nextcloud-talk Channel integration: nextcloud-talk channel: slack Channel integration: slack channel: telegram Channel integration: telegram channel: whatsapp-web Channel integration: whatsapp-web channel: zalo Channel integration: zalo cli CLI command changes commands Command implementations docs Improvements or additions to documentation P0 Emergency: data loss, security bypass, crash loop, or unusable core runtime. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: L status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Update from 2026.9.3 to 2026.9.4 fails candidate Doctor lint with Discord groupPolicy=open

2 participants