Skip to content

fix: list skills for agents on a remote Gateway - #208251

Merged
daniel-lxs merged 2 commits into
mainfrom
openclaw/remote-skills-list-agent-bb81f1
Nov 29, 2026
Merged

daniel-lxs merged 2 commits into
mainfrom
openclaw/remote-skills-list-agent-bb81f1

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

openclaw skills list --agent research --json exits 1 with Unknown agent id when research exists only on the selected remote Gateway. The client rejects the agent before asking the Gateway for its inventory.

User Impact

skills list, skills info, skills check, and bare skills can read inventory for an explicitly named remote agent without adding it to the client config. An agent missing from the Gateway still fails. No migration or configuration change is needed.

Why This Change Was Made

The selected Gateway owns its roster. The CLI sends the normalized explicit ID directly to skills.status rather than resolving a client workspace. Local workspace operations and selection when --agent is omitted are unchanged.

I checked the original unknown-agent fix: it prevents a local fallback from fabricating a report. That safeguard remains in place. The remote fallback decision explicitly makes the remote Gateway authoritative.

Evidence

Before and after terminal captures. I ran the built CLI and a real token-authenticated loopback Gateway on AWS CrabBox with separate client and server configs and state directories. Only the Gateway had research and its workspace skill remote-inventory-marker.

Same command and fixture Result
Main d88223e Direct skills.status returned the marker; skills list --agent research --json exited 1 with Unknown agent id.
PR head 0132ad3 The CLI exited 0 with the marker from the Gateway's research workspace. The Gateway rejected absent (exit 1); !!! also remained an error.

The new command regression failed on main and passed with the fix. Both focused CLI suites passed (52 tests), as did the core TypeScript check, changed-file lint and formatting, and git diff --check. I verified the published head has the same Git tree as the AWS candidate. I did not run the full suite or test a separate-host network.

Reported and co-authored by @daniel-lxs.

Work sessions

Linked for team reference; these sessions aren’t public.

Worked on by

🦞 Made with OpenClaw

roboclaw-bot and others added 2 commits November 29, 2026 10:50
Worked on by:
- @daniel-lxs

Co-authored-by: daniel-lxs <[email protected]>
OpenClaw-Publication: 739972fd-dc47-4b90-9e11-953257e0cf7a
@clawsweeper

clawsweeper Bot commented Nov 29, 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 docs Improvements or additions to documentation cli CLI command changes size: XS labels Nov 29, 2026
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Main: the client rejects research even though the Gateway has it.

Main: the remote agent is rejected and the command exits 1

PR: the same command exits 0 and returns the workspace skill. The success transcript shows the matching skill and workspace from the full JSON response. Both terminal captures show output from the real AWS loopback run.

PR: the Gateway returns its research workspace skill and the command exits 0

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. impact:ux-friction User-facing flow adds avoidable confusion or support burden without fully blocking progress. labels Nov 29, 2026
@roboclaw-bot
roboclaw-bot marked this pull request as ready for review November 29, 2026 10:53
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. 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 clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. labels Nov 29, 2026
@clawsweeper

clawsweeper Bot commented Nov 29, 2026

Copy link
Copy Markdown
Contributor

Codex review: passed.

What this changes

The skills inventory commands send an explicitly named remote agent to the selected Gateway without requiring that agent in the client configuration.

Example: The client config contains client, while the selected Gateway contains research and its remote-inventory-marker skill.

  • Before: openclaw skills list --agent research --json exits 1 with Unknown agent id.
  • After: The command exits 0 and returns research's workspace inventory, including remote-inventory-marker.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, worthwhile repair with shipped-CLI before/after evidence and a distinct command regression; broad exact-head CI remains in progress.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (terminal): Inspected terminal captures exercise the built skills CLI against a real token-authenticated loopback Gateway with separate client/server configs and state: research fails on the base and returns its workspace marker on the reviewed head; separate-host networking was not exercised.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Operators cannot inspect skills for a remote Gateway agent unless they also add that agent to the client configuration.
Reason: This maintainer-authored repair restores the documented Gateway-owned inventory boundary with a focused change shared by all four inventory command forms.

Merge readiness

✅ Ready for maintainer review

This PR fixes a concrete remote-agent inventory failure still present on current main. The change preserves local validation and remote failure handling; no actionable defects were found.

Reviewed head: 0132ad37da15488acc7d8b6a171bf8ba7ec8d9e3

Before merge

None.

Findings

None.

Agent review details

How this fits together

The skills CLI selects an agent and requests skills.status from the Gateway, which validates its roster and returns the workspace inventory for CLI rendering.

flowchart TD
  A[Skills CLI command] --> B[Read client routing config]
  B --> C[Explicit remote agent]
  B --> D[Local workspace selection]
  C --> E[Gateway skills status]
  D --> E
  E --> F[Validate Gateway roster]
  F --> G[Render skill inventory]
Loading

Technical review

Best possible solution:

Let the selected remote Gateway validate explicit inventory agent IDs while retaining client roster validation for local workspace operations.

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

Current-main source establishes the premature client-roster rejection, corroborated by the supplied before-fix built-CLI capture; this review did not execute the reproduction.

Is this the best way to solve the issue?

The fix uses the existing target classifier, normalizer, RPC owner, and shared report reader, with no competing roster or fallback implementation.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Unknown-agent validation changes intended behavior with a stated reason (41069d9: Reject unknown IDs instead of fabricating successful local reports for nonexistent agents.)
  • Remote Gateway fallback keeps the original intent (b5864ba: Explicit remote targets must not return unrelated client-local inventory after a Gateway failure.)
  • Best-effort inventory configuration keeps the original intent (22fbe63: Read Gateway inventory without loading unrelated local plugin metadata that may require a newer database schema.)
  • Inventory cancellation keeps the original intent (9f4e263: Interrupt pending Gateway reads without late inventory output or misleading timeout diagnostics.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Vincent Koc: Raw commit e6b35a1 adds src/cli/skills-cli-gateway.ts:71 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: e6b35a11732f; files: src/cli/skills-cli-gateway.ts)
  • Peter Steinberger: Raw commit 1df7ac3 adds src/cli/skills-cli.ts:215 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 1df7ac33df69; files: src/cli/skills-cli.ts)
  • Alix-007: Raw commit 9f4e263 adds src/cli/skills-cli.ts:102 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 9f4e2639e622; files: src/cli/skills-cli.ts)

PR surface

Source +6, Tests +11, Docs +2. Total +19 across 4 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 2 21 15 +6
Tests 1 11 0 +11
Docs 1 3 1 +2
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 4 35 16 +19

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • 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.

Reviewed November 29, 2026, 5:57 AM ET / 10:57 UTC.

@daniel-lxs
daniel-lxs merged commit 36295bf into main Nov 29, 2026
222 checks passed
@daniel-lxs
daniel-lxs deleted the openclaw/remote-skills-list-agent-bb81f1 branch November 29, 2026 11:16
tideclaw-bot pushed a commit that referenced this pull request Nov 30, 2026
Ask the selected remote Gateway for the explicitly named agent’s skill inventory. Local workspace inventory still checks its own configured agents.

Co-authored-by: daniel-lxs <[email protected]>
OpenClaw-Publication: 739972fd-dc47-4b90-9e11-953257e0cf7a
(cherry picked from commit 36295bf)

Follow-up audit: 159176a is separately selected in row 53 and applies after this explicit-agent fix; e7bce82 changes Workshop remote selection, not skills status. 16a2d4b UI log search, 21786f6 i18n label pruning, 34d4f8f Docker Doctor reporting, and 9cec330 Workboard grouping are unrelated maintenance references, not companions.

Release adaptation: Pass the core-only config read into the stable local workspace inference without importing later system-agent selection. Explicit remote IDs are resolved by the Gateway.

Co-authored-by: RomneyDa <[email protected]>
tideclaw-bot pushed a commit that referenced this pull request Nov 30, 2026
Ask the selected remote Gateway for the explicitly named agent’s skill inventory. Local workspace inventory still checks its own configured agents.

Co-authored-by: daniel-lxs <[email protected]>
OpenClaw-Publication: 739972fd-dc47-4b90-9e11-953257e0cf7a

Release adaptation: Use the release workspace resolver without the main-only system-agent flag; validate explicit remote agents at the selected Gateway without changing local fallback.

(cherry picked from commit 36295bf)

Co-authored-by: RomneyDa <[email protected]>
tideclaw-bot pushed a commit that referenced this pull request Nov 30, 2026
When a remote client omits --agent on a skills inventory command, let the Gateway select its configured default. The Gateway still validates explicit agent IDs.

Worked on by:
- @daniel-lxs

Co-authored-by: daniel-lxs <[email protected]>
OpenClaw-Publication: 14998ca1-5600-4c30-8ddd-c5b117420269

(cherry picked from commit 159176a)

Release adaptation: Also ports prerequisite 36295bf (#208251). Keep the local resolver and fallback only for the implicit local Gateway; the selected remote owns its default or explicitly named agent inventory.

Release adaptation: Let the remote Gateway choose its default agent when omitted, preserve explicit remote-agent selection and Workshop’s release best-effort local config path, and test both CLI cases.

Co-authored-by: RomneyDa <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 30, 2026
Ask the selected remote Gateway for the explicitly named agent’s skill inventory. Local workspace inventory still checks its own configured agents.

Co-authored-by: daniel-lxs <[email protected]>
OpenClaw-Publication: 739972fd-dc47-4b90-9e11-953257e0cf7a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli CLI command changes docs Improvements or additions to documentation impact:ux-friction User-facing flow adds avoidable confusion or support burden without fully blocking progress. P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS 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.

2 participants