Repository navigation
feat(agentsapi): discover self-hosted skills - #159363
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. |
a66e3f9 to
eda87c9
Compare
|
Codex review: needs maintainer review before merge. Reviewed September 28, 2026, 1:09 AM ET / 05:09 UTC (Revision 7). ClawSweeper reviewWhat this changesThe Agents API plugin adds a setting that passes operator-selected executor skill directories to new self-hosted sessions, validates the paths, and documents discovery and session-reset behavior. Merge readiness✅ Ready for maintainer review Keep this distinct feature PR open. Current main lacks executor skill-directory discovery, the self-hosted prerequisite is merged, and the earlier path-validation finding is resolved. The feature owner’s verified repository maintain role and written discussion establish acceptance of the documented directory-wide discovery and manual-reset tradeoffs. Priority: P2 Review scores
Verification
How this fits togetherThe Agents API plugin turns OpenClaw agent requests into sessions through the official OpenAI SDK. For self-hosted sessions, an operator-provided executor supplies the workspace and skill files, and the resulting agent reply returns through OpenClaw. flowchart LR
A[Operator settings] --> B[Agents API plugin]
B --> C[Validate skill directories]
C --> D[Check saved session binding]
D --> E[OpenAI session request]
E --> F[Self-hosted executor]
F --> G[Agent reply]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +32, Docs +27, Generated 0. Total +59 across 6 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep native skill roots as an explicit plugin setting, with the accepted whole-directory exposure and reset instructions visible to operators while preserving the hosted default. Do we have a high-confidence way to reproduce the issue? Not applicable: this adds an optional capability. Source establishes the request path, while the historical real run shows skill-consistent behavior without independently tracing a skill-file read. Is this the best way to solve the issue? Yes. Forwarding the official SDK field from the existing plugin is a narrow solution, and the maintain-role feature owner has documented the operator-controlled discovery scope. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 02e1ac8391f8. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (6 earlier review cycles)
|
Live evidence: ordinary Slack requestsPASS for the two functional tasks below. These ran on a real local native-arm64 Docker Gateway with the Agents API and an existing self-hosted executor, using a leased Slack bot and its ordinary message flow. No mocks or special test mode were used.
1. Walking forecastNew Slack request, with only the bot mention removed:
The agent announced the weather skill and made these actual native function calls. Selected fields from the captured API items: [
{
"name": "web_fetch",
"arguments": {
"extractMode": "text",
"maxChars": 12000,
"url": "https://wttr.in/London?format=j2"
},
"status": "completed"
},
{
"name": "web_fetch",
"arguments": {
"extractMode": "text",
"maxChars": 50000,
"url": "https://wttr.in/London?format=j1"
},
"status": "completed"
}
]Corresponding tool-result fields: [
{
"url": "https://wttr.in/London?format=j2",
"status": 200,
"truncated": false
},
{
"url": "https://wttr.in/London?format=j1",
"status": 200,
"truncated": true
}
]The first call matches the installed weather skill's JSON-fetch instructions. Both requests returned HTTP 200. The second response was truncated, but retained the full requested day's forecast. The final reply's 14–22°C range, 6% midday/afternoon rain chance, 29% evening rain chance, and 21 km/h midday wind matched the returned data. The delivered Slack reply was independently read back. Delivered forecastBring a lightweight raincoat, especially if you’ll be out into the evening. London’s forecast for tomorrow, 2026-09-27, is 14–22°C, with a cloudy morning and brighter spells around midday. Rain chances are around 6% at midday and mid-afternoon, rising to 29% in the evening. Midday winds reach roughly 21 km/h. Forecast I’d aim for 12:00–15:00 London time for the warmest, driest part of the day. 2. React loader reviewNew Slack request, with only the bot mention removed:
async function loadDashboard() {
const profile = await fetchProfile();
const notifications = await fetchNotifications();
const preferences = await fetchPreferences();
return { profile, notifications, preferences };
}The agent announced the React best-practices skill and delivered this refactor: async function loadDashboard() {
const [profile, notifications, preferences] = await Promise.all([
fetchProfile(),
fetchNotifications(),
fetchPreferences(),
]);
return { profile, notifications, preferences };
}The reply correctly qualified that the requests must be independent, preserved result mapping, explained rejection behavior, and identified the skill's “Promise.all() for Independent Operations” rule with its CRITICAL impact rating. The final response was independently read back from Slack. This was a code-review task; the returned example was not executed or benchmarked. Completion and limitsFor each captured native session, the recorded state was: {
"turn_status": "completed",
"turn_error": null,
"session_status": "idle",
"required_actions": [],
"session_error": null
}After both replies, the Gateway turn outbox and delivery queue were empty and no Agents API session lease remained. The Gateway stayed running without a restart; existing skill files were not changed. The new requests supplied no skill name, file location, tool choice, or expected answer. Each used a fresh Slack thread, but the normal Gateway context still included channel history containing earlier guided skill tests. These checks establish ordinary task completion and skill-consistent behavior; they do not independently establish fresh skill discovery or a skill-file read, because the captured native items expose no file-read event. The operator helper connected the real executor; automatic webhook delivery was not exercised. The current-head saved-session upgrade/reset path remains unverified. Private Slack links, native session identifiers, host paths, and credentials are omitted from this public evidence. |
c94a304 to
796e1db
Compare
951b015 to
e167175
Compare
|
@clawsweeper re-review The requested skill-directory validation is implemented in e167175. Both the manifest and runtime schema reject duplicate entries and Independent source review found no remaining mismatch between the two validators. The earlier ordinary Slack proof remains linked from the PR description with its actual runtime commit and limitations; it is not claimed as live proof of this new validation commit. No new unit tests or special test mode were used. Please review this head as the separate skills layer above #158307. Rebases are held until that settings prerequisite merges. This is a review-only request; do not autofix, rebase, or merge the stacked PR. |
|
🦞👀 Re-review progress:
|
|
Review response for current skills head
Please review the corrected path validation and documented existing directory contract without requiring more live tests. |
acb6451 to
2ffd4ff
Compare
4b81373 to
1817455
Compare
1817455 to
51f121f
Compare
|
@clawsweeper re-review Please review head 51f121f. The UNC validation finding is fixed, and the existing maintainer response has been updated at #159363 (comment). Further live tests are explicitly prohibited; retain the documented limitations of the historical evidence. |
|
🦞👀 Re-review progress:
|
617bc68 to
6ea95a5
Compare
8a0ba72 to
325d790
Compare
ClawSweeper request: > The new prefix regex accepts duplicate directories and `.` or `..` segments, such as `/workspace/../skills`, then forwards them to the native request. [OpenAI's Agents API guidance](https://developers.openai.com/api/docs/guides/tools-skills) forbids those entries, so an accepted OpenClaw setting can fail only when a session starts. Validate the whole list at the plugin boundary and cover the request path. Reject duplicate paths and dot segments in both plugin configuration validation and the runtime schema. Preserve executor-host path semantics for POSIX and Windows; do not normalize or rewrite configured paths.
ClawSweeper requested: "Require a server and share in both validators and cover the request path." Require both path components in runtime and manifest validation while preserving configured directory bytes and existing POSIX/drive handling.
325d790 to
3a871d2
Compare
|
Merged via squash auto-merge.
|
8 upstream commits that landed while the previous merge was being checked, including self-hosted skill discovery for agentsapi (openclaw#159363). No file outside the generated set changed on both sides. Two conflicts, both generated: docs/.generated/config-baseline.counts.json and docs/.generated/config-baseline.sha256. openclaw#159363 adds two agentsapi plugin settings, so plugin goes from 4351 to 4353. This branch keeps channel at 3788 and core stays at 2464. Both files came from upstream and were regenerated. build:docker ran in a separate detached checkout of this commit outside the nested node_modules install. Regenerating there changed those two files and nothing else, giving the predicted counts, the upstream core and plugin hashes, this branch's channel hash and a new combined hash. The three generated-file checks pass there. Upstream deleted five files in this range, none of them tests and none touched by this branch. Feishu: 106 files and 1853 tests in the extension project, 17 files and 312 tests in the database-workers project. The forwarder test and the routing guards pass, 1958 tests. tsgo:core, tsgo:extensions, tsgo:extensions:test, tsgo:test:root, the line-cap, max-lines and assertion-safety ratchets against upstream/main, oxlint and oxfmt on the 43 changed code files all pass.
* feat(agentsapi): discover self-hosted skills * fix(agentsapi): accept absolute Windows capability paths * docs(agentsapi): clarify skill directory binding compatibility * refactor(agentsapi): name executor skill directories clearly * fix(agentsapi): reject invalid executor skill directories ClawSweeper request: > The new prefix regex accepts duplicate directories and `.` or `..` segments, such as `/workspace/../skills`, then forwards them to the native request. [OpenAI's Agents API guidance](https://developers.openai.com/api/docs/guides/tools-skills) forbids those entries, so an accepted OpenClaw setting can fail only when a session starts. Validate the whole list at the plugin boundary and cover the request path. Reject duplicate paths and dot segments in both plugin configuration validation and the runtime schema. Preserve executor-host path semantics for POSIX and Windows; do not normalize or rewrite configured paths. * fix(agentsapi): require complete executor UNC directories ClawSweeper requested: "Require a server and share in both validators and cover the request path." Require both path components in runtime and manifest validation while preserving configured directory bytes and existing POSIX/drive handling. --------- Co-authored-by: Sarah Fortune <[email protected]>
…olicies (#190036) ## Summary - **Problem:** `modelPolicy.allow` had two grammars under one name. Operator roles accepted a model-name prefix such as `openai/gpt-*`; agent policies rejected it. Role matching used a separate glob matcher, and five other callers detected wildcards by hand (`endsWith("/*")`, `slice(0, -2)`, `startsWith`). The copies agreed today but could drift, for example on padded refs like `"openai / *"`. - **Fix:** `src/config/model-policy-ref.ts` now owns one parser (`parseModelPolicyWildcardRef`: `provider/*`, `provider/namespace/*`, `provider/family-*`) and one matcher (`modelPolicyWildcardMatches`). Role policy matching, config validation, `isModelKeyAllowedBySet`, configured model entries, alias candidates, `models status` and the legacy Codex wildcard migration use them. The role-only parser, the role glob matcher and the role-only validation branch are deleted. - **User impact:** agent policies now also accept model-name prefixes such as `openai/gpt-*`. Existing agent and role configs keep their meaning; no config is invalidated. ## Evidence **Live Gateway, real operator-role identity.** Setup: - Candidate Gateway (`openclaw.mjs gateway run` from this branch) on an isolated HOME, state and loopback port. - `gateway.auth.mode: "trusted-proxy"` with a loopback proxy that sets `x-forwarded-user: [email protected]`. - `gateway.roles.default: "limited"`, with `modelPolicy: { allow: ["fixture/echo-*"], deny: ["fixture/echo-restricted*"] }`. - A loopback fake OpenAI-completions provider that logs every request. - The client is the real `GatewayClient` (webchat mode, device identity, no token), so the proxy-verified user is its only credential. ```text (1)+(2) sessions.patch fixture/echo-restricted -> FORBIDDEN "Your operator role cannot use this model…" sessions.patch fixture/echo-restricted-mini -> FORBIDDEN sessions.patch fixture/other-x -> FORBIDDEN (outside allow) sessions.patch fixture/echo-main -> ok agent run on that session -> status ok provider log: POST /v1/chat/completions model=echo-main (only request; no echo-restricted* or other-x call) (3) live reload narrows the role: deny += "fixture/echo-main*" [reload] config change detected; evaluating reload (gateway.roles.definitions.limited.modelPolicy.deny) next agent run on the pinned echo-main session -> status error "Your operator role cannot use this model…" provider requests before=2 after=2 (no new provider call) (4) upgrade cell, same state directory: published [email protected] Gateway writes and serves the role config: echo-restricted / echo-restricted-mini / other-x -> FORBIDDEN, echo-main -> ok, provider called with echo-main stop; candidate `doctor --fix` (agent DB schema 25 -> 39, role config untouched); candidate Gateway on that state: identical sessions.patch decisions (diff: IDENTICAL), provider called only with echo-main ``` **Role policy compatibility (main vs this PR, real owner code).** One script prepared role policies through `prepareOperatorModelPolicy` on an `origin/main` checkout and on this branch. It evaluated `allows()` for 12 models under 5 policies (family deny `vendor/restricted-v1*`, family allow `vendor/gpt-*`, nested `router/anthropic/*`, padded ` VENDOR / gpt-* ` with deny `vendor/gpt-5.5*`, inherited-source deny `vendor/restricted-*`). It also captured the `main` snapshots with `captureOperatorModelPolicySnapshot` and restored them on this branch with `restoreOperatorModelPolicySnapshot`. ```text prepared decisions, main vs PR: 0 differences / 60 main snapshots restored on PR vs main: 0 differences / 60 familyDeny on PR: vendor/restricted-v1 false, vendor/restricted-v1-mini false, vendor/restricted-v2 true, vendor/primary true ``` **Admission proof.** New case in `src/gateway/sessions-patch.operator-model-policy.test.ts` drives `projectSessionsPatchEntry` (the `sessions.patch` owner that admits a model before any run or provider request) with role policy `allow: ["fixture/*"]`, `deny: ["fixture/restricted-v1*"]`, once with the freshly prepared policy and once with a policy restored from its captured snapshot: ```text fixture/restricted-v1 -> FORBIDDEN "operator role cannot use this model" fixture/restricted-v1-mini -> FORBIDDEN fixture/allowed -> ok; after the operator source is revoked, its commit guard -> FORBIDDEN ``` It fails with this PR's first matcher (strict length check) and passes now. Rebased onto #190019; `pnpm check:changed` and the auth-model-policy suites pass on the rebased head. Role admission suites that consume this predicate before provider calls also pass on this branch: model fallback, CLI runner, isolated completion and image fallback operator-policy suites, plus `operator-model-policy.test.ts` (65 tests). - New regression in `model-visibility-policy.test.ts` (agent policy `openai/gpt-5.6-*` allows `gpt-5.6-sol`, not `gpt-5.5`) fails on `origin/main` and passes here. - Validation table adds `openai/gpt-*` (valid for agents) and rejects `openai/gpt *` and `*`. - Focused suites pass: model visibility, config model-ref validation, operator model policy, role mutation authority, `models status`, legacy Codex model migration, configured model entries, model selection. - Role compatibility: `modelPolicyWildcardMatches` is a plain prefix test, the same set the old role glob (`^prefix.*$`) accepted, because the parser forbids any other `*`. A new operator-policy regression (`allow: ["vendor/*"]`, `deny: ["vendor/restricted-v1*"]` must deny `vendor/restricted-v1` itself) fails on the first head of this PR and passes now. Stored role snapshots keep the same canonical wildcard keys, so restored policies match as before. - `pnpm check:changed` (dead-code step skipped) passes; config docs baseline regenerated. ## Merge danger Two-way door: no stored state or migration; a revert restores the narrower agent grammar. Blast radius: model policy matching for agents and operator roles. Role semantics are unchanged (same prefix rule, same normalized `provider/model` key). Pash/Sarah check: Sarah's commits on these files (#161609, #162335, #161048, #161004, #159363, #158307, #158703, #151176, #123875) touch Agents API, Codex and Slack config help/validation entries. This PR edits only model-policy wildcard parsing, matching and help text, so their behavior is unchanged. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Ayaan Zaidi <[email protected]>
…olicies (openclaw#190036) ## Summary - **Problem:** `modelPolicy.allow` had two grammars under one name. Operator roles accepted a model-name prefix such as `openai/gpt-*`; agent policies rejected it. Role matching used a separate glob matcher, and five other callers detected wildcards by hand (`endsWith("/*")`, `slice(0, -2)`, `startsWith`). The copies agreed today but could drift, for example on padded refs like `"openai / *"`. - **Fix:** `src/config/model-policy-ref.ts` now owns one parser (`parseModelPolicyWildcardRef`: `provider/*`, `provider/namespace/*`, `provider/family-*`) and one matcher (`modelPolicyWildcardMatches`). Role policy matching, config validation, `isModelKeyAllowedBySet`, configured model entries, alias candidates, `models status` and the legacy Codex wildcard migration use them. The role-only parser, the role glob matcher and the role-only validation branch are deleted. - **User impact:** agent policies now also accept model-name prefixes such as `openai/gpt-*`. Existing agent and role configs keep their meaning; no config is invalidated. ## Evidence **Live Gateway, real operator-role identity.** Setup: - Candidate Gateway (`openclaw.mjs gateway run` from this branch) on an isolated HOME, state and loopback port. - `gateway.auth.mode: "trusted-proxy"` with a loopback proxy that sets `x-forwarded-user: [email protected]`. - `gateway.roles.default: "limited"`, with `modelPolicy: { allow: ["fixture/echo-*"], deny: ["fixture/echo-restricted*"] }`. - A loopback fake OpenAI-completions provider that logs every request. - The client is the real `GatewayClient` (webchat mode, device identity, no token), so the proxy-verified user is its only credential. ```text (1)+(2) sessions.patch fixture/echo-restricted -> FORBIDDEN "Your operator role cannot use this model…" sessions.patch fixture/echo-restricted-mini -> FORBIDDEN sessions.patch fixture/other-x -> FORBIDDEN (outside allow) sessions.patch fixture/echo-main -> ok agent run on that session -> status ok provider log: POST /v1/chat/completions model=echo-main (only request; no echo-restricted* or other-x call) (3) live reload narrows the role: deny += "fixture/echo-main*" [reload] config change detected; evaluating reload (gateway.roles.definitions.limited.modelPolicy.deny) next agent run on the pinned echo-main session -> status error "Your operator role cannot use this model…" provider requests before=2 after=2 (no new provider call) (4) upgrade cell, same state directory: published [email protected] Gateway writes and serves the role config: echo-restricted / echo-restricted-mini / other-x -> FORBIDDEN, echo-main -> ok, provider called with echo-main stop; candidate `doctor --fix` (agent DB schema 25 -> 39, role config untouched); candidate Gateway on that state: identical sessions.patch decisions (diff: IDENTICAL), provider called only with echo-main ``` **Role policy compatibility (main vs this PR, real owner code).** One script prepared role policies through `prepareOperatorModelPolicy` on an `origin/main` checkout and on this branch. It evaluated `allows()` for 12 models under 5 policies (family deny `vendor/restricted-v1*`, family allow `vendor/gpt-*`, nested `router/anthropic/*`, padded ` VENDOR / gpt-* ` with deny `vendor/gpt-5.5*`, inherited-source deny `vendor/restricted-*`). It also captured the `main` snapshots with `captureOperatorModelPolicySnapshot` and restored them on this branch with `restoreOperatorModelPolicySnapshot`. ```text prepared decisions, main vs PR: 0 differences / 60 main snapshots restored on PR vs main: 0 differences / 60 familyDeny on PR: vendor/restricted-v1 false, vendor/restricted-v1-mini false, vendor/restricted-v2 true, vendor/primary true ``` **Admission proof.** New case in `src/gateway/sessions-patch.operator-model-policy.test.ts` drives `projectSessionsPatchEntry` (the `sessions.patch` owner that admits a model before any run or provider request) with role policy `allow: ["fixture/*"]`, `deny: ["fixture/restricted-v1*"]`, once with the freshly prepared policy and once with a policy restored from its captured snapshot: ```text fixture/restricted-v1 -> FORBIDDEN "operator role cannot use this model" fixture/restricted-v1-mini -> FORBIDDEN fixture/allowed -> ok; after the operator source is revoked, its commit guard -> FORBIDDEN ``` It fails with this PR's first matcher (strict length check) and passes now. Rebased onto openclaw#190019; `pnpm check:changed` and the auth-model-policy suites pass on the rebased head. Role admission suites that consume this predicate before provider calls also pass on this branch: model fallback, CLI runner, isolated completion and image fallback operator-policy suites, plus `operator-model-policy.test.ts` (65 tests). - New regression in `model-visibility-policy.test.ts` (agent policy `openai/gpt-5.6-*` allows `gpt-5.6-sol`, not `gpt-5.5`) fails on `origin/main` and passes here. - Validation table adds `openai/gpt-*` (valid for agents) and rejects `openai/gpt *` and `*`. - Focused suites pass: model visibility, config model-ref validation, operator model policy, role mutation authority, `models status`, legacy Codex model migration, configured model entries, model selection. - Role compatibility: `modelPolicyWildcardMatches` is a plain prefix test, the same set the old role glob (`^prefix.*$`) accepted, because the parser forbids any other `*`. A new operator-policy regression (`allow: ["vendor/*"]`, `deny: ["vendor/restricted-v1*"]` must deny `vendor/restricted-v1` itself) fails on the first head of this PR and passes now. Stored role snapshots keep the same canonical wildcard keys, so restored policies match as before. - `pnpm check:changed` (dead-code step skipped) passes; config docs baseline regenerated. ## Merge danger Two-way door: no stored state or migration; a revert restores the narrower agent grammar. Blast radius: model policy matching for agents and operator roles. Role semantics are unchanged (same prefix rule, same normalized `provider/model` key). Pash/Sarah check: Sarah's commits on these files (openclaw#161609, openclaw#162335, openclaw#161048, openclaw#161004, openclaw#159363, openclaw#158307, openclaw#158703, openclaw#151176, openclaw#123875) touch Agents API, Codex and Slack config help/validation entries. This PR edits only model-policy wildcard parsing, matching and help text, so their behavior is unchanged. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Ayaan Zaidi <[email protected]>
What Problem This Solves
Self-hosted Agents API sessions need to discover skill files already installed on their executor host. This is separate from choosing the execution environment, and builds on the merged environment settings PR #158307.
Changes
plugins.entries.agentsapi.config.hostExecutorSkillDirectories, forwarding the configured paths to the official SDK'scapability_directoriesfor self-hosted sessions. OpenClaw does not copy or install skill files..or..path components. Preserve configured bytes without normalization.Evidence and limitations
Current published head:
3a871d23a27372e36c5844a5678ad48af1f211f8, based on settings mergec0196aec9eb22dde60d1d36616d9d8e6d41fcbd4onmain.All six skills commits were preserved during the rebase. The four feature source/documentation files are byte-identical to the previously reviewed head; only generated configuration artifacts were reconciled with the new base.
pnpm config:docs:checkandgit diff --checkpassed. No live tests were run.The UNC correction is a separate commit quoting ClawSweeper's request. Independent source review found no actionable issues. Offline checks exercised the actual environment resolver and manifest pattern: four valid paths retained their bytes, six invalid paths were rejected, and runtime duplicate rejection passed. Canonical generated config documentation and whitespace checks pass.
Historical real self-hosted evidence used the retained native-arm64 Docker Gateway at runtime commit
63b394dce43bac184fdb078d25ea7eb3904e1567. Ordinary Slack prompts asked for a walking forecast and a faster React loader without skill names, file paths or prescribed tools. The replies followed skill-specific behavior, weather data matched real HTTP results, native turns completed, sessions returned idle and delivery/leases settled. These are functional behavior observations, not independently traced skill-file reads; normal channel history included earlier guided tests.Historical saved-session proof rejected a changed directory list, preserved the native session ID and resumed that session after restoring the list. These observations predate the field rename and later rebases, so they are not exact-head live verification.
The maintainer has explicitly waived additional live validation and prohibited rerunning live tests, including at ClawSweeper's request. No new live test, Docker build, Gateway restart or skill-file synchronization was performed for the latest correction.
The settings prerequisite feat(agentsapi): configure hosted or self-hosted environments #158307 is merged. Its existing connection timeout remains unchanged. The new settings base includes the upstream repair for the prior inherited test-type errors; no unrelated CI repair is included in this PR. GitHub CI is running on the head rebased onto merged
main.Operator contract
The requested feature is to make the skills already installed in explicitly configured executor-host directories available to the native harness. Selecting a directory opts into discovery of all skills within that directory; per-agent OpenClaw eligibility filtering is outside this change. This boundary is documented in the setting and setup guide. The existing saved-session binding rule from #158307 also covers this environment option: changing a nonempty directory list requires resetting the session rather than silently reusing the previous environment. No new behavior has been added in response to review.