Skip to content

fix(update): retain Doctor advisories and terminal reports - #153147

Merged
steipete merged 13 commits into
mainfrom
upd/finalize-doctor-maintenance-entry
Sep 20, 2026
Merged

steipete merged 13 commits into
mainfrom
upd/finalize-doctor-maintenance-entry

Conversation

@steipete

@steipete steipete commented Sep 19, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes updates that stop on intentional channel policy settings, lose the deciding Doctor diagnostics, or exit after an unexpected failure without publishing the terminal report.

Fixes #152759, fixes #152918. Related: #152914, #152910, #153077, #153049, #152955.

User Impact

Optional inspections and policy advisories remain visible warnings during updates; required configuration, state, and startup checks remain blocking. Saved reports and a separately linked inventory retain every individually bounded Doctor finding. The rollback-facing JSON stays within 8 KiB; update history retains counts, deciding errors, an omission count, and physical child exit facts. Unexpected admitted-run failures publish their outcome and report path after executor settlement. Standalone finalization parks its owned service before fresh Doctor; inherited finalizers preserve the parent's ownership.

Why This Change Was Made

The health-check adapter now preserves the existing update-work classification. The diagnostic owners keep complete findings in named artifacts and a bounded projection in the existing run record. Terminal publication remains with the existing terminal owner, after cleanup and settlement. Older candidates that emit exit 1 for an intentional security policy retain that physical exit alongside the advisory. Legacy post-core children without completion authority emit a separately named pending phase report. A candidate that owns completion publishes the canonical terminal report after settlement.

This preserves the merged repair-turn separation and #152973's Doctor-deadline ownership; it does not supersede either change. The rebase also includes #153007. The referenced causeless-report class is already covered by #152331 and is not claimed fixed here.

Thanks to @davidchyi-beep, @BodegaClaw, @CHE10X, @jammyclaw, and Discord reporter Patryk for the reports and diagnostic evidence.

Evidence

Follow-up CI correction (986402521c9)

  • The Madge cycle between update-doctor-lint.ts and update-runner-types.ts is removed by extracting the unchanged finding schema/type to the leaf update-doctor-lint-schema.ts; all consumers import that owner directly. Update classification, diagnostic bounds, and the zero-exit failure predicate are unchanged.
  • The two resume integration assertions now check the exact custody/write reason printed by the existing warning owner. The tests still require successful completion, an unchanged parent history when evidence cannot be written, and preservation of earlier failure evidence and plugin/config bytes.
  • The restart VM fixture evaluates the real shared isFailedUpdateStep owner. Its missing route previously threw before the expected UpdateCommandFailure; all exception and backup-retention assertions remain intact. The verification-recorder routing hunk is absorbed from the merged fix(update): reconcile a managed service pinned to another install #150898; the only added route evaluates the shared failed-step owner.
  • The fourth saved job failure was a tooling shard execution stall, not a test assertion. core-tooling-11-hosted-3 passed 1,136 tests (2 skipped); core-tooling-1-hosted-3 produced no test result across two 300-second stalls, then exited 143. Its eight unchanged files passed all 95 tests locally. The underlying hosted stall remains unconfirmed; no timeout, assertion, or unrelated production change was made for it.
  • Final rebased-source Node 24 proof: 105 tests passed across 10 files (103 owner cases plus the two initialization-failure regressions), including all five load-path finalization cases, ten candidate-lint cases, 54 run/execution-validation cases, and 33 Doctor/triage cases. The restart wrapper also passed all 19 subprocess cases. The eight unchanged tooling files separately passed 95 tests before the second rebase. The initial Node 26 harness invocation could not use Node's removed TypeScript transform mode; the CI-matching Node 24 run passed.
  • pnpm check:changed, pnpm check:import-cycles, and the hosted job's pnpm check:madge-import-cycles: passed. Fresh final P1 autoreview: scoped-clean on the complete rebased PR.
  • Authored correction versus 199eb497fb2: production net +1 (+22/−20 for leaf-schema wiring, less one obsolete import during reconciliation); tests/support +7/−4 (net +3) after the sibling harness hunk is absorbed by the rebase. The rebase absorbs fix(update): avoid repeating candidate checks before repair #153188, fix(update): reconcile a managed service pinned to another install #150898, fix(doctor): avoid repeated state copies in full reports #153584, and fix(triage): stop reporting failed updates as resolved #153443. Its two conflicts are import-only: keep main's initialization owner, retain the unexpected-failure preparer in the admitted-run owner, and import both existing failed-step helpers from their shared owner. The zero-exit correction, advisory classification, released diagnostic bounds, and terminal-after-settlement behavior remain intact.

The lead's P1 about released rollback diagnostic bounds is accepted and fixed. The 4 MiB candidate-only reader increase is removed: the rollback-facing file stays within the released 8 KiB limit and links the complete inventory written by the existing failure-artifact owner. The initiating cause, inventory link, and deciding lint receipt fit together in the released 768-byte error field; this avoids losing counts and physical facts to 9.4's 160-byte stderr truncation. The shared receipt formatter remains in its browser-safe owner. Inventory-write failure preserves the compact original failure with an unavailable warning.

  • 583 tests passed on the correction source, covering the original owner suites plus rollback compatibility and affected callers. Regression runs retain the original policy-classification, missing-inventory, bounded-receipt, and physical-exit proof.
  • The oversized-file regression failed at 23,186 > 8,192 bytes before this correction. The frozen released 9.4 reader additionally reproduced broken/truncated receipts; it now reads the bounded file, preserves the receipt and link through normalization/copying, and the linked artifact contains every finding (0/40 findings, mixed/all errors, advisory-only plus later plugin failure, detached path, long cause, redaction, and inventory-write failure).
  • Final node scripts/check-changed.mjs: passed after the test-only type/lint cleanup, including core/test types, dead-export scans, lint, schema v17, and zero runtime import cycles. The focused 20 compatibility cases were also rerun successfully after that cleanup.
  • Fresh P1 autoreview: scoped-clean on the correction source.
  • CI attachment to correction head: run 35472434166 on e2345cc9c459558be31d4875be3e542d381cbd04; attachment precheck only, without waiting for completion.
  • Earlier live artifact: canonical package build and tarball integrity passed. All 46,017 tracked source files matched the then-current committed source before and after packaging. Both platforms used SHA-256 8f67abd5e0f2eb9cc55d6f2313d01f2d6129069cef796f88dbc4b7bcec2ebfaf built from head ef6932c1add2a7a3c338a7a17874ad0d54e06d6e.
Live cell at ef6932c Result Transcript and observations
Linux root npm-global, published 9.4 → candidate Pass, exit 0, 83.552 s Complete transcript and report; terminal success, four warnings, 6,005-byte ledger and 130-byte receipt.
macOS managed, published 9.4 → candidate Pass, exit 0, 225.57 s Complete transcript and canonical report; healthy restored Gateway, four warnings, 7,380-byte ledger and 130-byte receipt.
macOS standalone finalizer Pass, exit 0, 110.67 s Complete maintenance transcript; managed Gateway parked/restored, native PID changed, health verified.
Linux standalone finalizer Pass, exit 0, 18.947 s Complete maintenance transcript; real systemd Gateway parked/restored, PID 18469 → 19360, health verified.
Additional Linux candidate-updater same-artifact run Pass for truthful no-op publication, exit 0 Transcript and saved report; ℹ️ OpenClaw update skipped: already-current., distinct skipped run and canonical report; not upgrade proof.

Both published-driver baselines returned exit 1 with named errors for the unchanged open DM and guild policies. Updates retained those settings and treated the findings as warnings. Neither successful policy update entered repairing; no live repairing-phase terminal result is claimed. Exception/settlement publication is covered by the focused regressions. The live transcripts remain attributed to that earlier head. Rigs were not rerun for this correction: their successful-update and maintenance assertions cover unchanged Markdown findings, report paths, and warning-only ledger receipts; they never consumed a failed handoff JSON file. The frozen-reader regressions exercise the corrected failure-artifact path. The Linux user-session bus fixture blocker was resolved using existing OS services, with their original state restored afterward. All owned native Gateway units and listening ports were cleaned up.

LOC

Correction against ef6932c: production +136/−71 (net +65); tests/support +577/−88 (net +489); docs +1/−1. The test delta includes 337 lines freezing the released 9.4 reader rather than validating compatibility against a newer reader. Current full PR totals after CI correction and reconciliation: production +864/−433 (net +431); tests/support +2135/−324 (net +1811); docs +8/−0 (net +8).

Previously accepted production scope: +681/−330 (net +351). Older-candidate advisory compatibility is retained; duplicate type inventories were removed, progress reads/cleanup were shared, and the wire/artifact schema now uses one factory. No dependency, configuration/CLI option, or SQLite schema changes.

Known gaps / follow-ups

Three preexisting output paths still bypass the terminal publisher: busy-admission refusal, the invalid-dev-target early return, and unrecognized pre-admission errors. Report-write failures remain warnings and do not invent a saved path. This PR does not claim universal terminal coverage for those paths.

PR-2 remains separate: bounded automatic repair only after terminal failure, preserving the original outcome and excluding verified rollback. Its plan builds on #147547's turn boundary and records #147584's owner-bound repair-turn overlap. It must resolve the latest-FAILED admission versus successful/rolled-back validation contradiction, prevent an old runtime from opening newer canary state, and record a missing inference route as a warning. No repair-path implementation is included here.

Maintainer disposition of ClawSweeper revision 10

The exact-head review at 986402521c936f273bd5d3c853d0d604b4da283f reports no actionable correctness or security findings and contains no separate Rank-up moves. Its sole before-merge item, Add data-model compatibility proof, is addressed by the published 2026.9.4 → candidate Linux and macOS upgrade cells linked above and the frozen released-9.4 rollback-reader regressions. The corrected writer preserves the released 8 KiB file, 4 KiB prompt, and 768-byte error-field bounds while linking the complete inventory. There is no SQLite schema change or migration to add. The live cells remain attributed to their executed earlier head; the later rollback-envelope and exceptional-publication corrections rely on the documented focused regressions. No additional live rerun or code change is claimed for this landing.

@clawsweeper

clawsweeper Bot commented Sep 19, 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 docs Improvements or additions to documentation cli CLI command changes commands Command implementations size: XL maintainer Maintainer-authored PR labels Sep 19, 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: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 19, 2026
@clawsweeper

clawsweeper Bot commented Sep 19, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 20, 2026, 7:36 AM ET / 11:36 UTC (Revision 11).

ClawSweeper review

What this changes

The updater retains optional Doctor advisories, preserves diagnostic findings, saves terminal reports before exit, and parks the owned Gateway during standalone finalization.

Merge readiness

⛔ Blocked before merge - 1 item remains

The fix remains necessary. The published-driver evidence and frozen rollback-reader regressions address the previous compatibility concern; no actionable correctness or security finding remains.

Priority: P0
Reviewed head: 986402521c936f273bd5d3c853d0d604b4da283f

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A useful owner-aligned repair with substantial native evidence and targeted rollback compatibility coverage; no remaining actionable finding.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (terminal): Recorded Linux/macOS 2026.9.4-to-candidate updates exercise advisory classification and saved reports; separate native finalizer runs demonstrate owned Gateway stop/restoration and health. These terminal traces remain attributed to ef6932c; later rollback-envelope and exceptional-publication corrections have focused regression evidence and the maintainer’s explicit compatibility disposition.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (terminal): Recorded Linux/macOS 2026.9.4-to-candidate updates exercise advisory classification and saved reports; separate native finalizer runs demonstrate owned Gateway stop/restoration and health. These terminal traces remain attributed to ef6932c; later rollback-envelope and exceptional-publication corrections have focused regression evidence and the maintainer’s explicit compatibility disposition.
Evidence reviewed 10 items Current main still needs the fix: Fetched main calculates lint exit status directly from the original findings, without the branch’s update-work advisory classification.
Latest release retains the older behavior: The v2026.9.5 source likewise derives the exit code from unclassified findings. The supplied released-driver baselines demonstrate intentional open-policy findings exiting nonzero.
Released rollback contract verified: Compared the frozen test reader directly with published v2026.9.4 source: differences are test naming/export wiring and omission of the writer. The added regressions exercise the 8 KiB file, 4 KiB prompt, and 768-byte error bounds, inventory links, physical exit facts, redaction, copying, and inventory-write failure.
Findings None None.
Security None None.

How this fits together

OpenClaw’s updater runs candidate health checks before activation and coordinates Gateway recovery afterward. Doctor findings and process outcomes feed update history, terminal output, and saved diagnostic reports.

flowchart TD
  A[Installed updater] --> B[Candidate Doctor checks]
  B --> C{Required failure or advisory}
  C -->|Required failure| D[Recovery and executor settlement]
  C -->|Advisory| E[Activation and Gateway verification]
  E --> D
  D --> F[Bounded update history]
  D --> G[Terminal outcome and saved reports]
Loading

Before merge

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

Security

None.

PR surface

Source +431, Tests +1811, Docs +8. Total +2250 across 72 files.

View PR surface stats
Area Files Added Removed Net
Source 39 864 433 +431
Tests 31 2135 324 +1811
Docs 2 8 0 +8
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 72 3007 757 +2250

Review metrics

Metric Value Why it matters
Production versus test growth Production net +431; tests/support net +1811 Growth supports diagnostic preservation and settlement handling; test growth includes a 337-line frozen released reader for independent compatibility checks.
Released diagnostic bounds 8 KiB file; 4 KiB prompt; 768-byte error field The corrected envelope preserves all three released-reader limits while linking the complete inventory separately.

Stored data model

Persistent data-model change detected: migration/backfill/repair: src/cli/update-cli/update-command-finalize.ts, migration/backfill/repair: src/commands/doctor-lint.ts, migration/backfill/repair: src/commands/doctor-security.ts, migration/backfill/repair: src/flows/doctor-core-checks.ts, migration/backfill/repair: src/flows/doctor-health-contribution-runners.gateway.ts, migration/backfill/repair: src/flows/doctor-health-contributions.ts, and 1 more. Confirm migration or upgrade compatibility proof before merge.

Technical review

Best possible solution:

Preserve intentional settings, block required readiness failures, and expose actionable outcomes and rollback-readable reports through the existing updater owners.

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

Yes: current-main source preserves blocking severities for optional policy findings, and supplied published-driver baselines show the corresponding failure. No current-main execution was performed in this read-only review.

Is this the best way to solve the issue?

Yes: the patch reuses existing classification, reporting, and maintenance owners, and the released-reader comparison supports the bounded compatibility repair without a database migration.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against dc7d10ceaf5d.

Labels

Label justifications:

  • P0: The linked reports describe blocked official-release upgrades with silent failure and recovery requiring terminal diagnostics or support.
  • 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 Linux/macOS 2026.9.4-to-candidate updates exercise advisory classification and saved reports; separate native finalizer runs demonstrate owned Gateway stop/restoration and health. These terminal traces remain attributed to ef6932c; later rollback-envelope and exceptional-publication corrections have focused regression evidence and the maintainer’s explicit compatibility disposition.
  • proof: sufficient: Contributor real behavior proof is sufficient. Recorded Linux/macOS 2026.9.4-to-candidate updates exercise advisory classification and saved reports; separate native finalizer runs demonstrate owned Gateway stop/restoration and health. These terminal traces remain attributed to ef6932c; later rollback-envelope and exceptional-publication corrections have focused regression evidence and the maintainer’s explicit compatibility disposition.

Evidence

What I checked:

  • Current main still needs the fix: Fetched main calculates lint exit status directly from the original findings, without the branch’s update-work advisory classification. (src/commands/doctor-lint.ts:377, dc7d10ceaf5d)
  • Latest release retains the older behavior: The v2026.9.5 source likewise derives the exit code from unclassified findings. The supplied released-driver baselines demonstrate intentional open-policy findings exiting nonzero. (src/commands/doctor-lint.ts:280, ec9c1a13db89)
  • Released rollback contract verified: Compared the frozen test reader directly with published v2026.9.4 source: differences are test naming/export wiring and omission of the writer. The added regressions exercise the 8 KiB file, 4 KiB prompt, and 768-byte error bounds, inventory links, physical exit facts, redaction, copying, and inventory-write failure. (src/commands/triage-update.released-reader.test-support.ts:1, 986402521c93)
  • Compatibility correction is implemented: The existing artifact owner writes the complete sanitized inventory separately, then writes a bounded rollback-readable envelope. The rollback tests verify that the released reader preserves the initiating cause, inventory link, and lint receipt; no SQLite migration is introduced. (src/commands/triage-update-rollback.test.ts:16, 986402521c93)
  • Terminal publication retains its owner: Unexpected failures prepare facts while admitted and defer publication until executor settlement. The terminal publisher awaits report creation; pending recovery uses detached diagnostics without reopening retained history. All production callers of the newly asynchronous publishers await or return their promises. (src/cli/update-cli/update-command-terminal.ts:62, 986402521c93)
  • Published-driver Linux proof inspected: Read the omitted transcript and verified sourceBodySha256 4df98c893a1411617b52bf6d5c8a76e44b1e53dfb6d0e4a4fd5ec30fd5bb9033. Published 2026.9.4 upgraded to the recorded candidate with exit 0, retained intentional settings, four warning findings, and a pending phase report. The separate same-artifact run proves truthful skipped-result publication, not upgrade behavior. (ef6932c1add2)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • fuller-stack-dev: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; 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 (10 earlier review cycles; latest 8 shown)
  • reviewed 2026-09-19T22:18:32.823Z sha e2345cc :: blocked before merge. :: none
  • reviewed 2026-09-20T03:13:50.316Z sha 911c0c0 :: blocked before merge. :: none
  • reviewed 2026-09-20T03:35:11.380Z sha 911c0c0 :: blocked before merge. :: none
  • reviewed 2026-09-20T05:08:40.710Z sha 4fc30e5 :: blocked before merge. :: none
  • reviewed 2026-09-20T06:44:56.017Z sha 4fc30e5 :: blocked before merge. :: none
  • reviewed 2026-09-20T07:28:34.797Z sha 3924b8f :: blocked before merge. :: none
  • reviewed 2026-09-20T08:34:36.087Z sha 199eb49 :: blocked before merge. :: none
  • reviewed 2026-09-20T10:28:57.914Z sha 9864025 :: blocked before merge. :: none

@steipete

Copy link
Copy Markdown
Contributor Author

Final-source macOS published-driver proof — PASS

Head: ef6932c1add2a7a3c338a7a17874ad0d54e06d6e
Candidate SHA-256: 8f67abd5e0f2eb9cc55d6f2313d01f2d6129069cef796f88dbc4b7bcec2ebfaf

Published npm-global 2026.9.4 → this candidate on macOS arm64 / Node 24.21.0, with an isolated profile, prefix, workspace, and owned LaunchAgent. Synthetic Discord settings remained groupPolicy="open", dmPolicy="open", and allowFrom=["*"] throughout. Synthetic tokens were used and channel startup was disabled for this fixture.

The update exited 0 in 225.57 s, installed the candidate commit, and restored a healthy Gateway. Its canonical final report and the independent updater-scoped lint payload contain all four warnings. The ledger is 7,380 bytes and its lint receipt 130 bytes. No repairing phase ran: policy findings did not enter repair. Cleanup verified the owned service unloaded, plist absent, and port closed.

The initial harness expected only a legacy pending report. This managed flow delegated completion to the candidate and printed a canonical final report instead. The transcript, succeeded ledger, canonical report, and a separate read-only lint check were reconciled without rerunning the successful update or changing product bytes.

Paths, the synthetic profile name, and unrelated service identity are redacted below. The update transcript is otherwise complete.

Published 9.4 standalone lint before updating — exit 1
openclaw doctor --lint --json --severity-min error
{
  "ok": false,
  "checksRun": 33,
  "checksSkipped": 30,
  "findings": [
    {
      "checkId": "core/doctor/security",
      "severity": "error",
      "message": "Discord DMs are open: channels.discord.dmPolicy=\"open\" allows anyone to DM the bot.",
      "fixHint": "Use pairing/allowlist; if you really need open DMs, ensure channels.discord.allowFrom includes \"*\"."
    },
    {
      "checkId": "core/doctor/security",
      "severity": "error",
      "message": "Discord security warning: 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."
    }
  ]
}
Full update transcript — exit 0
openclaw update --tag $CANDIDATE --yes
Phase: requested
Phase: staging
Phase: validating
validating — global update...
  ✓ global update (22.03s)
  ✓ candidate migration rehearsal (23.84s)
  ✓ candidate doctor lint (11.29s)
  ✓ candidate config validation (1.81s)
  ✓ candidate plugin resolution (1.69s)
  ✓ candidate migration continuation (922ms)
  ✓ candidate gateway canary (10.56s)
Phase: activating
Stopping managed gateway service before package update...
Stopped LaunchAgent: gui/501/ai.openclaw.<isolated-profile>
openclaw doctor...
  ! openclaw doctor (16.74s)
    Plugin "discord" state migration is pending: Package convergence must wait until the updating parent releases its install records. State and legacy config inputs are preserved. Run "openclaw update repair", then "openclaw doctor --fix".
core/doctor/node-hosting-preconditions: Gateway is only bound to loopback. Set gateway.bind=lan, enable tailscale serve, or configure plugins.entries.device-pair.config.publicUrl.
core/doctor/security: WARNING: openclaw.json contains plaintext secret-bearing config fields.
core/doctor/security: DM principals share a session: Collision topology 1: 2 distinct admitted DM principals from discord-default resolve to the same session bucket owned by agent "main". This can leak context across users.
Post-install doctor reported a recoverable update-time repair warning after the package install was verified; continuing with post-core plugin convergence.
Run openclaw doctor --fix to finish deferred repairs.
    │    configure --section model                                             │
    │  - To disable: openclaw --profile <isolated-profile> config set  │
    │    memory.search.enabled false                                           │
    │                                                                          │
    │  Verify: openclaw --profile <isolated-profile> memory status     │
    │  --deep                                                                  │
    │                                                                          │
    ├──────────────────────────────────────────────────────────────────────────╯
    │
    └  Doctor complete.
    [state-migrations] Plugin "discord" state migration is pending: Package convergence must wait until the updating parent releases its install records. State and legacy config inputs are preserved. Run "openclaw update repair", then "openclaw doctor --fix". pluginId=discord reason="Package convergence must wait until the updating parent releases its install records." action="openclaw update repair" status=pending
    Plugin "discord" state migration is pending: Package convergence must wait until the updating parent releases its install records. State and legacy config inputs are preserved. Run "openclaw update repair", then "openclaw doctor --fix".
    core/doctor/node-hosting-preconditions: Gateway is only bound to loopback. Set gateway.bind=lan, enable tailscale serve, or configure plugins.entries.device-pair.config.publicUrl.
    core/doctor/security: WARNING: openclaw.json contains plaintext secret-bearing config fields.
    core/doctor/security: DM principals share a session: Collision topology 1: 2 distinct admitted DM principals from discord-default resolve to the same session bucket owned by agent "main". This can leak context across users.
    Post-install doctor reported a recoverable update-time repair warning after the package install was verified; continuing with post-core plugin convergence.

Updating plugins...
Installing to $STATE/npm/projects/openclaw-discord-c0892df945__openclaw-generation__g-40c440cfd6c2e487…
Installing @openclaw/discord into $STATE/npm/projects/.openclaw-install-stage-okoy6D…
Linked peerDependency "openclaw" -> $RIG/prefix/lib/node_modules/openclaw
Plugin updates: 1 updated, 0 unchanged.
┌  OpenClaw doctor
│
◇  Update history ────────────────────────────────────────────────────────╮
│                                                                         │
│  Recorded warnings from update a3d8a93a-3016-4815-b222-c4e933812b0f (a  │
│  later repair may have resolved them):                                  │
│  core/doctor/node-hosting-preconditions: Gateway is only bound to       │
│  loopback. Set gateway.bind=lan, enable tailscale serve, or configure   │
│  plugins.entries.device-pair.config.publicUrl.                          │
│  core/doctor/security: WARNING: openclaw.json contains plaintext        │
│  secret-bearing config fields.                                          │
│  core/doctor/security: DM principals share a session: Collision         │
│  topology 1: 2 distinct admitted DM principals from discord-default     │
│  resolve to the same session bucket owned by agent "main". This can     │
│  leak context across users.                                             │
│                                                                         │
├─────────────────────────────────────────────────────────────────────────╯
[state-migrations] Deferred state migration completed for plugin "discord".
│
◇  Update Doctor scope ──────────────────────────────────────────────────╮
│                                                                        │
│  Omitted during update: Project clones, SQLite database size, GitHub   │
│  projects, Bootstrap size, Workspace suggestions.                      │
│  Run `openclaw doctor` after the update to inspect these diagnostics.  │
│                                                                        │
├────────────────────────────────────────────────────────────────────────╯
[warning] core/doctor/node-hosting-preconditions gateway.bind - Gateway is only bound to loopback. Set gateway.bind=lan, enable tailscale serve, or configure plugins.entries.device-pair.config.publicUrl.
  fix: If an edge proxy fronts node onboarding, allow /j/* and /__openclaw__/worker without edge identity auth, and preserve WebSocket upgrade on /__openclaw__/worker. Both routes enforce their own credentials.
│
◇  Plugin registry ───────────────────────────────────────────╮
│                                                             │
│  Plugin registry refreshed: 43/63 enabled plugins indexed.  │
│                                                             │
├─────────────────────────────────────────────────────────────╯
│
◇  State integrity ────────────────────────────────────────────────────────╮
│                                                                          │
│  - OAuth dir not present                                                 │
│    ($STATE/credentials). Skipping        │
│    create because no WhatsApp/pairing channel config is active.          │
│  - Multiple state directories detected. This can split session history.  │
│    - <path>                                                         │
│    Active state dir: $STATE              │
│                                                                          │
├──────────────────────────────────────────────────────────────────────────╯
│
◇  Backups ───────────────────────────────────────────────────────────╮
│                                                                     │
│  No successful backup is recorded.                                  │
│  Create one now with openclaw --profile <isolated-profile>  │
│  backup create.                                                     │
│  Schedule versioned backups with openclaw --profile                 │
│  <isolated-profile> backup enable --repository <dir>.       │
│                                                                     │
├─────────────────────────────────────────────────────────────────────╯
│
◇  Foreign launchd jobs (macOS) ──────────────────────────────╮
│                                                             │
│  <unrelated service label>:                               │
│  program=<path>  │
│  keepalive=false, Gateway lifecycle=not verified            │
│    Report only; left unchanged.                             │
│                                                             │
├─────────────────────────────────────────────────────────────╯
│
◇  Host desktop ──────────────────────────────────────────────────────────╮
│                                                                         │
│  disabled; enable the Desktop lab with desktop.host.enabled=true, then  │
│  restart the gateway                                                    │
│                                                                         │
├─────────────────────────────────────────────────────────────────────────╯
│
◇  Browser ──────────────────────────────────────────────────────────╮
│                                                                    │
│  - System browser profile cookie import is enabled                 │
│    (browser.allowSystemProfileImport).                             │
│  - System browser profile discovery skipped by Doctor; importable  │
│    cookie database count is unavailable.                           │
│  - Doctor does not access the macOS Keychain; importing asks for   │
│    consent separately.                                             │
│                                                                    │
├────────────────────────────────────────────────────────────────────╯
│
◇  Gateway ─────────────────────────────────────────────╮
│                                                       │
│  Gateway health will be checked after Doctor repair.  │
│                                                       │
├───────────────────────────────────────────────────────╯
│
◇  Command owner ──────────────────────────────────────────────────────────╮
│                                                                          │
│  No command owner is configured.                                         │
│  A command owner is your trusted human operator account, allowed to      │
│  update OpenClaw with /update, restart the Gateway, change               │
│  configuration, and approve commands. Chat allowlists do not grant this  │
│  authority.                                                              │
│  Run openclaw --profile <isolated-profile> channels add and      │
│  complete a channel's setup to choose your operator account, including   │
│  servers and groups without DM pairing.                                  │
│  CLI pairing approval records the first command owner. Control UI        │
│  pairing approval has a separate owner checkbox.                         │
│  Fix: set commands.ownerAllowFrom to your channel user id, for example   │
│  openclaw --profile <isolated-profile> config set                │
│  commands.ownerAllowFrom '["telegram:123456789"]'                        │
│  Restart the gateway after changing this if it is already running.       │
│                                                                          │
├──────────────────────────────────────────────────────────────────────────╯
│
◇  Security ───────────────────────────────────────────────────────────────╮
│                                                                          │
│  - WARNING: openclaw.json contains plaintext secret-bearing config       │
│    fields.                                                               │
│    Paths: gateway.auth.token, channels.discord.token                     │
│    Agents or workspace tools that can read config files may see these    │
│    API keys/tokens.                                                      │
│    Migrate them to SecretRefs with openclaw --profile                    │
│    <isolated-profile> secrets configure or openclaw --profile    │
│    <isolated-profile> secrets apply, then verify with openclaw   │
│    --profile <isolated-profile> secrets audit --check.           │
│  - Discord DMs are open: channels.discord.dmPolicy="open" allows anyone  │
│    to DM the bot.                                                        │
│    Use pairing/allowlist; if you really need open DMs, ensure            │
│    channels.discord.allowFrom includes "*".                              │
│  - Discord security warning: 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.                                │
│  - DM principals share a session: Collision topology 1: 2 distinct       │
│    admitted DM principals from discord-default resolve to the same       │
│    session bucket owned by agent "main". This can leak context across    │
│    users.                                                                │
│    Set the effective DM route to an account-safe isolated scope; update  │
│    the matching binding or session.dmScope as applicable.                │
│  - Run: openclaw --profile <isolated-profile> security audit     │
│    --deep                                                                │
│                                                                          │
├──────────────────────────────────────────────────────────────────────────╯
│
◇  Doctor information ─────────────────────────────────────────────────────╮
│                                                                          │
│  - Local STT commands were found but none are ready for auto-selection:  │
│    whisper-cli: model file not found.                                    │
│    path: tools.media.models                                              │
│    fix: Install the matching local model/runtime, or configure an        │
│    audio-capable tools.media.models CLI entry.                           │
│                                                                          │
├──────────────────────────────────────────────────────────────────────────╯
│
◇  Memory search ──────────────────────────────────────────────────────────╮
│                                                                          │
│  Memory search provider is set to "openai" but no API key was found.     │
│  Semantic recall will not work without a valid API key.                  │
│                                                                          │
│                                                                          │
│  Fix (pick one):                                                         │
│  - Set OPENAI_API_KEY in your environment                                │
│  - Configure credentials: openclaw --profile <isolated-profile>  │
│    configure --section model                                             │
│  - To disable: openclaw --profile <isolated-profile> config set  │
│    memory.search.enabled false                                           │
│                                                                          │
│  Verify: openclaw --profile <isolated-profile> memory status     │
│  --deep                                                                  │
│                                                                          │
├──────────────────────────────────────────────────────────────────────────╯
│
└  Doctor complete.

Restarting service...
Gateway: restarted and verified.

✅ OpenClaw updated to 2026.9.5 (from 2026.9.4).
Update mode: npm
Phases: requested (833ms) → staging (10ms) → validating (108.91s) → activating (63.41s) → restarting (11.08s) → verifying (32.8s)
Warning: Discord security warning: 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.
Warning: DM principals share a session: Collision topology 1: 2 distinct admitted DM principals from discord-default resolve to the same session bucket owned by agent "main". This can leak context across users.
Warning: Refreshed Gateway service definition. Backup: $SERVICE_UNIT.reconcile-e4c10a9d-31ff-4471-8de3-50b149af6cb8.bak, $STATE/service-env/ai.openclaw.<isolated-profile>.env.reconcile-e4c10a9d-31ff-4471-8de3-50b149af6cb8.bak, $STATE/service-env/ai.openclaw.<isolated-profile>-env-wrapper.sh.reconcile-e4c10a9d-31ff-4471-8de3-50b149af6cb8.bak, <path>
Verification: service running; version verified; channels ready; HTTP ready.
Gateway downtime: 99.92s.
After verifying your history, preview recovery rollback retirement with openclaw --profile <isolated-profile> update cleanup --dry-run for state $STATE. Keep the same state/config overrides.
Report: $STATE/update-reports/a3d8a93a-3016-4815-b222-c4e933812b0f.md
[sqlite/transaction] slow SQLite transaction hold async=false database=$STATE/state/openclaw.sqlite elapsedMs=3619 isMainThread=true operation=state.plugin-migration-input-publication pid=56017 threadId=0 thresholdMs=1000
Canonical saved report and bounded lint receipt
✅ OpenClaw updated to 2026.9.5 (from 2026.9.4).
Update mode: npm
Phases: requested (833ms) → staging (10ms) → validating (108.91s) → activating (63.41s) → restarting (11.08s) → verifying (32.8s)
Warning: Discord security warning: 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.
Warning: DM principals share a session: Collision topology 1: 2 distinct admitted DM principals from discord-default resolve to the same session bucket owned by agent "main". This can leak context across users.
Warning: Refreshed Gateway service definition. Backup: $SERVICE_UNIT.reconcile-e4c10a9d-31ff-4471-8de3-50b149af6cb8.bak, $STATE/service-env/ai.openclaw.<isolated-profile>.env.reconcile-e4c10a9d-31ff-4471-8de3-50b149af6cb8.bak, $STATE/service-env/ai.openclaw.<isolated-profile>-env-wrapper.sh.reconcile-e4c10a9d-31ff-4471-8de3-50b149af6cb8.bak, <path>
Verification: service running; version verified; channels ready; HTTP ready.
Gateway downtime: 9…
After verifying your history, preview recovery rollback retirement with openclaw --profile <isolated-profile> update cleanup --dry-run for state $OPENCLAW_STATE_DIR. Keep the same state/config overrides.

## Complete Doctor lint findings (4)

- Doctor lint warning [core/doctor/security]: Discord DMs are open: channels.discord.dmPolicy="open" allows anyone to DM the bot.: Use pairing/allowlist; if you really need open DMs, ensure channels.discord.allowFrom includes "*".
- Doctor lint warning [core/doctor/security]: WARNING: openclaw.json contains plaintext secret-bearing config fields.: Paths: gateway.auth.token, channels.discord.token; Agents or workspace tools that can read config files may see these API keys/tokens.; Migrate them to SecretRefs with openclaw --profile <isolated-profile> secrets configure or openclaw --profile <isolated-profile> secrets apply, then verify with openclaw --profile <isolated-profile> secrets audit --check.
- Doctor lint warning [core/doctor/security]: Discord security warning: 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.
- Doctor lint warning [core/doctor/security]: DM principals share a session: Collision topology 1: 2 distinct admitted DM principals from discord-default resolve to the same session bucket owned by agent "main". This can leak context across users.: Set the effective DM route to an account-safe isolated scope; update the matching binding or session.dmScope as applicable.
{
  "exitCode": 0,
  "termination": "exit",
  "signal": null,
  "killed": false,
  "counts": {
    "error": 0,
    "warning": 4,
    "info": 0
  },
  "errors": [],
  "omitted": 0
}

@steipete

Copy link
Copy Markdown
Contributor Author

Final-source macOS standalone-finalizer maintenance proof — PASS

Head: ef6932c1add2a7a3c338a7a17874ad0d54e06d6e
Candidate SHA-256: 8f67abd5e0f2eb9cc55d6f2313d01f2d6129069cef796f88dbc4b7bcec2ebfaf

This independent candidate installation ran openclaw update finalize --yes --json on macOS arm64 / Node 24.21.0 with the same intentional open Discord policies. It exited 0 in 110.67 s, returned JSON status: "warning" for the retained advisories, and recorded a succeeded run. The owned Gateway was healthy before and after; its native PID changed 89667 → 98895.

Observed service messages:

Stopped the managed Gateway for Doctor repair.
Gateway restarted and verified after Doctor repair.

The measured post-plugin lint exited 0 with four warning findings. Cleanup verified the owned LaunchAgent unloaded, plist absent, and port closed. This proves standalone maintenance custody; it is separate from the published-driver upgrade proof.

An initial fixture attempt dispatched health when only TCP was listening and failed before finalizer invocation. The harness was corrected to observe /healthz and /readyz under the existing startup budget before its single health request. The fresh cell below passed without changing product bytes or relaxing the health timeout; the earlier attempt's evidence was retained and its service cleaned up.

Complete standalone-finalizer transcript — exit 0

Paths, the synthetic profile, and unrelated service identity are redacted.

openclaw update finalize --yes --json
[update finalize] {"step":"finalize:preflight","status":"in_progress","startedAtMs":1789849832258}
[update finalize] {"step":"finalize:preflight","status":"completed","endedAtMs":1789849834154}
[update finalize] {"step":"finalize:targetConfigValidation","status":"in_progress","startedAtMs":1789849834169}
[update finalize] {"step":"finalize:targetConfigValidation","status":"completed","endedAtMs":1789849835753}
[update finalize] {"step":"finalize:configSnapshot","status":"in_progress","startedAtMs":1789849835766}
[update finalize] {"step":"finalize:configSnapshot","status":"completed","endedAtMs":1789849835775}
[update finalize] {"step":"finalize:doctor","status":"in_progress","startedAtMs":1789849835784}
Stopped the managed Gateway for Doctor repair.
[update finalize] {"step":"warning:finalize:doctor:0","status":"completed","detail":"Plugin \"discord\" state migration is pending: Package convergence must wait until the updating parent releases its install records. State and legacy config inputs are preserved. Run \"openclaw update repair\", then \"openclaw doctor --fix\".","endedAtMs":1789849879836}
[update finalize] {"step":"warning:finalize:doctor:1","status":"completed","detail":"core/doctor/node-hosting-preconditions: Gateway is only bound to loopback. Set gateway.bind=lan, enable tailscale serve, or configure plugins.entries.device-pair.config.publicUrl.","endedAtMs":1789849879850}
[update finalize] {"step":"warning:finalize:doctor:2","status":"completed","detail":"core/doctor/security: WARNING: openclaw.json contains plaintext secret-bearing config fields.","endedAtMs":1789849879861}
[update finalize] {"step":"warning:finalize:doctor:3","status":"completed","detail":"core/doctor/security: Discord security warning: 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.","endedAtMs":1789849879873}
[update finalize] {"step":"warning:finalize:doctor:4","status":"completed","detail":"core/doctor/security: DM principals share a session: Collision topology 1: 2 distinct admitted DM principals from discord-default resolve to the same session bucket owned by agent \"main\". This can leak context across users.","endedAtMs":1789849879884}
┌  OpenClaw doctor
│
◇  Doctor warnings ──────────────────────────────────────────────────────╮
│                                                                        │
│  - Plugin "discord" state migration is pending: Package convergence    │
│    must wait until the updating parent releases its install records.   │
│    State and legacy config inputs are preserved. Run "openclaw update  │
│    repair", then "openclaw doctor --fix".                              │
│                                                                        │
├────────────────────────────────────────────────────────────────────────╯
│
◇  Doctor warnings ────────────────────────────────────────────────╮
│                                                                  │
│  Model retirement deferred until configured plugin installation  │
│  converges.                                                      │
│                                                                  │
├──────────────────────────────────────────────────────────────────╯
│
◇  Update Doctor scope ──────────────────────────────────────────────────╮
│                                                                        │
│  Omitted during update: Project clones, SQLite database size, GitHub   │
│  projects, Bootstrap size, Workspace suggestions.                      │
│  Run `openclaw doctor` after the update to inspect these diagnostics.  │
│                                                                        │
├────────────────────────────────────────────────────────────────────────╯
[warning] core/doctor/node-hosting-preconditions gateway.bind - Gateway is only bound to loopback. Set gateway.bind=lan, enable tailscale serve, or configure plugins.entries.device-pair.config.publicUrl.
  fix: If an edge proxy fronts node onboarding, allow /j/* and /__openclaw__/worker without edge identity auth, and preserve WebSocket upgrade on /__openclaw__/worker. Both routes enforce their own credentials.
│
◇  Command owner ──────────────────────────────────────────────────────────╮
│                                                                          │
│  No command owner is configured.                                         │
│  A command owner is your trusted human operator account, allowed to      │
│  update OpenClaw with /update, restart the Gateway, change               │
│  configuration, and approve commands. Chat allowlists do not grant this  │
│  authority.                                                              │
│  Run openclaw --profile <isolated-profile> channels add and   │
│  complete a channel's setup to choose your operator account, including   │
│  servers and groups without DM pairing.                                  │
│  CLI pairing approval records the first command owner. Control UI        │
│  pairing approval has a separate owner checkbox.                         │
│  Fix: set commands.ownerAllowFrom to your channel user id, for example   │
│  openclaw --profile <isolated-profile> config set             │
│  commands.ownerAllowFrom '["telegram:123456789"]'                        │
│  Restart the gateway after changing this if it is already running.       │
│                                                                          │
├──────────────────────────────────────────────────────────────────────────╯
│
◇  Plugin registry ───────────────────────────────────────────╮
│                                                             │
│  Plugin registry refreshed: 43/63 enabled plugins indexed.  │
│                                                             │
├─────────────────────────────────────────────────────────────╯
│
◇  State integrity ────────────────────────────────────────────────────────╮
│                                                                          │
│  - OAuth dir not present                                                 │
│    ($STATE/credentials). Skipping     │
│    create because no WhatsApp/pairing channel config is active.          │
│  - Multiple state directories detected. This can split session history.  │
│    - <path>                                                         │
│    Active state dir: $STATE           │
│                                                                          │
├──────────────────────────────────────────────────────────────────────────╯
│
◇  Backups ──────────────────────────────────────────────────────────────╮
│                                                                        │
│  No successful backup is recorded.                                     │
│  Create one now with openclaw --profile <isolated-profile>  │
│  backup create.                                                        │
│  Schedule versioned backups with openclaw --profile                    │
│  <isolated-profile> backup enable --repository <dir>.       │
│                                                                        │
├────────────────────────────────────────────────────────────────────────╯
│
◇  Foreign launchd jobs (macOS) ──────────────────────────────╮
│                                                             │
│  <unrelated service label>:                               │
│  program=<path>  │
│  keepalive=false, Gateway lifecycle=not verified            │
│    Report only; left unchanged.                             │
│                                                             │
├─────────────────────────────────────────────────────────────╯
│
◇  Host desktop ──────────────────────────────────────────────────────────╮
│                                                                         │
│  disabled; enable the Desktop lab with desktop.host.enabled=true, then  │
│  restart the gateway                                                    │
│                                                                         │
├─────────────────────────────────────────────────────────────────────────╯
│
◇  Security ───────────────────────────────────────────────────────────────╮
│                                                                          │
│  - WARNING: openclaw.json contains plaintext secret-bearing config       │
│    fields.                                                               │
│    Paths: gateway.auth.token, channels.discord.token                     │
│    Agents or workspace tools that can read config files may see these    │
│    API keys/tokens.                                                      │
│    Migrate them to SecretRefs with openclaw --profile                    │
│    <isolated-profile> secrets configure or openclaw           │
│    --profile <isolated-profile> secrets apply, then verify    │
│    with openclaw --profile <isolated-profile> secrets audit   │
│    --check.                                                              │
│  - Discord DMs are open: channels.discord.dmPolicy="open" allows anyone  │
│    to DM the bot.                                                        │
│    Use pairing/allowlist; if you really need open DMs, ensure            │
│    channels.discord.allowFrom includes "*".                              │
│  - Discord security warning: 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.                                │
│  - DM principals share a session: Collision topology 1: 2 distinct       │
│    admitted DM principals from discord-default resolve to the same       │
│    session bucket owned by agent "main". This can leak context across    │
│    users.                                                                │
│    Set the effective DM route to an account-safe isolated scope; update  │
│    the matching binding or session.dmScope as applicable.                │
│  - Run: openclaw --profile <isolated-profile> security audit  │
│    --deep                                                                │
│                                                                          │
├──────────────────────────────────────────────────────────────────────────╯
│
◇  Browser ──────────────────────────────────────────────────────────╮
│                                                                    │
│  - System browser profile cookie import is enabled                 │
│    (browser.allowSystemProfileImport).                             │
│  - System browser profile discovery skipped by Doctor; importable  │
│    cookie database count is unavailable.                           │
│  - Doctor does not access the macOS Keychain; importing asks for   │
│    consent separately.                                             │
│                                                                    │
├────────────────────────────────────────────────────────────────────╯
│
◇  Doctor information ─────────────────────────────────────────────────────╮
│                                                                          │
│  - Local STT commands were found but none are ready for auto-selection:  │
│    whisper-cli: model file not found.                                    │
│    path: tools.media.models                                              │
│    fix: Install the matching local model/runtime, or configure an        │
│    audio-capable tools.media.models CLI entry.                           │
│                                                                          │
├──────────────────────────────────────────────────────────────────────────╯
│
◇  Gateway ─────────────────────────────────────────────╮
│                                                       │
│  Gateway health will be checked after Doctor repair.  │
│                                                       │
├───────────────────────────────────────────────────────╯
│
◇  Memory search ──────────────────────────────────────────────────────────╮
│                                                                          │
│  Memory search provider is set to "openai" but no API key was found.     │
│  Semantic recall will not work without a valid API key.                  │
│                                                                          │
│                                                                          │
│  Fix (pick one):                                                         │
│  - Set OPENAI_API_KEY in your environment                                │
│  - Configure credentials: openclaw --profile                             │
│    <isolated-profile> configure --section model               │
│  - To disable: openclaw --profile <isolated-profile> config   │
│    set memory.search.enabled false                                       │
│                                                                          │
│  Verify: openclaw --profile <isolated-profile> memory status  │
│  --deep                                                                  │
│                                                                          │
├──────────────────────────────────────────────────────────────────────────╯
│
└  Doctor complete.
[state-migrations] Plugin "discord" state migration is pending: Package convergence must wait until the updating parent releases its install records. State and legacy config inputs are preserved. Run "openclaw update repair", then "openclaw doctor --fix". pluginId=discord reason="Package convergence must wait until the updating parent releases its install records." action="openclaw update repair" status=pending
[update finalize] {"step":"finalize:doctor","status":"completed","endedAtMs":1789849879915}
[update finalize] {"step":"finalize:plugins","status":"in_progress","startedAtMs":1789849879924}
[update finalize] {"step":"finalize:plugins","status":"completed","endedAtMs":1789849881031}
[update finalize] {"step":"finalize:targetConfigConvergence","status":"in_progress","startedAtMs":1789849881039}
Restarted LaunchAgent: gui/501/ai.openclaw.<isolated-profile>
Gateway restarted and verified after Doctor repair.
[update finalize] {"step":"finalize:targetConfigConvergence","status":"completed","endedAtMs":1789849912590}
[update finalize] {"step":"warning:finalize:plugins:0","status":"completed","detail":"Discord DMs are open: channels.discord.dmPolicy=\"open\" allows anyone to DM the bot.","endedAtMs":1789849912598}
[update finalize] {"step":"warning:finalize:plugins:1","status":"completed","detail":"WARNING: openclaw.json contains plaintext secret-bearing config fields.","endedAtMs":1789849912606}
[update finalize] {"step":"warning:finalize:plugins:2","status":"completed","detail":"Discord security warning: 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.","endedAtMs":1789849912614}
[update finalize] {"step":"warning:finalize:plugins:3","status":"completed","detail":"DM principals share a session: Collision topology 1: 2 distinct admitted DM principals from discord-default resolve to the same session bucket owned by agent \"main\". This can leak context across users.","endedAtMs":1789849912622}
[update finalize] {"step":"finalize:completionCache","status":"in_progress","startedAtMs":1789849912631}
[update finalize] {"step":"finalize:completionCache","status":"completed","endedAtMs":1789849936084}
{
  "status": "warning",
  "mode": "finalize",
  "root": "$RIG/prefix/lib/node_modules/openclaw",
  "channel": "stable",
  "restart": false,
  "phaseTimings": [
    {
      "phase": "preflight",
      "startedOffsetMs": 99,
      "durationMs": 1896,
      "outcome": "completed"
    },
    {
      "phase": "targetConfigValidation",
      "startedOffsetMs": 2009,
      "durationMs": 1584,
      "outcome": "completed"
    },
    {
      "phase": "configSnapshot",
      "startedOffsetMs": 3606,
      "durationMs": 9,
      "outcome": "completed"
    },
    {
      "phase": "doctor",
      "startedOffsetMs": 3625,
      "durationMs": 44131,
      "outcome": "completed"
    },
    {
      "phase": "plugins",
      "startedOffsetMs": 47765,
      "durationMs": 1107,
      "outcome": "completed"
    },
    {
      "phase": "targetConfigConvergence",
      "startedOffsetMs": 48879,
      "durationMs": 31552,
      "outcome": "warning"
    },
    {
      "phase": "completionCache",
      "startedOffsetMs": 80471,
      "durationMs": 23453,
      "outcome": "completed"
    }
  ],
  "postUpdate": {
    "doctor": {
      "status": "warning",
      "warnings": [
        "Plugin \"discord\" state migration is pending: Package convergence must wait until the updating parent releases its install records. State and legacy config inputs are preserved. Run \"openclaw update repair\", then \"openclaw doctor --fix\".",
        "core/doctor/node-hosting-preconditions: Gateway is only bound to loopback. Set gateway.bind=lan, enable tailscale serve, or configure plugins.entries.device-pair.config.publicUrl.",
        "core/doctor/security: WARNING: openclaw.json contains plaintext secret-bearing config fields.",
        "core/doctor/security: Discord security warning: 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.",
        "core/doctor/security: DM principals share a session: Collision topology 1: 2 distinct admitted DM principals from discord-default resolve to the same session bucket owned by agent \"main\". This can leak context across users."
      ]
    },
    "plugins": {
      "status": "warning",
      "assessment": {
        "kind": "no-payload-repair"
      },
      "changed": false,
      "warnings": [
        {
          "reason": "doctor-advisory",
          "message": "Discord DMs are open: channels.discord.dmPolicy=\"open\" allows anyone to DM the bot.",
          "guidance": [
            "Use pairing/allowlist; if you really need open DMs, ensure channels.discord.allowFrom includes \"*\"."
          ]
        },
        {
          "reason": "doctor-advisory",
          "message": "WARNING: openclaw.json contains plaintext secret-bearing config fields.",
          "guidance": [
            "Paths: gateway.auth.token, channels.discord.token\nAgents or workspace tools that can read config files may see these API keys/tokens.\nMigrate them to SecretRefs with openclaw --profile <isolated-profile> secrets configure or openclaw --profile <isolated-profile> secrets apply, then verify with openclaw --profile <isolated-profile> secrets audit --check."
          ]
        },
        {
          "reason": "doctor-advisory",
          "message": "Discord security warning: 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.",
          "guidance": [
            "Resolve this finding, then rerun `openclaw doctor --lint --only core/doctor/security`."
          ]
        },
        {
          "reason": "doctor-advisory",
          "message": "DM principals share a session: Collision topology 1: 2 distinct admitted DM principals from discord-default resolve to the same session bucket owned by agent \"main\". This can leak context across users.",
          "guidance": [
            "Set the effective DM route to an account-safe isolated scope; update the matching binding or session.dmScope as applicable."
          ]
        }
      ],
      "sync": {
        "changed": false,
        "switchedToBundled": [],
        "switchedToNpm": [],
        "warnings": [],
        "errors": []
      },
      "npm": {
        "changed": false,
        "outcomes": [
          {
            "pluginId": "discord",
            "status": "unchanged",
            "currentVersion": "2026.9.5",
            "nextVersion": "2026.9.5",
            "message": "discord is up to date (2026.9.5)."
          }
        ]
      },
      "integrityDrifts": [],
      "doctorLint": {
        "name": "post-plugin doctor lint",
        "command": "doctor --lint --json --severity-min error",
        "cwd": "$RIG/prefix/lib/node_modules/openclaw",
        "durationMs": 15608,
        "exitCode": 0,
        "doctorLintFindings": [
          {
            "checkId": "core/doctor/security",
            "message": "Discord DMs are open: channels.discord.dmPolicy=\"open\" allows anyone to DM the bot.",
            "fixHint": "Use pairing/allowlist; if you really need open DMs, ensure channels.discord.allowFrom includes \"*\".",
            "severity": "warning"
          },
          {
            "checkId": "core/doctor/security",
            "message": "WARNING: openclaw.json contains plaintext secret-bearing config fields.",
            "fixHint": "Paths: gateway.auth.token, channels.discord.token; Agents or workspace tools that can read config files may see these API keys/tokens.; Migrate them to SecretRefs with openclaw --profile <isolated-profile> secrets configure or openclaw --profile <isolated-profile> secrets apply, then verify with openclaw --profile <isolated-profile> secrets audit --check.",
            "severity": "warning"
          },
          {
            "checkId": "core/doctor/security",
            "message": "Discord security warning: 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.",
            "severity": "warning"
          },
          {
            "checkId": "core/doctor/security",
            "message": "DM principals share a session: Collision topology 1: 2 distinct admitted DM principals from discord-default resolve to the same session bucket owned by agent \"main\". This can leak context across users.",
            "fixHint": "Set the effective DM route to an account-safe isolated scope; update the matching binding or session.dmScope as applicable.",
            "severity": "warning"
          }
        ],
        "termination": "exit",
        "signal": null,
        "killed": false,
        "stderrTail": "Doctor lint warning [core/doctor/security]: Discord DMs are open: channels.discord.dmPolicy=\"open\" allows anyone to DM the bot.: Use pairing/allowlist; if you really need open DMs, ensure channels.discord.allowFrom includes \"*\".\nDoctor lint warning [core/doctor/security]: WARNING: openclaw.json contains plaintext secret-bearing config fields.: Paths: gateway.auth.token, channels.discord.token; Agents or workspace tools that can read config files may see these API keys/tokens.; Migrate them to SecretRefs with openclaw --profile <isolated-profile> secrets configure or openclaw --profile <isolated-profile> secrets apply, then verify with openclaw --profile <isolated-profile> secrets audit -\nDoctor lint warning [core/doctor/security]: Discord security warning: 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.\nDoctor lint warning [core/doctor/security]: DM principals share a session: Collision topology 1: 2 distinct admitted DM principals from discord-default resolve to the same session bucket owned by agent \"main\". This can leak context across users.: Set the effective DM route to an account-safe isolated scope; update the matching binding or session.dmScope as applicable.\n"
      }
    }
  }
}

@steipete

steipete commented Sep 19, 2026 •

Copy link
Copy Markdown
Contributor Author

Final-source Linux published-driver proof — PASS

Head: ef6932c1add2a7a3c338a7a17874ad0d54e06d6e
Candidate SHA-256: 8f67abd5e0f2eb9cc55d6f2313d01f2d6129069cef796f88dbc4b7bcec2ebfaf

Blacksmith Testbox, root npm-global, Node 24.19.0. The canonical package build passed tarball integrity checks; all 46,017 tracked source files were verified against the committed source manifest before and after packaging. Testbox carrier run.

Published 2026.9.4 → this candidate exited 0 in 83.552 s with a succeeded ledger and the human terminal success line. The synthetic config retained groupPolicy="open", dmPolicy="open", and allowFrom=["*"]. Published standalone lint returned 1 with both named security-policy errors; updater-scoped candidate lint returned 0 with four warnings.

The saved phase report and independent full lint payload contain the same four named warnings. The ledger is 6,005 bytes; its retained lint receipt is 130 bytes. The published parent stripped the original step's structured exit field, but the JSON receipt preserved the physical exit 0, normal termination, signal, and killed flag. The policy messages were printed in Doctor's Security panel; this frozen parent's presentation does not forward every lint stderr line.

This cell intentionally used isolated noncanonical state, so native service management was skipped. It proves the package/policy/report path, not Linux native Gateway maintenance. The candidate saved a separately named, explicitly pending phase report; the published parent then printed the terminal success outcome. The native maintenance cell is reported separately.

An initial harness assertion demanded the newer lint-prefix presentation from the frozen parent. The corrected fresh run verifies the actual visible policy message while independently requiring warning severity in both the receipt and report. Product bytes were unchanged. Paths are redacted in the complete transcript below.

Published standalone lint baseline — exit 1
{
  "exitCode": 1,
  "ok": false,
  "checksRun": 33,
  "intendedPolicy": {
    "dmPolicy": "open",
    "groupPolicy": "open"
  },
  "findings": [
    {
      "checkId": "core/doctor/security",
      "severity": "error",
      "message": "Discord DMs are open: channels.discord.dmPolicy=\"open\" allows anyone to DM the bot.",
      "fixHint": "Use pairing/allowlist; if you really need open DMs, ensure channels.discord.allowFrom includes \"*\"."
    },
    {
      "checkId": "core/doctor/security",
      "severity": "error",
      "message": "Discord security warning: 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."
    }
  ],
  "openDmErrorReproduced": true
}
Complete published-driver update transcript — exit 0
openclaw update --tag $CANDIDATE --yes
Phase: requested
Phase: staging
Phase: validating
validating — global update...
  ✓ global update (7.49s)
  ✓ candidate migration rehearsal (10.28s)
  ✓ candidate doctor lint (5.65s)
  ✓ candidate config validation (1.11s)
  ✓ candidate plugin resolution (611ms)
  ✓ candidate migration continuation (594ms)
  ✓ candidate gateway canary (4.69s)
openclaw doctor...
  ! openclaw doctor (7.01s)
    Plugin "discord" state migration is pending: Package convergence must wait until the updating parent releases its install records. State and legacy config inputs are preserved. Run "openclaw update repair", then "openclaw doctor --fix".
core/doctor/node-hosting-preconditions: Gateway is only bound to loopback. Set gateway.bind=lan, enable tailscale serve, or configure plugins.entries.device-pair.config.publicUrl.
core/doctor/security: WARNING: openclaw.json contains plaintext secret-bearing config fields.
core/doctor/security: DM principals share a session: Collision topology 1: 2 distinct admitted DM principals from discord-default resolve to the same session bucket owned by agent "main". This can leak context across users.
Post-install doctor reported a recoverable update-time repair warning after the package install was verified; continuing with post-core plugin convergence.
Run openclaw doctor --fix to finish deferred repairs.
    │  Fix (pick one):                                                      │
    │  - Set OPENAI_API_KEY in your environment                             │
    │  - Configure credentials: openclaw configure --section model          │
    │  - To disable: openclaw config set memory.search.enabled false        │
    │                                                                       │
    │  Verify: openclaw memory status --deep                                │
    │                                                                       │
    ├───────────────────────────────────────────────────────────────────────╯
    │
    └  Doctor complete.
    [state-migrations] Plugin "discord" state migration is pending: Package convergence must wait until the updating parent releases its install records. State and legacy config inputs are preserved. Run "openclaw update repair", then "openclaw doctor --fix". pluginId=discord reason="Package convergence must wait until the updating parent releases its install records." action="openclaw update repair" status=pending
    Plugin "discord" state migration is pending: Package convergence must wait until the updating parent releases its install records. State and legacy config inputs are preserved. Run "openclaw update repair", then "openclaw doctor --fix".
    core/doctor/node-hosting-preconditions: Gateway is only bound to loopback. Set gateway.bind=lan, enable tailscale serve, or configure plugins.entries.device-pair.config.publicUrl.
    core/doctor/security: WARNING: openclaw.json contains plaintext secret-bearing config fields.
    core/doctor/security: DM principals share a session: Collision topology 1: 2 distinct admitted DM principals from discord-default resolve to the same session bucket owned by agent "main". This can leak context across users.
    Post-install doctor reported a recoverable update-time repair warning after the package install was verified; continuing with post-core plugin convergence.
Phase: activating
┌  OpenClaw doctor
│
◇  Update history ────────────────────────────────────────────────────────╮
│                                                                         │
│  Recorded warnings from update 09a3dfda-7ecc-46d2-b989-20f2cfa88851 (a  │
│  later repair may have resolved them):                                  │
│  core/doctor/node-hosting-preconditions: Gateway is only bound to       │
│  loopback. Set gateway.bind=lan, enable tailscale serve, or configure   │
│  plugins.entries.device-pair.config.publicUrl.                          │
│  core/doctor/security: WARNING: openclaw.json contains plaintext        │
│  secret-bearing config fields.                                          │
│  core/doctor/security: DM principals share a session: Collision         │
│  topology 1: 2 distinct admitted DM principals from discord-default     │
│  resolve to the same session bucket owned by agent "main". This can     │
│  leak context across users.                                             │
│                                                                         │
├─────────────────────────────────────────────────────────────────────────╯
[state-migrations] Deferred state migration completed for plugin "discord".
│
◇  Update Doctor scope ──────────────────────────────────────────────────╮
│                                                                        │
│  Omitted during update: Project clones, SQLite database size, GitHub   │
│  projects, Bootstrap size, Workspace suggestions.                      │
│  Run `openclaw doctor` after the update to inspect these diagnostics.  │
│                                                                        │
├────────────────────────────────────────────────────────────────────────╯
[warning] core/doctor/node-hosting-preconditions gateway.bind - Gateway is only bound to loopback. Set gateway.bind=lan, enable tailscale serve, or configure plugins.entries.device-pair.config.publicUrl.
  fix: If an edge proxy fronts node onboarding, allow /j/* and /__openclaw__/worker without edge identity auth, and preserve WebSocket upgrade on /__openclaw__/worker. Both routes enforce their own credentials.
│
◇  Plugin registry ───────────────────────────────────────────╮
│                                                             │
│  Plugin registry refreshed: 41/63 enabled plugins indexed.  │
│                                                             │
├─────────────────────────────────────────────────────────────╯
│
◇  State integrity ───────────────────────────────────────────────────────╮
│                                                                         │
│  - OAuth dir not present                                                │
│    ($RIG/state/credentials). Skipping  │
│    create because no WhatsApp/pairing channel config is active.         │
│                                                                         │
├─────────────────────────────────────────────────────────────────────────╯
│
◇  Backups ─────────────────────────────────────────────────────────────╮
│                                                                       │
│  No successful backup is recorded.                                    │
│  Create one now with openclaw backup create.                          │
│  Schedule versioned backups with openclaw backup enable --repository  │
│  <dir>.                                                               │
│                                                                       │
├───────────────────────────────────────────────────────────────────────╯
│
◇  Host desktop ──────────────────────────────────────────────────────────╮
│                                                                         │
│  disabled; enable the Desktop lab with desktop.host.enabled=true, then  │
│  restart the gateway                                                    │
│                                                                         │
├─────────────────────────────────────────────────────────────────────────╯
│
◇  Gateway ─────────────────────────────────────────────╮
│                                                       │
│  Gateway health will be checked after Doctor repair.  │
│                                                       │
├───────────────────────────────────────────────────────╯
│
◇  Command owner ──────────────────────────────────────────────────────────╮
│                                                                          │
│  No command owner is configured.                                         │
│  A command owner is your trusted human operator account, allowed to      │
│  update OpenClaw with /update, restart the Gateway, change               │
│  configuration, and approve commands. Chat allowlists do not grant this  │
│  authority.                                                              │
│  Run openclaw channels add and complete a channel's setup to choose      │
│  your operator account, including servers and groups without DM          │
│  pairing.                                                                │
│  CLI pairing approval records the first command owner. Control UI        │
│  pairing approval has a separate owner checkbox.                         │
│  Fix: set commands.ownerAllowFrom to your channel user id, for example   │
│  openclaw config set commands.ownerAllowFrom '["telegram:123456789"]'    │
│  Restart the gateway after changing this if it is already running.       │
│                                                                          │
├──────────────────────────────────────────────────────────────────────────╯
│
◇  Security ───────────────────────────────────────────────────────────────╮
│                                                                          │
│  - WARNING: openclaw.json contains plaintext secret-bearing config       │
│    fields.                                                               │
│    Paths: gateway.auth.token, channels.discord.token                     │
│    Agents or workspace tools that can read config files may see these    │
│    API keys/tokens.                                                      │
│    Migrate them to SecretRefs with openclaw secrets configure or         │
│    openclaw secrets apply, then verify with openclaw secrets audit       │
│    --check.                                                              │
│  - Discord DMs are open: channels.discord.dmPolicy="open" allows anyone  │
│    to DM the bot.                                                        │
│    Use pairing/allowlist; if you really need open DMs, ensure            │
│    channels.discord.allowFrom includes "*".                              │
│  - Discord security warning: 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.                                │
│  - DM principals share a session: Collision topology 1: 2 distinct       │
│    admitted DM principals from discord-default resolve to the same       │
│    session bucket owned by agent "main". This can leak context across    │
│    users.                                                                │
│    Set the effective DM route to an account-safe isolated scope; update  │
│    the matching binding or session.dmScope as applicable.                │
│  - Run: openclaw security audit --deep                                   │
│                                                                          │
├──────────────────────────────────────────────────────────────────────────╯
│
◇  Memory search ───────────────────────────────────────────────────────╮
│                                                                       │
│  Memory search provider is set to "openai" but no API key was found.  │
│  Semantic recall will not work without a valid API key.               │
│                                                                       │
│                                                                       │
│  Fix (pick one):                                                      │
│  - Set OPENAI_API_KEY in your environment                             │
│  - Configure credentials: openclaw configure --section model          │
│  - To disable: openclaw config set memory.search.enabled false        │
│                                                                       │
│  Verify: openclaw memory status --deep                                │
│                                                                       │
├───────────────────────────────────────────────────────────────────────╯
│
└  Doctor complete.

Updating plugins...
Installing to $RIG/state/npm/projects/openclaw-discord-c0892df945__openclaw-generation__g-40c440cfd6c2e487…
Installing @openclaw/discord into $RIG/state/npm/projects/.openclaw-install-stage-ZYuNRG…
Linked peerDependency "openclaw" -> $RIG/prefix/lib/node_modules/openclaw
Plugin updates: 1 updated, 0 unchanged.
┌  OpenClaw doctor
│
◇  Update history ────────────────────────────────────────────────────────╮
│                                                                         │
│  Recorded warnings from update 09a3dfda-7ecc-46d2-b989-20f2cfa88851 (a  │
│  later repair may have resolved them):                                  │
│  core/doctor/security: WARNING: openclaw.json contains plaintext        │
│  secret-bearing config fields.                                          │
│  core/doctor/security: DM principals share a session: Collision         │
│  topology 1: 2 distinct admitted DM principals from discord-default     │
│  resolve to the same session bucket owned by agent "main". This can     │
│  leak context across users.                                             │
│  Deferred model retirement repair completed after plugin convergence.   │
│                                                                         │
├─────────────────────────────────────────────────────────────────────────╯
│
◇  Update Doctor scope ──────────────────────────────────────────────────╮
│                                                                        │
│  Omitted during update: Project clones, SQLite database size, GitHub   │
│  projects, Bootstrap size, Workspace suggestions.                      │
│  Run `openclaw doctor` after the update to inspect these diagnostics.  │
│                                                                        │
├────────────────────────────────────────────────────────────────────────╯
[warning] core/doctor/node-hosting-preconditions gateway.bind - Gateway is only bound to loopback. Set gateway.bind=lan, enable tailscale serve, or configure plugins.entries.device-pair.config.publicUrl.
  fix: If an edge proxy fronts node onboarding, allow /j/* and /__openclaw__/worker without edge identity auth, and preserve WebSocket upgrade on /__openclaw__/worker. Both routes enforce their own credentials.
│
◇  Plugin registry ───────────────────────────────────────────╮
│                                                             │
│  Plugin registry refreshed: 41/63 enabled plugins indexed.  │
│                                                             │
├─────────────────────────────────────────────────────────────╯
│
◇  State integrity ───────────────────────────────────────────────────────╮
│                                                                         │
│  - OAuth dir not present                                                │
│    ($RIG/state/credentials). Skipping  │
│    create because no WhatsApp/pairing channel config is active.         │
│                                                                         │
├─────────────────────────────────────────────────────────────────────────╯
│
◇  Backups ─────────────────────────────────────────────────────────────╮
│                                                                       │
│  No successful backup is recorded.                                    │
│  Create one now with openclaw backup create.                          │
│  Schedule versioned backups with openclaw backup enable --repository  │
│  <dir>.                                                               │
│                                                                       │
├───────────────────────────────────────────────────────────────────────╯
│
◇  Host desktop ──────────────────────────────────────────────────────────╮
│                                                                         │
│  disabled; enable the Desktop lab with desktop.host.enabled=true, then  │
│  restart the gateway                                                    │
│                                                                         │
├─────────────────────────────────────────────────────────────────────────╯
│
◇  Gateway ─────────────────────────────────────────────╮
│                                                       │
│  Gateway health will be checked after Doctor repair.  │
│                                                       │
├───────────────────────────────────────────────────────╯
│
◇  Command owner ──────────────────────────────────────────────────────────╮
│                                                                          │
│  No command owner is configured.                                         │
│  A command owner is your trusted human operator account, allowed to      │
│  update OpenClaw with /update, restart the Gateway, change               │
│  configuration, and approve commands. Chat allowlists do not grant this  │
│  authority.                                                              │
│  Run openclaw channels add and complete a channel's setup to choose      │
│  your operator account, including servers and groups without DM          │
│  pairing.                                                                │
│  CLI pairing approval records the first command owner. Control UI        │
│  pairing approval has a separate owner checkbox.                         │
│  Fix: set commands.ownerAllowFrom to your channel user id, for example   │
│  openclaw config set commands.ownerAllowFrom '["telegram:123456789"]'    │
│  Restart the gateway after changing this if it is already running.       │
│                                                                          │
├──────────────────────────────────────────────────────────────────────────╯
│
◇  Security ───────────────────────────────────────────────────────────────╮
│                                                                          │
│  - WARNING: openclaw.json contains plaintext secret-bearing config       │
│    fields.                                                               │
│    Paths: gateway.auth.token, channels.discord.token                     │
│    Agents or workspace tools that can read config files may see these    │
│    API keys/tokens.                                                      │
│    Migrate them to SecretRefs with openclaw secrets configure or         │
│    openclaw secrets apply, then verify with openclaw secrets audit       │
│    --check.                                                              │
│  - Discord DMs are open: channels.discord.dmPolicy="open" allows anyone  │
│    to DM the bot.                                                        │
│    Use pairing/allowlist; if you really need open DMs, ensure            │
│    channels.discord.allowFrom includes "*".                              │
│  - Discord security warning: 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.                                │
│  - DM principals share a session: Collision topology 1: 2 distinct       │
│    admitted DM principals from discord-default resolve to the same       │
│    session bucket owned by agent "main". This can leak context across    │
│    users.                                                                │
│    Set the effective DM route to an account-safe isolated scope; update  │
│    the matching binding or session.dmScope as applicable.                │
│  - Run: openclaw security audit --deep                                   │
│                                                                          │
├──────────────────────────────────────────────────────────────────────────╯
│
◇  Memory search ───────────────────────────────────────────────────────╮
│                                                                       │
│  Memory search provider is set to "openai" but no API key was found.  │
│  Semantic recall will not work without a valid API key.               │
│                                                                       │
│                                                                       │
│  Fix (pick one):                                                      │
│  - Set OPENAI_API_KEY in your environment                             │
│  - Configure credentials: openclaw configure --section model          │
│  - To disable: openclaw config set memory.search.enabled false        │
│                                                                       │
│  Verify: openclaw memory status --deep                                │
│                                                                       │
├───────────────────────────────────────────────────────────────────────╯
│
└  Doctor complete.
Post-plugin Doctor report (update completion pending): $TMP/8e7467a8-5bc1-4936-bf00-772596918702.md
┌  OpenClaw doctor
│
◇  Update history ────────────────────────────────────────────────────────╮
│                                                                         │
│  Recorded warnings from update 09a3dfda-7ecc-46d2-b989-20f2cfa88851 (a  │
│  later repair may have resolved them):                                  │
│  WARNING: openclaw.json contains plaintext secret-bearing config        │
│  fields.                                                                │
│  Discord security warning: 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.                                 │
│  DM principals share a session: Collision topology 1: 2 distinct        │
│  admitted DM principals from discord-default resolve to the same        │
│  session bucket owned by agent "main". This can leak context across     │
│  users.                                                                 │
│                                                                         │
├─────────────────────────────────────────────────────────────────────────╯
│
◇  Update Doctor scope ──────────────────────────────────────────────────╮
│                                                                        │
│  Omitted during update: Project clones, SQLite database size, GitHub   │
│  projects, Bootstrap size, Workspace suggestions.                      │
│  Run `openclaw doctor` after the update to inspect these diagnostics.  │
│                                                                        │
├────────────────────────────────────────────────────────────────────────╯
[warning] core/doctor/node-hosting-preconditions gateway.bind - Gateway is only bound to loopback. Set gateway.bind=lan, enable tailscale serve, or configure plugins.entries.device-pair.config.publicUrl.
  fix: If an edge proxy fronts node onboarding, allow /j/* and /__openclaw__/worker without edge identity auth, and preserve WebSocket upgrade on /__openclaw__/worker. Both routes enforce their own credentials.
│
◇  Plugin registry ───────────────────────────────────────────╮
│                                                             │
│  Plugin registry refreshed: 41/63 enabled plugins indexed.  │
│                                                             │
├─────────────────────────────────────────────────────────────╯
│
◇  State integrity ───────────────────────────────────────────────────────╮
│                                                                         │
│  - OAuth dir not present                                                │
│    ($RIG/state/credentials). Skipping  │
│    create because no WhatsApp/pairing channel config is active.         │
│                                                                         │
├─────────────────────────────────────────────────────────────────────────╯
│
◇  Backups ─────────────────────────────────────────────────────────────╮
│                                                                       │
│  No successful backup is recorded.                                    │
│  Create one now with openclaw backup create.                          │
│  Schedule versioned backups with openclaw backup enable --repository  │
│  <dir>.                                                               │
│                                                                       │
├───────────────────────────────────────────────────────────────────────╯
│
◇  Host desktop ──────────────────────────────────────────────────────────╮
│                                                                         │
│  disabled; enable the Desktop lab with desktop.host.enabled=true, then  │
│  restart the gateway                                                    │
│                                                                         │
├─────────────────────────────────────────────────────────────────────────╯
│
◇  Gateway ─────────────────────────────────────────────╮
│                                                       │
│  Gateway health will be checked after Doctor repair.  │
│                                                       │
├───────────────────────────────────────────────────────╯
│
◇  Command owner ──────────────────────────────────────────────────────────╮
│                                                                          │
│  No command owner is configured.                                         │
│  A command owner is your trusted human operator account, allowed to      │
│  update OpenClaw with /update, restart the Gateway, change               │
│  configuration, and approve commands. Chat allowlists do not grant this  │
│  authority.                                                              │
│  Run openclaw channels add and complete a channel's setup to choose      │
│  your operator account, including servers and groups without DM          │
│  pairing.                                                                │
│  CLI pairing approval records the first command owner. Control UI        │
│  pairing approval has a separate owner checkbox.                         │
│  Fix: set commands.ownerAllowFrom to your channel user id, for example   │
│  openclaw config set commands.ownerAllowFrom '["telegram:123456789"]'    │
│  Restart the gateway after changing this if it is already running.       │
│                                                                          │
├──────────────────────────────────────────────────────────────────────────╯
│
◇  Security ───────────────────────────────────────────────────────────────╮
│                                                                          │
│  - WARNING: openclaw.json contains plaintext secret-bearing config       │
│    fields.                                                               │
│    Paths: gateway.auth.token, channels.discord.token                     │
│    Agents or workspace tools that can read config files may see these    │
│    API keys/tokens.                                                      │
│    Migrate them to SecretRefs with openclaw secrets configure or         │
│    openclaw secrets apply, then verify with openclaw secrets audit       │
│    --check.                                                              │
│  - Discord DMs are open: channels.discord.dmPolicy="open" allows anyone  │
│    to DM the bot.                                                        │
│    Use pairing/allowlist; if you really need open DMs, ensure            │
│    channels.discord.allowFrom includes "*".                              │
│  - Discord security warning: 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.                                │
│  - DM principals share a session: Collision topology 1: 2 distinct       │
│    admitted DM principals from discord-default resolve to the same       │
│    session bucket owned by agent "main". This can leak context across    │
│    users.                                                                │
│    Set the effective DM route to an account-safe isolated scope; update  │
│    the matching binding or session.dmScope as applicable.                │
│  - Run: openclaw security audit --deep                                   │
│                                                                          │
├──────────────────────────────────────────────────────────────────────────╯
│
◇  Memory search ───────────────────────────────────────────────────────╮
│                                                                       │
│  Memory search provider is set to "openai" but no API key was found.  │
│  Semantic recall will not work without a valid API key.               │
│                                                                       │
│                                                                       │
│  Fix (pick one):                                                      │
│  - Set OPENAI_API_KEY in your environment                             │
│  - Configure credentials: openclaw configure --section model          │
│  - To disable: openclaw config set memory.search.enabled false        │
│                                                                       │
│  Verify: openclaw memory status --deep                                │
│                                                                       │
├───────────────────────────────────────────────────────────────────────╯
│
└  Doctor complete.
service management skipped: non-default state dir or config path. Rerun with HOME set to the OS account home, without OPENCLAW_HOME, and with OPENCLAW_STATE_DIR and OPENCLAW_CONFIG_PATH either unset or pointing at the canonical paths for that account home and profile to manage the gateway service during update.
Phase: finished

✅ OpenClaw updated to 2026.9.5 (from 2026.9.4).
Phases: requested (378ms) → staging (4ms) → validating (36.61s) → activating (45.7s)
Warning: core/doctor/security: WARNING: openclaw.json contains plaintext secret-bearing config fields.
Warning: core/doctor/security: Discord security warning: 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.
Warning: core/doctor/security: DM principals share a session: Collision topology 1: 2 distinct admitted DM principals from discord-default resolve to the same session bucket owned by agent "main". This can leak context across users.
After verifying your history, preview recovery rollback retirement with openclaw update cleanup --dry-run for state $RIG/state. Keep the same state/config overrides.
Saved phase report and bounded lint receipt
Post-plugin Doctor diagnostics; update completion is pending with the parent updater.

## Complete Doctor lint findings (4)

- Doctor lint warning [core/doctor/security]: Discord DMs are open: channels.discord.dmPolicy="open" allows anyone to DM the bot.: Use pairing/allowlist; if you really need open DMs, ensure channels.discord.allowFrom includes "*".
- Doctor lint warning [core/doctor/security]: WARNING: openclaw.json contains plaintext secret-bearing config fields.: Paths: gateway.auth.token, channels.discord.token; Agents or workspace tools that can read config files may see these API keys/tokens.; Migrate them to SecretRefs with openclaw secrets configure or openclaw secrets apply, then verify with openclaw secrets audit --check.
- Doctor lint warning [core/doctor/security]: Discord security warning: 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.
- Doctor lint warning [core/doctor/security]: DM principals share a session: Collision topology 1: 2 distinct admitted DM principals from discord-default resolve to the same session bucket owned by agent "main". This can leak context across users.: Set the effective DM route to an account-safe isolated scope; update the matching binding or session.dmScope as applicable.
{
  "exitCode": 0,
  "termination": "exit",
  "signal": null,
  "killed": false,
  "counts": {
    "error": 0,
    "warning": 4,
    "info": 0
  },
  "errors": [],
  "omitted": 0
}

Additional candidate-updater check — truthful no-op publication

Invoking the final candidate against the same tarball exited 0 in 10.493 s and truthfully returned skipped/already-current; this is not upgrade proof. It created a distinct run (3763083b-7523-4e26-8de8-4957641d00cf), printed the exact canonical report path, and saved the matching terminal headline. The record is 2,113 bytes; no lint ran, so zero receipts/findings is the correct inventory.

The success-only harness assertion was corrected by independently inspecting the existing row, physical exit, transcript, and saved report. No upgrade was manufactured or rerun to replace the intentional non-outcome.

Complete no-op transcript and saved report
openclaw update --tag $CANDIDATE --yes
Phase: requested
Snapshot capacity estimate incomplete: plugin copies and registered external databases are measured after staging.
Initial snapshot needs 75239424 bytes for 1626112 known SQLite-family bytes and the existing snapshot scratch allowance.
explicit-tmpdir $RIG/tmp: 75239424 bytes needed; 73736335360 bytes free.
state-volume $RIG/state.update-captures: 75239424 bytes needed; 73736335360 bytes free.
system-tmpdir $SYSTEM_TMP: 75239424 bytes needed; 73736335360 bytes free.
SQLite family $RIG/state/agents/main/agent/openclaw-agent.sqlite: 0 bytes (database, WAL, SHM, and journal).
SQLite family $RIG/state/state/openclaw.sqlite: 1626112 bytes (database, WAL, SHM, and journal).
Phase: staging
Phase: validating
validating — global update...
  ✓ global update (7.06s)

Updating plugins...
Plugin updates: 0 updated, 1 unchanged.
Phase: finished

ℹ️ OpenClaw update skipped: already-current.
Update mode: npm
Phases: requested (718ms) → staging (5ms) → validating (8.89s)
Warning: system-tmpdir $SYSTEM_TMP: 75239424 bytes needed; 73736335360 bytes free.
Warning: SQLite family $OPENCLAW_STATE_DIR/agents/main/agent/openclaw-agent.sqlite: 0 bytes (database, WAL, SHM, and journal).
Warning: SQLite family $OPENCLAW_STATE_DIR/state/openclaw.sqlite: 1626112 bytes (database, WAL, SHM, and journal).
Gateway downtime: 0ms.
Report: $RIG/state/update-reports/3763083b-7523-4e26-8de8-4957641d00cf.md

Saved report:

ℹ️ OpenClaw update skipped: already-current.
Update mode: npm
Phases: requested (718ms) → staging (5ms) → validating (8.89s)
Warning: system-tmpdir $SYSTEM_TMP: 75239424 bytes needed; <redacted-id> bytes free.
Warning: SQLite family $OPENCLAW_STATE_DIR/agents/main/agent/openclaw-agent.sqlite: 0 bytes (database, WAL, SHM, and journal).
Warning: SQLite family $OPENCLAW_STATE_DIR/state/openclaw.sqlite: 1626112 bytes (database, WAL, SHM, and journal).
Gateway downtime: 0ms.

## Complete Doctor lint findings (0)

@steipete

Copy link
Copy Markdown
Contributor Author

Final-source Linux standalone-finalizer proof — PASS

Head: ef6932c1add2a7a3c338a7a17874ad0d54e06d6e
Candidate SHA-256: 8f67abd5e0f2eb9cc55d6f2313d01f2d6129069cef796f88dbc4b7bcec2ebfaf

Blacksmith Testbox, root npm-global, Node 24.19.0, real systemd user service with an isolated profile and port. This is the same immutable candidate as the published-driver upgrade cell. Testbox carrier run.

openclaw update finalize --yes --json exited 0 in 18.947 s, returned terminal JSON status: "warning", mode: "finalize", and saved a succeeded run (04a9f215-8aa0-4fc5-ab93-3141001f6270). It printed both Stopped the managed Gateway for Doctor repair. and Gateway restarted and verified after Doctor repair. The native PID changed 18469 → 19360; HTTP health/readiness and CLI health passed before and after. Post-plugin lint exited 0 and retained its named plaintext-config warning. This is maintenance-entry proof; the separate published-driver cell proves open-policy upgrade behavior.

The initial fixture was blocked before finalization by an absent root user-session bus. With no foreign OpenClaw user units present, the bounded recovery started the existing OS user manager and D-Bus service; no packages or product bytes changed. Cleanup removed the owned Gateway unit, closed its port, and restored the manager, runtime, bus, and linger settings to their original inactive/absent state (all undo commands exited 0). Evidence archive SHA-256: 123a8b280cba8d1ac187ac646d90f7417d039495d77f17e11e9c1ba8a36186ef.

Paths and the fixture profile identifier are redacted below. The JSON finalizer result is shown as captured; this cell does not claim a human upgrade headline or a repairing phase.

Complete standalone-finalizer captured output — exit 0
openclaw update finalize --yes --json
[update finalize] {"step":"finalize:preflight","status":"in_progress","startedAtMs":1789851639592}
[update finalize] {"step":"finalize:preflight","status":"completed","endedAtMs":1789851639955}
[update finalize] {"step":"finalize:targetConfigValidation","status":"in_progress","startedAtMs":1789851639962}
[update finalize] {"step":"finalize:targetConfigValidation","status":"completed","endedAtMs":1789851640372}
[update finalize] {"step":"finalize:configSnapshot","status":"in_progress","startedAtMs":1789851640379}
[update finalize] {"step":"finalize:configSnapshot","status":"completed","endedAtMs":1789851640385}
[update finalize] {"step":"finalize:doctor","status":"in_progress","startedAtMs":1789851640390}
Stopped the managed Gateway for Doctor repair.
[update finalize] {"step":"warning:finalize:doctor:0","status":"completed","detail":"core/doctor/node-hosting-preconditions: Gateway is only bound to loopback. Set gateway.bind=lan, enable tailscale serve, or configure plugins.entries.device-pair.config.publicUrl.","endedAtMs":1789851648057}
[update finalize] {"step":"warning:finalize:doctor:1","status":"completed","detail":"core/doctor/security: WARNING: openclaw.json contains plaintext secret-bearing config fields.","endedAtMs":1789851648065}
┌  OpenClaw doctor
│
◇  Doctor warnings ────────────────────────────────────────────────╮
│                                                                  │
│  Model retirement deferred until configured plugin installation  │
│  converges.                                                      │
│                                                                  │
├──────────────────────────────────────────────────────────────────╯
│
◇  Update Doctor scope ──────────────────────────────────────────────────╮
│                                                                        │
│  Omitted during update: Project clones, SQLite database size, GitHub   │
│  projects, Bootstrap size, Workspace suggestions.                      │
│  Run `openclaw doctor` after the update to inspect these diagnostics.  │
│                                                                        │
├────────────────────────────────────────────────────────────────────────╯
[warning] core/doctor/node-hosting-preconditions gateway.bind - Gateway is only bound to loopback. Set gateway.bind=lan, enable tailscale serve, or configure plugins.entries.device-pair.config.publicUrl.
  fix: If an edge proxy fronts node onboarding, allow /j/* and /__openclaw__/worker without edge identity auth, and preserve WebSocket upgrade on /__openclaw__/worker. Both routes enforce their own credentials.
│
◇  Command owner ──────────────────────────────────────────────────────────╮
│                                                                          │
│  No command owner is configured.                                         │
│  A command owner is your trusted human operator account, allowed to      │
│  update OpenClaw with /update, restart the Gateway, change               │
│  configuration, and approve commands. Chat allowlists do not grant this  │
│  authority.                                                              │
│  Run openclaw --profile <isolated-profile> channels add and       │
│  complete a channel's setup to choose your operator account, including   │
│  servers and groups without DM pairing.                                  │
│  CLI pairing approval records the first command owner. Control UI        │
│  pairing approval has a separate owner checkbox.                         │
│  Fix: set commands.ownerAllowFrom to your channel user id, for example   │
│  openclaw --profile <isolated-profile> config set                 │
│  commands.ownerAllowFrom '["telegram:123456789"]'                        │
│  Restart the gateway after changing this if it is already running.       │
│                                                                          │
├──────────────────────────────────────────────────────────────────────────╯
│
◇  Plugin registry ───────────────────────────────────────────╮
│                                                             │
│  Plugin registry refreshed: 40/62 enabled plugins indexed.  │
│                                                             │
├─────────────────────────────────────────────────────────────╯
│
◇  State integrity ────────────────────────────────────────────────────────╮
│                                                                          │
│  - OAuth dir not present                                                 │
│    ($STATE/credentials). Skipping create  │
│    because no WhatsApp/pairing channel config is active.                 │
│                                                                          │
├──────────────────────────────────────────────────────────────────────────╯
│
◇  Backups ──────────────────────────────────────────────────────────╮
│                                                                    │
│  No successful backup is recorded.                                 │
│  Create one now with openclaw --profile <isolated-profile>  │
│  backup create.                                                    │
│  Schedule versioned backups with openclaw --profile                │
│  <isolated-profile> backup enable --repository <dir>.       │
│                                                                    │
├────────────────────────────────────────────────────────────────────╯
│
◇  Host desktop ──────────────────────────────────────────────────────────╮
│                                                                         │
│  disabled; enable the Desktop lab with desktop.host.enabled=true, then  │
│  restart the gateway                                                    │
│                                                                         │
├─────────────────────────────────────────────────────────────────────────╯
│
◇  Security ─────────────────────────────────────────────────────────────╮
│                                                                        │
│  - WARNING: openclaw.json contains plaintext secret-bearing config     │
│    fields.                                                             │
│    Paths: gateway.auth.token                                           │
│    Agents or workspace tools that can read config files may see these  │
│    API keys/tokens.                                                    │
│    Migrate them to SecretRefs with openclaw --profile                  │
│    <isolated-profile> secrets configure or openclaw --profile   │
│    <isolated-profile> secrets apply, then verify with openclaw  │
│    --profile <isolated-profile> secrets audit --check.          │
│  - Run: openclaw --profile <isolated-profile> security audit    │
│    --deep                                                              │
│                                                                        │
├────────────────────────────────────────────────────────────────────────╯
│
◇  Gateway ─────────────────────────────────────────────╮
│                                                       │
│  Gateway health will be checked after Doctor repair.  │
│                                                       │
├───────────────────────────────────────────────────────╯
│
◇  Memory search ─────────────────────────────────────────────────────────╮
│                                                                         │
│  Memory search provider is set to "openai" but no API key was found.    │
│  Semantic recall will not work without a valid API key.                 │
│                                                                         │
│                                                                         │
│  Fix (pick one):                                                        │
│  - Set OPENAI_API_KEY in your environment                               │
│  - Configure credentials: openclaw --profile <isolated-profile>  │
│    configure --section model                                            │
│  - To disable: openclaw --profile <isolated-profile> config set  │
│    memory.search.enabled false                                          │
│                                                                         │
│  Verify: openclaw --profile <isolated-profile> memory status     │
│  --deep                                                                 │
│                                                                         │
├─────────────────────────────────────────────────────────────────────────╯
│
└  Doctor complete.
[update finalize] {"step":"finalize:doctor","status":"completed","endedAtMs":1789851648087}
[update finalize] {"step":"finalize:plugins","status":"in_progress","startedAtMs":1789851648091}
[update finalize] {"step":"finalize:plugins","status":"completed","endedAtMs":1789851648224}
[update finalize] {"step":"finalize:targetConfigConvergence","status":"in_progress","startedAtMs":1789851648229}
Restarted systemd service: openclaw-gateway-<isolated-profile>.service
Gateway restarted and verified after Doctor repair.
[update finalize] {"step":"finalize:targetConfigConvergence","status":"completed","endedAtMs":1789851656667}
[update finalize] {"step":"warning:finalize:plugins:0","status":"completed","detail":"WARNING: openclaw.json contains plaintext secret-bearing config fields.","endedAtMs":1789851656673}
[update finalize] {"step":"finalize:completionCache","status":"in_progress","startedAtMs":1789851656678}
[update finalize] {"step":"finalize:completionCache","status":"completed","endedAtMs":1789851658098}
{
  "status": "warning",
  "mode": "finalize",
  "root": "$RIG/prefix/lib/node_modules/openclaw",
  "channel": "stable",
  "restart": false,
  "phaseTimings": [
    {
      "phase": "preflight",
      "startedOffsetMs": 21,
      "durationMs": 363,
      "outcome": "completed"
    },
    {
      "phase": "targetConfigValidation",
      "startedOffsetMs": 391,
      "durationMs": 409,
      "outcome": "completed"
    },
    {
      "phase": "configSnapshot",
      "startedOffsetMs": 807,
      "durationMs": 6,
      "outcome": "completed"
    },
    {
      "phase": "doctor",
      "startedOffsetMs": 818,
      "durationMs": 7697,
      "outcome": "completed"
    },
    {
      "phase": "plugins",
      "startedOffsetMs": 8520,
      "durationMs": 132,
      "outcome": "completed"
    },
    {
      "phase": "targetConfigConvergence",
      "startedOffsetMs": 8657,
      "durationMs": 8438,
      "outcome": "warning"
    },
    {
      "phase": "completionCache",
      "startedOffsetMs": 17106,
      "durationMs": 1421,
      "outcome": "completed"
    }
  ],
  "postUpdate": {
    "doctor": {
      "status": "warning",
      "warnings": [
        "core/doctor/node-hosting-preconditions: Gateway is only bound to loopback. Set gateway.bind=lan, enable tailscale serve, or configure plugins.entries.device-pair.config.publicUrl.",
        "core/doctor/security: WARNING: openclaw.json contains plaintext secret-bearing config fields."
      ]
    },
    "plugins": {
      "status": "warning",
      "assessment": {
        "kind": "no-payload-repair"
      },
      "changed": false,
      "warnings": [
        {
          "reason": "doctor-advisory",
          "message": "WARNING: openclaw.json contains plaintext secret-bearing config fields.",
          "guidance": [
            "Paths: gateway.auth.token\nAgents or workspace tools that can read config files may see these API keys/tokens.\nMigrate them to SecretRefs with openclaw --profile <isolated-profile> secrets configure or openclaw --profile <isolated-profile> secrets apply, then verify with openclaw --profile <isolated-profile> secrets audit --check."
          ]
        }
      ],
      "sync": {
        "changed": false,
        "switchedToBundled": [],
        "switchedToNpm": [],
        "warnings": [],
        "errors": []
      },
      "npm": {
        "changed": false,
        "outcomes": []
      },
      "integrityDrifts": [],
      "doctorLint": {
        "name": "post-plugin doctor lint",
        "command": "doctor --lint --json --severity-min error",
        "cwd": "$RIG/prefix/lib/node_modules/openclaw",
        "durationMs": 1319,
        "exitCode": 0,
        "doctorLintFindings": [
          {
            "checkId": "core/doctor/security",
            "message": "WARNING: openclaw.json contains plaintext secret-bearing config fields.",
            "fixHint": "Paths: gateway.auth.token; Agents or workspace tools that can read config files may see these API keys/tokens.; Migrate them to SecretRefs with openclaw --profile <isolated-profile> secrets configure or openclaw --profile <isolated-profile> secrets apply, then verify with openclaw --profile <isolated-profile> secrets audit --check.",
            "severity": "warning"
          }
        ],
        "termination": "exit",
        "signal": null,
        "killed": false,
        "stderrTail": "Doctor lint warning [core/doctor/security]: WARNING: openclaw.json contains plaintext secret-bearing config fields.: Paths: gateway.auth.token; Agents or workspace tools that can read config files may see these API keys/tokens.; Migrate them to SecretRefs with openclaw --profile <isolated-profile> secrets configure or openclaw --profile <isolated-profile> secrets apply, then verify with openclaw --profile <isolated-profile> secrets audit --check.\n"
      }
    }
  }
}

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 21, 2026
…53302)

Join accepted task-event publication in the shared persistence settlement helper before asserting zero roots. Pin the pending publication across same-turn reset with an ordering gate, covering settlement inside test bodies as well as teardown. Related: openclaw#153147, openclaw#145335.

Co-authored-by: steipete <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 21, 2026
…153147)

Keep optional Doctor inspections and intentional channel-policy advisories visible as warnings during updates while preserving required configuration, state, and startup checks. Preserve complete bounded findings in named diagnostic artifacts and compact receipts in update history; retain the published rollback reader's 8 KiB file, 4 KiB prompt, and 768-byte error-field limits.

Publish admitted-run terminal outcomes and report paths through the existing terminal owner after executor settlement. Standalone finalization uses the existing maintenance owner to park and restore its Gateway, while inherited finalizers retain the parent's ownership.

Validation: reviewed source has passing focused regression, released-reader compatibility, changed-file, and import-cycle proof. Published 2026.9.4 upgrades and standalone finalizers passed on Linux and macOS at the earlier source documented in the PR; later diagnostic-envelope and exceptional-publication corrections have focused regression coverage. Exact-head CI is required by native preparation and merge.

Thanks to @davidchyi-beep, @BodegaClaw, @CHE10X, @jammyclaw, and Discord reporter Patryk for the reports and diagnostic evidence.

Fixes openclaw#152759. Fixes openclaw#152918.
vincentkoc added a commit that referenced this pull request Oct 14, 2026
* test(doctor): pin advisory security findings for released post-plugin readiness drivers

9.4/9.5 updaters run the candidate's post-plugin readiness lint with
IN_PROGRESS + POST_CORE_CONVERGENCE and no advisory classification of
their own. An installed @openclaw/whatsapp <=2026.9.4 still reports open
groups as critical, which blocked those hosts from updating (#156394).
The candidate-side downgrade from #151683/#153147 fixes this in 2026.9.6;
cover that driver cell with the released 9.5 parser fixture.

Refs #156394

* test(doctor): consolidate released updater warning coverage

* style(doctor): format updater marker test

---------

Co-authored-by: Vincent Koc <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 15, 2026
* test(doctor): pin advisory security findings for released post-plugin readiness drivers

9.4/9.5 updaters run the candidate's post-plugin readiness lint with
IN_PROGRESS + POST_CORE_CONVERGENCE and no advisory classification of
their own. An installed @openclaw/whatsapp <=2026.9.4 still reports open
groups as critical, which blocked those hosts from updating (openclaw#156394).
The candidate-side downgrade from openclaw#151683/openclaw#153147 fixes this in 2026.9.6;
cover that driver cell with the released 9.5 parser fixture.

Refs openclaw#156394

* test(doctor): consolidate released updater warning coverage

* style(doctor): format updater marker test

---------

Co-authored-by: Vincent Koc <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli CLI command changes commands Command implementations docs Improvements or additions to documentation maintainer Maintainer-authored PR 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. scripts Repository scripts size: XL status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

1 participant