Skip to content

fix(status): report health, live plugin hooks, and real account availability - #116776

Merged
steipete merged 1 commit into
mainfrom
codex/auto-qa-clistatus
Jul 31, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/auto-qa-clistatus

Conversation

@steipete

Copy link
Copy Markdown
Contributor

Summary

  • Preserve deep JSON health-probe failures and security audit results instead of returning an apparently healthy status.
  • Read compatibility notices from genuinely active plugin hook registrations without executing cold plugin modules or fabricating manifest-only capability.
  • Classify provider credentials through the actual account owner, distinguishing healthy optional credentials, incomplete required configuration, and unavailable required secrets without leaking values.

Verification

  • Plugin/runtime/provider/status owner suites: 105 tests passed across nine files and four shards.
  • Independent reviewer personally reran 14 targeted owner regressions, including a real hook-only CJS plugin, cold-runtime nonexecution, Slack optional and partial credentials, Telegram required secrets, public JSON shape, and deep status behavior; no blockers.
  • All 15 changed files pass targeted repository oxlint, formatting, and git diff --check.
  • No public configuration or JSON schema change; no cold plugin execution.
  • Automated autoreview is unavailable because the mandatory TruffleHog binary is missing; equivalent independent manual diff and secret review completed.

Root causes fixed

3 distinct status health, plugin capability ownership, and provider account-credential defects.

@openclaw-barnacle openclaw-barnacle Bot added channel: slack Channel integration: slack commands Command implementations size: L maintainer Maintainer-authored PR labels Jul 31, 2026
@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 auth-provider 🚨 May break OAuth, tokens, provider routing, model choice, or credentials. labels Jul 31, 2026
@clawsweeper

clawsweeper Bot commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed July 31, 2026, 6:44 AM ET / 10:44 UTC.

ClawSweeper review

What this changes

This PR changes status diagnostics so deep JSON output retains gateway health failures, full JSON status reports live plugin compatibility notices, and provider/channel accounts distinguish unavailable configured credentials from absent configuration.

Merge readiness

⛔ Blocked until stronger real behavior proof is added - 5 items remain

Keep this PR open for maintainer review. The branch addresses plausible diagnostics defects, but it changes the established --deep/--all diagnostic boundary and converts every provider account-resolution exception into a configured-but-unavailable account; those compatibility semantics need an explicit owner decision and focused proof before merge. The PR also carries the protected maintainer label, so conservative cleanup must not close or auto-repair it.

