Skip to content

feat(cli): show plugin trust status in plugins list output - #178483

Merged
steipete merged 5 commits into
openclaw:mainfrom
SunnyShu0925:feat/plugins-list-trust-status-178411
Oct 25, 2026
Merged

steipete merged 5 commits into
openclaw:mainfrom
SunnyShu0925:feat/plugins-list-trust-status-178411

Conversation

@SunnyShu0925

@SunnyShu0925 SunnyShu0925 commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Plugin listings omit recorded trust provenance, making it harder to understand why a plugin is trusted or refused.

Closes #178411

User Impact

openclaw plugins list shows a Trust column, and --verbose shows the same recorded reason. Trust is provenance, not a code-safety guarantee. Missing records remain blank rather than implying a verdict.

Why This Change Was Made

Both views use one compact formatter over existing snapshot metadata. Listing still imports no plugin runtime, and JSON output keeps its lazy path. The Trust column shares wrapping with names and sources so narrow terminals remain readable. Thanks @SunnyShu0925 for the contribution.

Evidence

The new verbose regression fails on main (1 failure, 4 passes); the real command-table regressions fail on main at 80 and 120 columns (2 failures, 4 passes). All 11 focused tests pass with the fix, including the unchanged JSON import guard and readable names in narrow output. Targeted typed oxlint, oxfmt, focused MDX, and whitespace checks pass. CI caught a closed command-format test mock; it now preserves real exports while overriding its fixture formatter. The mock-export ratchet and all 11 focused tests pass after repair. Isolated diff review found no actionable P0–P2 findings.

Inspected synthetic captures use the real command and terminal renderer with fixture inventory. No installed-CLI or live Gateway run was performed: exercising this display through the installed CLI would require a full build; the command boundary is covered directly.

Production delta: +16/-1 (net +15); tests +88/-21 (net +67); docs +4. The necessary production growth is the shared trust formatter and two displays. Removed forced-color mock scaffolding and duplicate styling cases: test growth drops from +106 to +67 lines while preserving behavioral proof.

Before:

Before: plugin listing omits trust provenance

After:

After: plugin trust reasons wrap at 80 columns

Installed-CLI run (current head 953a3fe)

This closes the installed-CLI gap noted above. The run below was captured at head 953a3fe with installed plugin metadata; the earlier note about no installed-CLI run describes the evidence before this update.

Setup: a fresh isolated OPENCLAW_STATE_DIR; the fixture plugin was installed with the real command, so the Trust values below come from the recorded install records:

$ node openclaw.mjs plugins install /…/trust-proof-fixture --force --accept-capabilities
Installed plugin: trust-proof-fixture

Baseline ab961d8 and head 953a3fe, same installed state:

View Baseline ab961d8 Head 953a3fe
Default listing 6 columns, no Trust 7 columns, Trust bundled and origin-path
Verbose entry no trust line trust: origin-path
$ node openclaw.mjs plugins list   # head 953a3fe
Plugins (91/177 enabled)
Trust is provenance, not a code-safety guarantee.
…
│ Name                │ ID                  │ Format   │ Status   │ Source                   │ Version   │ Trust       │
│ Abliteration        │ abliteration        │ openclaw │ enabled  │ /home/code/github/open.. │ 2026.10.7 │ bundled     │
│ Trust Proof Fixture │ trust-proof-fixture │ openclaw │ enabled  │ global:trust-proof-      │ 1.0.0     │ origin-path │
$ node openclaw.mjs plugins list --verbose
Trust Proof Fixture (trust-proof-fixture) enabled
  format: openclaw
  source: …/state/extensions/trust-proof-fixture/index.js
  origin: global
  version: 1.0.0
  trust: origin-path

At 80 columns the Trust column wraps with the rest of the row:

│ Trust    │ trust-   │ openclaw │ enabled  │ global:t │ 1.0.0     │ origin-   │

The same state on the baseline build renders the same plugins without the Trust column and without the verbose trust line.

@clawsweeper

clawsweeper Bot commented Oct 20, 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 cli CLI command changes size: S labels Oct 20, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Oct 20, 2026
@clawsweeper

clawsweeper Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR displays recorded plugin trust reasons in the default listing table and verbose output.

Example: List the installed trust-proof-fixture plugin with recorded reason origin-path.

  • Before: Neither text view displays its trust reason.
  • After: The Trust column and verbose trust line display origin-path.

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) Focused, owner-directed implementation with supplied shipped-entry-point proof, meaningful regression coverage, green exact-head CI, and no actionable findings.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (live_output): The updated body demonstrates default and verbose listings through node openclaw.mjs at head 953a3fe with an isolated state directory and a CLI-installed fixture, showing bundled and origin-path provenance; inspected synthetic before/after screenshots additionally demonstrate narrow-terminal wrapping, resolving the previous review's requested entry-point proof.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Feature · Worth it: Yes · Fix scope: Complete
User problem: Users scanning installed plugins must inspect each plugin individually or read JSON to see recorded trust provenance.
Reason: The feature-history owner's direct revisions establish the presentation direction, and the small shared projection makes existing information visible without changing permissions or configuration.

Merge readiness

✅ Ready for maintainer review

This PR adds useful provenance visibility that current main lacks; no actionable code findings remain, and exact-head CI is green.

Priority: P3
Reviewed head: 953a3fea401588a12895e40f23f22d5bb8361701

Before merge

None.

Findings

None.

Agent review details

How this fits together

The plugin-list command reads installed inventory and manifest metadata, then produces table, verbose, or JSON output without executing plugin runtimes.

flowchart LR
  A[CLI list command] --> B[Inventory snapshot]
  C[Recorded trust metadata] --> B
  B --> D[JSON output]
  B --> E[Shared trust formatter]
  E --> F[Table output]
  E --> G[Verbose output]
Loading

Technical review

Best possible solution:

Retain the shared projection of recorded provenance in both existing text views while preserving metadata-only listing and unchanged trust policy.

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

Current-main source confirms both text views omit available trust metadata; supplied baseline output corroborates the omission, and no target code was executed during this review.

Is this the best way to solve the issue?

The smallest complete implementation uses the existing snapshot and formatting owners, shares the compact label between views, and leaves trust evaluation and JSON unchanged.

AGENTS.md: found and applied where relevant.

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

Provenance checked

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 76ec395 adds src/cli/plugins-list-command.ts:47 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 76ec39556ebd; files: src/cli/plugins-list-command.ts)
  • Vincent Koc: Raw commit d65b3a6 adds src/cli/plugins-list-command.ts:42 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: d65b3a68aa4a; files: src/cli/plugins-list-command.ts)

PR surface

Source +15, Tests +67, Docs +4. Total +86 across 5 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 2 16 1 +15
Tests 2 88 21 +67
Docs 1 4 0 +4
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 5 108 22 +86

Review metrics

Metric Value Why it matters
Production versus test growth Production +16/-1; tests +88/-21. Growth supports a shared formatter and distinct verbose and terminal-width contracts without adding state or another trust owner.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #178411
Summary: The paired feature request defines the two text views implemented by this PR.

Members:

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

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • remove rating: 🧂 unranked krab: Current PR rating is rating: 🦞 diamond lobster, so this older rating label is no longer current.
  • remove status: 📣 needs proof: Current PR status label is status: 👀 ready for maintainer look.
  • remove proof: 📸 screenshot: Current real behavior proof evidence kind is live_output.

Label justifications:

  • P3: This is a bounded CLI visibility enhancement; JSON and individual inspection already expose recorded provenance.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (8 earlier review cycles)
  • reviewed 2026-10-20T14:48:56.746Z sha 0e2d59c3ecd114b0af98270589127d346ba6845d :: needs real behavior proof before merge. :: [P2] Use valid discovery origins in the new trust fixtures
  • reviewed 2026-10-20T15:53:06.666Z sha f1ce22297fc027eb3977d66a4268c4c17794bbb7 :: blocked before merge. :: none
  • reviewed 2026-10-20T23:34:39.516Z sha b061e2b00c99d6803c440f70b2be47c78cb3c84d :: blocked before merge. :: none
  • reviewed 2026-10-21T01:07:13.909Z sha aa3861021eb6595847851158d69ab7a916c106c9 :: blocked before merge. :: none
  • reviewed 2026-10-21T01:26:05.764Z sha aa3861021eb6595847851158d69ab7a916c106c9 :: blocked before merge. :: none
  • reviewed 2026-10-21T06:21:46.913Z sha aa3861021eb6595847851158d69ab7a916c106c9 :: blocked before merge. :: none
  • reviewed 2026-10-25T04:17:21.071Z sha 3b7b833 :: needs real behavior proof before merge. :: [P2] Preserve real exports in the rewritten command-format mock
  • reviewed 2026-10-25T04:31:52.757Z sha 953a3fe :: needs real behavior proof before merge. :: none

Reviewed October 25, 2026, 1:13 AM ET / 05:13 UTC (Revision 9).

@SunnyShu0925
SunnyShu0925 force-pushed the feat/plugins-list-trust-status-178411 branch from 0e2d59c to f1ce222 Compare October 20, 2026 15:45
@clawsweeper

clawsweeper Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Oct 20, 2026
@SunnyShu0925
SunnyShu0925 force-pushed the feat/plugins-list-trust-status-178411 branch 2 times, most recently from 006cf01 to b061e2b Compare October 20, 2026 23:02
@clawsweeper

clawsweeper Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Oct 20, 2026
@SunnyShu0925
SunnyShu0925 force-pushed the feat/plugins-list-trust-status-178411 branch 2 times, most recently from 61edcc4 to aa38610 Compare October 21, 2026 01:01
@clawsweeper

clawsweeper Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. and removed status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Oct 21, 2026
@clawsweeper

clawsweeper Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@steipete

Copy link
Copy Markdown
Contributor

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@openclaw-barnacle openclaw-barnacle Bot added the docs Improvements or additions to documentation label Oct 25, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Oct 25, 2026
@steipete

Copy link
Copy Markdown
Contributor

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Oct 25, 2026
@SunnyShu0925

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. proof: sufficient ClawSweeper judged the real behavior proof convincing. 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. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Oct 25, 2026
@steipete
steipete merged commit 5d973f1 into openclaw:main Oct 25, 2026
153 of 154 checks passed
@steipete

Copy link
Copy Markdown
Contributor

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 26, 2026
…178483)

Show recorded plugin provenance in the compact plugins list and share the trust formatter with verbose output. Keep listing metadata-only and state that provenance is not a safety guarantee.

The verbose and narrow-terminal regressions fail on the base and pass on the reviewed head. Exact-head CI is green; inspected synthetic before/after images are in the PR. An installed CLI/Gateway run was not performed because it required a full build.

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

Labels

clawtributors PR from a clawtributor cli CLI command changes docs Improvements or additions to documentation P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. size: S 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.

[Feature]: Show plugin trust status in plugins list output

3 participants