agentscope-java icon indicating copy to clipboard operation
agentscope-java copied to clipboard

[Bug]:MarketplaceStager filesystem 抽象层 工作区下公共技能无法使用

Open PlanDoSome opened this issue 4 months ago • 1 comments

HarnessAgent智能体构建的时候 工作区 /workspace

/workspace/skills/ 公共技能 /workspace/userid/skills 个人技能 IsolationScope.USER

公共技能会生成一个.skill-cache

/workspace/.skill-cache

当使用技能的时候,读取技能下的某个文件,不是SKILL.MD文件,是其他的文件 比如技能doc的 /workspace/.skills-cache/filesystem-workspace_skills/docx/docx-js.md

进入到FileSystemTool会被norm ReadResult r = abstractFilesystem.read(runtimeContext, norm(path), offset, limit); norm 后路径变为 .skills-cache/filesystem-workspace_skills/docx/docx-js.md 然后进入OverlayFilesystem upper.exists(runtimeContext, path) 最后走的还是LocalFileSystem return Files.exists(resolvePath(runtimeContext, path)); String effectiveKey = applyNamespacePrefix(rc, key);又会拼接namespacemanager的userId resolvePath(runtimeContext, path)的ROOTED模式 再拼接工作区 最后得到地址 /workspace/USERID/.skills-cache/filesystem-workspace_skills/docx/docx-js.md 完全不是一个路径,我不懂这一块的逻辑是怎么串的,怎么使用公共技能,大家都能跑通嘛,是我使用的问题嘛?

PlanDoSome avatar Jul 13 '26 13:07 PlanDoSome

🤖 AI Assessment: Bug Report

Classification: Bug (area/harness, filesystem)

Analysis: This appears to be a valid bug in the OverlayFilesystem path resolution. The issue is that when reading skill files (non-SKILL.md), the path normalization causes the file lookup to fail in the upper filesystem layer.

Related PR: #2183 (fix(harness): resolve shared skill cache paths) may address this issue.

Next Steps: A maintainer will review the path resolution logic in OverlayFilesystem.


Automated assessment by github-manager

oss-maintainer avatar Jul 14 '26 06:07 oss-maintainer