Repository navigation
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: blocked before merge. What this changesLocal skill installation preserves literal source paths and native symlink traversal while retaining the selected alias as the fallback install name. Example: Run
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Blocked before merge - 1 item remains This PR fixes a concrete wrong-source installation bug still present on current main. The prior alias-name finding is resolved, and no remaining introduced defect was found. Priority: P2 Before merge
FindingsNone. Agent review detailsHow this fits togetherThe skills CLI passes a local source to the installer, which validates its content, applies install policy, copies it into the workspace, and records source metadata. flowchart LR
A[Skills install CLI] --> B[Literal path and home expansion]
B --> C[Native filesystem resolution]
C --> D[Existing skill validation]
D --> E[Existing install policy and copy]
E --> F[Workspace skill and source receipt]
Technical reviewBest possible solution: Use native traversal for the selected copy source and retain the selected path for fallback naming, as this PR now does. Do we have a high-confidence way to reproduce the issue? Inspected paired CLI artifacts reproduce both wrong-source cases on the pinned base, whose installer matches current main; no target code was executed during this review. Is this the best way to solve the issue? The change fixes selection at the existing installer boundary without adding another owner, and its distinct filesystem regressions protect literal paths, physical traversal, alias naming, and missing-component rejection. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 5dbf569b4b85. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +2, Tests +86. Total +88 across 2 files. Added test files: 1. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. 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 (1 earlier review cycle)
Reviewed November 15, 2026, 10:52 AM ET / 15:52 UTC (Revision 2). |
|
Preserved the selected directory alias as the fallback skill name while keeping physical paths for validation and copying. All31 focused tests pass. The rebuilt CLI at @clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Thanks for the work here. We're closing this along with the other open PRs that apply the same change one call site at a time. This series changes symlink, physical-path and literal-path handling at each command separately; path resolution policy belongs in one shared owner and needs a maintainer decision. Please open one issue (or one PR at the shared owner) that covers the whole pattern, with a reproduction of real user-visible harm, instead of separate per-site PRs. Further per-site variants of this pattern will be closed. |
What Problem This Solves
skills install "<local-directory> "can report success after installing a different valid neighbouring skill: the local source path is trimmed and lexically resolved before native traversal. A directory alias followed by..can select another source in the same way. The resulting instructions and companion files differ from the operator's selection.User Impact
Local skill installation validates, scans and copies the source the supplied path actually names. Quoted significant spaces and directory-symlink traversal are retained. Unreachable input does not fall back to a neighbouring skill. Ordinary paths, Git source parsing, slug validation, install policy, staging, no-force protection and discovery refresh retain their existing owners.
Why This Change Was Made
Resolve the raw local source once through native
realpath, after existing home-prefix expansion and before directory validation, security policy and copying. The Git branch continues using its normalized spec. Retain the original local source in the existing origin metadata so the receipt reflects what was requested; the installed destination remains the canonical workspace slug directory.This is the complete source-selection owner for the local installer. The library-upload command is a separate Gateway operation. No new options, dependency, permission, config/default, schema, protocol, migration or linked-plugin identity changes. No modified release-owned CHANGELOG or proof assets in the product branch.
Evidence
Product head:
13609e43e2bb2f89a249a3767f6f30eaff050e7d; BASE:c0166c395cf81095f431808c9496cb6022ad4387.Paired CLI output, installed content/origin readback, frozen collector and independent review.
python3 skill-source-proof-v1.py CHECKOUT FRESH_OUTPUT NODE26 MODEwithredon BASE andgreenon HEAD; frozen collector SHA256dd30dee3aa61f2f66bb4d87db7fa6c53c78f56fa225d0a6c197a1c9630475c7bmatches both. It executes normally builtopenclaw.mjs skills install <path> --agent main --as <slug>. Clean exact-head normalcliStartupbuild exits0 in315.641s.installSkillFromSource-> existing skill loader, install policy and extracted-root installer -> independently opened installedSKILL.md, supporting file and.openclaw/source-origin.json. No copy, filesystem, policy or install owner is replaced by a test double. All three real commands exit0 on both revisions; BASE's two selected installations demonstrably contain decoy source bytes. HEAD's three readbacks match the intended sources.--as, valid frontmatter names and existing slug validation retain precedence.python3 skill-source-alias-proof-v1.py CHECKOUT FRESH_OUTPUT NODE26 MODE(frozen SHA256e200b345672fc7a8bf5f1a018a281c08e7abed31e05233795e89b0782fd43f3f) separately compares first-published head053bbca1b99ed32cda882362ce00fa82c3465e44with this repair. Without--as, an aliasmy-guidetorelease.1previously rejected a legal alias and an alias todifferent-nameinstalled under the wrong name; the repaired commands both installmy-guide. The ordinary no-override control also succeeds. Three actual CLI commands use installed instruction/asset/origin readback; source bytes remain unchanged. This repair baseline is distinct from original current-main BASE above.pnpm test src/skills/lifecycle/source-install.test.ts src/skills/lifecycle/source-install-paths.test.ts --maxWorkers=1:31 PASS in250.104s wall, including compiler-worker preparation and existing installer/Git fixtures. Final semantic types, typed lint, format and staged test/file line ratchets pass. The original426-line suite stays unchanged; the new focused file is bounded and serves the independent source-selection defect. Independent full source review passes through the authorized GPT6.1Sol fallback, with final exact-head evidence/body assessment linked above; official autoreview execution is not claimed.Production / test LOC