Priority: P2
Reviewed head: 2bd89fb61eefad7a12eacc1496122d7de6f59394
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) The patch has focused tests and a plausible design, but the bundled contract changes and missing inspectable real-behavior evidence keep it below merge-ready confidence.
Proof confidence 🦪 silver shellfish (2/6) Needs stronger real behavior proof before merge: The PR body describes targeted tests and manual reruns, but it provides no inspectable after-fix terminal output, redacted logs, recording, or linked artifact for the changed CLI status behavior; add redacted real-output proof before merge. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Patch quality 🦐 gold shrimp (3/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Needs proof Needs stronger real behavior proof before merge: The PR body describes targeted tests and manual reruns, but it provides no inspectable after-fix terminal output, redacted logs, recording, or linked artifact for the changed CLI status behavior; add redacted real-output proof before merge. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Evidence reviewed 4 items Deep status output contract changed: The branch changes deep JSON status to include the security audit as well as the health probe; the previous nearby comment described --all as the opt-in path for heavier security-audit fields. This needs confirmation that --deep is intended to gain that potentially slower and additive JSON surface.
Provider-resolution errors are reclassified broadly: When account resolution throws, the branch records the account as configured and unavailable rather than distinguishing unresolved credentials from other resolution failures. The added regression only covers an unresolved SecretRef-style error, so invalid account configuration and plugin resolver failures remain unproven.
Live plugin-registration path is deliberately non-activating: The compatibility snapshot now joins metadata with a compatible live runtime registry using activate: false, and the integration test asserts that a cold hook-only CommonJS plugin is not imported until the normal plugin loader runs. This is aligned with the repository policy against cold-plugin execution during status inspection.
Findings None None.
Security None None.

How this fits together

OpenClaw's status commands combine local configuration, plugin runtime registration data, provider account inspection, gateway health probes, and security diagnostics into operator-facing text and JSON. The proposed changes alter how those independent diagnostic sources are classified and exposed to operators and scripts.

flowchart LR
  A[Operator runs status command] --> B[Status diagnostics coordinator]
  B --> C[Configuration and account inspection]
  B --> D[Plugin registration snapshot]
  B --> E[Gateway health probe]
  B --> F[Security audit]
  C --> G[Text or JSON status output]
  D --> G
  E --> G
  F --> G
Loading

Decision needed

Question Recommendation
Should openclaw status --deep intentionally run and include the security audit that was previously gated behind --all, and what non-credential account-resolution failures should remain distinguishable from unavailable secrets? Preserve the existing audit boundary: Keep the security audit behind --all, retain deep health failures, and add focused account-resolution classification coverage.

Why: The diff changes public CLI/JSON diagnostic semantics and provider failure classification; source-level tests establish selected cases but do not establish the permanent operator contract for those broader behavior changes.

Before merge

  • Add real behavior proof - Needs stronger real behavior proof before merge: The PR body describes targeted tests and manual reruns, but it provides no inspectable after-fix terminal output, redacted logs, recording, or linked artifact for the changed CLI status behavior; add redacted real-output proof before merge. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
  • Resolve merge risk (P1) - --deep now runs and emits the security-audit path previously reserved for --all; that can change JSON consumers' output, runtime cost, and troubleshooting expectations.
  • Resolve merge risk (P1) - Any exception from provider resolveAccount is presented as an unavailable configured account, so malformed account configuration or a plugin resolver defect may be obscured as a missing secret.
  • Resolve merge risk (P1) - The PR body claims manual runtime verification, but does not include inspectable redacted terminal output, logs, recording, or linked artifact showing the changed status behavior after the fix.
Agent review details

Security

None.

PR surface

Source +60, Tests +382. Total +442 across 15 files.

View PR surface stats
Area Files Added Removed Net
Source 6 82 22 +60
Tests 9 397 15 +382
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 15 479 37 +442

Review metrics

Metric Value Why it matters
Diagnostic contract surfaces 3 behavior families changed One PR changes gateway health output, plugin compatibility reporting, and provider-account classification, so interaction proof matters more than isolated unit coverage.

Stored data model

Persistent data-model change detected: persistent cache schema: src/plugins/status.compatibility.integration.test.ts, serialized state: src/commands/agents.providers.test.ts, serialized state: src/commands/status-json.test.ts, serialized state: src/plugins/status.compatibility.integration.test.ts. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Narrow the new diagnostics semantics (recommended)
    Before merge, keep the established audit gate unless explicitly intended and classify only recognized unavailable-credential resolution outcomes as configured unavailable.
  2. Accept the expanded deep-status contract
    Maintainers may intentionally make --deep include security diagnostics if documentation, script compatibility, and runtime-cost expectations are explicitly accepted.
  3. Pause for status-contract direction
    Pause this broad diagnostics bundle if maintainers want a narrower health-only fix rather than changing audit and provider-account semantics together.
Copy recommended automerge instruction
@clawsweeper automerge

Special instructions:
Add focused regression coverage for non-credential account-resolution errors and for the intended --deep/--all security-audit output boundary, then attach redacted after-fix status output.

Technical review

Best possible solution:

Keep health failures visible in nonthrowing JSON, preserve the no-cold-plugin-execution boundary, and narrow provider error classification to verified unavailable-credential cases; document or test the intended --deep versus --all diagnostics contract before landing.

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

No high-confidence independent runtime reproduction was established in this read-only review. The proposed paths are source-reproducible from the added health, plugin-registration, and account-resolution tests, but the claimed manual runs lack inspectable output.

Is this the best way to solve the issue?

Unclear. Preserving deep health errors and using only already-live plugin registrations is a sound direction, but broadening --deep security auditing and treating every account-resolution exception as an unavailable credential are not yet shown to be the narrowest compatible solution.

AGENTS.md: unclear because the file could not be read completely.

Codex review notes: model internal, reasoning high; reviewed against 27fa5a8950f1.

Labels

Label changes:

  • add P2: This affects operator diagnostics and account visibility with meaningful but bounded blast radius.
  • add merge-risk: 🚨 compatibility: The PR changes the --deep/--all CLI and JSON diagnostic boundary and can alter existing script-visible output and runtime work.
  • add merge-risk: 🚨 auth-provider: Provider account-resolution failures are newly classified as configured unavailable, which can alter how credential and configuration failures are presented.
  • add rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🦐 gold shrimp.
  • add status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs stronger real behavior proof before merge: The PR body describes targeted tests and manual reruns, but it provides no inspectable after-fix terminal output, redacted logs, recording, or linked artifact for the changed CLI status behavior; add redacted real-output proof before merge. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.

Label justifications:

  • P2: This affects operator diagnostics and account visibility with meaningful but bounded blast radius.
  • merge-risk: 🚨 compatibility: The PR changes the --deep/--all CLI and JSON diagnostic boundary and can alter existing script-visible output and runtime work.
  • merge-risk: 🚨 auth-provider: Provider account-resolution failures are newly classified as configured unavailable, which can alter how credential and configuration failures are presented.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🦐 gold shrimp.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs stronger real behavior proof before merge: The PR body describes targeted tests and manual reruns, but it provides no inspectable after-fix terminal output, redacted logs, recording, or linked artifact for the changed CLI status behavior; add redacted real-output proof before merge. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.

Evidence

What I checked:

  • Deep status output contract changed: The branch changes deep JSON status to include the security audit as well as the health probe; the previous nearby comment described --all as the opt-in path for heavier security-audit fields. This needs confirmation that --deep is intended to gain that potentially slower and additive JSON surface. (src/commands/status-json.ts:19, 2bd89fb61eef)
  • Provider-resolution errors are reclassified broadly: When account resolution throws, the branch records the account as configured and unavailable rather than distinguishing unresolved credentials from other resolution failures. The added regression only covers an unresolved SecretRef-style error, so invalid account configuration and plugin resolver failures remain unproven. (src/commands/agents.providers.ts:163, 2bd89fb61eef)
  • Live plugin-registration path is deliberately non-activating: The compatibility snapshot now joins metadata with a compatible live runtime registry using activate: false, and the integration test asserts that a cold hook-only CommonJS plugin is not imported until the normal plugin loader runs. This is aligned with the repository policy against cold-plugin execution during status inspection. (src/plugins/status.ts:548, 2bd89fb61eef)
  • Current PR checks and proof state: The supplied PR context reports successful fast contract/type/security checks and a successful Real behavior proof check, while build, lint, QA smoke, and compact CI shards were still in progress. The PR body describes targeted runs but does not provide inspectable redacted runtime output or an artifact for the claimed after-fix behavior. (2bd89fb61eef)

Likely related people:

  • steipete: The supplied PR metadata identifies steipete as author of the single diagnostics commit that touches the status, plugin-registration, and provider-account paths; no current-main feature-history attribution could be independently completed in this read-only review environment. (role: proposed implementation author and recent diagnostics contributor; confidence: medium; commits: 2bd89fb61eef; files: src/commands/status-json.ts, src/commands/agents.providers.ts, src/plugins/status.ts)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Attach redacted after-fix terminal or JSON output covering a failed deep health probe, a live hook-only plugin registration, and unavailable versus invalid provider-account resolution.
  • Add or document the intended --deep versus --all security-audit contract.
  • Prove that non-credential resolveAccount failures remain distinguishable from unavailable configured secrets.

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.

@steipete
steipete merged commit 4e4f76f into main Jul 31, 2026
132 of 146 checks passed
@steipete
steipete deleted the codex/auto-qa-clistatus branch July 31, 2026 11:10
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: slack Channel integration: slack commands Command implementations maintainer Maintainer-authored PR merge-risk: 🚨 auth-provider 🚨 May break OAuth, tokens, provider routing, model choice, or credentials. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. size: L status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant