Skip to content

fix(logging): preserve OpenClaw package references in diagnostics - #144808

Merged
steipete merged 1 commit into
mainfrom
fix/update-package-diagnostics
Sep 11, 2026
Merged

steipete merged 1 commit into
mainfrom
fix/update-package-diagnostics

Conversation

@RomneyDa

Copy link
Copy Markdown
Member

What Problem This Solves

Fixes an issue where users running openclaw update received a broken repair command: diagnostic redaction changed @openclaw/codex into <redacted-handle>/codex.

Why This Change Was Made

Preserve public @openclaw/ npm package references when scrubbing contact handles. Standalone handles, private scopes, paths, email addresses, and credentials retain their existing redaction.

User Impact

Plugin installation commands remain copyable in update errors and support reports, including after repeated redaction.

Evidence

  • Three mixed-data regressions failed before the fix and passed afterward, covering unversioned, tagged, and versioned package references.

  • All nine diagnostic-support-redaction tests pass.

  • Independent P1 review: no findings.

  • Full changed-file checks passed, including production/test typechecks and repository guards.

@clawsweeper

clawsweeper Bot commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 11, 2026
@clawsweeper

clawsweeper Bot commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 11, 2026, 5:29 AM ET / 09:29 UTC (Revision 2).

ClawSweeper review

What this changes

Preserves public OpenClaw package references in sanitized diagnostics and adds regression coverage for versioned references, nearby private data, and repeated redaction.

Merge readiness

✅ Ready for maintainer review

This remains a useful, focused fix: current main still damages package installation guidance, and the related PRs address separate diagnostic problems. No blocking correctness finding was identified.

Priority: P2
Reviewed head: 9c7b59bd38df3de2ce9e140ca6eecf356788d6ef

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused owner-level repair with useful privacy and idempotence regressions and no blocking findings.
Proof confidence 🌊 off-meta tidepool Not applicable: The MEMBER-authored PR is exempt from the external-contributor proof gate and changes no authority-bearing contract; its sanitizer regressions are supplemental evidence, not a claimed live update run.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The MEMBER-authored PR is exempt from the external-contributor proof gate and changes no authority-bearing contract; its sanitizer regressions are supplemental evidence, not a claimed live update run.
Evidence reviewed 8 items Verified introduced change: The merge-base-to-head diff changes the existing handle matcher and adds focused sanitizer regressions; unrelated base-branch changes are excluded.
Current main still contains the defect: Current main’s HANDLE_RE matches @openclaw in a package spec and replaces it with <redacted-handle>; no public-package exception exists there.
Latest supplied release has the same matcher: The v2026.9.4 source also lacks the package-reference exception.
Findings None None.
Security None None.

How this fits together

OpenClaw’s support sanitizer processes diagnostic text before update errors and support bundles expose it. It removes private information while preserving useful repair guidance.

flowchart LR
  A[Doctor and update diagnostics] --> B[Support text sanitizer]
  B --> C[Remove credentials and private identifiers]
  C --> D[Preserve public package references]
  D --> E[Redact paths and bound output]
  E --> F[Update errors and support bundles]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source +1, Tests +24. Total +25 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 1 2 1 +1
Tests 1 24 0 +24
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 26 1 +25

Review metrics

None.

Technical review

Best possible solution:

Keep package-reference preservation in the shared sanitizer so every diagnostic caller receives usable repair commands with existing private-data protections.

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

Yes, from source: current main’s handle matcher consumes @openclaw in the Doctor installation command, and the update error handler invokes that sanitizer. Runtime reproduction was not executed in this read-only review.

Is this the best way to solve the issue?

Yes. Adjusting the existing sanitizer fixes the shared cause without adding caller-specific exceptions or changing installation behavior.

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P2: Repairs misleading diagnostic installation guidance through a small, bounded sanitizer change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The MEMBER-authored PR is exempt from the external-contributor proof gate and changes no authority-bearing contract; its sanitizer regressions are supplemental evidence, not a claimed live update run.

Evidence

What I checked:

Likely related people:

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

Rating scale

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

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

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

History

Review history (1 earlier review cycle)
  • reviewed 2026-09-11T09:21:08.588Z sha 9c7b59b :: needs maintainer review before merge. :: none

@RomneyDa
RomneyDa marked this pull request as ready for review September 11, 2026 09:25
@openclaw-barnacle openclaw-barnacle Bot added size: XS maintainer Maintainer-authored PR labels Sep 11, 2026
@steipete
steipete merged commit 520bf60 into main Sep 11, 2026
246 of 255 checks passed
@steipete
steipete deleted the fix/update-package-diagnostics branch September 11, 2026 11:21
@steipete

Copy link
Copy Markdown
Contributor

Merged via squash.

vincentkoc added a commit that referenced this pull request Sep 11, 2026
Preserve the reviewed harness while incorporating the landed benchmark prerequisite.

Punchcard-Session: coral-orchard-orchard-d4

* commit '4407ed19ac63b1c1c84a0cfe6eb4bbeca9c2322c': (1196 commits)
  fix(perf): isolate benchmark subprocess transport (#144159)
  refactor(auth): await Copilot cache persistence (#144810)
  refactor(web-fetch): exercise URL normalization through the public tool (#144887)
  fix(ollama): preserve hosted subdomain model context (#144891)
  fix(doctor): explain Codex plugin health failures (#144813)
  fix(channels): honor pinned accounts in Mattermost model menus (#144880)
  fix(update): failed-update records hide the triggering error behind the excerpt tail (#144729)
  fix(logging): preserve OpenClaw package references in diagnostics (#144808)
  fix: retain plugin detail tab selections while inspection loads (#144647)
  fix: keep discovered models when sign-in tokens renew (#144861)
  fix(update): preserve local package overrides (#89985)
  fix(update): resolve compatibility bridges within the runtime graph (#144831)
  chore(i18n): refresh native locales (#144856)
  fix: preserve child signal termination during CLI respawn (#144838)
  fix(text): hide encoded MiniMax tool envelopes (#126307)
  fix(subagents): deliver child replies that match the empty placeholder (#130647)
  fix(cli): reject blank message channel selectors (#144802)
  fix(telegram): preserve mixed text order and pending stop (#144839)
  fix(memory): restore FTS fallback for same-name view collisions (#144783)
  chore(release): close out 2026.9.4 on main (#144708)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants