Repository navigation
Prevent code execution when reading and updating skill frontmatter - #2465
Conversation
|
Important Review skippedThis PR was authored by the user configured for CodeRabbit reviews. CodeRabbit does not review PRs authored by this user. It's recommended to use a dedicated user account to post CodeRabbit review feedback.
|
Review statusThis PR was opened by an automated account. A human maintainer must verify the change intent, provenance, and validation before merging. Current step: The required review sequence passed. Remaining merge requirements apply. Review-state labels are managed by this workflow; do not edit them manually. |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Changed-code mutation testingNo mutants survived the changed-code mutation run for head The |
204f18f to
0b02b27
Compare
Share the command frontmatter guard with skill discovery, content reads, and mode updates. Reject unsupported engines before parsing, including headers with a leading BOM. Continue to accept YAML and JSON metadata.
Serialize mode updates without parsing skill body text as frontmatter. Add regression tests for rejected engines, accepted formats, changed files, and executable-looking body text.
This change supports reliability. No user documentation updates are required.
Validation: Tests were not run during this inspection. No related issue number was provided.
View coding task