Skip to content

Fix: constraint-validator false positive on valid YAML frontmatter#53

Open
brookewhatnall wants to merge 1 commit into
NousResearch:mainfrom
brookewhatnall:fix/constraint-validator-false-positive
Open

Fix: constraint-validator false positive on valid YAML frontmatter#53
brookewhatnall wants to merge 1 commit into
NousResearch:mainfrom
brookewhatnall:fix/constraint-validator-false-positive

Conversation

@brookewhatnall
Copy link
Copy Markdown

The skill_structure constraint check was passing evolved_body (markdown body with frontmatter stripped) instead of evolved_full (complete file). Since the validator checks for YAML frontmatter markers, it always failed on valid skills — a false positive documented in the README.

Now checks evolved_full with baseline_text=skill['raw'] for consistency.

Fixes the bug reported in README: 'The constraint validator has a false positive bug on valid YAML.'

The skill_structure constraint check was passing evolved_body (markdown
body with frontmatter stripped) instead of evolved_full (complete file).
Since the validator checks for YAML frontmatter markers, it always failed
on valid skills — a false positive documented in the README.

Now checks evolved_full with baseline_text=skill['raw'] for consistency.

Fixes the bug reported in README: 'The constraint validator has a
false positive bug on valid YAML.'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant