Repository navigation
feat(cli): show plugin trust status in plugins list output - #178483
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesThis 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.
Review scores
ProductKind: Feature · Worth it: Yes · Fix scope: Complete 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 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe 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]
Technical reviewBest 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
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +15, Tests +67, Docs +4. Total +86 across 5 files. Added test files: 0. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. LabelsLabel changes:
Label justifications:
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (8 earlier review cycles)
Reviewed October 25, 2026, 1:13 AM ET / 05:13 UTC (Revision 9). |
0e2d59c to
f1ce222
Compare
|
🦞👀 Re-review progress:
|
006cf01 to
b061e2b
Compare
|
🦞👀 Re-review progress:
|
61edcc4 to
aa38610
Compare
|
🦞👀 Re-review progress:
|
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Merged via squash.
|
…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]>
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 listshows a Trust column, and--verboseshows 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:
After:
Installed-CLI run (current head
953a3fe)This closes the installed-CLI gap noted above. The run below was captured at head
953a3fewith 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:Baseline
ab961d8and head953a3fe, same installed state:ab961d8953a3febundledandorigin-pathtrust: origin-pathAt 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.