fix(agent-scan): quote YAML frontmatter description to prevent parse error - #578
Open
NY1024 wants to merge 1 commit into
Open
fix(agent-scan): quote YAML frontmatter description to prevent parse error#578NY1024 wants to merge 1 commit into
NY1024 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.
Collaborator
|
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! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.