Skip to content

fix(cli): use plain language for connection checks - #165740

Merged
RomneyDa merged 3 commits into
mainfrom
improve/plain-language-cli
Oct 6, 2026
Merged

RomneyDa merged 3 commits into
mainfrom
improve/plain-language-cli

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Oct 5, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

CLI help, service checks, and update diagnostics describe routine checks as “probes.”

User Impact

Use plain connection-check language in CLI, Doctor, service, installer, update, and configuration and plugin-manifest help. Matching output assertions and canonical config-help hashes are updated together. Commands, flags, configuration defaults, and stored formats retain their contracts.

Evidence

Focused CLI, Doctor, channel, update-watcher, and native runtime diagnostics pass: 182 tests and one existing skip, 194.67 seconds including compilation. Core types, scoped lint, formatting, config docs verification, and diff checks pass. The small SecretRef assertion correction preserves its exit-code and no-credential-execution checks.

The shared SQLite loader and its exact output tests are in the separate runtime PR, keeping its broad CI classification outside this branch.

Independent CLI/service portion of #164757; targets main directly. No merge requested.

Review cleanup

Integrated main 28605849d0cd181c34799468053a76b80d5a6d5c for conflicts, preserving its intentional duplicate-test removal and Doctor changes. Fixed the split-induced CI mismatch by keeping src/gateway/probe-auth.ts with its daemon-status warning assertion in this PR; runtime copy no longer changes that file. On the integrated branch, 89 Doctor and 68 status tests pass (combined 139.24s including compilation); targeted lint/format and canonical config-doc generation/check pass. Initial compilation was invalidated by a concurrent source edit and is not counted as proof; the subsequent stable run exited 0. No defaults, config keys, schemas, or stored formats change.

Final verification: current-head CI is green, ClawSweeper rates this revision platinum hermit with no remaining findings, and the PR is non-draft and conflict-free. Ready for review; no merge or auto-merge requested.

@clawsweeper

clawsweeper Bot commented Oct 5, 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.

@RomneyDa
RomneyDa marked this pull request as ready for review October 5, 2026 19:02
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation gateway Gateway runtime cli CLI command changes scripts Repository scripts commands Command implementations extensions: acpx extensions: memory-wiki extensions: codex size: L labels Oct 5, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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 Oct 5, 2026
@clawsweeper

clawsweeper Bot commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed October 6, 2026, 1:35 AM ET / 05:35 UTC (Revision 3).

ClawSweeper review

What this changes

The branch replaces “probe” terminology with plain check language across CLI help, Doctor, service and update diagnostics, plugin configuration help, and matching assertions.

Merge readiness

⛔ Blocked before merge - 2 items remain

Keep this useful maintainer-authored PR open. The introduced changes preserve configuration and runtime contracts, so the previous compatibility blocker is unsupported; no actionable correctness or security defect was found.

Priority: P3
Reviewed head: d8139df649322ec118b42dcaf9009dbf42fe7a9b

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused wording improvement with aligned assertions, reported validation, and no identified blocking defect.
Proof confidence 🌊 off-meta tidepool Not applicable: The MEMBER-authored PR is exempt from ordinary external-contributor runtime proof; its changed owners format CLI/help and diagnostic strings, with reported focused validation as supplemental evidence. No material authority change or stored-data contract change requires additional proof.
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 ordinary external-contributor runtime proof; its changed owners format CLI/help and diagnostic strings, with reported focused validation as supplemental evidence. No material authority change or stored-data contract change requires additional proof.
Evidence reviewed 8 items Introduced production changes preserve behavior: Read the introduced hunks in separate directory groups. Command names, flag names, branches, authorization decisions, stable diagnostic codes, and defaults remain unchanged; edits replace descriptive strings and one comment.
Configuration warning resolved by source inspection: The three plugin manifests change only labels/help under UI hints; config keys and schemas remain intact. Core configuration changes affect help strings only, and generated help hashes accompany them. This does not establish a new default, migration, or persisted-format change.
Security-sensitive path changes only warning wording: Read the complete Gateway probe-auth module. Its only introduced change replaces “probing” with “checking” in an unresolved-SecretRef warning; credential selection, error classification, and explicit-auth handling are unchanged. No material authority change triggers additional final-effect proof.
Findings None None.
Security None None.

How this fits together

OpenClaw’s CLI and Doctor turn configuration, service state, and connection results into operator-facing help and diagnostics. These messages guide setup, troubleshooting, and update recovery.

flowchart LR
  A[CLI commands] --> C[Connection and service checks]
  B[Configuration and plugin metadata] --> C
  C --> D[Check results]
  D --> E[Diagnostic formatting]
  B --> F[Help formatting]
  E --> G[Operator guidance]
  F --> G
Loading

Before merge

  • Review config compatibility - Confirm compatibility and upgrade impact for the changed config or default surface before merge.
  • Add data-model compatibility proof - Confirm migration or upgrade compatibility proof before merge.
Agent review details

Security

None.

PR surface

PR surface statistics unavailable: the file list is incomplete.

Review metrics

None.

Stored data model

Persistent data-model change detected: migration/backfill/repair: src/flows/doctor-health-contributions.ts, migration/backfill/repair: src/flows/doctor-tool-schema-runtime.ts, unknown-data-model-change: src/config/schema.help.models.ts, unknown-truncated-pull-files, vector/embedding metadata: extensions/memory-wiki/openclaw.plugin.json. Confirm migration or upgrade compatibility proof before merge.

Technical review

Best possible solution:

Use consistent, understandable diagnostic wording while retaining existing command, configuration, security, and machine-readable contracts.

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

Not applicable: this is wording cleanup, and current-main source directly shows the terminology being improved.

Is this the best way to solve the issue?

Yes: updating the existing message producers and matching assertions is a focused solution; no competing implementation or configuration migration is introduced.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

No label changes.

Label justifications:

  • P3: This is low-risk operator-facing wording polish with preserved runtime and configuration behavior.
  • 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 ordinary external-contributor runtime proof; its changed owners format CLI/help and diagnostic strings, with reported focused validation as supplemental evidence. No material authority change or stored-data contract change requires additional proof.

Evidence

What I checked:

  • Introduced production changes preserve behavior: Read the introduced hunks in separate directory groups. Command names, flag names, branches, authorization decisions, stable diagnostic codes, and defaults remain unchanged; edits replace descriptive strings and one comment. (src/cli/daemon-cli/register-service-commands.ts:81, d8139df64932)
  • Configuration warning resolved by source inspection: The three plugin manifests change only labels/help under UI hints; config keys and schemas remain intact. Core configuration changes affect help strings only, and generated help hashes accompany them. This does not establish a new default, migration, or persisted-format change. (extensions/codex/openclaw.plugin.json:576, d8139df64932)
  • Security-sensitive path changes only warning wording: Read the complete Gateway probe-auth module. Its only introduced change replaces “probing” with “checking” in an unresolved-SecretRef warning; credential selection, error classification, and explicit-auth handling are unchanged. No material authority change triggers additional final-effect proof. (src/gateway/probe-auth.ts:68, d8139df64932)
  • Current main still needs the wording improvement: Fetched main still describes service connectivity and the existing --no-probe and --require-rpc flags using “probe” terminology. The central change remains useful rather than already implemented. (src/cli/daemon-cli/register-service-commands.ts:81, d8612ec864bb)
  • Related proposal was split rather than merged: The supplied discussion identifies improve: use plain language for connection checks #164757 as closed unmerged at the author's request, with this PR owning its CLI/service portion. That predecessor is not a merged replacement or closure justification.
  • Validation and review continuity: The captured body reports focused tests, types, lint, formatting, and config-doc verification; captured head checks include successful CI and security gates. Introduced test edits update output expectations while preserving exit-code and no-credential-execution assertions. The prior completed review has no findings or published rank-up moves. Tests were not executed during this read-only review. (test/e2e/qa-lab/runtime/doctor-auth-secretref-checks.e2e.test.ts:182, d8139df64932)

Likely related people:

  • Peter Steinberger: 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 (2 earlier review cycles)
  • reviewed 2026-10-05T19:09:29.984Z sha 25c706c :: blocked before merge. :: none
  • reviewed 2026-10-06T05:08:09.950Z sha d8139df :: blocked before merge. :: none

@github-actions

github-actions Bot commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

⚠️ Security sensitive changes

This maintainer PR changes sensitive security components.

No secops approval is required. This comment is informational because the PR author has Maintain or Admin access.

  • Current SHA: d8139df649322ec118b42dcaf9009dbf42fe7a9b
  • Maintainer: @RomneyDa
  • Repository role: maintain

These security sensitive changes were made:

  • src/gateway/probe-auth.ts: Controls Gateway authentication, pairing, or caller permissions. Check identity validation, scope checks, and revocation.

Carefully review these changes before merging.

@RomneyDa
RomneyDa merged commit b898c26 into main Oct 6, 2026
155 checks passed
@RomneyDa
RomneyDa deleted the improve/plain-language-cli branch October 6, 2026 05:52
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 7, 2026
* fix(cli): clarify connection checks and service diagnostics

* fix(config): clarify plugin health-check help
amittell added a commit to amittell/openclaw that referenced this pull request Oct 7, 2026
Rebased onto main@9aa74552194e (2026-10-07). Test-only change, +84/-0 in
src/commands/status.scan.shared.test.ts.

Since the previous base, main reworded the unresolved-SecretRef warning in
gateway/probe-auth.ts ("probing" became "checking", openclaw#165740), so the expected
warning string is updated. Main also now folds the auth warning into a failed
probe's error and clears it. This regression still covers the other branch:
when the paired-device status RPC fallback succeeds, the warning is kept as
gatewayProbeAuthWarning and the Gateway reports reachable. All other
assertions are unchanged.
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 extensions: acpx extensions: codex extensions: memory-wiki gateway Gateway runtime P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts security-sensitive-changed size: L status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant