fix(agent-scan): quote YAML frontmatter description to prevent parse error - #578
fix(agent-scan): quote YAML frontmatter description to prevent parse error#578NY1024 wants to merge 1 commit into
Conversation
…error
The description field in agentic-supply-chain-detection/SKILL.md contains
a bare colon ('risks:') which YAML parsers interpret as a nested mapping,
causing 'mapping values are not allowed in this context at line 2 column 47'.
Wrapping the value in double quotes resolves the parse error and allows
Agent Scan to load the skill correctly.
|
Thanks @NY1024 for the thorough root-cause analysis — the explanation of why the bare colon trips the YAML parser ("mapping values are not allowed") is spot on, and validating all 15 SKILL.md files with One heads-up: this is a duplicate of PR #580 by @cloudbypriyank — both fix the exact same line in the same file (and #580 explicitly Closes #577). Could you two coordinate and consolidate into a single PR to avoid merge conflicts? Either diff is correct; keeping one is enough. Thanks! |
|
Thanks @boy-hack for the heads-up! Confirmed this is a duplicate of PR #580 by @cloudbypriyank, which also explicitly Closes #577. Closing this one to avoid merge conflicts — #580 is the right one to merge. Thanks @cloudbypriyank for the parallel fix! |
Problem
Running Agent Scan with the
agentic-supply-chain-detectionskill produces a YAML frontmatter parse error:As a result, the skill file fails to load and the agent cannot obtain the skill content, falling back to a degraded mode.
Root Cause
The
descriptionfield inagent-scan/agent_scan/prompt/skills/agentic-supply-chain-detection/SKILL.mdcontains a bare colon:YAML parsers interpret the second colon (
risks:) as a nested mapping indicator, triggering the "mapping values are not allowed in this context" error.Fix
Wrap the
descriptionvalue in double quotes so the colon is treated as part of the string:Verification
Validated all 15 SKILL.md files under
agent-scan/agent_scan/prompt/skills/withyaml.safe_load— all pass after the fix.Scope
Single-line change, one file only.