NemoClaw icon indicating copy to clipboard operation
NemoClaw copied to clipboard

[All Platforms][CLI&UX] skill install reports a changed source for skill names over 255 characters

Open PicoNVIDIA opened this issue 2 months ago • 0 comments

Description

nemoclaw <sandbox> skill install accepts a SKILL.md name of any length. A name longer than 255 characters passes validation and then fails with a message about the source changing, which it didn't.

validateSkillName() (src/lib/skill-name.ts:9) checks the characters but not the length. createStatelessSkillSnapshot() uses the name as a directory name (src/lib/skill-install.ts:195-200), and a 256-character directory name fails with ENAMETOOLONG. The catch at skill-install.ts:285 turns every error into source-changed, so the CLI prints "Skill source changed while it was being read; no sandbox add began."

Reproduction Steps

  1. Use an isolated HOME with one registered sandbox named mysb, and stub openshell and docker.
  2. Create skill directories whose SKILL.md name is 64, 255, and 256 lowercase a characters.
  3. Run nemoclaw mysb skill install <dir> for each.

Environment

  • macOS 26.5.2 (arm64), Node.js v22.22.3
  • NemoClaw main at 4c44f7cc8; the skill files are unchanged on 5f6eb3232
  • Real CLI (node bin/nemoclaw.js) with stubbed OpenShell, so the 64 and 255 cases stop later at the gateway check

Debug Output

-- name length 64
  ✓ Validated SKILL.md (name: aaaa…, 1 file(s))
  Unable to verify sandbox 'mysb' against the live OpenShell gateway.
-- name length 255
  ✓ Validated SKILL.md (name: aaaa…, 1 file(s))
  Unable to verify sandbox 'mysb' against the live OpenShell gateway.
-- name length 256
  Skill source changed while it was being read; no sandbox add began.

Logs

This is minor, since nobody is likely to write a 256-character skill name, but the error sends people looking for a file change that never happened. The Agent Skills spec (https://agentskills.io/specification) caps name at 64 characters. Adding that limit to validateSkillName() would give a clear error up front. It would also help to keep filesystem errors separate from real source changes in createStatelessSkillSnapshot().

Checklist

  • [x] I confirmed this bug is reproducible
  • [x] I searched existing issues and this is not a duplicate

PicoNVIDIA avatar Sep 28 '26 20:09 PicoNVIDIA