Repository navigation
docs: gate tests ship with a recorded mutation result (#834) - #835
Merged
Merged
Conversation
Adopts the convention from #830's second look, where a CI gate assertion matched the whole fixture file instead of its delimited payload span — the fixture's own explanatory header satisfied it, so deleting the real payload left the suite green. Stated as a convention rather than tooling: #834 covers the deterministic lint for skill enforcement chains, and a mutation harness for file-reading gate tests should wait until there is a third such test to justify it. Entire-Checkpoint: e0c289d6e717
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.
Adopts one convention in
CLAUDE.md, from #830's second look:Why now. In #830,
trust-model-skill.test.tsasserted that the prompt-injection fixture hid an agent-directed instruction, using a pattern matched against the whole file. The fixture's own explanatory header necessarily quotesrun/env/POSTwhile describing the payload, so it satisfied the assertion — deleting the real payload line left the suite at 16/16 green. The one thing that CI gate existed to hold, it did not hold.Why a convention and not tooling. #834 covers the deterministic half (a lint over the skill's own enforcement chain). An auto-mutating harness for file-reading gate tests is buildable — there are now four such tests — but is deliberately deferred there until a third case demands it. Mutation-verifying by hand took about two minutes for four assertions in #830, so the convention is cheap enough to be worth stating before the tooling exists.
Docs-only. Related: #834, #830, #819.