fix(#3426): anchor rule 3 gate tests on heading structure not token scan (#3489)

* fix(#3426): anchor rule 3 gate tests on heading structure not token scan

* chore(#3426): add changeset

* chore(#3426): link changeset fragment to pr 3489

---------

Co-authored-by: sim <sim@local>
This commit is contained in:
Tom Boucher
2026-08-14 12:20:43 -04:00
committed by GitHub
parent 58e3437a48
commit 8a718f3385
2 changed files with 93 additions and 6 deletions

View File

@@ -0,0 +1,5 @@
---
type: Fixed
pr: 3489
---
package-legitimacy-gate tests now locate the executor RULE 3 section by its heading inside the deviation rules block, so unrelated prompt edits can no longer redirect or silently defeat the package-install guardrail assertions