Repository navigation
feat(skills): use remote workspace skills in agent tasks - #153126
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 real behavior proof before merge. Reviewed September 20, 2026, 12:19 AM ET / 04:19 UTC (Revision 21). ClawSweeper reviewWhat this changesLets agent tasks discover and read Skills from remote workspace hosts while keeping Gateway-owned Skills local. Merge readiness⛔ Blocked before merge - 8 items remain Keep open: the remote Skills capability remains useful and is absent from inspected main. Earlier compatibility repairs are present, but the acknowledged provider-replacement finding remains unresolved. Priority: P2 Review scores
Verification
How this fits togetherSkills discovery turns workspace files and Gateway-installed content into an agent’s instruction catalog. Resource readers then supply those instructions and supporting files to agent tools and remote workers. flowchart TD
A[Gateway Skills] --> C[Discovery and eligibility]
B[Remote workspace Skills] --> C
C --> D[Prepared skill catalog]
D --> E[File ownership and active binding]
E --> F[Instruction reads]
E --> G[Worker resource bundles]
Decision needed
Why: The author deliberately deferred a reachable ownership violation; accepting that security tradeoff requires owner judgment. Before merge
Findings
Agent review detailsSecurityNeeds attention: Retained remote skill ownership can become Gateway filesystem access after provider replacement; no separate supply-chain concern was found. PR surfaceSource +1111, Tests +1373, Docs +33, Other +2. Total +2519 across 60 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Preserve skill ownership through binding replacement, reject unavailable remote readers before local I/O, and verify fresh and resumed sessions without regressing document-only adapters. Do we have a high-confidence way to reproduce the issue? Yes, from source: discover a remote catalog, replace its binding with a document-only provider, then prepare resource delivery or Code Mode from the retained snapshot. This review did not execute that sequence. Is this the best way to solve the issue? The shared discovery and resource owners are the right direction, but reader selection must preserve prepared ownership instead of interpreting a missing current capability as local ownership. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 48bcfda392fc. LabelsLabel justifications:
EvidenceSecurity concerns:
What I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (20 earlier review cycles; latest 8 shown)
|
3207d6f to
88b9891
Compare
88b9891 to
7cef78c
Compare
|
Addressed the bundled bridge-only compatibility issue. Remote Skills are now selected by the optional Five regressions failed before this change; all 24 tests in the four affected suites pass afterward. No new flag, SDK export, or worker was added. New-head CI is pending. |
38ea692 to
d3b6786
Compare
|
Addressed both findings:
Four ordinary-read cases failed on Gateway decoy content before the fix and pass afterward, covering instructions and supporting files with workspace-only access enabled and disabled. The affected three existing suites pass all 153 tests, including local/Library behavior and stopped-provider rejection. This reuses existing read operations and resource callbacks; it adds no public API, service, or broader file grant. Current-head GitHub CI still needs to finish. |
d3b6786 to
a28c9b4
Compare
|
The ordinary-read repair is now followed by a bounded document-only compatibility fix. During normal config reload/removal, stopping a provider that only served documents must not disable local Skill discovery, menus or resource reads. Existing Skills lookups now request the optional loadSkills capability from the existing getter. Known absence keeps the local path; unknown declarations and a stopped provider that actually supplied remote Skills still fail. Four stopped-document-only cases failed before this correction. The affected six suites pass all 44 tests afterward, including actual remote-stop rejection and the earlier ordinary-read ownership regression. No new service, exported function, installation policy or lifecycle framework is added. Current-head GitHub CI still needs to finish. |
|
The provider-replacement finding is valid for a retained remote catalog followed by a replacement provider without Skills. I traced ordinary disconnect, stop, same-config reload and cold resume: these retain remote ownership or rebuild the catalog; I did not find the capability downgrade on those paths. We are keeping deliberate provider/source replacement during an in-flight turn outside this PR. The limitation is now explicit in the PR body and openclaw/openclaw-enterprise#76; it is not marked fixed or a false positive. |
a28c9b4 to
18a65cc
Compare
18a65cc to
28f9548
Compare
|
Fixed the documentation in 28f9548: document-only bindings without |
8831b77 to
0bcb455
Compare
0bcb455 to
6530027
Compare
* feat: backport split storage to the September 4 release Carry the merged workspace attachment, file-transfer, Memory, Skills, and paired-node contracts onto sjf_openclaw_2026-09-04. Preserve the release registry lifecycle, Skills cache and Memory database owners. Includes the approved fs-safe 0.17.0 upgrade and its consumer adaptations. Backports: #152633 7d7e26a #152640 fd46f38 #153124 14cf168 #152652 59916ac #153126 e1976b0 #153438 e63393b #154087 20db76a * fix(node): preserve resumable pairing in release backport * fix: complete release split-storage runtime compatibility * fix: complete split-storage release integration * test: align release file-safety fixtures with native operations * test: scope gateway lock fault injection to Node handles * test: align release automation and diagnostic fixtures
Summary
A remote workspace keeps Skill files on the Harness. Gateway task preparation must discover those Skills and read their instructions and resources without a local workspace copy.
This change connects the existing Skills owners to the optional workspace interface:
read, Code Mode and worker delivery. Remote paths do not grant access to matching Gateway files./skillcommands to that path. Reuse native watch invalidation for remote changes.The optional
loadSkillscallback enables remote Skills. Document-only bindings retain existing local discovery, menus and resource reads, including after the document service stops; a stopped remote binding still fails instead of reading a stale local copy. Channel-native menus remain synchronous and use Gateway-owned Skills; remote menu generation is deferred to openclaw/openclaw-enterprise#241. Owner inventory and installation are a separate functional follow-up.Part of openclaw/openclaw-enterprise#76. One topic commit on main: 60 files (39 production, 17 tests/fixtures, 3 docs, 1 SDK budget script). The source loader is refactored so local and remote paths share discovery and precedence, rather than maintaining two implementations.
Validation
loadSkillscapability as actual remote adapters. Both host-byte transfer assertions pass, with formatting and typed lint; the prior Linux CI exposed this missing test setup. Linux CI subsequently passed ona28c9b4a2bb9.Native review findings were checked against the complete candidate and its callers; no clean-review claim. Previous head
28f9548acompleted GitHub CI without failures.Current head
65300271rebases ontoad3fc06dto resolve confirmed conflicts with main. The resolution keeps both SDK documentation sections and adds the existing Skill reader's +1/+1 to upstream's SDK counts (approved total: 4,522 exports / 2,666 callables). An independent review verified that the other 58 topic diffs are unchanged and that upstream's tool-path containment changes are preserved.The affected workspace-read and binding suites pass all 26 tests. Core types, formatting, SDK and diff checks pass. This remains one 60-file Skills topic.
The preceding head
8831b77acompleted all GitHub checks, including both required CI gates: 173 successful checks, 41 skipped, and neutral CodeQL. It includes upstream #153351's transcript readiness and #153296's acknowledgement-test repairs. The transcript-tool file passed 19/19 tests; the preceding acknowledgement verification passed 4/4. The earlier Input/Memory/Output/Skills composition passed 43 focused tests (17 Linux-only cases skipped on macOS), types, typed lint and formatting.Head
65300271completed all GitHub checks before merge: 173 successful, 41 skipped and neutral CodeQL, including both required CI gates. The final review retained only the provider-replacement gap documented below; the maintainer explicitly accepted that deferral. These checks are not model E2E evidence. A registered backend must implement the capabilities; this PR does not enable remote storage by default.Scope limit
Replacing a remote Skills provider with a document-only provider while a turn still holds its old remote catalog can fall back to local resource reads. This is a real gap for deliberate provider/capability replacement, not a false positive. Ordinary disconnect/stop retains the remote capability and rejects reads; normal snapshot refresh and cold resume rebuild the catalog. Provider/source replacement during an in-flight turn remains outside this release and is tracked in openclaw/openclaw-enterprise#76.