Skip to content

fix(cli): plugins inspect skill-workshop fails on multi-agent rosters - #124283

Merged
steipete merged 1 commit into
openclaw:mainfrom
saju01:fix/plugins-inspect-multi-agent-workshop
Aug 25, 2026
Merged

steipete merged 1 commit into
openclaw:mainfrom
saju01:fix/plugins-inspect-multi-agent-workshop

Conversation

@saju01

@saju01 saju01 commented Aug 15, 2026 •

Copy link
Copy Markdown
Contributor

🤖 AI-assisted PR (Claude Opus 5, via Claude Code). Root cause, fix, and tests were reviewed and verified by me.

Related: #124010

What Problem This Solves

Fixes an issue where users running openclaw plugins inspect skill-workshop on a configuration with more than one agent would get a thrown AgentSelectionRequiredError instead of the Skill Workshop tool-policy guidance:

Multiple agents are configured, but this operation has no explicit owner.
Select an agent explicitly; CLI callers can pass --agent <id>, channels can add
a binding, and ambient services can set their agentId target.

The command is supposed to explain that Skill Workshop is built in rather than a plugin, and report whether skill_workshop is policy-hidden. On a multi-agent roster it never gets that far.

Why This Change Was Made

detectSkillWorkshopToolPolicyDiagnostic falls back to resolveDefaultAgentId when no agentId is passed, and a multi-agent roster has no default owner to resolve, so the call throws.

#124010 fixed exactly this for the doctor health check by resolving per configured agent, but it updated src/flows/doctor-core-checks.ts and not the plugins inspect call site, which still passes no agent. This applies the same pattern to the remaining caller and reports a diagnostic per agent.

One visible consequence: listAgentIds injects the implicit main agent, so single-agent configurations now pass agentId: "main" explicitly rather than relying on the default-owner fallback. That makes plugins inspect consistent with the doctor check, and the existing expectation is updated to match.

User Impact

openclaw plugins inspect skill-workshop now works on multi-agent setups and reports tool-policy availability for each configured agent instead of failing. Single-agent behaviour is unchanged.

Evidence

Verified the throw on current main by calling the diagnostic directly with a two-agent roster and no agentId:

THREW: AgentSelectionRequiredError | Multiple agents are configured, but this operation has no explicit owner...

With an explicit agent id, the same call resolves for each agent:

listAgentIds: [ 'main', 'venus' ]
agent main:  OK -> Skill Workshop is active, but "skill_workshop" is hidden for agent "main": ...
agent venus: OK -> Skill Workshop is active, but "skill_workshop" is hidden for agent "venus": ...

New multi-agent regression test added in src/cli/plugins-cli.list.test.ts asserting the command reports per agent instead of throwing.

pnpm vitest run src/cli/plugins-cli.list.test.ts  → 32 passed

Wider run across the areas this touches (src/state/, src/infra/sqlite-strict.test.ts, src/cli/plugins-cli.list.test.ts, src/skills/workshop/, src/flows/doctor-core-checks.test.ts) → 972 passed, 0 failed.

oxfmt --check and oxlint pass on the changed files. Full-repo tsc --noEmit was not run locally (OOMs on the machine used); relying on CI.

CHANGELOG.md intentionally untouched per CONTRIBUTING.


After-fix CLI evidence (added for ClawSweeper review)

Real runs of the changed command via src/entry.ts, against an isolated two-agent
config (OPENCLAW_CONFIG_PATH / OPENCLAW_STATE_DIR pointed at a scratch dir, so no
live state is involved):

{
  "tools": { "profile": "messaging" },
  "skills": { "workshop": { "autonomous": { "mode": "propose" } } },
  "agents": { "ownership": "explicit", "entries": { "main": {}, "venus": {} } }
}

Before — current main, src/cli/plugins-inspect-command.ts unpatched:

