Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion evolution/skills/evolve_skill.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,10 @@ def evolve(

# ── 7. Validate evolved skill ───────────────────────────────────────
console.print(f"\n[bold]Validating evolved skill[/bold]")
evolved_constraints = validator.validate_all(evolved_body, "skill", baseline_text=skill["body"])
# Validate the reassembled file, not the bare body. skill_structure requires
# YAML frontmatter, which only exists on evolved_full — validating evolved_body
# fails that constraint unconditionally, so no evolved skill could ever deploy.
evolved_constraints = validator.validate_all(evolved_full, "skill", baseline_text=skill["body"])
all_pass = True
for c in evolved_constraints:
icon = "✓" if c.passed else "✗"
Expand Down