$ openclaw plugins inspect skill-workshop
[openclaw] Could not start the CLI.
[openclaw] Reason: Multiple agents are configured, but this operation has no explicit owner. Select an agent explicitly; CLI callers can pass --agent <id>, channels can add a binding, and ambient services can set their agentId target.
[openclaw] Debug: set OPENCLAW_DEBUG=1 to include the stack trace.
[openclaw] Try: openclaw doctor
[openclaw] Help: openclaw --help
exit: 1

The command never reaches its own output — it fails during CLI startup.

After — this branch:

$ openclaw plugins inspect skill-workshop
Skill Workshop is built into OpenClaw, not a plugin; configure it under skills.workshop.
Skill Workshop is active, but "skill_workshop" is hidden for agent "main": tools.profile: "messaging" does not include "skill_workshop". Add tools.alsoAllow: ["skill_workshop"].
Skill Workshop is active, but "skill_workshop" is hidden for agent "venus": tools.profile: "messaging" does not include "skill_workshop". Add tools.alsoAllow: ["skill_workshop"].
exit: 1

Single-agent regression check — this branch, one configured agent:

$ openclaw plugins inspect skill-workshop
Skill Workshop is built into OpenClaw, not a plugin; configure it under skills.workshop.
Skill Workshop is active, but "skill_workshop" is hidden for agent "main": tools.profile: "messaging" does not include "skill_workshop". Add tools.alsoAllow: ["skill_workshop"].
exit: 1

Note on the exit code: 1 is expected and unchanged on this path — the legacy
skill-workshop inspect id always reports and exits non-zero because it is not a
plugin. The fix changes what is reported, not the exit status: previously a CLI
startup failure with no diagnostic, now one diagnostic line per configured agent.

@clawsweeper

clawsweeper Bot commented Aug 15, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@openclaw-barnacle openclaw-barnacle Bot added cli CLI command changes size: S labels Aug 15, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. 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. labels Aug 15, 2026
@clawsweeper

clawsweeper Bot commented Aug 15, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 25, 2026, 5:31 AM ET / 09:31 UTC.

ClawSweeper review

What this changes

The PR makes openclaw plugins inspect skill-workshop emit Skill Workshop policy guidance for every configured agent instead of failing on an explicit multi-agent roster.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

Keep open: current main still invokes the Skill Workshop diagnostic without an agent, while its callee resolves a default owner and rejects an explicit multi-agent roster. This head supplies each roster member and mirrors the already-merged Doctor pattern without widening the shared diagnostic API. Likely related people: steipete (high confidence) and Vitor Cepeda Lopes (low confidence).

Priority: P2
Reviewed head: 0e7e76e97f65b982f09e752026e17de6b268fc87

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Strong CLI proof and focused regression coverage support a clean caller-level repair with no blocking findings.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (terminal): The PR body shows isolated before/after terminal runs of the actual CLI with a two-agent configuration, including the restored per-agent output and unchanged single-agent behavior.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (terminal): The PR body shows isolated before/after terminal runs of the actual CLI with a two-agent configuration, including the restored per-agent output and unchanged single-agent behavior.
Evidence reviewed 6 items Current-main failure path: Current main calls the diagnostic with no agentId for the legacy Skill Workshop target, so an explicit multi-agent roster reaches default-owner resolution instead of CLI output.
Shared diagnostic contract: The diagnostic intentionally resolves the default agent only when its optional agentId is absent; supplying an explicit roster member preserves that singular API and its strict ambiguity behavior.
Sibling owner pattern: Doctor already enumerates listAgentIds and passes each id into the same diagnostic, producing targeted findings rather than selecting an arbitrary owner.
Findings None None.
Security None None.

Live Verification

Command: scratch_dir=$(mktemp -d); printf '%s' '{"tools":{"profile":"messaging"},"skills":{"workshop":{"autonomous":{"mode":"propose"}}},"agents":{"ownership":"explicit","entries":{"main":{},"venus":{}}}}' › "$scratch_dir/openclaw.json"; (OPENCLAW_CONFIG_PATH="$scratch_dir/openclaw.json" OPENCLAW_STATE_DIR="$scratch_dir/state" pnpm openclaw plugins inspect skill-workshop; result=$?; test "$result" -eq 1)

Result: PASS (completed)

scratch_dir=$(mktemp -d); printf '%s' '{"tools":{"profile":"messaging"},"skills":{"workshop":{"autonomous":{"mode":"propose"}}},"agents":{"ownership":"explicit"
,"entries":{"main":{},"venus":{}}}}' › "$scratch_dir/openclaw.json"; (OPENCLAW_CONFIG_PATH="$scratch_dir/openclaw.json" OPENCLAW_STATE_DIR="$scratch_dir/state"
pnpm openclaw plugins inspect skill-workshop; result=$?; test "$result" -eq 1)
runner@runnervm76f27:/tmp/clawsweeper-live-proof-124283-09JPD4/target$ scratch_dir=$(mktemp -d); printf '%s' '{"tools":{"profile":"messaging"},"skills":{"worksh
op":{"autonomous":{"mode":"propose"}}},"agents":{"ownership":"explicit","entries":{"main":{},"venus":{}}}}' › "$scratch_dir/openclaw.json"; (OPENCLAW_CONFIG_PAT
H="$scratch_dir/openclaw.json" OPENCLAW_STATE_DIR="$scratch_dir/state" pnpm openclaw plugins inspect skill-workshop; result=$?; test "$result" -eq 1)
$ node scripts/run-node.mjs plugins inspect skill-workshop
scratch_dir=$(mktemp -d); printf '%s' '{"tools":{"profile":"messaging"},"skills":{"workshop":{"autonomous":{"mode":"propose"}}},"agents":{"ownership":"explicit"
,"entries":{"main":{},"venus":{}}}}' › "$scratch_dir/openclaw.json"; (OPENCLAW_CONFIG_PATH="$scratch_dir/openclaw.json" OPENCLAW_STATE_DIR="$scratch_dir/state"
pnpm openclaw plugins inspect skill-workshop; result=$?; test "$result" -eq 1)
[openclaw] Building TypeScript (dist is stale: missing_build_stamp - build stamp missing).
[openclaw] Building bundled plugin assets.
[canvas] build: node scripts/bundle-a2ui.mjs
[log] ‹DIR›/a2ui.bundle.js  chunk │ size: 399.96 kB
[log] ‹DIR›/a2ui-v0.9.bundle.js  chunk │ size: 615.66 kB
[log]
[success] rolldown v1.2.0 Finished in 85.35 ms
[diffs] build: node --import tsx ../../scripts/build-diffs-viewer-runtime.mts curated
[diffs-language-pack] build: node --import tsx ../../scripts/build-diffs-viewer-runtime.mts full
[discord] build: node --import tsx ../../scripts/build-discord-activity-sdk.mts
[tsdown-build] invocation 1/2 finished in 0.6s
node_modules/playwright-core/lib/coreBundle.js (65821:28) [EVAL] Use of direct ˋevalˋ function is strongly discouraged as it poses security risks and may cause
issues with minification.
       ╭─[ node_modules/playwright-core/lib/coreBundle.js:65821:29 ]
       │
 65821 │               const value = eval(ˋ(${expr})ˋ);
       │                             ──┬─
       │                               ╰─── Use of direct ˋevalˋ here.
       │
       │ Help: Consider using indirect eval. For more information, check the documentation: https://rolldown.rs/guide/troubleshooting#avoiding-direct-eval
───────╯

node_modules/playwright-core/lib/coreBundle.js (65828:28) [EVAL] Use of direct ˋevalˋ function is strongly discouraged as it poses security risks and may cause
issues with minification.
       ╭─[ node_modules/playwright-core/lib/coreBundle.js:65828:29 ]
       │
 65828 │               const value = eval(ˋ(${expr})ˋ);
       │                             ──┬─
       │                               ╰─── Use of direct ˋevalˋ here.
       │
       │ Help: Consider using indirect eval. For more information, check the documentation: https://rolldown.rs/guide/troubleshooting#avoiding-direct-eval
───────╯

node_modules/web-tree-sitter/web-tree-sitter.js (2343:30) [EVAL] Use of direct ˋevalˋ function is strongly discouraged as it poses security risks and may cause
issues with minification.
      ╭─[ node_modules/web-tree-sitter/web-tree-sitter.js:2343:31 ]
      │
 2343 │           ASM_CONSTS[start] = eval(func);
      │                               ──┬─
      │                                 ╰─── Use of direct ˋevalˋ here.
      │
      │ Help: Consider using indirect eval. For more information, check the documentation: https://rolldown.rs/guide/troubleshooting#avoiding-direct-eval
──────╯

node_modules/web-tree-sitter/web-tree-sitter.js (2366:32) [EVAL] Use of direct ˋevalˋ function is strongly discouraged as it poses security risks and may cause
issues with minificati
… output truncated …

Assertions:

  • PASS expect_output: hidden for agent "venus"

How this fits together

The plugin-inspection CLI reads configuration and reports diagnostics to the operator’s terminal. For the legacy built-in Skill Workshop target, it now enumerates configured agents before asking the shared policy diagnostic for each agent.

flowchart LR
  A[Operator runs plugin inspection] --> B[CLI reads configuration]
  B --> C[Agent roster]
  C --> D[Workshop policy diagnostic]
  D --> E[Per-agent guidance]
  E --> F[Terminal output]
Loading

Before merge

  • Resolve merge risk (P1) - Production code is net +6 lines; the remaining growth is the caller-owned roster loop needed to present one diagnostic per agent, and exact-head checks should complete before merge.
  • Complete next step (P2) - No repair job is needed: the prior import-boundary finding is addressed and no concrete patch defect remains; normal exact-head CI and merge review are the remaining gates.
Agent review details

Security

None.

PR surface

Source +6, Tests +7. Total +13 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 1 14 8 +6
Tests 1 31 24 +7
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 45 32 +13

Review metrics

Metric Value Why it matters
Production versus test LOC production +14/-8 (net +6); tests +31/-24 (net +7) The focused production growth implements per-agent CLI output while the test change covers both implicit and explicit roster shapes.

Root-cause cluster

Relationship: canonical
Canonical: #124283
Summary: This PR is the remaining CLI repair for the same missing-explicit-agent invariant addressed for Doctor.

Members:

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

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Keep the singular diagnostic strict and retain caller-specific roster iteration, then merge after exact-head required checks are green.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Keep the singular diagnostic strict and retain caller-specific roster iteration, then merge after exact-head required checks are green.

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

Yes, source establishes a direct current-main path: the CLI omits agentId and the diagnostic resolves a default owner, which rejects an explicit multi-agent roster. The PR body also provides before/after isolated terminal output for that path.

Is this the best way to solve the issue?

Yes. Per-caller roster iteration matches the merged Doctor solution while preserving the diagnostic’s singular, ambiguity-rejecting contract for other callers.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 315969f6693e.

Labels

Label changes:

  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit. Replaced prior rating: 🦐 gold shrimp.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.
  • remove merge-risk: 🚨 availability: Current PR review selected no merge-risk labels.

Label justifications:

  • P2: This fixes a bounded but real CLI failure for operators with explicit multi-agent configurations.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit. Replaced prior rating: 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Sufficient (terminal): The PR body shows isolated before/after terminal runs of the actual CLI with a two-agent configuration, including the restored per-agent output and unchanged single-agent behavior.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR body shows isolated before/after terminal runs of the actual CLI with a two-agent configuration, including the restored per-agent output and unchanged single-agent behavior.

Evidence

What I checked:

Likely related people:

  • steipete: Authored merged PR fix(doctor): stop false failures on multi-agent profiles #124010, which established the per-agent Doctor diagnostic pattern, and authored the current head’s lightweight-import follow-up. (role: related feature owner and recent area contributor; confidence: high; commits: 6e5bf3ec55cb, 0e7e76e97f65; files: src/flows/doctor-core-checks.ts, src/cli/plugins-inspect-command.ts)
  • Vitor Cepeda Lopes: Current-main blame attributes listAgentIds, the shared roster helper used by both Doctor and this CLI repair, to this contributor; deeper history was unavailable in the partial checkout. (role: recent shared-helper contributor; confidence: low; commits: de969db2c360; files: src/agents/agent-scope-config.ts)

Rank-up moves

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

  • Allow the exact-head required checks already in progress to complete before merge.

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 (7 earlier review cycles)
  • reviewed 2026-08-15T21:07:33.854Z sha 2d66e26b2250e6565cbbe9967601e9bb31f1ef7c :: needs real behavior proof before merge. :: none
  • reviewed 2026-08-15T21:25:43.874Z sha 2d66e26b2250e6565cbbe9967601e9bb31f1ef7c :: needs maintainer review before merge. :: none
  • reviewed August 15, 2026, 5:45 PM ET / 21:45 UTC sha unknown :: needs maintainer review before merge. :: none
  • reviewed 2026-08-20T10:29:51.130Z sha c04f349166683ee13b46f1ba173e3e265c033077 :: needs changes before merge. :: [P2] Import the roster helper from its lightweight owner
  • reviewed 2026-08-20T10:41:27.919Z sha c04f349166683ee13b46f1ba173e3e265c033077 :: needs changes before merge. :: [P2] Import the roster helper from its lightweight owner
  • reviewed 2026-08-20T12:10:46.306Z sha c04f349166683ee13b46f1ba173e3e265c033077 :: needs changes before merge. :: [P2] Import the roster helper from its lightweight owner
  • reviewed 2026-08-22T17:58:55.920Z sha c04f349166683ee13b46f1ba173e3e265c033077 :: needs changes before merge. :: [P2] Import the roster helper from its lightweight owner

@saju01

saju01 commented Aug 15, 2026

Copy link
Copy Markdown
Contributor Author

Thanks for the review — addressed the blocking item.

Added real behavior proof. The PR body now includes a before/after terminal run of the actual changed command, openclaw plugins inspect skill-workshop, against an isolated two-agent configuration (scratch OPENCLAW_CONFIG_PATH / OPENCLAW_STATE_DIR, no live state).

Before, on unpatched main, the command fails during CLI startup and never produces its own output:

[openclaw] Could not start the CLI.
[openclaw] Reason: Multiple agents are configured, but this operation has no explicit owner. ...

After, on this branch, it reports one diagnostic per configured agent:

Skill Workshop is built into OpenClaw, not a plugin; configure it under skills.workshop.
Skill Workshop is active, but "skill_workshop" is hidden for agent "main": ...
Skill Workshop is active, but "skill_workshop" is hidden for agent "venus": ...

A single-agent run is included too, showing unchanged behaviour there.

One clarification, since it could otherwise read as a failure: exit status 1 is expected and unchanged on this path — the legacy skill-workshop inspect id always reports and exits non-zero because it is not a plugin. The fix changes what is reported, not the exit status.

Ready for fresh review.

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. 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. and removed 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. labels Aug 15, 2026
@saju01

saju01 commented Aug 15, 2026

Copy link
Copy Markdown
Contributor Author

Thanks for the re-review.

its roster loop is caller-specific because Doctor emits structured findings while this legacy command owns stderr and exit behavior, so the rationale should remain visible at merge

Recording that rationale here so it stays visible at merge, and confirming it matches the shipped shape:

The loop is duplicated at the call site rather than pushed into detectSkillWorkshopToolPolicyDiagnostic because the two callers need different things from it. doctor-core-checks.ts maps each diagnostic into a structured finding with checkId / severity / target, which the doctor surface aggregates. This command owns its own presentation instead: it appends to a lines array, writes to stderr via defaultRuntime.error, and exits non-zero.

Widening the diagnostic API to return a collection would push that presentation split into shared contract surface for two callers that disagree about it, and would change the signature every other caller depends on. Keeping the singular per-agent API and iterating at each call site is the narrower contract, and matches what #124010 established for doctor.

Non-goal for this PR: the agentId-less overload stays as-is, so any future caller that omits it on a multi-agent roster still throws rather than silently picking an owner. That seemed preferable to a fallback that guesses.

For completeness on the exit status, since before/after both show 1: that is unchanged and expected on this path — the legacy skill-workshop inspect id always reports and exits non-zero because it is not a plugin. The fix changes what is reported, not the exit status.

CI green: 82 pass, 0 fail, 45 skipped.

@saju01
saju01 force-pushed the fix/plugins-inspect-multi-agent-workshop branch from 2d66e26 to c04f349 Compare August 20, 2026 10:23
@saju01

saju01 commented Aug 20, 2026

Copy link
Copy Markdown
Contributor Author

Rebased onto current main (f20c6dacc34) and re-verified — the branch had gone 1,379 commits stale since 15 Aug.

Head is now c04f3491666. No conflicts; the diff is unchanged at +17/-7 production and +41/-0 test.

Re-verified against current main rather than assuming the rebase was clean:

  • Dependency contracts still hold. detectSkillWorkshopToolPolicyDiagnostic keeps the { config, workshopEnabled, agentId? } shape this change relies on (src/skills/workshop/tool-policy-diagnostic.ts:225). listAgentIds has since moved to src/agents/agent-scope-config.ts:165, but src/agents/agent-scope.ts:41 re-exports it, so the import path in this PR remains correct — checked directly rather than trusting that the build was green.
  • Typecheck clean for both touched files.
  • pnpm vitest run src/cli/plugins-cli.list.test.ts → 32/32 pass.
  • Regression coverage still genuinely fails on pre-fix code. Reverted src/cli/plugins-inspect-command.ts to upstream/main while keeping the new test, and got 2 failures — explains a policy-hidden built-in Skill Workshop at the legacy inspect surface and reports Skill Workshop policy per agent on a multi-agent roster — then 32/32 again with the fix restored. The test fails for the intended reason, not incidentally.

No behavior change since the last review; this is purely a freshness rebase so the merge decision isn't made against a stale base.

@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. clawsweeper-recovery-stuck and removed 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. clawsweeper-recovery-stuck labels Aug 20, 2026
@steipete

Copy link
Copy Markdown
Contributor

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 25, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

@steipete

Copy link
Copy Markdown
Contributor

Maintainer follow-up pushed in f5197c18b89a3d365025ea6326c67aeaf29bbd09: imports the roster helper directly from its lightweight agent-scope-config owner instead of the heavyweight agent-scope runtime barrel, and removes the intermediate diagnostics allocation. All 32 focused plugin CLI tests pass; independent reviews of both the follow-up and full branch are clean. Production growth is reduced to seven lines, and the original contributor commit and credit are preserved.

@steipete
steipete force-pushed the fix/plugins-inspect-multi-agent-workshop branch from c64e63f to 0e7e76e Compare August 25, 2026 09:25
@steipete

Copy link
Copy Markdown
Contributor

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 25, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@steipete
steipete merged commit ef7b665 into openclaw:main Aug 25, 2026
185 checks passed
@steipete

Copy link
Copy Markdown
Contributor

Merged via squash.

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

Labels

cli CLI command changes merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: S status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants